@elevasis/ui 2.22.0 → 2.24.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/app/index.d.ts +2915 -0
- package/dist/app/index.js +5 -4
- package/dist/{chunk-3HEUGBOT.js → chunk-2WZ635SS.js} +2 -2
- package/dist/{chunk-GJ7EIABJ.js → chunk-4NWNS7TX.js} +1 -1
- package/dist/{chunk-LKVBEE63.js → chunk-FUEXGRFR.js} +2 -2
- package/dist/{chunk-6IA2OMAE.js → chunk-HC2KV6BU.js} +9 -0
- package/dist/{chunk-IBUYJXA3.js → chunk-KCJ6VATY.js} +1133 -578
- package/dist/{chunk-WWJ6S2HQ.js → chunk-KLFIJDTD.js} +1 -1
- package/dist/{chunk-COG4ABRI.js → chunk-M2HWJY6O.js} +704 -375
- package/dist/{chunk-LVJGPE6H.js → chunk-MTR6AN2C.js} +3 -12
- package/dist/chunk-OWHQ65EQ.js +211 -0
- package/dist/{chunk-XOTJNW4Q.js → chunk-QIW6OCEI.js} +18 -1
- package/dist/{chunk-B4FHWKEF.js → chunk-QULLZ5PE.js} +193 -10
- package/dist/{chunk-QZJM3RYI.js → chunk-SNHGSCKH.js} +1 -1
- package/dist/{chunk-LVUCBY7X.js → chunk-UDJE54WN.js} +85 -3
- package/dist/{chunk-IOTLB6ND.js → chunk-VGNAV3TH.js} +406 -195
- package/dist/{chunk-BSZRKBAW.js → chunk-YBZT7MJR.js} +3 -3
- package/dist/{chunk-SQ5JGELM.js → chunk-ZDKQNQ4X.js} +19 -1
- package/dist/components/index.d.ts +500 -466
- package/dist/components/index.js +75 -32
- package/dist/components/navigation/index.js +2 -2
- package/dist/features/auth/index.d.ts +472 -389
- package/dist/features/crm/index.d.ts +468 -391
- package/dist/features/crm/index.js +8 -8
- package/dist/features/dashboard/index.js +8 -8
- package/dist/features/delivery/index.d.ts +466 -383
- package/dist/features/delivery/index.js +8 -8
- package/dist/features/lead-gen/index.d.ts +213 -65
- package/dist/features/lead-gen/index.js +9 -8
- package/dist/features/monitoring/index.js +9 -9
- package/dist/features/monitoring/requests/index.js +7 -7
- package/dist/features/operations/index.js +11 -10
- package/dist/features/settings/index.d.ts +472 -389
- package/dist/features/settings/index.js +9 -9
- package/dist/hooks/delivery/index.d.ts +466 -383
- package/dist/hooks/index.d.ts +967 -744
- package/dist/hooks/index.js +7 -7
- package/dist/hooks/published.d.ts +967 -744
- package/dist/hooks/published.js +7 -7
- package/dist/index.d.ts +1360 -1069
- package/dist/index.js +8 -8
- package/dist/initialization/index.d.ts +472 -389
- package/dist/organization/index.d.ts +11 -1
- package/dist/organization/index.js +2 -2
- package/dist/profile/index.d.ts +472 -389
- package/dist/provider/index.d.ts +3132 -169
- package/dist/provider/index.js +6 -6
- package/dist/provider/published.d.ts +3098 -168
- package/dist/provider/published.js +3 -3
- package/dist/supabase/index.d.ts +577 -413
- package/dist/test-utils/index.d.ts +21 -1
- package/dist/test-utils/index.js +13 -4
- package/dist/theme/index.js +2 -2
- package/dist/types/index.d.ts +472 -389
- package/package.json +2 -2
- package/src/test-utils/README.md +2 -0
- /package/dist/{chunk-ZBCTB5CA.js → chunk-EIOJNUPL.js} +0 -0
package/dist/index.d.ts
CHANGED
|
@@ -3,8 +3,8 @@ import { ReactNode, MouseEvent, AnchorHTMLAttributes, ElementType, ComponentType
|
|
|
3
3
|
import * as _tanstack_react_query from '@tanstack/react-query';
|
|
4
4
|
import { QueryClient } from '@tanstack/react-query';
|
|
5
5
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
6
|
-
import { CSSVariablesResolver, MantineThemeOverride } from '@mantine/core';
|
|
7
6
|
import { z } from 'zod';
|
|
7
|
+
import { CSSVariablesResolver, MantineThemeOverride } from '@mantine/core';
|
|
8
8
|
import { Node, Edge, NodeMouseHandler } from '@xyflow/react';
|
|
9
9
|
import { IconBrain } from '@tabler/icons-react';
|
|
10
10
|
import { EventSourceMessage } from '@microsoft/fetch-event-source';
|
|
@@ -96,243 +96,6 @@ declare function NotificationProvider({ adapter, children }: {
|
|
|
96
96
|
*/
|
|
97
97
|
declare function useNotificationAdapter(): NotificationAdapter;
|
|
98
98
|
|
|
99
|
-
/** Flat + per-scheme override pattern. Flat values apply to both; `light`/`dark` win over flat. */
|
|
100
|
-
type WithSchemes<T> = T & {
|
|
101
|
-
light?: T;
|
|
102
|
-
dark?: T;
|
|
103
|
-
};
|
|
104
|
-
/**
|
|
105
|
-
* Theme token overrides. Each key maps 1:1 to a CSS variable.
|
|
106
|
-
* All optional — defaults come from Elevasis design system.
|
|
107
|
-
*/
|
|
108
|
-
interface ElevasisTokenOverrides {
|
|
109
|
-
primary?: string;
|
|
110
|
-
/** Text color that contrasts with `primary`. Defaults to '#fff'. */
|
|
111
|
-
primaryContrast?: string;
|
|
112
|
-
background?: string;
|
|
113
|
-
surface?: string;
|
|
114
|
-
surfaceHover?: string;
|
|
115
|
-
/** Opaque surface for floating overlays (modals, menus, popovers) — guarantees readable contrast against decorative backgrounds. */
|
|
116
|
-
elevatedSurface?: string;
|
|
117
|
-
text?: string;
|
|
118
|
-
textDimmed?: string;
|
|
119
|
-
textSubtle?: string;
|
|
120
|
-
border?: string;
|
|
121
|
-
error?: string;
|
|
122
|
-
warning?: string;
|
|
123
|
-
success?: string;
|
|
124
|
-
glassBackground?: string;
|
|
125
|
-
glassBlur?: string;
|
|
126
|
-
shadow?: string;
|
|
127
|
-
cardShadow?: string;
|
|
128
|
-
durationFast?: string;
|
|
129
|
-
durationNormal?: string;
|
|
130
|
-
easing?: string;
|
|
131
|
-
/** Foreground text color for destructive/error buttons. Defaults to '#fff'. */
|
|
132
|
-
destructiveFg?: string;
|
|
133
|
-
/** Heading font family — used for titles, section headers. */
|
|
134
|
-
fontHeading?: string;
|
|
135
|
-
/** Body font family — used for general text. */
|
|
136
|
-
fontSans?: string;
|
|
137
|
-
}
|
|
138
|
-
/**
|
|
139
|
-
* Core theme config — Mantine-free.
|
|
140
|
-
* Used by ElevasisCoreProvider and as the base for ElevasisThemeConfig.
|
|
141
|
-
*/
|
|
142
|
-
interface ElevasisCoreThemeConfig {
|
|
143
|
-
/** Color scheme: 'light', 'dark', or 'auto'. Defaults to 'dark'. */
|
|
144
|
-
colorScheme?: 'light' | 'dark' | 'auto';
|
|
145
|
-
/** Named preset — bundles light/dark token defaults. Defaults to 'default'. Accepts built-in PresetName or custom preset key. */
|
|
146
|
-
preset?: PresetName | (string & {});
|
|
147
|
-
/**
|
|
148
|
-
* Semantic token overrides fed into CSS variables.
|
|
149
|
-
* Flat values apply to both schemes. `light`/`dark` nested values win over flat.
|
|
150
|
-
*/
|
|
151
|
-
tokens?: WithSchemes<ElevasisTokenOverrides>;
|
|
152
|
-
/** Custom presets map — when provided, used instead of built-in presets. Typically `{ ...presets, ...customPresets }`. */
|
|
153
|
-
presets?: Record<string, ThemePreset>;
|
|
154
|
-
}
|
|
155
|
-
/**
|
|
156
|
-
* Auth configuration union.
|
|
157
|
-
* 'authkit' (WorkOS AuthKit) is the supported mode.
|
|
158
|
-
* 'apiKey' is defined for forward type compatibility but will throw at runtime.
|
|
159
|
-
*/
|
|
160
|
-
type AuthConfig = AuthKitConfig | ApiKeyConfig;
|
|
161
|
-
interface AuthKitConfig {
|
|
162
|
-
mode: 'authkit';
|
|
163
|
-
clientId: string;
|
|
164
|
-
/** AuthKit API hostname. Defaults to 'api.workos.com'. */
|
|
165
|
-
apiHostname?: string;
|
|
166
|
-
/** Redirect URI after auth. */
|
|
167
|
-
redirectUri?: string;
|
|
168
|
-
/** Keep refresh tokens in localStorage. Defaults to false. */
|
|
169
|
-
devMode?: boolean;
|
|
170
|
-
}
|
|
171
|
-
/** Deferred -- will throw at runtime. */
|
|
172
|
-
interface ApiKeyConfig {
|
|
173
|
-
mode: 'apiKey';
|
|
174
|
-
key: string;
|
|
175
|
-
}
|
|
176
|
-
interface ElevasisCoreProviderProps {
|
|
177
|
-
/** Auth configuration. Supports 'authkit' mode. */
|
|
178
|
-
auth: AuthConfig;
|
|
179
|
-
/**
|
|
180
|
-
* Elevasis core theme configuration (Mantine-free).
|
|
181
|
-
* Set `colorScheme` ('light', 'dark', 'auto') and override `tokens` (design tokens).
|
|
182
|
-
* Defaults: colorScheme='dark', Elevasis design system tokens.
|
|
183
|
-
*/
|
|
184
|
-
theme?: ElevasisCoreThemeConfig;
|
|
185
|
-
/**
|
|
186
|
-
* @deprecated Organization ID is now resolved automatically via OrganizationProvider.
|
|
187
|
-
* This prop is accepted for backwards compatibility during migration but is no longer
|
|
188
|
-
* used when the full provider stack is active (apiUrl provided).
|
|
189
|
-
*/
|
|
190
|
-
organizationId?: string | null;
|
|
191
|
-
/** Custom QueryClient. If omitted, a default is created internally. */
|
|
192
|
-
queryClient?: QueryClient;
|
|
193
|
-
/**
|
|
194
|
-
* API base URL (e.g., 'https://api.elevasis.com' or 'http://localhost:5170').
|
|
195
|
-
* When provided, ElevasisCoreProvider composes the full provider stack:
|
|
196
|
-
* ApiClientProvider + ElevasisServiceProvider + ProfileProvider +
|
|
197
|
-
* OrganizationProvider + NotificationProvider + InitializationProvider.
|
|
198
|
-
* When omitted, no service context is provided (theme-only mode).
|
|
199
|
-
*/
|
|
200
|
-
apiUrl?: string;
|
|
201
|
-
/**
|
|
202
|
-
* Error callback for API responses with status >= 500.
|
|
203
|
-
* Only used when apiUrl is provided.
|
|
204
|
-
*/
|
|
205
|
-
onError?: (endpoint: string, error: Error, details?: ApiErrorDetails) => void;
|
|
206
|
-
/**
|
|
207
|
-
* @deprecated Organization readiness is now managed internally by OrganizationProvider.
|
|
208
|
-
* Accepted for backwards compatibility but ignored when apiUrl is provided.
|
|
209
|
-
*/
|
|
210
|
-
isOrganizationReady?: boolean;
|
|
211
|
-
/**
|
|
212
|
-
* Notification adapter for displaying success/error/info messages.
|
|
213
|
-
* When provided, wraps the subtree in a NotificationProvider with this adapter.
|
|
214
|
-
* When omitted, the console fallback adapter is used automatically.
|
|
215
|
-
*
|
|
216
|
-
* ElevasisUIProvider (Mantine variant) passes a Mantine-backed adapter here automatically.
|
|
217
|
-
* Headless/SDK consumers can pass a custom adapter or omit for console output.
|
|
218
|
-
*/
|
|
219
|
-
notifications?: NotificationAdapter;
|
|
220
|
-
/**
|
|
221
|
-
* Whether to inject CSS variables, `data-elevasis-scheme` attribute, and font links.
|
|
222
|
-
* Set to `false` when the consumer has its own complete design system and only
|
|
223
|
-
* needs auth + API from this provider. Defaults to `true`.
|
|
224
|
-
*/
|
|
225
|
-
injectStyles?: boolean;
|
|
226
|
-
children: ReactNode;
|
|
227
|
-
}
|
|
228
|
-
/**
|
|
229
|
-
* Service context value exposed by ElevasisServiceProvider.
|
|
230
|
-
* Provides a ready-to-use apiRequest function and organization state.
|
|
231
|
-
*
|
|
232
|
-
* For standalone usage (testing, embedding), use ElevasisServiceProvider directly.
|
|
233
|
-
* For standard SDK usage, ElevasisUIProvider composes this automatically when apiUrl is provided.
|
|
234
|
-
*/
|
|
235
|
-
interface ElevasisServiceContextValue {
|
|
236
|
-
apiRequest: <T>(endpoint: string, options?: RequestInit) => Promise<T>;
|
|
237
|
-
organizationId: string | null;
|
|
238
|
-
isReady: boolean;
|
|
239
|
-
}
|
|
240
|
-
interface ElevasisServiceProviderProps {
|
|
241
|
-
apiRequest: <T>(endpoint: string, options?: RequestInit) => Promise<T>;
|
|
242
|
-
organizationId: string | null;
|
|
243
|
-
isReady: boolean;
|
|
244
|
-
children: ReactNode;
|
|
245
|
-
}
|
|
246
|
-
|
|
247
|
-
/** Framework-agnostic theme overrides bundled with a preset (fonts, radius, component styles). */
|
|
248
|
-
interface FrameworkThemeOverrides {
|
|
249
|
-
fontFamily?: string;
|
|
250
|
-
defaultRadius?: string;
|
|
251
|
-
headings?: {
|
|
252
|
-
fontFamily?: string;
|
|
253
|
-
fontWeight?: string;
|
|
254
|
-
};
|
|
255
|
-
components?: Record<string, unknown>;
|
|
256
|
-
}
|
|
257
|
-
/** Tokens every preset must define. `elevatedSurface` is progressively adopted and stays optional. */
|
|
258
|
-
type PresetTokens = Required<Omit<ElevasisTokenOverrides, 'elevatedSurface'>> & Pick<ElevasisTokenOverrides, 'elevatedSurface'>;
|
|
259
|
-
interface ThemePreset {
|
|
260
|
-
light: PresetTokens;
|
|
261
|
-
dark: PresetTokens;
|
|
262
|
-
/** Optional framework theme overrides bundled with this preset (fonts, radius, etc.). */
|
|
263
|
-
framework?: FrameworkThemeOverrides;
|
|
264
|
-
/**
|
|
265
|
-
* Subtitle font family — used for card names, section labels, and nav items.
|
|
266
|
-
* Sits between heading and body in the typographic hierarchy.
|
|
267
|
-
*/
|
|
268
|
-
subtitleFontFamily?: string;
|
|
269
|
-
/** Google Fonts URLs to load when this preset is active. */
|
|
270
|
-
fontImports?: string[];
|
|
271
|
-
/** Display label for settings UI (e.g. "Tactical"). Built-in presets define this; custom presets must provide it. */
|
|
272
|
-
label?: string;
|
|
273
|
-
/** Short description for settings UI (e.g. "Tactical command center aesthetic"). */
|
|
274
|
-
description?: string;
|
|
275
|
-
/** Three representative hex colors for swatch display: [primary, dark-bg, light-bg]. */
|
|
276
|
-
colors?: [string, string, string];
|
|
277
|
-
/**
|
|
278
|
-
* Background layers rendered behind app content when this preset is active.
|
|
279
|
-
* Overridden by `theme.background` on the provider if both are set.
|
|
280
|
-
*/
|
|
281
|
-
background?: ReactNode;
|
|
282
|
-
/**
|
|
283
|
-
* Loader element used in loading states when this preset is active.
|
|
284
|
-
* Overridden by `theme.loader` on the provider if both are set.
|
|
285
|
-
*/
|
|
286
|
-
loader?: ReactNode;
|
|
287
|
-
}
|
|
288
|
-
type PresetName = 'default' | 'tactical' | 'regal' | 'cyber-volt' | 'aurora' | 'rose-gold' | 'midnight' | 'titanium' | 'canopy' | 'slate' | 'cyber-strike' | 'cyber-chrome' | 'cyber-void' | 'nirvana' | 'wave' | 'synapse' | 'cortex' | 'helios' | 'graphite' | 'quarry';
|
|
289
|
-
|
|
290
|
-
/** 10-shade color tuple (light → dark), compatible with Mantine's color format. */
|
|
291
|
-
type ColorShadesTuple = [string, string, string, string, string, string, string, string, string, string];
|
|
292
|
-
/**
|
|
293
|
-
* Generate a 10-shade Mantine color tuple from a single hex color.
|
|
294
|
-
* Input color maps to shade 6 (Mantine's default primary shade).
|
|
295
|
-
* Shades 0-5 are progressively lighter, 7-9 are progressively darker.
|
|
296
|
-
*/
|
|
297
|
-
declare function generateShades(hex: string): ColorShadesTuple;
|
|
298
|
-
|
|
299
|
-
declare const PRESETS: Record<PresetName, ThemePreset>;
|
|
300
|
-
|
|
301
|
-
/** Look up a preset by name. Falls back to default preset for unknown names. */
|
|
302
|
-
declare function getPreset(name: PresetName | (string & {}), presetsMap?: Record<string, ThemePreset>): ThemePreset;
|
|
303
|
-
|
|
304
|
-
/** Token key → CSS variable name. Single source of truth for the mapping. */
|
|
305
|
-
declare const TOKEN_VAR_MAP: Record<keyof ElevasisTokenOverrides, string>;
|
|
306
|
-
/**
|
|
307
|
-
* Creates a CSS variables resolver from theme config.
|
|
308
|
-
*
|
|
309
|
-
* Merge order per scheme: PRESET_DEFAULTS → flat overrides → scheme-specific overrides
|
|
310
|
-
*/
|
|
311
|
-
declare function createCssVariablesResolver(tokens?: ElevasisCoreThemeConfig['tokens'], preset?: PresetName | (string & {}), presetsMap?: Record<string, ThemePreset>): CSSVariablesResolver;
|
|
312
|
-
|
|
313
|
-
declare const mantineThemeOverride: MantineThemeOverride;
|
|
314
|
-
|
|
315
|
-
declare const componentThemes: MantineThemeOverride['components'];
|
|
316
|
-
|
|
317
|
-
declare const PresetsProvider: react.Provider<Record<string, ThemePreset>>;
|
|
318
|
-
declare function usePresetsContext(): Record<string, ThemePreset>;
|
|
319
|
-
|
|
320
|
-
/** Preset entry with display metadata for settings UI. */
|
|
321
|
-
interface PresetEntry {
|
|
322
|
-
/** Preset key (e.g. 'tactical', 'my-custom-brand'). */
|
|
323
|
-
value: string;
|
|
324
|
-
/** Display label (e.g. 'Tactical'). Falls back to titlecased key. */
|
|
325
|
-
label: string;
|
|
326
|
-
/** Short description. Falls back to empty string. */
|
|
327
|
-
description: string;
|
|
328
|
-
/** Three representative hex colors for swatch: [primary, dark-bg, light-bg]. Falls back to preset's dark/light primary + backgrounds. */
|
|
329
|
-
colors: [string, string, string];
|
|
330
|
-
/** True for presets not in the built-in PresetName union. */
|
|
331
|
-
isCustom: boolean;
|
|
332
|
-
}
|
|
333
|
-
/** Returns all available presets as UI-ready entries. */
|
|
334
|
-
declare function useAvailablePresets(): PresetEntry[];
|
|
335
|
-
|
|
336
99
|
/**
|
|
337
100
|
* Debounce utility for delaying function execution
|
|
338
101
|
*
|
|
@@ -907,29 +670,79 @@ type Json = string | number | boolean | null | {
|
|
|
907
670
|
} | Json[];
|
|
908
671
|
type Database = {
|
|
909
672
|
__InternalSupabase: {
|
|
910
|
-
PostgrestVersion:
|
|
673
|
+
PostgrestVersion: '12.2.3 (519615d)';
|
|
911
674
|
};
|
|
912
675
|
public: {
|
|
913
676
|
Tables: {
|
|
914
|
-
|
|
677
|
+
acq_artifacts: {
|
|
915
678
|
Row: {
|
|
916
|
-
|
|
917
|
-
category: string | null;
|
|
918
|
-
category_pain: string | null;
|
|
679
|
+
content: Json;
|
|
919
680
|
created_at: string;
|
|
920
|
-
|
|
921
|
-
enrichment_data: Json | null;
|
|
922
|
-
filter_reason: string | null;
|
|
923
|
-
founded_year: number | null;
|
|
681
|
+
created_by: string | null;
|
|
924
682
|
id: string;
|
|
925
|
-
|
|
926
|
-
location_city: string | null;
|
|
927
|
-
location_state: string | null;
|
|
928
|
-
name: string;
|
|
929
|
-
num_employees: number | null;
|
|
683
|
+
kind: string;
|
|
930
684
|
organization_id: string;
|
|
931
|
-
|
|
932
|
-
|
|
685
|
+
owner_id: string;
|
|
686
|
+
owner_kind: string;
|
|
687
|
+
source_execution_id: string | null;
|
|
688
|
+
version: number;
|
|
689
|
+
};
|
|
690
|
+
Insert: {
|
|
691
|
+
content: Json;
|
|
692
|
+
created_at?: string;
|
|
693
|
+
created_by?: string | null;
|
|
694
|
+
id?: string;
|
|
695
|
+
kind: string;
|
|
696
|
+
organization_id: string;
|
|
697
|
+
owner_id: string;
|
|
698
|
+
owner_kind: string;
|
|
699
|
+
source_execution_id?: string | null;
|
|
700
|
+
version?: number;
|
|
701
|
+
};
|
|
702
|
+
Update: {
|
|
703
|
+
content?: Json;
|
|
704
|
+
created_at?: string;
|
|
705
|
+
created_by?: string | null;
|
|
706
|
+
id?: string;
|
|
707
|
+
kind?: string;
|
|
708
|
+
organization_id?: string;
|
|
709
|
+
owner_id?: string;
|
|
710
|
+
owner_kind?: string;
|
|
711
|
+
source_execution_id?: string | null;
|
|
712
|
+
version?: number;
|
|
713
|
+
};
|
|
714
|
+
Relationships: [
|
|
715
|
+
{
|
|
716
|
+
foreignKeyName: 'acq_artifacts_organization_id_fkey';
|
|
717
|
+
columns: ['organization_id'];
|
|
718
|
+
isOneToOne: false;
|
|
719
|
+
referencedRelation: 'organizations';
|
|
720
|
+
referencedColumns: ['id'];
|
|
721
|
+
}
|
|
722
|
+
];
|
|
723
|
+
};
|
|
724
|
+
acq_companies: {
|
|
725
|
+
Row: {
|
|
726
|
+
batch_id: string | null;
|
|
727
|
+
category: string | null;
|
|
728
|
+
category_pain: string | null;
|
|
729
|
+
created_at: string;
|
|
730
|
+
domain: string | null;
|
|
731
|
+
enrichment_data: Json | null;
|
|
732
|
+
filter_reason: string | null;
|
|
733
|
+
founded_year: number | null;
|
|
734
|
+
id: string;
|
|
735
|
+
linkedin_url: string | null;
|
|
736
|
+
location_city: string | null;
|
|
737
|
+
location_state: string | null;
|
|
738
|
+
name: string;
|
|
739
|
+
num_employees: number | null;
|
|
740
|
+
organization_id: string;
|
|
741
|
+
pipeline_status: Json;
|
|
742
|
+
qualification_rubric_key: string | null;
|
|
743
|
+
qualification_score: number | null;
|
|
744
|
+
qualification_signals: Json | null;
|
|
745
|
+
segment: string | null;
|
|
933
746
|
source: string | null;
|
|
934
747
|
status: string;
|
|
935
748
|
updated_at: string;
|
|
@@ -952,6 +765,9 @@ type Database = {
|
|
|
952
765
|
num_employees?: number | null;
|
|
953
766
|
organization_id: string;
|
|
954
767
|
pipeline_status?: Json;
|
|
768
|
+
qualification_rubric_key?: string | null;
|
|
769
|
+
qualification_score?: number | null;
|
|
770
|
+
qualification_signals?: Json | null;
|
|
955
771
|
segment?: string | null;
|
|
956
772
|
source?: string | null;
|
|
957
773
|
status?: string;
|
|
@@ -975,6 +791,9 @@ type Database = {
|
|
|
975
791
|
num_employees?: number | null;
|
|
976
792
|
organization_id?: string;
|
|
977
793
|
pipeline_status?: Json;
|
|
794
|
+
qualification_rubric_key?: string | null;
|
|
795
|
+
qualification_score?: number | null;
|
|
796
|
+
qualification_signals?: Json | null;
|
|
978
797
|
segment?: string | null;
|
|
979
798
|
source?: string | null;
|
|
980
799
|
status?: string;
|
|
@@ -983,11 +802,11 @@ type Database = {
|
|
|
983
802
|
};
|
|
984
803
|
Relationships: [
|
|
985
804
|
{
|
|
986
|
-
foreignKeyName:
|
|
987
|
-
columns: [
|
|
805
|
+
foreignKeyName: 'acq_companies_organization_id_fkey';
|
|
806
|
+
columns: ['organization_id'];
|
|
988
807
|
isOneToOne: false;
|
|
989
|
-
referencedRelation:
|
|
990
|
-
referencedColumns: [
|
|
808
|
+
referencedRelation: 'organizations';
|
|
809
|
+
referencedColumns: ['id'];
|
|
991
810
|
}
|
|
992
811
|
];
|
|
993
812
|
};
|
|
@@ -1011,6 +830,9 @@ type Database = {
|
|
|
1011
830
|
opening_line: string | null;
|
|
1012
831
|
organization_id: string;
|
|
1013
832
|
pipeline_status: Json;
|
|
833
|
+
qualification_rubric_key: string | null;
|
|
834
|
+
qualification_score: number | null;
|
|
835
|
+
qualification_signals: Json | null;
|
|
1014
836
|
source: string | null;
|
|
1015
837
|
source_id: string | null;
|
|
1016
838
|
status: string;
|
|
@@ -1036,6 +858,9 @@ type Database = {
|
|
|
1036
858
|
opening_line?: string | null;
|
|
1037
859
|
organization_id: string;
|
|
1038
860
|
pipeline_status?: Json;
|
|
861
|
+
qualification_rubric_key?: string | null;
|
|
862
|
+
qualification_score?: number | null;
|
|
863
|
+
qualification_signals?: Json | null;
|
|
1039
864
|
source?: string | null;
|
|
1040
865
|
source_id?: string | null;
|
|
1041
866
|
status?: string;
|
|
@@ -1061,6 +886,9 @@ type Database = {
|
|
|
1061
886
|
opening_line?: string | null;
|
|
1062
887
|
organization_id?: string;
|
|
1063
888
|
pipeline_status?: Json;
|
|
889
|
+
qualification_rubric_key?: string | null;
|
|
890
|
+
qualification_score?: number | null;
|
|
891
|
+
qualification_signals?: Json | null;
|
|
1064
892
|
source?: string | null;
|
|
1065
893
|
source_id?: string | null;
|
|
1066
894
|
status?: string;
|
|
@@ -1069,18 +897,18 @@ type Database = {
|
|
|
1069
897
|
};
|
|
1070
898
|
Relationships: [
|
|
1071
899
|
{
|
|
1072
|
-
foreignKeyName:
|
|
1073
|
-
columns: [
|
|
900
|
+
foreignKeyName: 'acq_contacts_company_id_fkey';
|
|
901
|
+
columns: ['company_id'];
|
|
1074
902
|
isOneToOne: false;
|
|
1075
|
-
referencedRelation:
|
|
1076
|
-
referencedColumns: [
|
|
903
|
+
referencedRelation: 'acq_companies';
|
|
904
|
+
referencedColumns: ['id'];
|
|
1077
905
|
},
|
|
1078
906
|
{
|
|
1079
|
-
foreignKeyName:
|
|
1080
|
-
columns: [
|
|
907
|
+
foreignKeyName: 'acq_contacts_organization_id_fkey';
|
|
908
|
+
columns: ['organization_id'];
|
|
1081
909
|
isOneToOne: false;
|
|
1082
|
-
referencedRelation:
|
|
1083
|
-
referencedColumns: [
|
|
910
|
+
referencedRelation: 'organizations';
|
|
911
|
+
referencedColumns: ['id'];
|
|
1084
912
|
}
|
|
1085
913
|
];
|
|
1086
914
|
};
|
|
@@ -1117,11 +945,11 @@ type Database = {
|
|
|
1117
945
|
};
|
|
1118
946
|
Relationships: [
|
|
1119
947
|
{
|
|
1120
|
-
foreignKeyName:
|
|
1121
|
-
columns: [
|
|
948
|
+
foreignKeyName: 'acq_content_organization_id_fkey';
|
|
949
|
+
columns: ['organization_id'];
|
|
1122
950
|
isOneToOne: false;
|
|
1123
|
-
referencedRelation:
|
|
1124
|
-
referencedColumns: [
|
|
951
|
+
referencedRelation: 'organizations';
|
|
952
|
+
referencedColumns: ['id'];
|
|
1125
953
|
}
|
|
1126
954
|
];
|
|
1127
955
|
};
|
|
@@ -1185,18 +1013,18 @@ type Database = {
|
|
|
1185
1013
|
};
|
|
1186
1014
|
Relationships: [
|
|
1187
1015
|
{
|
|
1188
|
-
foreignKeyName:
|
|
1189
|
-
columns: [
|
|
1016
|
+
foreignKeyName: 'acq_content_distributions_content_id_fkey';
|
|
1017
|
+
columns: ['content_id'];
|
|
1190
1018
|
isOneToOne: false;
|
|
1191
|
-
referencedRelation:
|
|
1192
|
-
referencedColumns: [
|
|
1019
|
+
referencedRelation: 'acq_content';
|
|
1020
|
+
referencedColumns: ['id'];
|
|
1193
1021
|
},
|
|
1194
1022
|
{
|
|
1195
|
-
foreignKeyName:
|
|
1196
|
-
columns: [
|
|
1023
|
+
foreignKeyName: 'acq_content_distributions_organization_id_fkey';
|
|
1024
|
+
columns: ['organization_id'];
|
|
1197
1025
|
isOneToOne: false;
|
|
1198
|
-
referencedRelation:
|
|
1199
|
-
referencedColumns: [
|
|
1026
|
+
referencedRelation: 'organizations';
|
|
1027
|
+
referencedColumns: ['id'];
|
|
1200
1028
|
}
|
|
1201
1029
|
];
|
|
1202
1030
|
};
|
|
@@ -1230,18 +1058,18 @@ type Database = {
|
|
|
1230
1058
|
};
|
|
1231
1059
|
Relationships: [
|
|
1232
1060
|
{
|
|
1233
|
-
foreignKeyName:
|
|
1234
|
-
columns: [
|
|
1061
|
+
foreignKeyName: 'acq_deal_notes_deal_id_fkey';
|
|
1062
|
+
columns: ['deal_id'];
|
|
1235
1063
|
isOneToOne: false;
|
|
1236
|
-
referencedRelation:
|
|
1237
|
-
referencedColumns: [
|
|
1064
|
+
referencedRelation: 'acq_deals';
|
|
1065
|
+
referencedColumns: ['id'];
|
|
1238
1066
|
},
|
|
1239
1067
|
{
|
|
1240
|
-
foreignKeyName:
|
|
1241
|
-
columns: [
|
|
1068
|
+
foreignKeyName: 'acq_deal_notes_organization_id_fkey';
|
|
1069
|
+
columns: ['organization_id'];
|
|
1242
1070
|
isOneToOne: false;
|
|
1243
|
-
referencedRelation:
|
|
1244
|
-
referencedColumns: [
|
|
1071
|
+
referencedRelation: 'organizations';
|
|
1072
|
+
referencedColumns: ['id'];
|
|
1245
1073
|
}
|
|
1246
1074
|
];
|
|
1247
1075
|
};
|
|
@@ -1293,25 +1121,24 @@ type Database = {
|
|
|
1293
1121
|
};
|
|
1294
1122
|
Relationships: [
|
|
1295
1123
|
{
|
|
1296
|
-
foreignKeyName:
|
|
1297
|
-
columns: [
|
|
1124
|
+
foreignKeyName: 'acq_deal_tasks_deal_id_fkey';
|
|
1125
|
+
columns: ['deal_id'];
|
|
1298
1126
|
isOneToOne: false;
|
|
1299
|
-
referencedRelation:
|
|
1300
|
-
referencedColumns: [
|
|
1127
|
+
referencedRelation: 'acq_deals';
|
|
1128
|
+
referencedColumns: ['id'];
|
|
1301
1129
|
},
|
|
1302
1130
|
{
|
|
1303
|
-
foreignKeyName:
|
|
1304
|
-
columns: [
|
|
1131
|
+
foreignKeyName: 'acq_deal_tasks_organization_id_fkey';
|
|
1132
|
+
columns: ['organization_id'];
|
|
1305
1133
|
isOneToOne: false;
|
|
1306
|
-
referencedRelation:
|
|
1307
|
-
referencedColumns: [
|
|
1134
|
+
referencedRelation: 'organizations';
|
|
1135
|
+
referencedColumns: ['id'];
|
|
1308
1136
|
}
|
|
1309
1137
|
];
|
|
1310
1138
|
};
|
|
1311
1139
|
acq_deals: {
|
|
1312
1140
|
Row: {
|
|
1313
1141
|
activity_log: Json;
|
|
1314
|
-
cached_stage: string | null;
|
|
1315
1142
|
closed_lost_at: string | null;
|
|
1316
1143
|
closed_lost_reason: string | null;
|
|
1317
1144
|
contact_email: string;
|
|
@@ -1326,6 +1153,7 @@ type Database = {
|
|
|
1326
1153
|
organization_id: string;
|
|
1327
1154
|
payment_link_sent_at: string | null;
|
|
1328
1155
|
payment_received_at: string | null;
|
|
1156
|
+
pipeline_key: string;
|
|
1329
1157
|
proposal_data: Json | null;
|
|
1330
1158
|
proposal_generated_at: string | null;
|
|
1331
1159
|
proposal_pdf_url: string | null;
|
|
@@ -1333,10 +1161,11 @@ type Database = {
|
|
|
1333
1161
|
proposal_reviewed_by: string | null;
|
|
1334
1162
|
proposal_sent_at: string | null;
|
|
1335
1163
|
proposal_signed_at: string | null;
|
|
1336
|
-
proposal_status: string | null;
|
|
1337
1164
|
signature_envelope_id: string | null;
|
|
1338
1165
|
source_list_id: string | null;
|
|
1339
1166
|
source_type: string | null;
|
|
1167
|
+
stage_key: string | null;
|
|
1168
|
+
state_key: string | null;
|
|
1340
1169
|
stripe_payment_id: string | null;
|
|
1341
1170
|
stripe_payment_link: string | null;
|
|
1342
1171
|
stripe_payment_link_id: string | null;
|
|
@@ -1345,7 +1174,6 @@ type Database = {
|
|
|
1345
1174
|
};
|
|
1346
1175
|
Insert: {
|
|
1347
1176
|
activity_log?: Json;
|
|
1348
|
-
cached_stage?: string | null;
|
|
1349
1177
|
closed_lost_at?: string | null;
|
|
1350
1178
|
closed_lost_reason?: string | null;
|
|
1351
1179
|
contact_email: string;
|
|
@@ -1360,6 +1188,7 @@ type Database = {
|
|
|
1360
1188
|
organization_id: string;
|
|
1361
1189
|
payment_link_sent_at?: string | null;
|
|
1362
1190
|
payment_received_at?: string | null;
|
|
1191
|
+
pipeline_key?: string;
|
|
1363
1192
|
proposal_data?: Json | null;
|
|
1364
1193
|
proposal_generated_at?: string | null;
|
|
1365
1194
|
proposal_pdf_url?: string | null;
|
|
@@ -1367,10 +1196,11 @@ type Database = {
|
|
|
1367
1196
|
proposal_reviewed_by?: string | null;
|
|
1368
1197
|
proposal_sent_at?: string | null;
|
|
1369
1198
|
proposal_signed_at?: string | null;
|
|
1370
|
-
proposal_status?: string | null;
|
|
1371
1199
|
signature_envelope_id?: string | null;
|
|
1372
1200
|
source_list_id?: string | null;
|
|
1373
1201
|
source_type?: string | null;
|
|
1202
|
+
stage_key?: string | null;
|
|
1203
|
+
state_key?: string | null;
|
|
1374
1204
|
stripe_payment_id?: string | null;
|
|
1375
1205
|
stripe_payment_link?: string | null;
|
|
1376
1206
|
stripe_payment_link_id?: string | null;
|
|
@@ -1379,7 +1209,6 @@ type Database = {
|
|
|
1379
1209
|
};
|
|
1380
1210
|
Update: {
|
|
1381
1211
|
activity_log?: Json;
|
|
1382
|
-
cached_stage?: string | null;
|
|
1383
1212
|
closed_lost_at?: string | null;
|
|
1384
1213
|
closed_lost_reason?: string | null;
|
|
1385
1214
|
contact_email?: string;
|
|
@@ -1394,6 +1223,7 @@ type Database = {
|
|
|
1394
1223
|
organization_id?: string;
|
|
1395
1224
|
payment_link_sent_at?: string | null;
|
|
1396
1225
|
payment_received_at?: string | null;
|
|
1226
|
+
pipeline_key?: string;
|
|
1397
1227
|
proposal_data?: Json | null;
|
|
1398
1228
|
proposal_generated_at?: string | null;
|
|
1399
1229
|
proposal_pdf_url?: string | null;
|
|
@@ -1401,10 +1231,11 @@ type Database = {
|
|
|
1401
1231
|
proposal_reviewed_by?: string | null;
|
|
1402
1232
|
proposal_sent_at?: string | null;
|
|
1403
1233
|
proposal_signed_at?: string | null;
|
|
1404
|
-
proposal_status?: string | null;
|
|
1405
1234
|
signature_envelope_id?: string | null;
|
|
1406
1235
|
source_list_id?: string | null;
|
|
1407
1236
|
source_type?: string | null;
|
|
1237
|
+
stage_key?: string | null;
|
|
1238
|
+
state_key?: string | null;
|
|
1408
1239
|
stripe_payment_id?: string | null;
|
|
1409
1240
|
stripe_payment_link?: string | null;
|
|
1410
1241
|
stripe_payment_link_id?: string | null;
|
|
@@ -1413,86 +1244,95 @@ type Database = {
|
|
|
1413
1244
|
};
|
|
1414
1245
|
Relationships: [
|
|
1415
1246
|
{
|
|
1416
|
-
foreignKeyName:
|
|
1417
|
-
columns: [
|
|
1247
|
+
foreignKeyName: 'acq_deals_contact_id_fkey';
|
|
1248
|
+
columns: ['contact_id'];
|
|
1418
1249
|
isOneToOne: false;
|
|
1419
|
-
referencedRelation:
|
|
1420
|
-
referencedColumns: [
|
|
1250
|
+
referencedRelation: 'acq_contacts';
|
|
1251
|
+
referencedColumns: ['id'];
|
|
1421
1252
|
},
|
|
1422
1253
|
{
|
|
1423
|
-
foreignKeyName:
|
|
1424
|
-
columns: [
|
|
1254
|
+
foreignKeyName: 'acq_deals_organization_id_fkey';
|
|
1255
|
+
columns: ['organization_id'];
|
|
1425
1256
|
isOneToOne: false;
|
|
1426
|
-
referencedRelation:
|
|
1427
|
-
referencedColumns: [
|
|
1257
|
+
referencedRelation: 'organizations';
|
|
1258
|
+
referencedColumns: ['id'];
|
|
1428
1259
|
},
|
|
1429
1260
|
{
|
|
1430
|
-
foreignKeyName:
|
|
1431
|
-
columns: [
|
|
1261
|
+
foreignKeyName: 'acq_deals_source_list_id_fkey';
|
|
1262
|
+
columns: ['source_list_id'];
|
|
1432
1263
|
isOneToOne: false;
|
|
1433
|
-
referencedRelation:
|
|
1434
|
-
referencedColumns: [
|
|
1264
|
+
referencedRelation: 'acq_lists';
|
|
1265
|
+
referencedColumns: ['id'];
|
|
1435
1266
|
}
|
|
1436
1267
|
];
|
|
1437
1268
|
};
|
|
1438
1269
|
acq_list_companies: {
|
|
1439
1270
|
Row: {
|
|
1271
|
+
activity_log: Json;
|
|
1440
1272
|
added_at: string;
|
|
1441
1273
|
added_by: string | null;
|
|
1442
1274
|
company_id: string;
|
|
1443
1275
|
id: string;
|
|
1444
1276
|
list_id: string;
|
|
1277
|
+
pipeline_key: string;
|
|
1278
|
+
processing_state: Json;
|
|
1445
1279
|
source_execution_id: string | null;
|
|
1446
1280
|
source_input_hash: string | null;
|
|
1447
1281
|
source_resource_id: string | null;
|
|
1448
|
-
|
|
1449
|
-
|
|
1282
|
+
stage_key: string;
|
|
1283
|
+
state_key: string;
|
|
1450
1284
|
};
|
|
1451
1285
|
Insert: {
|
|
1286
|
+
activity_log?: Json;
|
|
1452
1287
|
added_at?: string;
|
|
1453
1288
|
added_by?: string | null;
|
|
1454
1289
|
company_id: string;
|
|
1455
1290
|
id?: string;
|
|
1456
1291
|
list_id: string;
|
|
1292
|
+
pipeline_key?: string;
|
|
1293
|
+
processing_state?: Json;
|
|
1457
1294
|
source_execution_id?: string | null;
|
|
1458
1295
|
source_input_hash?: string | null;
|
|
1459
1296
|
source_resource_id?: string | null;
|
|
1460
|
-
|
|
1461
|
-
|
|
1297
|
+
stage_key: string;
|
|
1298
|
+
state_key: string;
|
|
1462
1299
|
};
|
|
1463
1300
|
Update: {
|
|
1301
|
+
activity_log?: Json;
|
|
1464
1302
|
added_at?: string;
|
|
1465
1303
|
added_by?: string | null;
|
|
1466
1304
|
company_id?: string;
|
|
1467
1305
|
id?: string;
|
|
1468
1306
|
list_id?: string;
|
|
1307
|
+
pipeline_key?: string;
|
|
1308
|
+
processing_state?: Json;
|
|
1469
1309
|
source_execution_id?: string | null;
|
|
1470
1310
|
source_input_hash?: string | null;
|
|
1471
1311
|
source_resource_id?: string | null;
|
|
1472
|
-
|
|
1473
|
-
|
|
1312
|
+
stage_key?: string;
|
|
1313
|
+
state_key?: string;
|
|
1474
1314
|
};
|
|
1475
1315
|
Relationships: [
|
|
1476
1316
|
{
|
|
1477
|
-
foreignKeyName:
|
|
1478
|
-
columns: [
|
|
1317
|
+
foreignKeyName: 'acq_list_companies_company_id_fkey';
|
|
1318
|
+
columns: ['company_id'];
|
|
1479
1319
|
isOneToOne: false;
|
|
1480
|
-
referencedRelation:
|
|
1481
|
-
referencedColumns: [
|
|
1320
|
+
referencedRelation: 'acq_companies';
|
|
1321
|
+
referencedColumns: ['id'];
|
|
1482
1322
|
},
|
|
1483
1323
|
{
|
|
1484
|
-
foreignKeyName:
|
|
1485
|
-
columns: [
|
|
1324
|
+
foreignKeyName: 'acq_list_companies_list_id_fkey';
|
|
1325
|
+
columns: ['list_id'];
|
|
1486
1326
|
isOneToOne: false;
|
|
1487
|
-
referencedRelation:
|
|
1488
|
-
referencedColumns: [
|
|
1327
|
+
referencedRelation: 'acq_lists';
|
|
1328
|
+
referencedColumns: ['id'];
|
|
1489
1329
|
},
|
|
1490
1330
|
{
|
|
1491
|
-
foreignKeyName:
|
|
1492
|
-
columns: [
|
|
1331
|
+
foreignKeyName: 'acq_list_companies_source_execution_id_fkey';
|
|
1332
|
+
columns: ['source_execution_id'];
|
|
1493
1333
|
isOneToOne: false;
|
|
1494
|
-
referencedRelation:
|
|
1495
|
-
referencedColumns: [
|
|
1334
|
+
referencedRelation: 'execution_logs';
|
|
1335
|
+
referencedColumns: ['execution_id'];
|
|
1496
1336
|
}
|
|
1497
1337
|
];
|
|
1498
1338
|
};
|
|
@@ -1520,79 +1360,88 @@ type Database = {
|
|
|
1520
1360
|
};
|
|
1521
1361
|
Relationships: [
|
|
1522
1362
|
{
|
|
1523
|
-
foreignKeyName:
|
|
1524
|
-
columns: [
|
|
1363
|
+
foreignKeyName: 'acq_list_executions_execution_id_fkey';
|
|
1364
|
+
columns: ['execution_id'];
|
|
1525
1365
|
isOneToOne: false;
|
|
1526
|
-
referencedRelation:
|
|
1527
|
-
referencedColumns: [
|
|
1366
|
+
referencedRelation: 'execution_logs';
|
|
1367
|
+
referencedColumns: ['execution_id'];
|
|
1528
1368
|
},
|
|
1529
1369
|
{
|
|
1530
|
-
foreignKeyName:
|
|
1531
|
-
columns: [
|
|
1370
|
+
foreignKeyName: 'acq_list_executions_list_id_fkey';
|
|
1371
|
+
columns: ['list_id'];
|
|
1532
1372
|
isOneToOne: false;
|
|
1533
|
-
referencedRelation:
|
|
1534
|
-
referencedColumns: [
|
|
1373
|
+
referencedRelation: 'acq_lists';
|
|
1374
|
+
referencedColumns: ['id'];
|
|
1535
1375
|
}
|
|
1536
1376
|
];
|
|
1537
1377
|
};
|
|
1538
1378
|
acq_list_members: {
|
|
1539
1379
|
Row: {
|
|
1380
|
+
activity_log: Json;
|
|
1540
1381
|
added_at: string;
|
|
1541
1382
|
added_by: string | null;
|
|
1542
1383
|
contact_id: string;
|
|
1543
1384
|
id: string;
|
|
1544
1385
|
list_id: string;
|
|
1386
|
+
pipeline_key: string;
|
|
1387
|
+
processing_state: Json;
|
|
1545
1388
|
source_execution_id: string | null;
|
|
1546
1389
|
source_input_hash: string | null;
|
|
1547
1390
|
source_resource_id: string | null;
|
|
1548
|
-
|
|
1549
|
-
|
|
1391
|
+
stage_key: string;
|
|
1392
|
+
state_key: string;
|
|
1550
1393
|
};
|
|
1551
1394
|
Insert: {
|
|
1395
|
+
activity_log?: Json;
|
|
1552
1396
|
added_at?: string;
|
|
1553
1397
|
added_by?: string | null;
|
|
1554
1398
|
contact_id: string;
|
|
1555
1399
|
id?: string;
|
|
1556
1400
|
list_id: string;
|
|
1401
|
+
pipeline_key?: string;
|
|
1402
|
+
processing_state?: Json;
|
|
1557
1403
|
source_execution_id?: string | null;
|
|
1558
1404
|
source_input_hash?: string | null;
|
|
1559
1405
|
source_resource_id?: string | null;
|
|
1560
|
-
|
|
1561
|
-
|
|
1406
|
+
stage_key: string;
|
|
1407
|
+
state_key: string;
|
|
1562
1408
|
};
|
|
1563
1409
|
Update: {
|
|
1410
|
+
activity_log?: Json;
|
|
1564
1411
|
added_at?: string;
|
|
1565
1412
|
added_by?: string | null;
|
|
1566
1413
|
contact_id?: string;
|
|
1567
1414
|
id?: string;
|
|
1568
1415
|
list_id?: string;
|
|
1416
|
+
pipeline_key?: string;
|
|
1417
|
+
processing_state?: Json;
|
|
1569
1418
|
source_execution_id?: string | null;
|
|
1570
1419
|
source_input_hash?: string | null;
|
|
1571
1420
|
source_resource_id?: string | null;
|
|
1572
|
-
|
|
1573
|
-
|
|
1421
|
+
stage_key?: string;
|
|
1422
|
+
state_key?: string;
|
|
1574
1423
|
};
|
|
1575
1424
|
Relationships: [
|
|
1576
1425
|
{
|
|
1577
|
-
foreignKeyName:
|
|
1578
|
-
columns: [
|
|
1426
|
+
foreignKeyName: 'acq_list_members_contact_id_fkey';
|
|
1427
|
+
columns: ['contact_id'];
|
|
1579
1428
|
isOneToOne: false;
|
|
1580
|
-
referencedRelation:
|
|
1581
|
-
referencedColumns: [
|
|
1429
|
+
referencedRelation: 'acq_contacts';
|
|
1430
|
+
referencedColumns: ['id'];
|
|
1582
1431
|
},
|
|
1583
1432
|
{
|
|
1584
|
-
foreignKeyName:
|
|
1585
|
-
columns: [
|
|
1433
|
+
foreignKeyName: 'acq_list_members_list_id_fkey';
|
|
1434
|
+
columns: ['list_id'];
|
|
1586
1435
|
isOneToOne: false;
|
|
1587
|
-
referencedRelation:
|
|
1588
|
-
referencedColumns: [
|
|
1436
|
+
referencedRelation: 'acq_lists';
|
|
1437
|
+
referencedColumns: ['id'];
|
|
1589
1438
|
},
|
|
1590
1439
|
{
|
|
1591
|
-
foreignKeyName:
|
|
1592
|
-
columns: [
|
|
1440
|
+
foreignKeyName: 'acq_list_members_source_execution_id_fkey';
|
|
1441
|
+
columns: ['source_execution_id'];
|
|
1593
1442
|
isOneToOne: false;
|
|
1594
|
-
referencedRelation:
|
|
1595
|
-
referencedColumns: [
|
|
1443
|
+
referencedRelation: 'execution_logs';
|
|
1444
|
+
referencedColumns: ['execution_id'];
|
|
1596
1445
|
}
|
|
1597
1446
|
];
|
|
1598
1447
|
};
|
|
@@ -1600,55 +1449,58 @@ type Database = {
|
|
|
1600
1449
|
Row: {
|
|
1601
1450
|
batch_ids: string[];
|
|
1602
1451
|
completed_at: string | null;
|
|
1603
|
-
config: Json;
|
|
1604
1452
|
created_at: string;
|
|
1605
1453
|
description: string | null;
|
|
1454
|
+
icp: Json;
|
|
1606
1455
|
id: string;
|
|
1607
1456
|
instantly_campaign_id: string | null;
|
|
1608
1457
|
launched_at: string | null;
|
|
1609
1458
|
metadata: Json;
|
|
1610
1459
|
name: string;
|
|
1611
1460
|
organization_id: string;
|
|
1461
|
+
pipeline_config: Json;
|
|
1462
|
+
scraping_config: Json;
|
|
1612
1463
|
status: string;
|
|
1613
|
-
type: string;
|
|
1614
1464
|
};
|
|
1615
1465
|
Insert: {
|
|
1616
1466
|
batch_ids?: string[];
|
|
1617
1467
|
completed_at?: string | null;
|
|
1618
|
-
config?: Json;
|
|
1619
1468
|
created_at?: string;
|
|
1620
1469
|
description?: string | null;
|
|
1470
|
+
icp?: Json;
|
|
1621
1471
|
id?: string;
|
|
1622
1472
|
instantly_campaign_id?: string | null;
|
|
1623
1473
|
launched_at?: string | null;
|
|
1624
1474
|
metadata?: Json;
|
|
1625
1475
|
name: string;
|
|
1626
1476
|
organization_id: string;
|
|
1477
|
+
pipeline_config?: Json;
|
|
1478
|
+
scraping_config?: Json;
|
|
1627
1479
|
status?: string;
|
|
1628
|
-
type?: string;
|
|
1629
1480
|
};
|
|
1630
1481
|
Update: {
|
|
1631
1482
|
batch_ids?: string[];
|
|
1632
1483
|
completed_at?: string | null;
|
|
1633
|
-
config?: Json;
|
|
1634
1484
|
created_at?: string;
|
|
1635
1485
|
description?: string | null;
|
|
1486
|
+
icp?: Json;
|
|
1636
1487
|
id?: string;
|
|
1637
1488
|
instantly_campaign_id?: string | null;
|
|
1638
1489
|
launched_at?: string | null;
|
|
1639
1490
|
metadata?: Json;
|
|
1640
1491
|
name?: string;
|
|
1641
1492
|
organization_id?: string;
|
|
1493
|
+
pipeline_config?: Json;
|
|
1494
|
+
scraping_config?: Json;
|
|
1642
1495
|
status?: string;
|
|
1643
|
-
type?: string;
|
|
1644
1496
|
};
|
|
1645
1497
|
Relationships: [
|
|
1646
1498
|
{
|
|
1647
|
-
foreignKeyName:
|
|
1648
|
-
columns: [
|
|
1499
|
+
foreignKeyName: 'acq_lists_organization_id_fkey';
|
|
1500
|
+
columns: ['organization_id'];
|
|
1649
1501
|
isOneToOne: false;
|
|
1650
|
-
referencedRelation:
|
|
1651
|
-
referencedColumns: [
|
|
1502
|
+
referencedRelation: 'organizations';
|
|
1503
|
+
referencedColumns: ['id'];
|
|
1652
1504
|
}
|
|
1653
1505
|
];
|
|
1654
1506
|
};
|
|
@@ -1724,18 +1576,18 @@ type Database = {
|
|
|
1724
1576
|
};
|
|
1725
1577
|
Relationships: [
|
|
1726
1578
|
{
|
|
1727
|
-
foreignKeyName:
|
|
1728
|
-
columns: [
|
|
1579
|
+
foreignKeyName: 'acq_seo_metrics_organization_id_fkey';
|
|
1580
|
+
columns: ['organization_id'];
|
|
1729
1581
|
isOneToOne: false;
|
|
1730
|
-
referencedRelation:
|
|
1731
|
-
referencedColumns: [
|
|
1582
|
+
referencedRelation: 'organizations';
|
|
1583
|
+
referencedColumns: ['id'];
|
|
1732
1584
|
},
|
|
1733
1585
|
{
|
|
1734
|
-
foreignKeyName:
|
|
1735
|
-
columns: [
|
|
1586
|
+
foreignKeyName: 'acq_seo_metrics_seo_page_id_fkey';
|
|
1587
|
+
columns: ['seo_page_id'];
|
|
1736
1588
|
isOneToOne: false;
|
|
1737
|
-
referencedRelation:
|
|
1738
|
-
referencedColumns: [
|
|
1589
|
+
referencedRelation: 'acq_seo_pages';
|
|
1590
|
+
referencedColumns: ['id'];
|
|
1739
1591
|
}
|
|
1740
1592
|
];
|
|
1741
1593
|
};
|
|
@@ -1811,11 +1663,11 @@ type Database = {
|
|
|
1811
1663
|
};
|
|
1812
1664
|
Relationships: [
|
|
1813
1665
|
{
|
|
1814
|
-
foreignKeyName:
|
|
1815
|
-
columns: [
|
|
1666
|
+
foreignKeyName: 'acq_seo_pages_organization_id_fkey';
|
|
1667
|
+
columns: ['organization_id'];
|
|
1816
1668
|
isOneToOne: false;
|
|
1817
|
-
referencedRelation:
|
|
1818
|
-
referencedColumns: [
|
|
1669
|
+
referencedRelation: 'organizations';
|
|
1670
|
+
referencedColumns: ['id'];
|
|
1819
1671
|
}
|
|
1820
1672
|
];
|
|
1821
1673
|
};
|
|
@@ -1912,11 +1764,11 @@ type Database = {
|
|
|
1912
1764
|
};
|
|
1913
1765
|
Relationships: [
|
|
1914
1766
|
{
|
|
1915
|
-
foreignKeyName:
|
|
1916
|
-
columns: [
|
|
1767
|
+
foreignKeyName: 'acq_social_posts_organization_id_fkey';
|
|
1768
|
+
columns: ['organization_id'];
|
|
1917
1769
|
isOneToOne: false;
|
|
1918
|
-
referencedRelation:
|
|
1919
|
-
referencedColumns: [
|
|
1770
|
+
referencedRelation: 'organizations';
|
|
1771
|
+
referencedColumns: ['id'];
|
|
1920
1772
|
}
|
|
1921
1773
|
];
|
|
1922
1774
|
};
|
|
@@ -1971,11 +1823,11 @@ type Database = {
|
|
|
1971
1823
|
};
|
|
1972
1824
|
Relationships: [
|
|
1973
1825
|
{
|
|
1974
|
-
foreignKeyName:
|
|
1975
|
-
columns: [
|
|
1826
|
+
foreignKeyName: 'activities_organization_id_fkey';
|
|
1827
|
+
columns: ['organization_id'];
|
|
1976
1828
|
isOneToOne: false;
|
|
1977
|
-
referencedRelation:
|
|
1978
|
-
referencedColumns: [
|
|
1829
|
+
referencedRelation: 'organizations';
|
|
1830
|
+
referencedColumns: ['id'];
|
|
1979
1831
|
}
|
|
1980
1832
|
];
|
|
1981
1833
|
};
|
|
@@ -2006,11 +1858,11 @@ type Database = {
|
|
|
2006
1858
|
};
|
|
2007
1859
|
Relationships: [
|
|
2008
1860
|
{
|
|
2009
|
-
foreignKeyName:
|
|
2010
|
-
columns: [
|
|
1861
|
+
foreignKeyName: 'api_keys_organization_id_fkey';
|
|
1862
|
+
columns: ['organization_id'];
|
|
2011
1863
|
isOneToOne: false;
|
|
2012
|
-
referencedRelation:
|
|
2013
|
-
referencedColumns: [
|
|
1864
|
+
referencedRelation: 'organizations';
|
|
1865
|
+
referencedColumns: ['id'];
|
|
2014
1866
|
}
|
|
2015
1867
|
];
|
|
2016
1868
|
};
|
|
@@ -2089,25 +1941,25 @@ type Database = {
|
|
|
2089
1941
|
};
|
|
2090
1942
|
Relationships: [
|
|
2091
1943
|
{
|
|
2092
|
-
foreignKeyName:
|
|
2093
|
-
columns: [
|
|
1944
|
+
foreignKeyName: 'command_queue_completed_by_fkey';
|
|
1945
|
+
columns: ['completed_by'];
|
|
2094
1946
|
isOneToOne: false;
|
|
2095
|
-
referencedRelation:
|
|
2096
|
-
referencedColumns: [
|
|
1947
|
+
referencedRelation: 'users';
|
|
1948
|
+
referencedColumns: ['id'];
|
|
2097
1949
|
},
|
|
2098
1950
|
{
|
|
2099
|
-
foreignKeyName:
|
|
2100
|
-
columns: [
|
|
1951
|
+
foreignKeyName: 'command_queue_organization_id_fkey';
|
|
1952
|
+
columns: ['organization_id'];
|
|
2101
1953
|
isOneToOne: false;
|
|
2102
|
-
referencedRelation:
|
|
2103
|
-
referencedColumns: [
|
|
1954
|
+
referencedRelation: 'organizations';
|
|
1955
|
+
referencedColumns: ['id'];
|
|
2104
1956
|
},
|
|
2105
1957
|
{
|
|
2106
|
-
foreignKeyName:
|
|
2107
|
-
columns: [
|
|
1958
|
+
foreignKeyName: 'command_queue_target_execution_id_fkey';
|
|
1959
|
+
columns: ['target_execution_id'];
|
|
2108
1960
|
isOneToOne: false;
|
|
2109
|
-
referencedRelation:
|
|
2110
|
-
referencedColumns: [
|
|
1961
|
+
referencedRelation: 'execution_logs';
|
|
1962
|
+
referencedColumns: ['execution_id'];
|
|
2111
1963
|
}
|
|
2112
1964
|
];
|
|
2113
1965
|
};
|
|
@@ -2147,18 +1999,18 @@ type Database = {
|
|
|
2147
1999
|
};
|
|
2148
2000
|
Relationships: [
|
|
2149
2001
|
{
|
|
2150
|
-
foreignKeyName:
|
|
2151
|
-
columns: [
|
|
2002
|
+
foreignKeyName: 'credentials_created_by_fkey';
|
|
2003
|
+
columns: ['created_by'];
|
|
2152
2004
|
isOneToOne: false;
|
|
2153
|
-
referencedRelation:
|
|
2154
|
-
referencedColumns: [
|
|
2005
|
+
referencedRelation: 'users';
|
|
2006
|
+
referencedColumns: ['id'];
|
|
2155
2007
|
},
|
|
2156
2008
|
{
|
|
2157
|
-
foreignKeyName:
|
|
2158
|
-
columns: [
|
|
2009
|
+
foreignKeyName: 'credentials_organization_id_fkey';
|
|
2010
|
+
columns: ['organization_id'];
|
|
2159
2011
|
isOneToOne: false;
|
|
2160
|
-
referencedRelation:
|
|
2161
|
-
referencedColumns: [
|
|
2012
|
+
referencedRelation: 'organizations';
|
|
2013
|
+
referencedColumns: ['id'];
|
|
2162
2014
|
}
|
|
2163
2015
|
];
|
|
2164
2016
|
};
|
|
@@ -2204,11 +2056,11 @@ type Database = {
|
|
|
2204
2056
|
};
|
|
2205
2057
|
Relationships: [
|
|
2206
2058
|
{
|
|
2207
|
-
foreignKeyName:
|
|
2208
|
-
columns: [
|
|
2059
|
+
foreignKeyName: 'deployments_organization_id_fkey';
|
|
2060
|
+
columns: ['organization_id'];
|
|
2209
2061
|
isOneToOne: false;
|
|
2210
|
-
referencedRelation:
|
|
2211
|
-
referencedColumns: [
|
|
2062
|
+
referencedRelation: 'organizations';
|
|
2063
|
+
referencedColumns: ['id'];
|
|
2212
2064
|
}
|
|
2213
2065
|
];
|
|
2214
2066
|
};
|
|
@@ -2263,25 +2115,25 @@ type Database = {
|
|
|
2263
2115
|
};
|
|
2264
2116
|
Relationships: [
|
|
2265
2117
|
{
|
|
2266
|
-
foreignKeyName:
|
|
2267
|
-
columns: [
|
|
2118
|
+
foreignKeyName: 'execution_errors_execution_id_fkey';
|
|
2119
|
+
columns: ['execution_id'];
|
|
2268
2120
|
isOneToOne: false;
|
|
2269
|
-
referencedRelation:
|
|
2270
|
-
referencedColumns: [
|
|
2121
|
+
referencedRelation: 'execution_logs';
|
|
2122
|
+
referencedColumns: ['execution_id'];
|
|
2271
2123
|
},
|
|
2272
2124
|
{
|
|
2273
|
-
foreignKeyName:
|
|
2274
|
-
columns: [
|
|
2125
|
+
foreignKeyName: 'execution_errors_organization_id_fkey';
|
|
2126
|
+
columns: ['organization_id'];
|
|
2275
2127
|
isOneToOne: false;
|
|
2276
|
-
referencedRelation:
|
|
2277
|
-
referencedColumns: [
|
|
2128
|
+
referencedRelation: 'organizations';
|
|
2129
|
+
referencedColumns: ['id'];
|
|
2278
2130
|
},
|
|
2279
2131
|
{
|
|
2280
|
-
foreignKeyName:
|
|
2281
|
-
columns: [
|
|
2132
|
+
foreignKeyName: 'execution_errors_resolved_by_fkey';
|
|
2133
|
+
columns: ['resolved_by'];
|
|
2282
2134
|
isOneToOne: false;
|
|
2283
|
-
referencedRelation:
|
|
2284
|
-
referencedColumns: [
|
|
2135
|
+
referencedRelation: 'users';
|
|
2136
|
+
referencedColumns: ['id'];
|
|
2285
2137
|
}
|
|
2286
2138
|
];
|
|
2287
2139
|
};
|
|
@@ -2363,32 +2215,32 @@ type Database = {
|
|
|
2363
2215
|
};
|
|
2364
2216
|
Relationships: [
|
|
2365
2217
|
{
|
|
2366
|
-
foreignKeyName:
|
|
2367
|
-
columns: [
|
|
2218
|
+
foreignKeyName: 'execution_history_organization_id_fkey';
|
|
2219
|
+
columns: ['organization_id'];
|
|
2368
2220
|
isOneToOne: false;
|
|
2369
|
-
referencedRelation:
|
|
2370
|
-
referencedColumns: [
|
|
2221
|
+
referencedRelation: 'organizations';
|
|
2222
|
+
referencedColumns: ['id'];
|
|
2371
2223
|
},
|
|
2372
2224
|
{
|
|
2373
|
-
foreignKeyName:
|
|
2374
|
-
columns: [
|
|
2225
|
+
foreignKeyName: 'execution_logs_origin_execution_id_fkey';
|
|
2226
|
+
columns: ['origin_execution_id'];
|
|
2375
2227
|
isOneToOne: false;
|
|
2376
|
-
referencedRelation:
|
|
2377
|
-
referencedColumns: [
|
|
2228
|
+
referencedRelation: 'execution_logs';
|
|
2229
|
+
referencedColumns: ['execution_id'];
|
|
2378
2230
|
},
|
|
2379
2231
|
{
|
|
2380
|
-
foreignKeyName:
|
|
2381
|
-
columns: [
|
|
2232
|
+
foreignKeyName: 'execution_logs_session_id_fkey';
|
|
2233
|
+
columns: ['session_id'];
|
|
2382
2234
|
isOneToOne: false;
|
|
2383
|
-
referencedRelation:
|
|
2384
|
-
referencedColumns: [
|
|
2235
|
+
referencedRelation: 'sessions';
|
|
2236
|
+
referencedColumns: ['session_id'];
|
|
2385
2237
|
},
|
|
2386
2238
|
{
|
|
2387
|
-
foreignKeyName:
|
|
2388
|
-
columns: [
|
|
2239
|
+
foreignKeyName: 'execution_logs_user_id_fkey';
|
|
2240
|
+
columns: ['user_id'];
|
|
2389
2241
|
isOneToOne: false;
|
|
2390
|
-
referencedRelation:
|
|
2391
|
-
referencedColumns: [
|
|
2242
|
+
referencedRelation: 'users';
|
|
2243
|
+
referencedColumns: ['id'];
|
|
2392
2244
|
}
|
|
2393
2245
|
];
|
|
2394
2246
|
};
|
|
@@ -2434,18 +2286,18 @@ type Database = {
|
|
|
2434
2286
|
};
|
|
2435
2287
|
Relationships: [
|
|
2436
2288
|
{
|
|
2437
|
-
foreignKeyName:
|
|
2438
|
-
columns: [
|
|
2289
|
+
foreignKeyName: 'execution_metrics_execution_id_fkey';
|
|
2290
|
+
columns: ['execution_id'];
|
|
2439
2291
|
isOneToOne: true;
|
|
2440
|
-
referencedRelation:
|
|
2441
|
-
referencedColumns: [
|
|
2292
|
+
referencedRelation: 'execution_logs';
|
|
2293
|
+
referencedColumns: ['execution_id'];
|
|
2442
2294
|
},
|
|
2443
2295
|
{
|
|
2444
|
-
foreignKeyName:
|
|
2445
|
-
columns: [
|
|
2296
|
+
foreignKeyName: 'execution_metrics_organization_id_fkey';
|
|
2297
|
+
columns: ['organization_id'];
|
|
2446
2298
|
isOneToOne: false;
|
|
2447
|
-
referencedRelation:
|
|
2448
|
-
referencedColumns: [
|
|
2299
|
+
referencedRelation: 'organizations';
|
|
2300
|
+
referencedColumns: ['id'];
|
|
2449
2301
|
}
|
|
2450
2302
|
];
|
|
2451
2303
|
};
|
|
@@ -2488,18 +2340,18 @@ type Database = {
|
|
|
2488
2340
|
};
|
|
2489
2341
|
Relationships: [
|
|
2490
2342
|
{
|
|
2491
|
-
foreignKeyName:
|
|
2492
|
-
columns: [
|
|
2343
|
+
foreignKeyName: 'notifications_organization_id_fkey';
|
|
2344
|
+
columns: ['organization_id'];
|
|
2493
2345
|
isOneToOne: false;
|
|
2494
|
-
referencedRelation:
|
|
2495
|
-
referencedColumns: [
|
|
2346
|
+
referencedRelation: 'organizations';
|
|
2347
|
+
referencedColumns: ['id'];
|
|
2496
2348
|
},
|
|
2497
2349
|
{
|
|
2498
|
-
foreignKeyName:
|
|
2499
|
-
columns: [
|
|
2350
|
+
foreignKeyName: 'notifications_user_id_fkey';
|
|
2351
|
+
columns: ['user_id'];
|
|
2500
2352
|
isOneToOne: false;
|
|
2501
|
-
referencedRelation:
|
|
2502
|
-
referencedColumns: [
|
|
2353
|
+
referencedRelation: 'users';
|
|
2354
|
+
referencedColumns: ['id'];
|
|
2503
2355
|
}
|
|
2504
2356
|
];
|
|
2505
2357
|
};
|
|
@@ -2554,18 +2406,18 @@ type Database = {
|
|
|
2554
2406
|
};
|
|
2555
2407
|
Relationships: [
|
|
2556
2408
|
{
|
|
2557
|
-
foreignKeyName:
|
|
2558
|
-
columns: [
|
|
2409
|
+
foreignKeyName: 'org_invitations_inviter_user_id_fkey';
|
|
2410
|
+
columns: ['inviter_user_id'];
|
|
2559
2411
|
isOneToOne: false;
|
|
2560
|
-
referencedRelation:
|
|
2561
|
-
referencedColumns: [
|
|
2412
|
+
referencedRelation: 'users';
|
|
2413
|
+
referencedColumns: ['id'];
|
|
2562
2414
|
},
|
|
2563
2415
|
{
|
|
2564
|
-
foreignKeyName:
|
|
2565
|
-
columns: [
|
|
2416
|
+
foreignKeyName: 'org_invitations_organization_id_fkey';
|
|
2417
|
+
columns: ['organization_id'];
|
|
2566
2418
|
isOneToOne: false;
|
|
2567
|
-
referencedRelation:
|
|
2568
|
-
referencedColumns: [
|
|
2419
|
+
referencedRelation: 'organizations';
|
|
2420
|
+
referencedColumns: ['id'];
|
|
2569
2421
|
}
|
|
2570
2422
|
];
|
|
2571
2423
|
};
|
|
@@ -2608,18 +2460,18 @@ type Database = {
|
|
|
2608
2460
|
};
|
|
2609
2461
|
Relationships: [
|
|
2610
2462
|
{
|
|
2611
|
-
foreignKeyName:
|
|
2612
|
-
columns: [
|
|
2463
|
+
foreignKeyName: 'org_memberships_organization_id_fkey';
|
|
2464
|
+
columns: ['organization_id'];
|
|
2613
2465
|
isOneToOne: false;
|
|
2614
|
-
referencedRelation:
|
|
2615
|
-
referencedColumns: [
|
|
2466
|
+
referencedRelation: 'organizations';
|
|
2467
|
+
referencedColumns: ['id'];
|
|
2616
2468
|
},
|
|
2617
2469
|
{
|
|
2618
|
-
foreignKeyName:
|
|
2619
|
-
columns: [
|
|
2470
|
+
foreignKeyName: 'org_memberships_user_id_fkey';
|
|
2471
|
+
columns: ['user_id'];
|
|
2620
2472
|
isOneToOne: false;
|
|
2621
|
-
referencedRelation:
|
|
2622
|
-
referencedColumns: [
|
|
2473
|
+
referencedRelation: 'users';
|
|
2474
|
+
referencedColumns: ['id'];
|
|
2623
2475
|
}
|
|
2624
2476
|
];
|
|
2625
2477
|
};
|
|
@@ -2644,25 +2496,25 @@ type Database = {
|
|
|
2644
2496
|
};
|
|
2645
2497
|
Relationships: [
|
|
2646
2498
|
{
|
|
2647
|
-
foreignKeyName:
|
|
2648
|
-
columns: [
|
|
2499
|
+
foreignKeyName: 'org_rol_assignments_granted_by_fkey';
|
|
2500
|
+
columns: ['granted_by'];
|
|
2649
2501
|
isOneToOne: false;
|
|
2650
|
-
referencedRelation:
|
|
2651
|
-
referencedColumns: [
|
|
2502
|
+
referencedRelation: 'users';
|
|
2503
|
+
referencedColumns: ['id'];
|
|
2652
2504
|
},
|
|
2653
2505
|
{
|
|
2654
|
-
foreignKeyName:
|
|
2655
|
-
columns: [
|
|
2506
|
+
foreignKeyName: 'org_rol_assignments_membership_id_fkey';
|
|
2507
|
+
columns: ['membership_id'];
|
|
2656
2508
|
isOneToOne: false;
|
|
2657
|
-
referencedRelation:
|
|
2658
|
-
referencedColumns: [
|
|
2509
|
+
referencedRelation: 'org_memberships';
|
|
2510
|
+
referencedColumns: ['id'];
|
|
2659
2511
|
},
|
|
2660
2512
|
{
|
|
2661
|
-
foreignKeyName:
|
|
2662
|
-
columns: [
|
|
2513
|
+
foreignKeyName: 'org_rol_assignments_role_id_fkey';
|
|
2514
|
+
columns: ['role_id'];
|
|
2663
2515
|
isOneToOne: false;
|
|
2664
|
-
referencedRelation:
|
|
2665
|
-
referencedColumns: [
|
|
2516
|
+
referencedRelation: 'org_rol_definitions';
|
|
2517
|
+
referencedColumns: ['id'];
|
|
2666
2518
|
}
|
|
2667
2519
|
];
|
|
2668
2520
|
};
|
|
@@ -2699,11 +2551,11 @@ type Database = {
|
|
|
2699
2551
|
};
|
|
2700
2552
|
Relationships: [
|
|
2701
2553
|
{
|
|
2702
|
-
foreignKeyName:
|
|
2703
|
-
columns: [
|
|
2554
|
+
foreignKeyName: 'org_rol_definitions_organization_id_fkey';
|
|
2555
|
+
columns: ['organization_id'];
|
|
2704
2556
|
isOneToOne: false;
|
|
2705
|
-
referencedRelation:
|
|
2706
|
-
referencedColumns: [
|
|
2557
|
+
referencedRelation: 'organizations';
|
|
2558
|
+
referencedColumns: ['id'];
|
|
2707
2559
|
}
|
|
2708
2560
|
];
|
|
2709
2561
|
};
|
|
@@ -2725,18 +2577,18 @@ type Database = {
|
|
|
2725
2577
|
};
|
|
2726
2578
|
Relationships: [
|
|
2727
2579
|
{
|
|
2728
|
-
foreignKeyName:
|
|
2729
|
-
columns: [
|
|
2580
|
+
foreignKeyName: 'org_rol_grants_permission_key_fkey';
|
|
2581
|
+
columns: ['permission_key'];
|
|
2730
2582
|
isOneToOne: false;
|
|
2731
|
-
referencedRelation:
|
|
2732
|
-
referencedColumns: [
|
|
2583
|
+
referencedRelation: 'org_rol_permissions';
|
|
2584
|
+
referencedColumns: ['key'];
|
|
2733
2585
|
},
|
|
2734
2586
|
{
|
|
2735
|
-
foreignKeyName:
|
|
2736
|
-
columns: [
|
|
2587
|
+
foreignKeyName: 'org_rol_grants_role_id_fkey';
|
|
2588
|
+
columns: ['role_id'];
|
|
2737
2589
|
isOneToOne: false;
|
|
2738
|
-
referencedRelation:
|
|
2739
|
-
referencedColumns: [
|
|
2590
|
+
referencedRelation: 'org_rol_definitions';
|
|
2591
|
+
referencedColumns: ['id'];
|
|
2740
2592
|
}
|
|
2741
2593
|
];
|
|
2742
2594
|
};
|
|
@@ -2848,25 +2700,25 @@ type Database = {
|
|
|
2848
2700
|
};
|
|
2849
2701
|
Relationships: [
|
|
2850
2702
|
{
|
|
2851
|
-
foreignKeyName:
|
|
2852
|
-
columns: [
|
|
2703
|
+
foreignKeyName: 'fk_milestones_project';
|
|
2704
|
+
columns: ['project_id'];
|
|
2853
2705
|
isOneToOne: false;
|
|
2854
|
-
referencedRelation:
|
|
2855
|
-
referencedColumns: [
|
|
2706
|
+
referencedRelation: 'prj_projects';
|
|
2707
|
+
referencedColumns: ['id'];
|
|
2856
2708
|
},
|
|
2857
2709
|
{
|
|
2858
|
-
foreignKeyName:
|
|
2859
|
-
columns: [
|
|
2710
|
+
foreignKeyName: 'prj_milestones_organization_id_fkey';
|
|
2711
|
+
columns: ['organization_id'];
|
|
2860
2712
|
isOneToOne: false;
|
|
2861
|
-
referencedRelation:
|
|
2862
|
-
referencedColumns: [
|
|
2713
|
+
referencedRelation: 'organizations';
|
|
2714
|
+
referencedColumns: ['id'];
|
|
2863
2715
|
},
|
|
2864
2716
|
{
|
|
2865
|
-
foreignKeyName:
|
|
2866
|
-
columns: [
|
|
2717
|
+
foreignKeyName: 'prj_milestones_project_id_fkey';
|
|
2718
|
+
columns: ['project_id'];
|
|
2867
2719
|
isOneToOne: false;
|
|
2868
|
-
referencedRelation:
|
|
2869
|
-
referencedColumns: [
|
|
2720
|
+
referencedRelation: 'prj_projects';
|
|
2721
|
+
referencedColumns: ['id'];
|
|
2870
2722
|
}
|
|
2871
2723
|
];
|
|
2872
2724
|
};
|
|
@@ -2915,67 +2767,67 @@ type Database = {
|
|
|
2915
2767
|
};
|
|
2916
2768
|
Relationships: [
|
|
2917
2769
|
{
|
|
2918
|
-
foreignKeyName:
|
|
2919
|
-
columns: [
|
|
2770
|
+
foreignKeyName: 'fk_notes_created_by';
|
|
2771
|
+
columns: ['created_by'];
|
|
2920
2772
|
isOneToOne: false;
|
|
2921
|
-
referencedRelation:
|
|
2922
|
-
referencedColumns: [
|
|
2773
|
+
referencedRelation: 'users';
|
|
2774
|
+
referencedColumns: ['id'];
|
|
2923
2775
|
},
|
|
2924
2776
|
{
|
|
2925
|
-
foreignKeyName:
|
|
2926
|
-
columns: [
|
|
2777
|
+
foreignKeyName: 'fk_notes_milestone';
|
|
2778
|
+
columns: ['milestone_id'];
|
|
2927
2779
|
isOneToOne: false;
|
|
2928
|
-
referencedRelation:
|
|
2929
|
-
referencedColumns: [
|
|
2780
|
+
referencedRelation: 'prj_milestones';
|
|
2781
|
+
referencedColumns: ['id'];
|
|
2930
2782
|
},
|
|
2931
2783
|
{
|
|
2932
|
-
foreignKeyName:
|
|
2933
|
-
columns: [
|
|
2784
|
+
foreignKeyName: 'fk_notes_project';
|
|
2785
|
+
columns: ['project_id'];
|
|
2934
2786
|
isOneToOne: false;
|
|
2935
|
-
referencedRelation:
|
|
2936
|
-
referencedColumns: [
|
|
2787
|
+
referencedRelation: 'prj_projects';
|
|
2788
|
+
referencedColumns: ['id'];
|
|
2937
2789
|
},
|
|
2938
2790
|
{
|
|
2939
|
-
foreignKeyName:
|
|
2940
|
-
columns: [
|
|
2791
|
+
foreignKeyName: 'fk_notes_task';
|
|
2792
|
+
columns: ['task_id'];
|
|
2941
2793
|
isOneToOne: false;
|
|
2942
|
-
referencedRelation:
|
|
2943
|
-
referencedColumns: [
|
|
2794
|
+
referencedRelation: 'prj_tasks';
|
|
2795
|
+
referencedColumns: ['id'];
|
|
2944
2796
|
},
|
|
2945
2797
|
{
|
|
2946
|
-
foreignKeyName:
|
|
2947
|
-
columns: [
|
|
2798
|
+
foreignKeyName: 'prj_notes_created_by_fkey';
|
|
2799
|
+
columns: ['created_by'];
|
|
2948
2800
|
isOneToOne: false;
|
|
2949
|
-
referencedRelation:
|
|
2950
|
-
referencedColumns: [
|
|
2801
|
+
referencedRelation: 'users';
|
|
2802
|
+
referencedColumns: ['id'];
|
|
2951
2803
|
},
|
|
2952
2804
|
{
|
|
2953
|
-
foreignKeyName:
|
|
2954
|
-
columns: [
|
|
2805
|
+
foreignKeyName: 'prj_notes_milestone_id_fkey';
|
|
2806
|
+
columns: ['milestone_id'];
|
|
2955
2807
|
isOneToOne: false;
|
|
2956
|
-
referencedRelation:
|
|
2957
|
-
referencedColumns: [
|
|
2808
|
+
referencedRelation: 'prj_milestones';
|
|
2809
|
+
referencedColumns: ['id'];
|
|
2958
2810
|
},
|
|
2959
2811
|
{
|
|
2960
|
-
foreignKeyName:
|
|
2961
|
-
columns: [
|
|
2812
|
+
foreignKeyName: 'prj_notes_organization_id_fkey';
|
|
2813
|
+
columns: ['organization_id'];
|
|
2962
2814
|
isOneToOne: false;
|
|
2963
|
-
referencedRelation:
|
|
2964
|
-
referencedColumns: [
|
|
2815
|
+
referencedRelation: 'organizations';
|
|
2816
|
+
referencedColumns: ['id'];
|
|
2965
2817
|
},
|
|
2966
2818
|
{
|
|
2967
|
-
foreignKeyName:
|
|
2968
|
-
columns: [
|
|
2819
|
+
foreignKeyName: 'prj_notes_project_id_fkey';
|
|
2820
|
+
columns: ['project_id'];
|
|
2969
2821
|
isOneToOne: false;
|
|
2970
|
-
referencedRelation:
|
|
2971
|
-
referencedColumns: [
|
|
2822
|
+
referencedRelation: 'prj_projects';
|
|
2823
|
+
referencedColumns: ['id'];
|
|
2972
2824
|
},
|
|
2973
2825
|
{
|
|
2974
|
-
foreignKeyName:
|
|
2975
|
-
columns: [
|
|
2826
|
+
foreignKeyName: 'prj_notes_task_id_fkey';
|
|
2827
|
+
columns: ['task_id'];
|
|
2976
2828
|
isOneToOne: false;
|
|
2977
|
-
referencedRelation:
|
|
2978
|
-
referencedColumns: [
|
|
2829
|
+
referencedRelation: 'prj_tasks';
|
|
2830
|
+
referencedColumns: ['id'];
|
|
2979
2831
|
}
|
|
2980
2832
|
];
|
|
2981
2833
|
};
|
|
@@ -3033,39 +2885,39 @@ type Database = {
|
|
|
3033
2885
|
};
|
|
3034
2886
|
Relationships: [
|
|
3035
2887
|
{
|
|
3036
|
-
foreignKeyName:
|
|
3037
|
-
columns: [
|
|
2888
|
+
foreignKeyName: 'fk_projects_company';
|
|
2889
|
+
columns: ['client_company_id'];
|
|
3038
2890
|
isOneToOne: false;
|
|
3039
|
-
referencedRelation:
|
|
3040
|
-
referencedColumns: [
|
|
2891
|
+
referencedRelation: 'acq_companies';
|
|
2892
|
+
referencedColumns: ['id'];
|
|
3041
2893
|
},
|
|
3042
2894
|
{
|
|
3043
|
-
foreignKeyName:
|
|
3044
|
-
columns: [
|
|
2895
|
+
foreignKeyName: 'fk_projects_deal';
|
|
2896
|
+
columns: ['deal_id'];
|
|
3045
2897
|
isOneToOne: false;
|
|
3046
|
-
referencedRelation:
|
|
3047
|
-
referencedColumns: [
|
|
2898
|
+
referencedRelation: 'acq_deals';
|
|
2899
|
+
referencedColumns: ['id'];
|
|
3048
2900
|
},
|
|
3049
2901
|
{
|
|
3050
|
-
foreignKeyName:
|
|
3051
|
-
columns: [
|
|
2902
|
+
foreignKeyName: 'prj_projects_client_company_id_fkey';
|
|
2903
|
+
columns: ['client_company_id'];
|
|
3052
2904
|
isOneToOne: false;
|
|
3053
|
-
referencedRelation:
|
|
3054
|
-
referencedColumns: [
|
|
2905
|
+
referencedRelation: 'acq_companies';
|
|
2906
|
+
referencedColumns: ['id'];
|
|
3055
2907
|
},
|
|
3056
2908
|
{
|
|
3057
|
-
foreignKeyName:
|
|
3058
|
-
columns: [
|
|
2909
|
+
foreignKeyName: 'prj_projects_deal_id_fkey';
|
|
2910
|
+
columns: ['deal_id'];
|
|
3059
2911
|
isOneToOne: false;
|
|
3060
|
-
referencedRelation:
|
|
3061
|
-
referencedColumns: [
|
|
2912
|
+
referencedRelation: 'acq_deals';
|
|
2913
|
+
referencedColumns: ['id'];
|
|
3062
2914
|
},
|
|
3063
2915
|
{
|
|
3064
|
-
foreignKeyName:
|
|
3065
|
-
columns: [
|
|
2916
|
+
foreignKeyName: 'prj_projects_organization_id_fkey';
|
|
2917
|
+
columns: ['organization_id'];
|
|
3066
2918
|
isOneToOne: false;
|
|
3067
|
-
referencedRelation:
|
|
3068
|
-
referencedColumns: [
|
|
2919
|
+
referencedRelation: 'organizations';
|
|
2920
|
+
referencedColumns: ['id'];
|
|
3069
2921
|
}
|
|
3070
2922
|
];
|
|
3071
2923
|
};
|
|
@@ -3129,53 +2981,53 @@ type Database = {
|
|
|
3129
2981
|
};
|
|
3130
2982
|
Relationships: [
|
|
3131
2983
|
{
|
|
3132
|
-
foreignKeyName:
|
|
3133
|
-
columns: [
|
|
2984
|
+
foreignKeyName: 'fk_tasks_milestone';
|
|
2985
|
+
columns: ['milestone_id'];
|
|
3134
2986
|
isOneToOne: false;
|
|
3135
|
-
referencedRelation:
|
|
3136
|
-
referencedColumns: [
|
|
2987
|
+
referencedRelation: 'prj_milestones';
|
|
2988
|
+
referencedColumns: ['id'];
|
|
3137
2989
|
},
|
|
3138
2990
|
{
|
|
3139
|
-
foreignKeyName:
|
|
3140
|
-
columns: [
|
|
2991
|
+
foreignKeyName: 'fk_tasks_parent';
|
|
2992
|
+
columns: ['parent_task_id'];
|
|
3141
2993
|
isOneToOne: false;
|
|
3142
|
-
referencedRelation:
|
|
3143
|
-
referencedColumns: [
|
|
2994
|
+
referencedRelation: 'prj_tasks';
|
|
2995
|
+
referencedColumns: ['id'];
|
|
3144
2996
|
},
|
|
3145
2997
|
{
|
|
3146
|
-
foreignKeyName:
|
|
3147
|
-
columns: [
|
|
2998
|
+
foreignKeyName: 'fk_tasks_project';
|
|
2999
|
+
columns: ['project_id'];
|
|
3148
3000
|
isOneToOne: false;
|
|
3149
|
-
referencedRelation:
|
|
3150
|
-
referencedColumns: [
|
|
3001
|
+
referencedRelation: 'prj_projects';
|
|
3002
|
+
referencedColumns: ['id'];
|
|
3151
3003
|
},
|
|
3152
3004
|
{
|
|
3153
|
-
foreignKeyName:
|
|
3154
|
-
columns: [
|
|
3005
|
+
foreignKeyName: 'prj_tasks_milestone_id_fkey';
|
|
3006
|
+
columns: ['milestone_id'];
|
|
3155
3007
|
isOneToOne: false;
|
|
3156
|
-
referencedRelation:
|
|
3157
|
-
referencedColumns: [
|
|
3008
|
+
referencedRelation: 'prj_milestones';
|
|
3009
|
+
referencedColumns: ['id'];
|
|
3158
3010
|
},
|
|
3159
3011
|
{
|
|
3160
|
-
foreignKeyName:
|
|
3161
|
-
columns: [
|
|
3012
|
+
foreignKeyName: 'prj_tasks_organization_id_fkey';
|
|
3013
|
+
columns: ['organization_id'];
|
|
3162
3014
|
isOneToOne: false;
|
|
3163
|
-
referencedRelation:
|
|
3164
|
-
referencedColumns: [
|
|
3015
|
+
referencedRelation: 'organizations';
|
|
3016
|
+
referencedColumns: ['id'];
|
|
3165
3017
|
},
|
|
3166
3018
|
{
|
|
3167
|
-
foreignKeyName:
|
|
3168
|
-
columns: [
|
|
3019
|
+
foreignKeyName: 'prj_tasks_parent_task_id_fkey';
|
|
3020
|
+
columns: ['parent_task_id'];
|
|
3169
3021
|
isOneToOne: false;
|
|
3170
|
-
referencedRelation:
|
|
3171
|
-
referencedColumns: [
|
|
3022
|
+
referencedRelation: 'prj_tasks';
|
|
3023
|
+
referencedColumns: ['id'];
|
|
3172
3024
|
},
|
|
3173
3025
|
{
|
|
3174
|
-
foreignKeyName:
|
|
3175
|
-
columns: [
|
|
3026
|
+
foreignKeyName: 'prj_tasks_project_id_fkey';
|
|
3027
|
+
columns: ['project_id'];
|
|
3176
3028
|
isOneToOne: false;
|
|
3177
|
-
referencedRelation:
|
|
3178
|
-
referencedColumns: [
|
|
3029
|
+
referencedRelation: 'prj_projects';
|
|
3030
|
+
referencedColumns: ['id'];
|
|
3179
3031
|
}
|
|
3180
3032
|
];
|
|
3181
3033
|
};
|
|
@@ -3245,25 +3097,25 @@ type Database = {
|
|
|
3245
3097
|
};
|
|
3246
3098
|
Relationships: [
|
|
3247
3099
|
{
|
|
3248
|
-
foreignKeyName:
|
|
3249
|
-
columns: [
|
|
3100
|
+
foreignKeyName: 'reported_requests_organization_id_fkey';
|
|
3101
|
+
columns: ['organization_id'];
|
|
3250
3102
|
isOneToOne: false;
|
|
3251
|
-
referencedRelation:
|
|
3252
|
-
referencedColumns: [
|
|
3103
|
+
referencedRelation: 'organizations';
|
|
3104
|
+
referencedColumns: ['id'];
|
|
3253
3105
|
},
|
|
3254
3106
|
{
|
|
3255
|
-
foreignKeyName:
|
|
3256
|
-
columns: [
|
|
3107
|
+
foreignKeyName: 'reported_requests_project_id_fkey';
|
|
3108
|
+
columns: ['project_id'];
|
|
3257
3109
|
isOneToOne: false;
|
|
3258
|
-
referencedRelation:
|
|
3259
|
-
referencedColumns: [
|
|
3110
|
+
referencedRelation: 'prj_projects';
|
|
3111
|
+
referencedColumns: ['id'];
|
|
3260
3112
|
},
|
|
3261
3113
|
{
|
|
3262
|
-
foreignKeyName:
|
|
3263
|
-
columns: [
|
|
3114
|
+
foreignKeyName: 'reported_requests_task_id_fkey';
|
|
3115
|
+
columns: ['task_id'];
|
|
3264
3116
|
isOneToOne: false;
|
|
3265
|
-
referencedRelation:
|
|
3266
|
-
referencedColumns: [
|
|
3117
|
+
referencedRelation: 'prj_tasks';
|
|
3118
|
+
referencedColumns: ['id'];
|
|
3267
3119
|
}
|
|
3268
3120
|
];
|
|
3269
3121
|
};
|
|
@@ -3303,11 +3155,11 @@ type Database = {
|
|
|
3303
3155
|
};
|
|
3304
3156
|
Relationships: [
|
|
3305
3157
|
{
|
|
3306
|
-
foreignKeyName:
|
|
3307
|
-
columns: [
|
|
3158
|
+
foreignKeyName: 'session_messages_session_id_fkey';
|
|
3159
|
+
columns: ['session_id'];
|
|
3308
3160
|
isOneToOne: false;
|
|
3309
|
-
referencedRelation:
|
|
3310
|
-
referencedColumns: [
|
|
3161
|
+
referencedRelation: 'sessions';
|
|
3162
|
+
referencedColumns: ['session_id'];
|
|
3311
3163
|
}
|
|
3312
3164
|
];
|
|
3313
3165
|
};
|
|
@@ -3362,18 +3214,18 @@ type Database = {
|
|
|
3362
3214
|
};
|
|
3363
3215
|
Relationships: [
|
|
3364
3216
|
{
|
|
3365
|
-
foreignKeyName:
|
|
3366
|
-
columns: [
|
|
3217
|
+
foreignKeyName: 'fk_organization';
|
|
3218
|
+
columns: ['organization_id'];
|
|
3367
3219
|
isOneToOne: false;
|
|
3368
|
-
referencedRelation:
|
|
3369
|
-
referencedColumns: [
|
|
3220
|
+
referencedRelation: 'organizations';
|
|
3221
|
+
referencedColumns: ['id'];
|
|
3370
3222
|
},
|
|
3371
3223
|
{
|
|
3372
|
-
foreignKeyName:
|
|
3373
|
-
columns: [
|
|
3224
|
+
foreignKeyName: 'fk_user';
|
|
3225
|
+
columns: ['user_id'];
|
|
3374
3226
|
isOneToOne: false;
|
|
3375
|
-
referencedRelation:
|
|
3376
|
-
referencedColumns: [
|
|
3227
|
+
referencedRelation: 'users';
|
|
3228
|
+
referencedColumns: ['id'];
|
|
3377
3229
|
}
|
|
3378
3230
|
];
|
|
3379
3231
|
};
|
|
@@ -3449,11 +3301,11 @@ type Database = {
|
|
|
3449
3301
|
};
|
|
3450
3302
|
Relationships: [
|
|
3451
3303
|
{
|
|
3452
|
-
foreignKeyName:
|
|
3453
|
-
columns: [
|
|
3304
|
+
foreignKeyName: 'task_schedules_organization_id_fkey';
|
|
3305
|
+
columns: ['organization_id'];
|
|
3454
3306
|
isOneToOne: false;
|
|
3455
|
-
referencedRelation:
|
|
3456
|
-
referencedColumns: [
|
|
3307
|
+
referencedRelation: 'organizations';
|
|
3308
|
+
referencedColumns: ['id'];
|
|
3457
3309
|
}
|
|
3458
3310
|
];
|
|
3459
3311
|
};
|
|
@@ -3508,11 +3360,11 @@ type Database = {
|
|
|
3508
3360
|
};
|
|
3509
3361
|
Relationships: [
|
|
3510
3362
|
{
|
|
3511
|
-
foreignKeyName:
|
|
3512
|
-
columns: [
|
|
3363
|
+
foreignKeyName: 'user_profiles_last_visited_org_fkey';
|
|
3364
|
+
columns: ['last_visited_org'];
|
|
3513
3365
|
isOneToOne: false;
|
|
3514
|
-
referencedRelation:
|
|
3515
|
-
referencedColumns: [
|
|
3366
|
+
referencedRelation: 'organizations';
|
|
3367
|
+
referencedColumns: ['id'];
|
|
3516
3368
|
}
|
|
3517
3369
|
];
|
|
3518
3370
|
};
|
|
@@ -3561,11 +3413,11 @@ type Database = {
|
|
|
3561
3413
|
};
|
|
3562
3414
|
Relationships: [
|
|
3563
3415
|
{
|
|
3564
|
-
foreignKeyName:
|
|
3565
|
-
columns: [
|
|
3416
|
+
foreignKeyName: 'webhook_endpoints_organization_id_fkey';
|
|
3417
|
+
columns: ['organization_id'];
|
|
3566
3418
|
isOneToOne: false;
|
|
3567
|
-
referencedRelation:
|
|
3568
|
-
referencedColumns: [
|
|
3419
|
+
referencedRelation: 'organizations';
|
|
3420
|
+
referencedColumns: ['id'];
|
|
3569
3421
|
}
|
|
3570
3422
|
];
|
|
3571
3423
|
};
|
|
@@ -3653,12 +3505,6 @@ type Database = {
|
|
|
3653
3505
|
};
|
|
3654
3506
|
Returns: boolean;
|
|
3655
3507
|
};
|
|
3656
|
-
is_org_admin: {
|
|
3657
|
-
Args: {
|
|
3658
|
-
org_id: string;
|
|
3659
|
-
};
|
|
3660
|
-
Returns: boolean;
|
|
3661
|
-
};
|
|
3662
3508
|
is_org_member: {
|
|
3663
3509
|
Args: {
|
|
3664
3510
|
org_id: string;
|
|
@@ -3719,17 +3565,17 @@ type Database = {
|
|
|
3719
3565
|
};
|
|
3720
3566
|
};
|
|
3721
3567
|
};
|
|
3722
|
-
type DatabaseWithoutInternals = Omit<Database,
|
|
3723
|
-
type DefaultSchema = DatabaseWithoutInternals[Extract<keyof Database,
|
|
3724
|
-
type Tables<DefaultSchemaTableNameOrOptions extends keyof (DefaultSchema[
|
|
3568
|
+
type DatabaseWithoutInternals = Omit<Database, '__InternalSupabase'>;
|
|
3569
|
+
type DefaultSchema = DatabaseWithoutInternals[Extract<keyof Database, 'public'>];
|
|
3570
|
+
type Tables<DefaultSchemaTableNameOrOptions extends keyof (DefaultSchema['Tables'] & DefaultSchema['Views']) | {
|
|
3725
3571
|
schema: keyof DatabaseWithoutInternals;
|
|
3726
3572
|
}, TableName extends DefaultSchemaTableNameOrOptions extends {
|
|
3727
3573
|
schema: keyof DatabaseWithoutInternals;
|
|
3728
|
-
} ? keyof (DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions[
|
|
3574
|
+
} ? keyof (DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions['schema']]['Tables'] & DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions['schema']]['Views']) : never = never> = DefaultSchemaTableNameOrOptions extends {
|
|
3729
3575
|
schema: keyof DatabaseWithoutInternals;
|
|
3730
|
-
} ? (DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions[
|
|
3576
|
+
} ? (DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions['schema']]['Tables'] & DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions['schema']]['Views'])[TableName] extends {
|
|
3731
3577
|
Row: infer R;
|
|
3732
|
-
} ? R : never : DefaultSchemaTableNameOrOptions extends keyof (DefaultSchema[
|
|
3578
|
+
} ? R : never : DefaultSchemaTableNameOrOptions extends keyof (DefaultSchema['Tables'] & DefaultSchema['Views']) ? (DefaultSchema['Tables'] & DefaultSchema['Views'])[DefaultSchemaTableNameOrOptions] extends {
|
|
3733
3579
|
Row: infer R;
|
|
3734
3580
|
} ? R : never : never;
|
|
3735
3581
|
|
|
@@ -3878,6 +3724,138 @@ interface ListTelemetry {
|
|
|
3878
3724
|
activeWorkflows?: string[];
|
|
3879
3725
|
}
|
|
3880
3726
|
|
|
3727
|
+
declare const TransitionItemRequestSchema: z.ZodObject<{
|
|
3728
|
+
pipelineKey: z.ZodString;
|
|
3729
|
+
stageKey: z.ZodString;
|
|
3730
|
+
stateKey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3731
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
3732
|
+
expectedUpdatedAt: z.ZodOptional<z.ZodString>;
|
|
3733
|
+
}, z.core.$strict>;
|
|
3734
|
+
type TransitionItemRequest = z.infer<typeof TransitionItemRequestSchema>;
|
|
3735
|
+
/**
|
|
3736
|
+
* Lifecycle status enum for `acq_lists.status` (mirrors DB CHECK constraint
|
|
3737
|
+
* from migration 20260428000003_lead_gen_acq_lists_status_and_config.sql).
|
|
3738
|
+
*/
|
|
3739
|
+
declare const ListStatusSchema: z.ZodEnum<{
|
|
3740
|
+
closing: "closing";
|
|
3741
|
+
draft: "draft";
|
|
3742
|
+
enriching: "enriching";
|
|
3743
|
+
launched: "launched";
|
|
3744
|
+
archived: "archived";
|
|
3745
|
+
}>;
|
|
3746
|
+
declare const ListCompaniesQuerySchema: z.ZodObject<{
|
|
3747
|
+
search: z.ZodOptional<z.ZodString>;
|
|
3748
|
+
listId: z.ZodOptional<z.ZodString>;
|
|
3749
|
+
domain: z.ZodOptional<z.ZodString>;
|
|
3750
|
+
website: z.ZodOptional<z.ZodString>;
|
|
3751
|
+
segment: z.ZodOptional<z.ZodString>;
|
|
3752
|
+
category: z.ZodOptional<z.ZodString>;
|
|
3753
|
+
batchId: z.ZodOptional<z.ZodString>;
|
|
3754
|
+
status: z.ZodOptional<z.ZodEnum<{
|
|
3755
|
+
active: "active";
|
|
3756
|
+
invalid: "invalid";
|
|
3757
|
+
}>>;
|
|
3758
|
+
includeAll: z.ZodOptional<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodBoolean>>;
|
|
3759
|
+
limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
3760
|
+
offset: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
3761
|
+
}, z.core.$strict>;
|
|
3762
|
+
declare const ListContactsQuerySchema: z.ZodObject<{
|
|
3763
|
+
search: z.ZodOptional<z.ZodString>;
|
|
3764
|
+
listId: z.ZodOptional<z.ZodString>;
|
|
3765
|
+
openingLineIsNull: z.ZodOptional<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodBoolean>>;
|
|
3766
|
+
batchId: z.ZodOptional<z.ZodString>;
|
|
3767
|
+
contactStatus: z.ZodOptional<z.ZodEnum<{
|
|
3768
|
+
active: "active";
|
|
3769
|
+
invalid: "invalid";
|
|
3770
|
+
}>>;
|
|
3771
|
+
limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
3772
|
+
offset: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
3773
|
+
}, z.core.$strict>;
|
|
3774
|
+
declare const AcqCompanyResponseSchema: z.ZodObject<{
|
|
3775
|
+
id: z.ZodString;
|
|
3776
|
+
organizationId: z.ZodString;
|
|
3777
|
+
name: z.ZodString;
|
|
3778
|
+
domain: z.ZodNullable<z.ZodString>;
|
|
3779
|
+
linkedinUrl: z.ZodNullable<z.ZodString>;
|
|
3780
|
+
website: z.ZodNullable<z.ZodString>;
|
|
3781
|
+
numEmployees: z.ZodNullable<z.ZodNumber>;
|
|
3782
|
+
foundedYear: z.ZodNullable<z.ZodNumber>;
|
|
3783
|
+
locationCity: z.ZodNullable<z.ZodString>;
|
|
3784
|
+
locationState: z.ZodNullable<z.ZodString>;
|
|
3785
|
+
category: z.ZodNullable<z.ZodString>;
|
|
3786
|
+
categoryPain: z.ZodNullable<z.ZodString>;
|
|
3787
|
+
segment: z.ZodNullable<z.ZodString>;
|
|
3788
|
+
pipelineStatus: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
3789
|
+
enrichmentData: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
3790
|
+
source: z.ZodNullable<z.ZodString>;
|
|
3791
|
+
batchId: z.ZodNullable<z.ZodString>;
|
|
3792
|
+
status: z.ZodEnum<{
|
|
3793
|
+
active: "active";
|
|
3794
|
+
invalid: "invalid";
|
|
3795
|
+
}>;
|
|
3796
|
+
contactCount: z.ZodNumber;
|
|
3797
|
+
verticalResearch: z.ZodNullable<z.ZodString>;
|
|
3798
|
+
createdAt: z.ZodString;
|
|
3799
|
+
updatedAt: z.ZodString;
|
|
3800
|
+
}, z.core.$strip>;
|
|
3801
|
+
declare const AcqContactResponseSchema: z.ZodObject<{
|
|
3802
|
+
id: z.ZodString;
|
|
3803
|
+
organizationId: z.ZodString;
|
|
3804
|
+
companyId: z.ZodNullable<z.ZodString>;
|
|
3805
|
+
email: z.ZodString;
|
|
3806
|
+
emailValid: z.ZodNullable<z.ZodEnum<{
|
|
3807
|
+
VALID: "VALID";
|
|
3808
|
+
INVALID: "INVALID";
|
|
3809
|
+
RISKY: "RISKY";
|
|
3810
|
+
UNKNOWN: "UNKNOWN";
|
|
3811
|
+
}>>;
|
|
3812
|
+
firstName: z.ZodNullable<z.ZodString>;
|
|
3813
|
+
lastName: z.ZodNullable<z.ZodString>;
|
|
3814
|
+
linkedinUrl: z.ZodNullable<z.ZodString>;
|
|
3815
|
+
title: z.ZodNullable<z.ZodString>;
|
|
3816
|
+
headline: z.ZodNullable<z.ZodString>;
|
|
3817
|
+
filterReason: z.ZodNullable<z.ZodString>;
|
|
3818
|
+
openingLine: z.ZodNullable<z.ZodString>;
|
|
3819
|
+
source: z.ZodNullable<z.ZodString>;
|
|
3820
|
+
sourceId: z.ZodNullable<z.ZodString>;
|
|
3821
|
+
pipelineStatus: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
3822
|
+
enrichmentData: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
3823
|
+
attioPersonId: z.ZodNullable<z.ZodString>;
|
|
3824
|
+
batchId: z.ZodNullable<z.ZodString>;
|
|
3825
|
+
status: z.ZodEnum<{
|
|
3826
|
+
active: "active";
|
|
3827
|
+
invalid: "invalid";
|
|
3828
|
+
}>;
|
|
3829
|
+
company: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
3830
|
+
id: z.ZodString;
|
|
3831
|
+
name: z.ZodString;
|
|
3832
|
+
domain: z.ZodNullable<z.ZodString>;
|
|
3833
|
+
website: z.ZodNullable<z.ZodString>;
|
|
3834
|
+
linkedinUrl: z.ZodNullable<z.ZodString>;
|
|
3835
|
+
segment: z.ZodNullable<z.ZodString>;
|
|
3836
|
+
category: z.ZodNullable<z.ZodString>;
|
|
3837
|
+
status: z.ZodEnum<{
|
|
3838
|
+
active: "active";
|
|
3839
|
+
invalid: "invalid";
|
|
3840
|
+
}>;
|
|
3841
|
+
}, z.core.$strip>>>;
|
|
3842
|
+
createdAt: z.ZodString;
|
|
3843
|
+
updatedAt: z.ZodString;
|
|
3844
|
+
}, z.core.$strip>;
|
|
3845
|
+
declare const AcqArtifactOwnerKindSchema: z.ZodEnum<{
|
|
3846
|
+
company: "company";
|
|
3847
|
+
contact: "contact";
|
|
3848
|
+
list: "list";
|
|
3849
|
+
deal: "deal";
|
|
3850
|
+
list_member: "list_member";
|
|
3851
|
+
}>;
|
|
3852
|
+
type ListCompaniesQuery = z.infer<typeof ListCompaniesQuerySchema>;
|
|
3853
|
+
type ListContactsQuery = z.infer<typeof ListContactsQuerySchema>;
|
|
3854
|
+
type AcqCompanyResponse = z.infer<typeof AcqCompanyResponseSchema>;
|
|
3855
|
+
type AcqContactResponse = z.infer<typeof AcqContactResponseSchema>;
|
|
3856
|
+
type AcqArtifactOwnerKind = z.infer<typeof AcqArtifactOwnerKindSchema>;
|
|
3857
|
+
type ListStatus = z.infer<typeof ListStatusSchema>;
|
|
3858
|
+
|
|
3881
3859
|
/**
|
|
3882
3860
|
* Lead Service Types
|
|
3883
3861
|
* CRUD operation types for the acquisition platform (lists, companies, contacts, deals)
|
|
@@ -4147,154 +4125,63 @@ interface NotificationDTO {
|
|
|
4147
4125
|
type ProjectRow = Database['public']['Tables']['prj_projects']['Row'];
|
|
4148
4126
|
type ProjectUpdate = Database['public']['Tables']['prj_projects']['Update'];
|
|
4149
4127
|
type MilestoneRow = Database['public']['Tables']['prj_milestones']['Row'];
|
|
4150
|
-
type MilestoneUpdate = Database['public']['Tables']['prj_milestones']['Update'];
|
|
4151
|
-
type TaskRow = Database['public']['Tables']['prj_tasks']['Row'];
|
|
4152
|
-
type TaskUpdate = Database['public']['Tables']['prj_tasks']['Update'];
|
|
4153
|
-
type ProjectStatus = 'active' | 'on_track' | 'at_risk' | 'blocked' | 'completed' | 'paused';
|
|
4154
|
-
type ProjectKind = 'client_engagement' | 'internal' | 'research' | 'other';
|
|
4155
|
-
type MilestoneStatus = 'upcoming' | 'in_progress' | 'completed' | 'overdue' | 'blocked';
|
|
4156
|
-
type TaskStatus = 'planned' | 'in_progress' | 'blocked' | 'completed' | 'cancelled' | 'submitted' | 'approved' | 'rejected' | 'revision_requested';
|
|
4157
|
-
type TaskType = 'documentation' | 'code' | 'report' | 'design' | 'other';
|
|
4158
|
-
type NoteType = 'call_note' | 'status_update' | 'issue' | 'blocker' | 'agent_learning';
|
|
4159
|
-
interface ProjectFilters {
|
|
4160
|
-
status?: ProjectStatus;
|
|
4161
|
-
kind?: ProjectKind;
|
|
4162
|
-
companyId?: string;
|
|
4163
|
-
search?: string;
|
|
4164
|
-
}
|
|
4165
|
-
interface MilestoneFilters {
|
|
4166
|
-
status?: MilestoneStatus;
|
|
4167
|
-
projectId?: string;
|
|
4168
|
-
}
|
|
4169
|
-
interface TaskFilters {
|
|
4170
|
-
status?: TaskStatus;
|
|
4171
|
-
type?: TaskType;
|
|
4172
|
-
milestoneId?: string;
|
|
4173
|
-
projectId?: string;
|
|
4174
|
-
}
|
|
4175
|
-
interface NoteFilters {
|
|
4176
|
-
type?: NoteType;
|
|
4177
|
-
projectId?: string;
|
|
4178
|
-
}
|
|
4179
|
-
interface ProjectWithCounts extends ProjectRow {
|
|
4180
|
-
milestoneCount: number;
|
|
4181
|
-
taskCount: number;
|
|
4182
|
-
completedMilestones?: number;
|
|
4183
|
-
completedTasks?: number;
|
|
4184
|
-
}
|
|
4185
|
-
interface ProjectDetail extends ProjectRow {
|
|
4186
|
-
milestones: MilestoneRow[];
|
|
4187
|
-
tasks: TaskRow[];
|
|
4188
|
-
company: {
|
|
4189
|
-
id: string;
|
|
4190
|
-
name: string;
|
|
4191
|
-
domain: string | null;
|
|
4192
|
-
} | null;
|
|
4193
|
-
}
|
|
4194
|
-
|
|
4195
|
-
|
|
4196
|
-
|
|
4197
|
-
|
|
4198
|
-
|
|
4199
|
-
|
|
4200
|
-
|
|
4201
|
-
|
|
4202
|
-
|
|
4203
|
-
|
|
4204
|
-
|
|
4205
|
-
|
|
4206
|
-
|
|
4207
|
-
includeAll: z.ZodOptional<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodBoolean>>;
|
|
4208
|
-
limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
4209
|
-
offset: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
4210
|
-
}, z.core.$strict>;
|
|
4211
|
-
declare const ListContactsQuerySchema: z.ZodObject<{
|
|
4212
|
-
search: z.ZodOptional<z.ZodString>;
|
|
4213
|
-
listId: z.ZodOptional<z.ZodString>;
|
|
4214
|
-
openingLineIsNull: z.ZodOptional<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodBoolean>>;
|
|
4215
|
-
batchId: z.ZodOptional<z.ZodString>;
|
|
4216
|
-
contactStatus: z.ZodOptional<z.ZodEnum<{
|
|
4217
|
-
active: "active";
|
|
4218
|
-
invalid: "invalid";
|
|
4219
|
-
}>>;
|
|
4220
|
-
limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
4221
|
-
offset: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
4222
|
-
}, z.core.$strict>;
|
|
4223
|
-
declare const AcqCompanyResponseSchema: z.ZodObject<{
|
|
4224
|
-
id: z.ZodString;
|
|
4225
|
-
organizationId: z.ZodString;
|
|
4226
|
-
name: z.ZodString;
|
|
4227
|
-
domain: z.ZodNullable<z.ZodString>;
|
|
4228
|
-
linkedinUrl: z.ZodNullable<z.ZodString>;
|
|
4229
|
-
website: z.ZodNullable<z.ZodString>;
|
|
4230
|
-
numEmployees: z.ZodNullable<z.ZodNumber>;
|
|
4231
|
-
foundedYear: z.ZodNullable<z.ZodNumber>;
|
|
4232
|
-
locationCity: z.ZodNullable<z.ZodString>;
|
|
4233
|
-
locationState: z.ZodNullable<z.ZodString>;
|
|
4234
|
-
category: z.ZodNullable<z.ZodString>;
|
|
4235
|
-
categoryPain: z.ZodNullable<z.ZodString>;
|
|
4236
|
-
segment: z.ZodNullable<z.ZodString>;
|
|
4237
|
-
pipelineStatus: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
4238
|
-
enrichmentData: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
4239
|
-
source: z.ZodNullable<z.ZodString>;
|
|
4240
|
-
batchId: z.ZodNullable<z.ZodString>;
|
|
4241
|
-
status: z.ZodEnum<{
|
|
4242
|
-
active: "active";
|
|
4243
|
-
invalid: "invalid";
|
|
4244
|
-
}>;
|
|
4245
|
-
contactCount: z.ZodNumber;
|
|
4246
|
-
verticalResearch: z.ZodNullable<z.ZodString>;
|
|
4247
|
-
createdAt: z.ZodString;
|
|
4248
|
-
updatedAt: z.ZodString;
|
|
4249
|
-
}, z.core.$strip>;
|
|
4250
|
-
declare const AcqContactResponseSchema: z.ZodObject<{
|
|
4251
|
-
id: z.ZodString;
|
|
4252
|
-
organizationId: z.ZodString;
|
|
4253
|
-
companyId: z.ZodNullable<z.ZodString>;
|
|
4254
|
-
email: z.ZodString;
|
|
4255
|
-
emailValid: z.ZodNullable<z.ZodEnum<{
|
|
4256
|
-
VALID: "VALID";
|
|
4257
|
-
INVALID: "INVALID";
|
|
4258
|
-
RISKY: "RISKY";
|
|
4259
|
-
UNKNOWN: "UNKNOWN";
|
|
4260
|
-
}>>;
|
|
4261
|
-
firstName: z.ZodNullable<z.ZodString>;
|
|
4262
|
-
lastName: z.ZodNullable<z.ZodString>;
|
|
4263
|
-
linkedinUrl: z.ZodNullable<z.ZodString>;
|
|
4264
|
-
title: z.ZodNullable<z.ZodString>;
|
|
4265
|
-
headline: z.ZodNullable<z.ZodString>;
|
|
4266
|
-
filterReason: z.ZodNullable<z.ZodString>;
|
|
4267
|
-
openingLine: z.ZodNullable<z.ZodString>;
|
|
4268
|
-
source: z.ZodNullable<z.ZodString>;
|
|
4269
|
-
sourceId: z.ZodNullable<z.ZodString>;
|
|
4270
|
-
pipelineStatus: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
4271
|
-
enrichmentData: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
4272
|
-
attioPersonId: z.ZodNullable<z.ZodString>;
|
|
4273
|
-
batchId: z.ZodNullable<z.ZodString>;
|
|
4274
|
-
status: z.ZodEnum<{
|
|
4275
|
-
active: "active";
|
|
4276
|
-
invalid: "invalid";
|
|
4277
|
-
}>;
|
|
4278
|
-
company: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
4279
|
-
id: z.ZodString;
|
|
4280
|
-
name: z.ZodString;
|
|
4281
|
-
domain: z.ZodNullable<z.ZodString>;
|
|
4282
|
-
website: z.ZodNullable<z.ZodString>;
|
|
4283
|
-
linkedinUrl: z.ZodNullable<z.ZodString>;
|
|
4284
|
-
segment: z.ZodNullable<z.ZodString>;
|
|
4285
|
-
category: z.ZodNullable<z.ZodString>;
|
|
4286
|
-
status: z.ZodEnum<{
|
|
4287
|
-
active: "active";
|
|
4288
|
-
invalid: "invalid";
|
|
4289
|
-
}>;
|
|
4290
|
-
}, z.core.$strip>>>;
|
|
4291
|
-
createdAt: z.ZodString;
|
|
4292
|
-
updatedAt: z.ZodString;
|
|
4293
|
-
}, z.core.$strip>;
|
|
4294
|
-
type ListCompaniesQuery = z.infer<typeof ListCompaniesQuerySchema>;
|
|
4295
|
-
type ListContactsQuery = z.infer<typeof ListContactsQuerySchema>;
|
|
4296
|
-
type AcqCompanyResponse = z.infer<typeof AcqCompanyResponseSchema>;
|
|
4297
|
-
type AcqContactResponse = z.infer<typeof AcqContactResponseSchema>;
|
|
4128
|
+
type MilestoneUpdate = Database['public']['Tables']['prj_milestones']['Update'];
|
|
4129
|
+
type TaskRow = Database['public']['Tables']['prj_tasks']['Row'];
|
|
4130
|
+
type TaskUpdate = Database['public']['Tables']['prj_tasks']['Update'];
|
|
4131
|
+
type ProjectStatus = 'active' | 'on_track' | 'at_risk' | 'blocked' | 'completed' | 'paused';
|
|
4132
|
+
type ProjectKind = 'client_engagement' | 'internal' | 'research' | 'other';
|
|
4133
|
+
type MilestoneStatus = 'upcoming' | 'in_progress' | 'completed' | 'overdue' | 'blocked';
|
|
4134
|
+
type TaskStatus = 'planned' | 'in_progress' | 'blocked' | 'completed' | 'cancelled' | 'submitted' | 'approved' | 'rejected' | 'revision_requested';
|
|
4135
|
+
type TaskType = 'documentation' | 'code' | 'report' | 'design' | 'other';
|
|
4136
|
+
type NoteType = 'call_note' | 'status_update' | 'issue' | 'blocker' | 'agent_learning';
|
|
4137
|
+
interface ProjectFilters {
|
|
4138
|
+
status?: ProjectStatus;
|
|
4139
|
+
kind?: ProjectKind;
|
|
4140
|
+
companyId?: string;
|
|
4141
|
+
search?: string;
|
|
4142
|
+
}
|
|
4143
|
+
interface MilestoneFilters {
|
|
4144
|
+
status?: MilestoneStatus;
|
|
4145
|
+
projectId?: string;
|
|
4146
|
+
}
|
|
4147
|
+
interface TaskFilters {
|
|
4148
|
+
status?: TaskStatus;
|
|
4149
|
+
type?: TaskType;
|
|
4150
|
+
milestoneId?: string;
|
|
4151
|
+
projectId?: string;
|
|
4152
|
+
}
|
|
4153
|
+
interface NoteFilters {
|
|
4154
|
+
type?: NoteType;
|
|
4155
|
+
projectId?: string;
|
|
4156
|
+
}
|
|
4157
|
+
interface ProjectWithCounts extends ProjectRow {
|
|
4158
|
+
milestoneCount: number;
|
|
4159
|
+
taskCount: number;
|
|
4160
|
+
completedMilestones?: number;
|
|
4161
|
+
completedTasks?: number;
|
|
4162
|
+
}
|
|
4163
|
+
interface ProjectDetail extends ProjectRow {
|
|
4164
|
+
milestones: MilestoneRow[];
|
|
4165
|
+
tasks: TaskRow[];
|
|
4166
|
+
company: {
|
|
4167
|
+
id: string;
|
|
4168
|
+
name: string;
|
|
4169
|
+
domain: string | null;
|
|
4170
|
+
} | null;
|
|
4171
|
+
}
|
|
4172
|
+
|
|
4173
|
+
interface Action {
|
|
4174
|
+
key: string;
|
|
4175
|
+
label: string;
|
|
4176
|
+
payloadSchema?: z.ZodTypeAny;
|
|
4177
|
+
}
|
|
4178
|
+
interface ActionDef {
|
|
4179
|
+
key: string;
|
|
4180
|
+
label: string;
|
|
4181
|
+
isAvailableFor: (deal: AcqDealRow) => boolean;
|
|
4182
|
+
workflowId: string;
|
|
4183
|
+
payloadSchema?: z.ZodTypeAny;
|
|
4184
|
+
}
|
|
4298
4185
|
|
|
4299
4186
|
type MessageType = MessageEvent['type'];
|
|
4300
4187
|
/**
|
|
@@ -5571,7 +5458,7 @@ type APIErrorCode = 'VALIDATION_ERROR' | 'AUTHENTICATION_FAILED' | 'FORBIDDEN' |
|
|
|
5571
5458
|
*
|
|
5572
5459
|
* The DB table `org_rol_permissions` mirrors this constant. Reconciliation
|
|
5573
5460
|
* runs at API boot (insert-or-update only — never auto-delete; see the
|
|
5574
|
-
* deletion runbook in the auth-role-system
|
|
5461
|
+
* deletion runbook in the auth-role-system doc -- review/auth-role-system/).
|
|
5575
5462
|
*
|
|
5576
5463
|
* Adding a permission:
|
|
5577
5464
|
* 1. Add an entry below.
|
|
@@ -5591,7 +5478,8 @@ declare const PERMISSIONS: {
|
|
|
5591
5478
|
readonly SECRETS_MANAGE: "secrets.manage";
|
|
5592
5479
|
readonly OPERATIONS_READ: "operations.read";
|
|
5593
5480
|
readonly OPERATIONS_MANAGE: "operations.manage";
|
|
5594
|
-
readonly
|
|
5481
|
+
readonly ACQUISITION_MANAGE: "acquisition.manage";
|
|
5482
|
+
readonly PROJECTS_MANAGE: "projects.manage";
|
|
5595
5483
|
};
|
|
5596
5484
|
type PermissionKey = (typeof PERMISSIONS)[keyof typeof PERMISSIONS];
|
|
5597
5485
|
/**
|
|
@@ -5671,37 +5559,292 @@ interface Deployment {
|
|
|
5671
5559
|
}
|
|
5672
5560
|
|
|
5673
5561
|
/**
|
|
5674
|
-
* Time range utility functions
|
|
5675
|
-
* Converts TimeRange enum to ISO 8601 date strings and labels
|
|
5562
|
+
* Time range utility functions
|
|
5563
|
+
* Converts TimeRange enum to ISO 8601 date strings and labels
|
|
5564
|
+
*/
|
|
5565
|
+
|
|
5566
|
+
/**
|
|
5567
|
+
* Convert TimeRange to start and end ISO 8601 date strings
|
|
5568
|
+
* @param range - Time range enum (1h, 24h, 7d, 30d)
|
|
5569
|
+
* @returns Object with startDate and endDate as ISO 8601 strings
|
|
5570
|
+
*/
|
|
5571
|
+
declare function getTimeRangeDates(range: TimeRange): TimeRangeDates;
|
|
5572
|
+
/**
|
|
5573
|
+
* Get a human-readable label for a time range
|
|
5574
|
+
* @param range - Time range enum
|
|
5575
|
+
* @returns Human-readable label
|
|
5576
|
+
*/
|
|
5577
|
+
declare function getTimeRangeLabel(range: TimeRange): string;
|
|
5578
|
+
|
|
5579
|
+
/**
|
|
5580
|
+
* GET /api/credentials - List credentials
|
|
5581
|
+
*/
|
|
5582
|
+
declare const ListCredentialsResponseSchema: z.ZodObject<{
|
|
5583
|
+
credentials: z.ZodArray<z.ZodObject<{
|
|
5584
|
+
id: z.ZodString;
|
|
5585
|
+
name: z.ZodString;
|
|
5586
|
+
type: z.ZodString;
|
|
5587
|
+
provider: z.ZodNullable<z.ZodString>;
|
|
5588
|
+
createdAt: z.ZodString;
|
|
5589
|
+
}, z.core.$strip>>;
|
|
5590
|
+
}, z.core.$strip>;
|
|
5591
|
+
/** API response type for a single credential list item */
|
|
5592
|
+
type CredentialListItem = z.infer<typeof ListCredentialsResponseSchema>['credentials'][number];
|
|
5593
|
+
|
|
5594
|
+
/** Flat + per-scheme override pattern. Flat values apply to both; `light`/`dark` win over flat. */
|
|
5595
|
+
type WithSchemes<T> = T & {
|
|
5596
|
+
light?: T;
|
|
5597
|
+
dark?: T;
|
|
5598
|
+
};
|
|
5599
|
+
/**
|
|
5600
|
+
* Theme token overrides. Each key maps 1:1 to a CSS variable.
|
|
5601
|
+
* All optional — defaults come from Elevasis design system.
|
|
5602
|
+
*/
|
|
5603
|
+
interface ElevasisTokenOverrides {
|
|
5604
|
+
primary?: string;
|
|
5605
|
+
/** Text color that contrasts with `primary`. Defaults to '#fff'. */
|
|
5606
|
+
primaryContrast?: string;
|
|
5607
|
+
background?: string;
|
|
5608
|
+
surface?: string;
|
|
5609
|
+
surfaceHover?: string;
|
|
5610
|
+
/** Opaque surface for floating overlays (modals, menus, popovers) — guarantees readable contrast against decorative backgrounds. */
|
|
5611
|
+
elevatedSurface?: string;
|
|
5612
|
+
text?: string;
|
|
5613
|
+
textDimmed?: string;
|
|
5614
|
+
textSubtle?: string;
|
|
5615
|
+
border?: string;
|
|
5616
|
+
error?: string;
|
|
5617
|
+
warning?: string;
|
|
5618
|
+
success?: string;
|
|
5619
|
+
glassBackground?: string;
|
|
5620
|
+
glassBlur?: string;
|
|
5621
|
+
shadow?: string;
|
|
5622
|
+
cardShadow?: string;
|
|
5623
|
+
durationFast?: string;
|
|
5624
|
+
durationNormal?: string;
|
|
5625
|
+
easing?: string;
|
|
5626
|
+
/** Foreground text color for destructive/error buttons. Defaults to '#fff'. */
|
|
5627
|
+
destructiveFg?: string;
|
|
5628
|
+
/** Heading font family — used for titles, section headers. */
|
|
5629
|
+
fontHeading?: string;
|
|
5630
|
+
/** Body font family — used for general text. */
|
|
5631
|
+
fontSans?: string;
|
|
5632
|
+
}
|
|
5633
|
+
/**
|
|
5634
|
+
* Core theme config — Mantine-free.
|
|
5635
|
+
* Used by ElevasisCoreProvider and as the base for ElevasisThemeConfig.
|
|
5636
|
+
*/
|
|
5637
|
+
interface ElevasisCoreThemeConfig {
|
|
5638
|
+
/** Color scheme: 'light', 'dark', or 'auto'. Defaults to 'dark'. */
|
|
5639
|
+
colorScheme?: 'light' | 'dark' | 'auto';
|
|
5640
|
+
/** Named preset — bundles light/dark token defaults. Defaults to 'default'. Accepts built-in PresetName or custom preset key. */
|
|
5641
|
+
preset?: PresetName | (string & {});
|
|
5642
|
+
/**
|
|
5643
|
+
* Semantic token overrides fed into CSS variables.
|
|
5644
|
+
* Flat values apply to both schemes. `light`/`dark` nested values win over flat.
|
|
5645
|
+
*/
|
|
5646
|
+
tokens?: WithSchemes<ElevasisTokenOverrides>;
|
|
5647
|
+
/** Custom presets map — when provided, used instead of built-in presets. Typically `{ ...presets, ...customPresets }`. */
|
|
5648
|
+
presets?: Record<string, ThemePreset>;
|
|
5649
|
+
}
|
|
5650
|
+
/**
|
|
5651
|
+
* Auth configuration union.
|
|
5652
|
+
* 'authkit' (WorkOS AuthKit) is the supported mode.
|
|
5653
|
+
* 'apiKey' is defined for forward type compatibility but will throw at runtime.
|
|
5654
|
+
*/
|
|
5655
|
+
type AuthConfig = AuthKitConfig | ApiKeyConfig;
|
|
5656
|
+
interface AuthKitConfig {
|
|
5657
|
+
mode: 'authkit';
|
|
5658
|
+
clientId: string;
|
|
5659
|
+
/** AuthKit API hostname. Defaults to 'api.workos.com'. */
|
|
5660
|
+
apiHostname?: string;
|
|
5661
|
+
/** Redirect URI after auth. */
|
|
5662
|
+
redirectUri?: string;
|
|
5663
|
+
/** Keep refresh tokens in localStorage. Defaults to false. */
|
|
5664
|
+
devMode?: boolean;
|
|
5665
|
+
}
|
|
5666
|
+
/** Deferred -- will throw at runtime. */
|
|
5667
|
+
interface ApiKeyConfig {
|
|
5668
|
+
mode: 'apiKey';
|
|
5669
|
+
key: string;
|
|
5670
|
+
}
|
|
5671
|
+
interface ElevasisCoreProviderProps {
|
|
5672
|
+
/** Auth configuration. Supports 'authkit' mode. */
|
|
5673
|
+
auth: AuthConfig;
|
|
5674
|
+
/**
|
|
5675
|
+
* Elevasis core theme configuration (Mantine-free).
|
|
5676
|
+
* Set `colorScheme` ('light', 'dark', 'auto') and override `tokens` (design tokens).
|
|
5677
|
+
* Defaults: colorScheme='dark', Elevasis design system tokens.
|
|
5678
|
+
*/
|
|
5679
|
+
theme?: ElevasisCoreThemeConfig;
|
|
5680
|
+
/**
|
|
5681
|
+
* @deprecated Organization ID is now resolved automatically via OrganizationProvider.
|
|
5682
|
+
* This prop is accepted for backwards compatibility during migration but is no longer
|
|
5683
|
+
* used when the full provider stack is active (apiUrl provided).
|
|
5684
|
+
*/
|
|
5685
|
+
organizationId?: string | null;
|
|
5686
|
+
/** Custom QueryClient. If omitted, a default is created internally. */
|
|
5687
|
+
queryClient?: QueryClient;
|
|
5688
|
+
/**
|
|
5689
|
+
* API base URL (e.g., 'https://api.elevasis.com' or 'http://localhost:5170').
|
|
5690
|
+
* When provided, ElevasisCoreProvider composes the full provider stack:
|
|
5691
|
+
* ApiClientProvider + ElevasisServiceProvider + ProfileProvider +
|
|
5692
|
+
* OrganizationProvider + NotificationProvider + InitializationProvider.
|
|
5693
|
+
* When omitted, no service context is provided (theme-only mode).
|
|
5694
|
+
*/
|
|
5695
|
+
apiUrl?: string;
|
|
5696
|
+
/**
|
|
5697
|
+
* Error callback for API responses with status >= 500.
|
|
5698
|
+
* Only used when apiUrl is provided.
|
|
5699
|
+
*/
|
|
5700
|
+
onError?: (endpoint: string, error: Error, details?: ApiErrorDetails) => void;
|
|
5701
|
+
/**
|
|
5702
|
+
* @deprecated Organization readiness is now managed internally by OrganizationProvider.
|
|
5703
|
+
* Accepted for backwards compatibility but ignored when apiUrl is provided.
|
|
5704
|
+
*/
|
|
5705
|
+
isOrganizationReady?: boolean;
|
|
5706
|
+
/**
|
|
5707
|
+
* Notification adapter for displaying success/error/info messages.
|
|
5708
|
+
* When provided, wraps the subtree in a NotificationProvider with this adapter.
|
|
5709
|
+
* When omitted, the console fallback adapter is used automatically.
|
|
5710
|
+
*
|
|
5711
|
+
* ElevasisUIProvider (Mantine variant) passes a Mantine-backed adapter here automatically.
|
|
5712
|
+
* Headless/SDK consumers can pass a custom adapter or omit for console output.
|
|
5713
|
+
*/
|
|
5714
|
+
notifications?: NotificationAdapter;
|
|
5715
|
+
/**
|
|
5716
|
+
* Whether to inject CSS variables, `data-elevasis-scheme` attribute, and font links.
|
|
5717
|
+
* Set to `false` when the consumer has its own complete design system and only
|
|
5718
|
+
* needs auth + API from this provider. Defaults to `true`.
|
|
5719
|
+
*/
|
|
5720
|
+
injectStyles?: boolean;
|
|
5721
|
+
/**
|
|
5722
|
+
* CRM action definitions used by DealDetailPage and DealDrawer.
|
|
5723
|
+
* Defaults to DEFAULT_CRM_ACTIONS. Pass a custom array to override or extend
|
|
5724
|
+
* the default action set for your organization's sales flow.
|
|
5725
|
+
*
|
|
5726
|
+
* @example
|
|
5727
|
+
* ```tsx
|
|
5728
|
+
* import { DEFAULT_CRM_ACTIONS, type ActionDef } from '@elevasis/sdk'
|
|
5729
|
+
* const myActions: ActionDef[] = [
|
|
5730
|
+
* ...DEFAULT_CRM_ACTIONS,
|
|
5731
|
+
* { key: 'send_quote', label: 'Send Quote',
|
|
5732
|
+
* isAvailableFor: d => d.stage_key === 'proposal',
|
|
5733
|
+
* workflowId: 'send-quote-workflow' },
|
|
5734
|
+
* ]
|
|
5735
|
+
* <ElevasisUIProvider crmActions={myActions} ... />
|
|
5736
|
+
* ```
|
|
5737
|
+
*/
|
|
5738
|
+
crmActions?: ActionDef[];
|
|
5739
|
+
children: ReactNode;
|
|
5740
|
+
}
|
|
5741
|
+
/**
|
|
5742
|
+
* Service context value exposed by ElevasisServiceProvider.
|
|
5743
|
+
* Provides a ready-to-use apiRequest function and organization state.
|
|
5744
|
+
*
|
|
5745
|
+
* For standalone usage (testing, embedding), use ElevasisServiceProvider directly.
|
|
5746
|
+
* For standard SDK usage, ElevasisUIProvider composes this automatically when apiUrl is provided.
|
|
5747
|
+
*/
|
|
5748
|
+
interface ElevasisServiceContextValue {
|
|
5749
|
+
apiRequest: <T>(endpoint: string, options?: RequestInit) => Promise<T>;
|
|
5750
|
+
organizationId: string | null;
|
|
5751
|
+
isReady: boolean;
|
|
5752
|
+
}
|
|
5753
|
+
interface ElevasisServiceProviderProps {
|
|
5754
|
+
apiRequest: <T>(endpoint: string, options?: RequestInit) => Promise<T>;
|
|
5755
|
+
organizationId: string | null;
|
|
5756
|
+
isReady: boolean;
|
|
5757
|
+
children: ReactNode;
|
|
5758
|
+
}
|
|
5759
|
+
|
|
5760
|
+
/** Framework-agnostic theme overrides bundled with a preset (fonts, radius, component styles). */
|
|
5761
|
+
interface FrameworkThemeOverrides {
|
|
5762
|
+
fontFamily?: string;
|
|
5763
|
+
defaultRadius?: string;
|
|
5764
|
+
headings?: {
|
|
5765
|
+
fontFamily?: string;
|
|
5766
|
+
fontWeight?: string;
|
|
5767
|
+
};
|
|
5768
|
+
components?: Record<string, unknown>;
|
|
5769
|
+
}
|
|
5770
|
+
/** Tokens every preset must define. `elevatedSurface` is progressively adopted and stays optional. */
|
|
5771
|
+
type PresetTokens = Required<Omit<ElevasisTokenOverrides, 'elevatedSurface'>> & Pick<ElevasisTokenOverrides, 'elevatedSurface'>;
|
|
5772
|
+
interface ThemePreset {
|
|
5773
|
+
light: PresetTokens;
|
|
5774
|
+
dark: PresetTokens;
|
|
5775
|
+
/** Optional framework theme overrides bundled with this preset (fonts, radius, etc.). */
|
|
5776
|
+
framework?: FrameworkThemeOverrides;
|
|
5777
|
+
/**
|
|
5778
|
+
* Subtitle font family — used for card names, section labels, and nav items.
|
|
5779
|
+
* Sits between heading and body in the typographic hierarchy.
|
|
5780
|
+
*/
|
|
5781
|
+
subtitleFontFamily?: string;
|
|
5782
|
+
/** Google Fonts URLs to load when this preset is active. */
|
|
5783
|
+
fontImports?: string[];
|
|
5784
|
+
/** Display label for settings UI (e.g. "Tactical"). Built-in presets define this; custom presets must provide it. */
|
|
5785
|
+
label?: string;
|
|
5786
|
+
/** Short description for settings UI (e.g. "Tactical command center aesthetic"). */
|
|
5787
|
+
description?: string;
|
|
5788
|
+
/** Three representative hex colors for swatch display: [primary, dark-bg, light-bg]. */
|
|
5789
|
+
colors?: [string, string, string];
|
|
5790
|
+
/**
|
|
5791
|
+
* Background layers rendered behind app content when this preset is active.
|
|
5792
|
+
* Overridden by `theme.background` on the provider if both are set.
|
|
5793
|
+
*/
|
|
5794
|
+
background?: ReactNode;
|
|
5795
|
+
/**
|
|
5796
|
+
* Loader element used in loading states when this preset is active.
|
|
5797
|
+
* Overridden by `theme.loader` on the provider if both are set.
|
|
5798
|
+
*/
|
|
5799
|
+
loader?: ReactNode;
|
|
5800
|
+
}
|
|
5801
|
+
type PresetName = 'default' | 'tactical' | 'regal' | 'cyber-volt' | 'aurora' | 'rose-gold' | 'midnight' | 'titanium' | 'canopy' | 'slate' | 'cyber-strike' | 'cyber-chrome' | 'cyber-void' | 'nirvana' | 'wave' | 'synapse' | 'cortex' | 'helios' | 'graphite' | 'quarry';
|
|
5802
|
+
|
|
5803
|
+
/** 10-shade color tuple (light → dark), compatible with Mantine's color format. */
|
|
5804
|
+
type ColorShadesTuple = [string, string, string, string, string, string, string, string, string, string];
|
|
5805
|
+
/**
|
|
5806
|
+
* Generate a 10-shade Mantine color tuple from a single hex color.
|
|
5807
|
+
* Input color maps to shade 6 (Mantine's default primary shade).
|
|
5808
|
+
* Shades 0-5 are progressively lighter, 7-9 are progressively darker.
|
|
5676
5809
|
*/
|
|
5810
|
+
declare function generateShades(hex: string): ColorShadesTuple;
|
|
5677
5811
|
|
|
5678
|
-
|
|
5679
|
-
* Convert TimeRange to start and end ISO 8601 date strings
|
|
5680
|
-
* @param range - Time range enum (1h, 24h, 7d, 30d)
|
|
5681
|
-
* @returns Object with startDate and endDate as ISO 8601 strings
|
|
5682
|
-
*/
|
|
5683
|
-
declare function getTimeRangeDates(range: TimeRange): TimeRangeDates;
|
|
5684
|
-
/**
|
|
5685
|
-
* Get a human-readable label for a time range
|
|
5686
|
-
* @param range - Time range enum
|
|
5687
|
-
* @returns Human-readable label
|
|
5688
|
-
*/
|
|
5689
|
-
declare function getTimeRangeLabel(range: TimeRange): string;
|
|
5812
|
+
declare const PRESETS: Record<PresetName, ThemePreset>;
|
|
5690
5813
|
|
|
5814
|
+
/** Look up a preset by name. Falls back to default preset for unknown names. */
|
|
5815
|
+
declare function getPreset(name: PresetName | (string & {}), presetsMap?: Record<string, ThemePreset>): ThemePreset;
|
|
5816
|
+
|
|
5817
|
+
/** Token key → CSS variable name. Single source of truth for the mapping. */
|
|
5818
|
+
declare const TOKEN_VAR_MAP: Record<keyof ElevasisTokenOverrides, string>;
|
|
5691
5819
|
/**
|
|
5692
|
-
*
|
|
5820
|
+
* Creates a CSS variables resolver from theme config.
|
|
5821
|
+
*
|
|
5822
|
+
* Merge order per scheme: PRESET_DEFAULTS → flat overrides → scheme-specific overrides
|
|
5693
5823
|
*/
|
|
5694
|
-
declare
|
|
5695
|
-
|
|
5696
|
-
|
|
5697
|
-
|
|
5698
|
-
|
|
5699
|
-
|
|
5700
|
-
|
|
5701
|
-
|
|
5702
|
-
|
|
5703
|
-
/**
|
|
5704
|
-
|
|
5824
|
+
declare function createCssVariablesResolver(tokens?: ElevasisCoreThemeConfig['tokens'], preset?: PresetName | (string & {}), presetsMap?: Record<string, ThemePreset>): CSSVariablesResolver;
|
|
5825
|
+
|
|
5826
|
+
declare const mantineThemeOverride: MantineThemeOverride;
|
|
5827
|
+
|
|
5828
|
+
declare const componentThemes: MantineThemeOverride['components'];
|
|
5829
|
+
|
|
5830
|
+
declare const PresetsProvider: react.Provider<Record<string, ThemePreset>>;
|
|
5831
|
+
declare function usePresetsContext(): Record<string, ThemePreset>;
|
|
5832
|
+
|
|
5833
|
+
/** Preset entry with display metadata for settings UI. */
|
|
5834
|
+
interface PresetEntry {
|
|
5835
|
+
/** Preset key (e.g. 'tactical', 'my-custom-brand'). */
|
|
5836
|
+
value: string;
|
|
5837
|
+
/** Display label (e.g. 'Tactical'). Falls back to titlecased key. */
|
|
5838
|
+
label: string;
|
|
5839
|
+
/** Short description. Falls back to empty string. */
|
|
5840
|
+
description: string;
|
|
5841
|
+
/** Three representative hex colors for swatch: [primary, dark-bg, light-bg]. Falls back to preset's dark/light primary + backgrounds. */
|
|
5842
|
+
colors: [string, string, string];
|
|
5843
|
+
/** True for presets not in the built-in PresetName union. */
|
|
5844
|
+
isCustom: boolean;
|
|
5845
|
+
}
|
|
5846
|
+
/** Returns all available presets as UI-ready entries. */
|
|
5847
|
+
declare function useAvailablePresets(): PresetEntry[];
|
|
5705
5848
|
|
|
5706
5849
|
/**
|
|
5707
5850
|
* Merges SSE-streamed logs with fetched execution data for instant log display.
|
|
@@ -6550,7 +6693,37 @@ declare function ScrollToTop(): react_jsx_runtime.JSX.Element;
|
|
|
6550
6693
|
* </ElevasisCoreProvider>
|
|
6551
6694
|
* ```
|
|
6552
6695
|
*/
|
|
6553
|
-
declare function ElevasisCoreProvider({ auth, queryClient, apiUrl, onError, notifications, children }: ElevasisCoreProviderProps): react_jsx_runtime.JSX.Element;
|
|
6696
|
+
declare function ElevasisCoreProvider({ auth, queryClient, apiUrl, onError, notifications, crmActions, children }: ElevasisCoreProviderProps): react_jsx_runtime.JSX.Element;
|
|
6697
|
+
|
|
6698
|
+
/**
|
|
6699
|
+
* Provides the active CRM action definitions to deal action surfaces.
|
|
6700
|
+
*
|
|
6701
|
+
* Defaults to DEFAULT_CRM_ACTIONS. External consumers can override via the
|
|
6702
|
+
* `crmActions` prop on ElevasisCoreProvider / ElevasisUIProvider.
|
|
6703
|
+
*
|
|
6704
|
+
* @example External override
|
|
6705
|
+
* ```tsx
|
|
6706
|
+
* import { DEFAULT_CRM_ACTIONS, type ActionDef } from '@elevasis/sdk'
|
|
6707
|
+
*
|
|
6708
|
+
* const myActions: ActionDef[] = [
|
|
6709
|
+
* ...DEFAULT_CRM_ACTIONS,
|
|
6710
|
+
* { key: 'send_quote', label: 'Send Quote',
|
|
6711
|
+
* isAvailableFor: d => d.stage_key === 'proposal',
|
|
6712
|
+
* workflowId: 'send-quote-workflow' },
|
|
6713
|
+
* ]
|
|
6714
|
+
*
|
|
6715
|
+
* <ElevasisUIProvider crmActions={myActions} ... />
|
|
6716
|
+
* ```
|
|
6717
|
+
*/
|
|
6718
|
+
declare function CrmActionsProvider({ actions, children }: {
|
|
6719
|
+
actions: ActionDef[];
|
|
6720
|
+
children: ReactNode;
|
|
6721
|
+
}): react_jsx_runtime.JSX.Element;
|
|
6722
|
+
/**
|
|
6723
|
+
* Returns the active CRM ActionDef array for the current provider tree.
|
|
6724
|
+
* Defaults to DEFAULT_CRM_ACTIONS if no CrmActionsProvider is mounted above.
|
|
6725
|
+
*/
|
|
6726
|
+
declare function useCrmActions(): ActionDef[];
|
|
6554
6727
|
|
|
6555
6728
|
interface FetchEventSourceWithTokenRefreshOptions {
|
|
6556
6729
|
url: string;
|
|
@@ -6734,6 +6907,9 @@ interface ElevasisThemeConfig extends ElevasisCoreThemeConfig {
|
|
|
6734
6907
|
/**
|
|
6735
6908
|
* Props for ElevasisUIProvider (Mantine variant).
|
|
6736
6909
|
* Extends ElevasisCoreProviderProps with Mantine-aware theme config.
|
|
6910
|
+
*
|
|
6911
|
+
* Accepts `crmActions` from ElevasisCoreProviderProps — pass a custom ActionDef[]
|
|
6912
|
+
* to override or extend the default CRM action set for DealDetailPage / DealDrawer.
|
|
6737
6913
|
*/
|
|
6738
6914
|
interface ElevasisUIProviderProps extends Omit<ElevasisCoreProviderProps, 'theme' | 'notifications'> {
|
|
6739
6915
|
theme?: ElevasisThemeConfig;
|
|
@@ -8604,7 +8780,7 @@ interface DealSummaryStageItem {
|
|
|
8604
8780
|
interface StaleDealSummaryItem {
|
|
8605
8781
|
id: string;
|
|
8606
8782
|
contactEmail: string;
|
|
8607
|
-
|
|
8783
|
+
stageKey: string;
|
|
8608
8784
|
updatedAt: string;
|
|
8609
8785
|
daysStale: number;
|
|
8610
8786
|
}
|
|
@@ -8622,7 +8798,7 @@ interface DealsSummaryResponse {
|
|
|
8622
8798
|
interface DealLookupItem {
|
|
8623
8799
|
id: string;
|
|
8624
8800
|
contactEmail: string;
|
|
8625
|
-
|
|
8801
|
+
stageKey: string | null;
|
|
8626
8802
|
updatedAt: string;
|
|
8627
8803
|
contactName: string | null;
|
|
8628
8804
|
companyName: string | null;
|
|
@@ -8679,13 +8855,14 @@ declare function useDeals(filters?: DealFilters): {
|
|
|
8679
8855
|
organization_id: string;
|
|
8680
8856
|
contact_id: string | null;
|
|
8681
8857
|
contact_email: string;
|
|
8682
|
-
|
|
8858
|
+
pipeline_key: string;
|
|
8859
|
+
stage_key: string | null;
|
|
8860
|
+
state_key: string | null;
|
|
8683
8861
|
activity_log: unknown;
|
|
8684
8862
|
discovery_data: unknown;
|
|
8685
8863
|
discovery_submitted_at: string | null;
|
|
8686
8864
|
discovery_submitted_by: string | null;
|
|
8687
8865
|
proposal_data: unknown;
|
|
8688
|
-
proposal_status: string | null;
|
|
8689
8866
|
proposal_sent_at: string | null;
|
|
8690
8867
|
proposal_pdf_url: string | null;
|
|
8691
8868
|
signature_envelope_id: string | null;
|
|
@@ -8731,13 +8908,14 @@ declare function useDeals(filters?: DealFilters): {
|
|
|
8731
8908
|
organization_id: string;
|
|
8732
8909
|
contact_id: string | null;
|
|
8733
8910
|
contact_email: string;
|
|
8734
|
-
|
|
8911
|
+
pipeline_key: string;
|
|
8912
|
+
stage_key: string | null;
|
|
8913
|
+
state_key: string | null;
|
|
8735
8914
|
activity_log: unknown;
|
|
8736
8915
|
discovery_data: unknown;
|
|
8737
8916
|
discovery_submitted_at: string | null;
|
|
8738
8917
|
discovery_submitted_by: string | null;
|
|
8739
8918
|
proposal_data: unknown;
|
|
8740
|
-
proposal_status: string | null;
|
|
8741
8919
|
proposal_sent_at: string | null;
|
|
8742
8920
|
proposal_pdf_url: string | null;
|
|
8743
8921
|
signature_envelope_id: string | null;
|
|
@@ -8796,17 +8974,39 @@ declare function useDeleteDeal(): _tanstack_react_query.UseMutationResult<void,
|
|
|
8796
8974
|
|
|
8797
8975
|
declare function useDealDetail(acqDealId: string): _tanstack_react_query.UseQueryResult<DealListItem | null, Error>;
|
|
8798
8976
|
|
|
8799
|
-
interface
|
|
8977
|
+
interface TransitionItemInput {
|
|
8800
8978
|
dealId: string;
|
|
8801
|
-
|
|
8979
|
+
pipelineKey: string;
|
|
8980
|
+
stageKey: string;
|
|
8981
|
+
stateKey?: string | null;
|
|
8982
|
+
reason?: string;
|
|
8983
|
+
expectedUpdatedAt?: string;
|
|
8984
|
+
}
|
|
8985
|
+
/**
|
|
8986
|
+
* Transition a deal's stage/state via the PATCH /deals/:dealId/transition endpoint.
|
|
8987
|
+
*
|
|
8988
|
+
* The backend transitionItem handler logs a stage_change activity entry and enforces
|
|
8989
|
+
* optimistic-concurrency via expectedUpdatedAt (optional).
|
|
8990
|
+
* On success invalidates the deals list, summaries, and the specific deal detail query.
|
|
8991
|
+
*/
|
|
8992
|
+
declare function useTransitionItem(): _tanstack_react_query.UseMutationResult<void, Error, TransitionItemInput, unknown>;
|
|
8993
|
+
|
|
8994
|
+
interface ExecuteActionInput {
|
|
8995
|
+
key: string;
|
|
8996
|
+
payload?: Record<string, unknown>;
|
|
8802
8997
|
}
|
|
8803
8998
|
/**
|
|
8804
|
-
*
|
|
8999
|
+
* Execute a CRM deal action via POST /deals/:dealId/actions/:key.
|
|
9000
|
+
*
|
|
9001
|
+
* The server validates availability server-authoritatively, dispatches through
|
|
9002
|
+
* the unified workflow path via the action definition's workflowId, and emits an
|
|
9003
|
+
* action_taken activity event.
|
|
8805
9004
|
*
|
|
8806
|
-
*
|
|
8807
|
-
* On success invalidates the deals list and the specific deal detail query.
|
|
9005
|
+
* On success invalidates the deal detail and deals list queries.
|
|
8808
9006
|
*/
|
|
8809
|
-
declare function
|
|
9007
|
+
declare function useExecuteAction({ dealId }: {
|
|
9008
|
+
dealId: string;
|
|
9009
|
+
}): _tanstack_react_query.UseMutationResult<void, Error, ExecuteActionInput, unknown>;
|
|
8810
9010
|
|
|
8811
9011
|
/**
|
|
8812
9012
|
* Query keys for deal notes
|
|
@@ -8900,45 +9100,32 @@ declare function useLists(): _tanstack_react_query.UseQueryResult<{
|
|
|
8900
9100
|
type: string;
|
|
8901
9101
|
batchIds: string[];
|
|
8902
9102
|
instantlyCampaignId: string | null;
|
|
8903
|
-
status:
|
|
9103
|
+
status: "closing" | "draft" | "enriching" | "launched" | "archived";
|
|
8904
9104
|
metadata: Record<string, unknown>;
|
|
8905
9105
|
launchedAt: string | null;
|
|
8906
9106
|
completedAt: string | null;
|
|
8907
9107
|
createdAt: string;
|
|
8908
|
-
|
|
8909
|
-
|
|
8910
|
-
|
|
8911
|
-
|
|
8912
|
-
|
|
8913
|
-
|
|
8914
|
-
|
|
8915
|
-
|
|
8916
|
-
|
|
8917
|
-
|
|
8918
|
-
|
|
8919
|
-
|
|
8920
|
-
|
|
8921
|
-
|
|
8922
|
-
|
|
8923
|
-
|
|
8924
|
-
|
|
8925
|
-
|
|
8926
|
-
|
|
8927
|
-
|
|
8928
|
-
|
|
8929
|
-
creativeDirection?: string | undefined;
|
|
8930
|
-
exclusionRules?: string[] | undefined;
|
|
8931
|
-
} | undefined;
|
|
8932
|
-
pipeline?: {
|
|
8933
|
-
steps: {
|
|
8934
|
-
key: string;
|
|
8935
|
-
label: string;
|
|
8936
|
-
resourceId: string;
|
|
8937
|
-
inputTemplate: Record<string, unknown>;
|
|
8938
|
-
enabled: boolean;
|
|
8939
|
-
order: number;
|
|
8940
|
-
}[];
|
|
8941
|
-
} | undefined;
|
|
9108
|
+
scrapingConfig: {
|
|
9109
|
+
vertical?: string | undefined;
|
|
9110
|
+
geography?: string | undefined;
|
|
9111
|
+
size?: string | undefined;
|
|
9112
|
+
apifyInput?: Record<string, unknown> | undefined;
|
|
9113
|
+
};
|
|
9114
|
+
icp: {
|
|
9115
|
+
qualificationRubricKey?: string | null | undefined;
|
|
9116
|
+
targetDescription?: string | undefined;
|
|
9117
|
+
minReviewCount?: number | undefined;
|
|
9118
|
+
minRating?: number | undefined;
|
|
9119
|
+
excludeFranchises?: boolean | undefined;
|
|
9120
|
+
customRules?: string | undefined;
|
|
9121
|
+
};
|
|
9122
|
+
pipelineConfig: {
|
|
9123
|
+
stages?: {
|
|
9124
|
+
key: string;
|
|
9125
|
+
label?: string | undefined;
|
|
9126
|
+
enabled?: boolean | undefined;
|
|
9127
|
+
order?: number | undefined;
|
|
9128
|
+
}[] | undefined;
|
|
8942
9129
|
};
|
|
8943
9130
|
}[], Error>;
|
|
8944
9131
|
declare function useList(listId: string): _tanstack_react_query.UseQueryResult<{
|
|
@@ -8949,49 +9136,47 @@ declare function useList(listId: string): _tanstack_react_query.UseQueryResult<{
|
|
|
8949
9136
|
type: string;
|
|
8950
9137
|
batchIds: string[];
|
|
8951
9138
|
instantlyCampaignId: string | null;
|
|
8952
|
-
status:
|
|
9139
|
+
status: "closing" | "draft" | "enriching" | "launched" | "archived";
|
|
8953
9140
|
metadata: Record<string, unknown>;
|
|
8954
9141
|
launchedAt: string | null;
|
|
8955
9142
|
completedAt: string | null;
|
|
8956
9143
|
createdAt: string;
|
|
8957
|
-
|
|
8958
|
-
|
|
8959
|
-
|
|
8960
|
-
|
|
8961
|
-
|
|
8962
|
-
|
|
8963
|
-
|
|
8964
|
-
|
|
8965
|
-
|
|
8966
|
-
|
|
8967
|
-
|
|
8968
|
-
|
|
8969
|
-
|
|
8970
|
-
|
|
8971
|
-
|
|
8972
|
-
|
|
8973
|
-
|
|
8974
|
-
|
|
8975
|
-
|
|
8976
|
-
|
|
8977
|
-
|
|
8978
|
-
creativeDirection?: string | undefined;
|
|
8979
|
-
exclusionRules?: string[] | undefined;
|
|
8980
|
-
} | undefined;
|
|
8981
|
-
pipeline?: {
|
|
8982
|
-
steps: {
|
|
8983
|
-
key: string;
|
|
8984
|
-
label: string;
|
|
8985
|
-
resourceId: string;
|
|
8986
|
-
inputTemplate: Record<string, unknown>;
|
|
8987
|
-
enabled: boolean;
|
|
8988
|
-
order: number;
|
|
8989
|
-
}[];
|
|
8990
|
-
} | undefined;
|
|
9144
|
+
scrapingConfig: {
|
|
9145
|
+
vertical?: string | undefined;
|
|
9146
|
+
geography?: string | undefined;
|
|
9147
|
+
size?: string | undefined;
|
|
9148
|
+
apifyInput?: Record<string, unknown> | undefined;
|
|
9149
|
+
};
|
|
9150
|
+
icp: {
|
|
9151
|
+
qualificationRubricKey?: string | null | undefined;
|
|
9152
|
+
targetDescription?: string | undefined;
|
|
9153
|
+
minReviewCount?: number | undefined;
|
|
9154
|
+
minRating?: number | undefined;
|
|
9155
|
+
excludeFranchises?: boolean | undefined;
|
|
9156
|
+
customRules?: string | undefined;
|
|
9157
|
+
};
|
|
9158
|
+
pipelineConfig: {
|
|
9159
|
+
stages?: {
|
|
9160
|
+
key: string;
|
|
9161
|
+
label?: string | undefined;
|
|
9162
|
+
enabled?: boolean | undefined;
|
|
9163
|
+
order?: number | undefined;
|
|
9164
|
+
}[] | undefined;
|
|
8991
9165
|
};
|
|
8992
9166
|
}, Error>;
|
|
8993
9167
|
declare function useListsTelemetry(): _tanstack_react_query.UseQueryResult<ListTelemetry[], Error>;
|
|
8994
|
-
declare function useListProgress(listId: string): _tanstack_react_query.UseQueryResult<
|
|
9168
|
+
declare function useListProgress(listId: string): _tanstack_react_query.UseQueryResult<{
|
|
9169
|
+
totalMembers: number;
|
|
9170
|
+
totalCompanies: number;
|
|
9171
|
+
byCompanyStage: Record<string, {
|
|
9172
|
+
done: number;
|
|
9173
|
+
total: number;
|
|
9174
|
+
}>;
|
|
9175
|
+
byContactStage: Record<string, {
|
|
9176
|
+
done: number;
|
|
9177
|
+
total: number;
|
|
9178
|
+
}>;
|
|
9179
|
+
}, Error>;
|
|
8995
9180
|
declare function useListExecutions(listId: string): _tanstack_react_query.UseQueryResult<{
|
|
8996
9181
|
executionId: string;
|
|
8997
9182
|
resourceId: string;
|
|
@@ -9008,84 +9193,58 @@ declare function useCreateList(): _tanstack_react_query.UseMutationResult<{
|
|
|
9008
9193
|
type: string;
|
|
9009
9194
|
batchIds: string[];
|
|
9010
9195
|
instantlyCampaignId: string | null;
|
|
9011
|
-
status:
|
|
9196
|
+
status: "closing" | "draft" | "enriching" | "launched" | "archived";
|
|
9012
9197
|
metadata: Record<string, unknown>;
|
|
9013
9198
|
launchedAt: string | null;
|
|
9014
9199
|
completedAt: string | null;
|
|
9015
9200
|
createdAt: string;
|
|
9016
|
-
|
|
9017
|
-
|
|
9018
|
-
|
|
9019
|
-
|
|
9020
|
-
|
|
9021
|
-
|
|
9022
|
-
|
|
9023
|
-
|
|
9024
|
-
|
|
9025
|
-
|
|
9026
|
-
|
|
9027
|
-
|
|
9028
|
-
|
|
9029
|
-
|
|
9030
|
-
|
|
9031
|
-
|
|
9032
|
-
|
|
9033
|
-
|
|
9034
|
-
|
|
9035
|
-
|
|
9036
|
-
|
|
9037
|
-
creativeDirection?: string | undefined;
|
|
9038
|
-
exclusionRules?: string[] | undefined;
|
|
9039
|
-
} | undefined;
|
|
9040
|
-
pipeline?: {
|
|
9041
|
-
steps: {
|
|
9042
|
-
key: string;
|
|
9043
|
-
label: string;
|
|
9044
|
-
resourceId: string;
|
|
9045
|
-
inputTemplate: Record<string, unknown>;
|
|
9046
|
-
enabled: boolean;
|
|
9047
|
-
order: number;
|
|
9048
|
-
}[];
|
|
9049
|
-
} | undefined;
|
|
9201
|
+
scrapingConfig: {
|
|
9202
|
+
vertical?: string | undefined;
|
|
9203
|
+
geography?: string | undefined;
|
|
9204
|
+
size?: string | undefined;
|
|
9205
|
+
apifyInput?: Record<string, unknown> | undefined;
|
|
9206
|
+
};
|
|
9207
|
+
icp: {
|
|
9208
|
+
qualificationRubricKey?: string | null | undefined;
|
|
9209
|
+
targetDescription?: string | undefined;
|
|
9210
|
+
minReviewCount?: number | undefined;
|
|
9211
|
+
minRating?: number | undefined;
|
|
9212
|
+
excludeFranchises?: boolean | undefined;
|
|
9213
|
+
customRules?: string | undefined;
|
|
9214
|
+
};
|
|
9215
|
+
pipelineConfig: {
|
|
9216
|
+
stages?: {
|
|
9217
|
+
key: string;
|
|
9218
|
+
label?: string | undefined;
|
|
9219
|
+
enabled?: boolean | undefined;
|
|
9220
|
+
order?: number | undefined;
|
|
9221
|
+
}[] | undefined;
|
|
9050
9222
|
};
|
|
9051
9223
|
}, Error, {
|
|
9052
9224
|
name: string;
|
|
9053
|
-
type: string;
|
|
9054
9225
|
description?: string | null | undefined;
|
|
9055
|
-
|
|
9056
|
-
|
|
9057
|
-
|
|
9058
|
-
|
|
9059
|
-
|
|
9060
|
-
|
|
9061
|
-
|
|
9062
|
-
|
|
9063
|
-
|
|
9064
|
-
|
|
9065
|
-
|
|
9066
|
-
|
|
9067
|
-
|
|
9068
|
-
|
|
9069
|
-
|
|
9070
|
-
|
|
9071
|
-
|
|
9072
|
-
|
|
9073
|
-
|
|
9074
|
-
|
|
9075
|
-
|
|
9076
|
-
|
|
9077
|
-
exclusionRules?: string[] | undefined;
|
|
9078
|
-
} | undefined;
|
|
9079
|
-
pipeline?: {
|
|
9080
|
-
steps: {
|
|
9081
|
-
key: string;
|
|
9082
|
-
label: string;
|
|
9083
|
-
resourceId: string;
|
|
9084
|
-
inputTemplate: Record<string, unknown>;
|
|
9085
|
-
enabled: boolean;
|
|
9086
|
-
order: number;
|
|
9087
|
-
}[];
|
|
9088
|
-
} | undefined;
|
|
9226
|
+
status?: "closing" | "draft" | "enriching" | "launched" | "archived" | undefined;
|
|
9227
|
+
scrapingConfig?: {
|
|
9228
|
+
vertical?: string | undefined;
|
|
9229
|
+
geography?: string | undefined;
|
|
9230
|
+
size?: string | undefined;
|
|
9231
|
+
apifyInput?: Record<string, unknown> | undefined;
|
|
9232
|
+
} | undefined;
|
|
9233
|
+
icp?: {
|
|
9234
|
+
qualificationRubricKey?: string | null | undefined;
|
|
9235
|
+
targetDescription?: string | undefined;
|
|
9236
|
+
minReviewCount?: number | undefined;
|
|
9237
|
+
minRating?: number | undefined;
|
|
9238
|
+
excludeFranchises?: boolean | undefined;
|
|
9239
|
+
customRules?: string | undefined;
|
|
9240
|
+
} | undefined;
|
|
9241
|
+
pipelineConfig?: {
|
|
9242
|
+
stages?: {
|
|
9243
|
+
key: string;
|
|
9244
|
+
label?: string | undefined;
|
|
9245
|
+
enabled?: boolean | undefined;
|
|
9246
|
+
order?: number | undefined;
|
|
9247
|
+
}[] | undefined;
|
|
9089
9248
|
} | undefined;
|
|
9090
9249
|
}, unknown>;
|
|
9091
9250
|
declare function useUpdateList(listId: string): _tanstack_react_query.UseMutationResult<{
|
|
@@ -9096,50 +9255,36 @@ declare function useUpdateList(listId: string): _tanstack_react_query.UseMutatio
|
|
|
9096
9255
|
type: string;
|
|
9097
9256
|
batchIds: string[];
|
|
9098
9257
|
instantlyCampaignId: string | null;
|
|
9099
|
-
status:
|
|
9258
|
+
status: "closing" | "draft" | "enriching" | "launched" | "archived";
|
|
9100
9259
|
metadata: Record<string, unknown>;
|
|
9101
9260
|
launchedAt: string | null;
|
|
9102
9261
|
completedAt: string | null;
|
|
9103
9262
|
createdAt: string;
|
|
9104
|
-
|
|
9105
|
-
|
|
9106
|
-
|
|
9107
|
-
|
|
9108
|
-
|
|
9109
|
-
|
|
9110
|
-
|
|
9111
|
-
|
|
9112
|
-
|
|
9113
|
-
|
|
9114
|
-
|
|
9115
|
-
|
|
9116
|
-
|
|
9117
|
-
|
|
9118
|
-
|
|
9119
|
-
|
|
9120
|
-
|
|
9121
|
-
|
|
9122
|
-
|
|
9123
|
-
|
|
9124
|
-
|
|
9125
|
-
creativeDirection?: string | undefined;
|
|
9126
|
-
exclusionRules?: string[] | undefined;
|
|
9127
|
-
} | undefined;
|
|
9128
|
-
pipeline?: {
|
|
9129
|
-
steps: {
|
|
9130
|
-
key: string;
|
|
9131
|
-
label: string;
|
|
9132
|
-
resourceId: string;
|
|
9133
|
-
inputTemplate: Record<string, unknown>;
|
|
9134
|
-
enabled: boolean;
|
|
9135
|
-
order: number;
|
|
9136
|
-
}[];
|
|
9137
|
-
} | undefined;
|
|
9263
|
+
scrapingConfig: {
|
|
9264
|
+
vertical?: string | undefined;
|
|
9265
|
+
geography?: string | undefined;
|
|
9266
|
+
size?: string | undefined;
|
|
9267
|
+
apifyInput?: Record<string, unknown> | undefined;
|
|
9268
|
+
};
|
|
9269
|
+
icp: {
|
|
9270
|
+
qualificationRubricKey?: string | null | undefined;
|
|
9271
|
+
targetDescription?: string | undefined;
|
|
9272
|
+
minReviewCount?: number | undefined;
|
|
9273
|
+
minRating?: number | undefined;
|
|
9274
|
+
excludeFranchises?: boolean | undefined;
|
|
9275
|
+
customRules?: string | undefined;
|
|
9276
|
+
};
|
|
9277
|
+
pipelineConfig: {
|
|
9278
|
+
stages?: {
|
|
9279
|
+
key: string;
|
|
9280
|
+
label?: string | undefined;
|
|
9281
|
+
enabled?: boolean | undefined;
|
|
9282
|
+
order?: number | undefined;
|
|
9283
|
+
}[] | undefined;
|
|
9138
9284
|
};
|
|
9139
9285
|
}, Error, {
|
|
9140
9286
|
name?: string | undefined;
|
|
9141
9287
|
description?: string | null | undefined;
|
|
9142
|
-
status?: string | undefined;
|
|
9143
9288
|
batchIds?: string[] | undefined;
|
|
9144
9289
|
}, unknown>;
|
|
9145
9290
|
declare function useUpdateListConfig(listId: string): _tanstack_react_query.UseMutationResult<{
|
|
@@ -9150,78 +9295,54 @@ declare function useUpdateListConfig(listId: string): _tanstack_react_query.UseM
|
|
|
9150
9295
|
type: string;
|
|
9151
9296
|
batchIds: string[];
|
|
9152
9297
|
instantlyCampaignId: string | null;
|
|
9153
|
-
status:
|
|
9298
|
+
status: "closing" | "draft" | "enriching" | "launched" | "archived";
|
|
9154
9299
|
metadata: Record<string, unknown>;
|
|
9155
9300
|
launchedAt: string | null;
|
|
9156
9301
|
completedAt: string | null;
|
|
9157
9302
|
createdAt: string;
|
|
9158
|
-
|
|
9159
|
-
|
|
9160
|
-
|
|
9161
|
-
|
|
9162
|
-
|
|
9163
|
-
excludeFranchises: boolean;
|
|
9164
|
-
customRules: string;
|
|
9165
|
-
};
|
|
9166
|
-
enrichment?: {
|
|
9167
|
-
emailDiscovery?: {
|
|
9168
|
-
primary: "tomba" | "anymailfinder";
|
|
9169
|
-
credentialName?: string | undefined;
|
|
9170
|
-
} | undefined;
|
|
9171
|
-
emailVerification?: {
|
|
9172
|
-
provider: "millionverifier";
|
|
9173
|
-
threshold?: "ok" | "ok+catch_all" | undefined;
|
|
9174
|
-
} | undefined;
|
|
9175
|
-
} | undefined;
|
|
9176
|
-
personalization?: {
|
|
9177
|
-
industryContext?: string | undefined;
|
|
9178
|
-
emailBody?: string | undefined;
|
|
9179
|
-
creativeDirection?: string | undefined;
|
|
9180
|
-
exclusionRules?: string[] | undefined;
|
|
9181
|
-
} | undefined;
|
|
9182
|
-
pipeline?: {
|
|
9183
|
-
steps: {
|
|
9184
|
-
key: string;
|
|
9185
|
-
label: string;
|
|
9186
|
-
resourceId: string;
|
|
9187
|
-
inputTemplate: Record<string, unknown>;
|
|
9188
|
-
enabled: boolean;
|
|
9189
|
-
order: number;
|
|
9190
|
-
}[];
|
|
9191
|
-
} | undefined;
|
|
9303
|
+
scrapingConfig: {
|
|
9304
|
+
vertical?: string | undefined;
|
|
9305
|
+
geography?: string | undefined;
|
|
9306
|
+
size?: string | undefined;
|
|
9307
|
+
apifyInput?: Record<string, unknown> | undefined;
|
|
9192
9308
|
};
|
|
9193
|
-
|
|
9194
|
-
|
|
9309
|
+
icp: {
|
|
9310
|
+
qualificationRubricKey?: string | null | undefined;
|
|
9195
9311
|
targetDescription?: string | undefined;
|
|
9196
9312
|
minReviewCount?: number | undefined;
|
|
9197
9313
|
minRating?: number | undefined;
|
|
9198
9314
|
excludeFranchises?: boolean | undefined;
|
|
9199
9315
|
customRules?: string | undefined;
|
|
9316
|
+
};
|
|
9317
|
+
pipelineConfig: {
|
|
9318
|
+
stages?: {
|
|
9319
|
+
key: string;
|
|
9320
|
+
label?: string | undefined;
|
|
9321
|
+
enabled?: boolean | undefined;
|
|
9322
|
+
order?: number | undefined;
|
|
9323
|
+
}[] | undefined;
|
|
9324
|
+
};
|
|
9325
|
+
}, Error, {
|
|
9326
|
+
scrapingConfig?: {
|
|
9327
|
+
vertical?: string | undefined;
|
|
9328
|
+
geography?: string | undefined;
|
|
9329
|
+
size?: string | undefined;
|
|
9330
|
+
apifyInput?: Record<string, unknown> | undefined;
|
|
9200
9331
|
} | undefined;
|
|
9201
|
-
|
|
9202
|
-
|
|
9203
|
-
|
|
9204
|
-
|
|
9205
|
-
|
|
9206
|
-
|
|
9207
|
-
|
|
9208
|
-
threshold?: "ok" | "ok+catch_all" | undefined;
|
|
9209
|
-
} | undefined;
|
|
9210
|
-
} | undefined;
|
|
9211
|
-
personalization?: {
|
|
9212
|
-
industryContext?: string | undefined;
|
|
9213
|
-
emailBody?: string | undefined;
|
|
9214
|
-
creativeDirection?: string | undefined;
|
|
9215
|
-
exclusionRules?: string[] | undefined;
|
|
9332
|
+
icp?: {
|
|
9333
|
+
qualificationRubricKey?: string | null | undefined;
|
|
9334
|
+
targetDescription?: string | undefined;
|
|
9335
|
+
minReviewCount?: number | undefined;
|
|
9336
|
+
minRating?: number | undefined;
|
|
9337
|
+
excludeFranchises?: boolean | undefined;
|
|
9338
|
+
customRules?: string | undefined;
|
|
9216
9339
|
} | undefined;
|
|
9217
|
-
|
|
9218
|
-
|
|
9340
|
+
pipelineConfig?: {
|
|
9341
|
+
stages?: {
|
|
9219
9342
|
key: string;
|
|
9220
|
-
label
|
|
9221
|
-
|
|
9222
|
-
|
|
9223
|
-
enabled: boolean;
|
|
9224
|
-
order: number;
|
|
9343
|
+
label?: string | undefined;
|
|
9344
|
+
enabled?: boolean | undefined;
|
|
9345
|
+
order?: number | undefined;
|
|
9225
9346
|
}[] | undefined;
|
|
9226
9347
|
} | undefined;
|
|
9227
9348
|
}, unknown>;
|
|
@@ -9566,6 +9687,166 @@ declare function useUpdateContact(contactId: string): _tanstack_react_query.UseM
|
|
|
9566
9687
|
}, unknown>;
|
|
9567
9688
|
declare function useDeleteContacts(): _tanstack_react_query.UseMutationResult<void, Error, string[], unknown>;
|
|
9568
9689
|
|
|
9690
|
+
declare const leadGenArtifactKeys: {
|
|
9691
|
+
all: readonly ["lead-gen-artifacts"];
|
|
9692
|
+
list: (organizationId: string | null, ownerKind: AcqArtifactOwnerKind, ownerId: string) => readonly ["lead-gen-artifacts", string | null, "company" | "contact" | "list" | "deal" | "list_member", string];
|
|
9693
|
+
};
|
|
9694
|
+
interface UseArtifactsParams {
|
|
9695
|
+
ownerKind: AcqArtifactOwnerKind;
|
|
9696
|
+
ownerId: string;
|
|
9697
|
+
}
|
|
9698
|
+
declare function useArtifacts({ ownerKind, ownerId }: UseArtifactsParams): _tanstack_react_query.UseQueryResult<{
|
|
9699
|
+
artifacts: {
|
|
9700
|
+
id: string;
|
|
9701
|
+
organizationId: string;
|
|
9702
|
+
ownerKind: string;
|
|
9703
|
+
ownerId: string;
|
|
9704
|
+
kind: string;
|
|
9705
|
+
content: Record<string, unknown>;
|
|
9706
|
+
sourceExecutionId: string | null;
|
|
9707
|
+
createdBy: string | null;
|
|
9708
|
+
createdAt: string;
|
|
9709
|
+
version: number;
|
|
9710
|
+
}[];
|
|
9711
|
+
}, Error>;
|
|
9712
|
+
declare function useCreateArtifact(): _tanstack_react_query.UseMutationResult<{
|
|
9713
|
+
id: string;
|
|
9714
|
+
organizationId: string;
|
|
9715
|
+
ownerKind: string;
|
|
9716
|
+
ownerId: string;
|
|
9717
|
+
kind: string;
|
|
9718
|
+
content: Record<string, unknown>;
|
|
9719
|
+
sourceExecutionId: string | null;
|
|
9720
|
+
createdBy: string | null;
|
|
9721
|
+
createdAt: string;
|
|
9722
|
+
version: number;
|
|
9723
|
+
}, Error, {
|
|
9724
|
+
ownerKind: "company" | "contact" | "list" | "deal" | "list_member";
|
|
9725
|
+
ownerId: string;
|
|
9726
|
+
kind: string;
|
|
9727
|
+
content: Record<string, unknown>;
|
|
9728
|
+
sourceExecutionId?: string | undefined;
|
|
9729
|
+
}, unknown>;
|
|
9730
|
+
|
|
9731
|
+
declare const leadGenListMemberKeys: {
|
|
9732
|
+
all: readonly ["lead-gen-list-members"];
|
|
9733
|
+
list: (organizationId: string | null, listId: string) => readonly ["lead-gen-list-members", string | null, "list", string];
|
|
9734
|
+
detail: (organizationId: string | null, memberId: string) => readonly ["lead-gen-list-members", string | null, "detail", string];
|
|
9735
|
+
};
|
|
9736
|
+
declare function useListMembers({ listId }: {
|
|
9737
|
+
listId: string;
|
|
9738
|
+
}): _tanstack_react_query.UseQueryResult<{
|
|
9739
|
+
members: {
|
|
9740
|
+
id: string;
|
|
9741
|
+
listId: string;
|
|
9742
|
+
contactId: string;
|
|
9743
|
+
pipelineKey: string;
|
|
9744
|
+
stageKey: string;
|
|
9745
|
+
stateKey: string;
|
|
9746
|
+
activityLog: unknown;
|
|
9747
|
+
addedAt: string;
|
|
9748
|
+
addedBy: string | null;
|
|
9749
|
+
sourceExecutionId: string | null;
|
|
9750
|
+
contact: {
|
|
9751
|
+
id: string;
|
|
9752
|
+
email: string;
|
|
9753
|
+
firstName: string | null;
|
|
9754
|
+
lastName: string | null;
|
|
9755
|
+
title: string | null;
|
|
9756
|
+
linkedinUrl: string | null;
|
|
9757
|
+
companyId: string | null;
|
|
9758
|
+
} | null;
|
|
9759
|
+
}[];
|
|
9760
|
+
}, Error>;
|
|
9761
|
+
declare function useListMember(memberId: string): _tanstack_react_query.UseQueryResult<{
|
|
9762
|
+
id: string;
|
|
9763
|
+
listId: string;
|
|
9764
|
+
contactId: string;
|
|
9765
|
+
pipelineKey: string;
|
|
9766
|
+
stageKey: string;
|
|
9767
|
+
stateKey: string;
|
|
9768
|
+
activityLog: unknown;
|
|
9769
|
+
addedAt: string;
|
|
9770
|
+
addedBy: string | null;
|
|
9771
|
+
sourceExecutionId: string | null;
|
|
9772
|
+
contact: {
|
|
9773
|
+
id: string;
|
|
9774
|
+
email: string;
|
|
9775
|
+
firstName: string | null;
|
|
9776
|
+
lastName: string | null;
|
|
9777
|
+
title: string | null;
|
|
9778
|
+
linkedinUrl: string | null;
|
|
9779
|
+
companyId: string | null;
|
|
9780
|
+
} | null;
|
|
9781
|
+
}, Error>;
|
|
9782
|
+
|
|
9783
|
+
interface TransitionListMemberInput extends TransitionItemRequest {
|
|
9784
|
+
memberId: string;
|
|
9785
|
+
/** Used to invalidate the parent list's member roster after transition. */
|
|
9786
|
+
listId?: string;
|
|
9787
|
+
}
|
|
9788
|
+
/**
|
|
9789
|
+
* Transition a list-member's stage/state via PATCH /acquisition/list-members/:memberId/transition.
|
|
9790
|
+
*
|
|
9791
|
+
* On success invalidates the member detail and, if listId is provided, the member
|
|
9792
|
+
* roster for that list. Mirrors useTransitionItem.ts structure.
|
|
9793
|
+
*/
|
|
9794
|
+
declare function useTransitionListMember(): _tanstack_react_query.UseMutationResult<void, Error, TransitionListMemberInput, unknown>;
|
|
9795
|
+
|
|
9796
|
+
declare const leadGenListCompanyKeys: {
|
|
9797
|
+
all: readonly ["lead-gen-list-companies"];
|
|
9798
|
+
detail: (organizationId: string | null, listCompanyId: string) => readonly ["lead-gen-list-companies", string | null, "detail", string];
|
|
9799
|
+
};
|
|
9800
|
+
interface TransitionListCompanyInput extends TransitionItemRequest {
|
|
9801
|
+
listCompanyId: string;
|
|
9802
|
+
/** Used to invalidate the parent list telemetry after transition. */
|
|
9803
|
+
listId?: string;
|
|
9804
|
+
}
|
|
9805
|
+
/**
|
|
9806
|
+
* Transition a list-company's stage/state via PATCH /acquisition/list-companies/:listCompanyId/transition.
|
|
9807
|
+
*
|
|
9808
|
+
* On success invalidates the list-company detail and, if listId is provided, the
|
|
9809
|
+
* parent list telemetry. Mirrors useTransitionItem.ts structure.
|
|
9810
|
+
*/
|
|
9811
|
+
declare function useTransitionListCompany(): _tanstack_react_query.UseMutationResult<void, Error, TransitionListCompanyInput, unknown>;
|
|
9812
|
+
|
|
9813
|
+
/**
|
|
9814
|
+
* Stateful item shape accepted by useDeriveActions.
|
|
9815
|
+
*
|
|
9816
|
+
* Currently deriveActions() is typed for AcqDealRow (CRM HITL deals). For lists
|
|
9817
|
+
* and list-members we accept the Stateful quartet + id so callers can pass those
|
|
9818
|
+
* items without a cast. When a third pipeline appears, consolidate into a shared
|
|
9819
|
+
* trait method on deriveActions itself.
|
|
9820
|
+
*
|
|
9821
|
+
* Decision C3: duplicate per-entity logic until a third pipeline warrants abstraction.
|
|
9822
|
+
*/
|
|
9823
|
+
interface StatefulItem {
|
|
9824
|
+
id: string;
|
|
9825
|
+
pipeline_key: string;
|
|
9826
|
+
stage_key: string | null;
|
|
9827
|
+
state_key: string | null;
|
|
9828
|
+
activity_log: unknown;
|
|
9829
|
+
organization_id?: string;
|
|
9830
|
+
}
|
|
9831
|
+
/**
|
|
9832
|
+
* Derives contextual action buttons for a Stateful item.
|
|
9833
|
+
*
|
|
9834
|
+
* For deal items the full deriveActions() logic from @repo/core runs.
|
|
9835
|
+
* For non-deal items (lists, list-members, list-companies) the pipeline key
|
|
9836
|
+
* is 'lead-gen' and the action set will be wired in Track C Step 5+6 once
|
|
9837
|
+
* the lead-gen pipeline definition ships action configs. Returns [] until then.
|
|
9838
|
+
*
|
|
9839
|
+
* @param item - Any Stateful item (deal, list, list-member, etc.)
|
|
9840
|
+
* @returns Derived Action[] for rendering in an action toolbar.
|
|
9841
|
+
*/
|
|
9842
|
+
declare function useDeriveActions(item: StatefulItem | null | undefined): Action[];
|
|
9843
|
+
|
|
9844
|
+
interface UpdateListStatusInput {
|
|
9845
|
+
listId: string;
|
|
9846
|
+
status: ListStatus;
|
|
9847
|
+
}
|
|
9848
|
+
declare function useUpdateListStatus(): _tanstack_react_query.UseMutationResult<void, Error, UpdateListStatusInput, unknown>;
|
|
9849
|
+
|
|
9569
9850
|
interface CreateApiKeyRequest {
|
|
9570
9851
|
name: string;
|
|
9571
9852
|
}
|
|
@@ -10737,6 +11018,16 @@ interface OrganizationSwitcherProps {
|
|
|
10737
11018
|
}
|
|
10738
11019
|
declare function OrganizationSwitcher({ currentOrganization, memberships, isLoading, onSwitch }: OrganizationSwitcherProps): react_jsx_runtime.JSX.Element;
|
|
10739
11020
|
|
|
11021
|
+
/**
|
|
11022
|
+
* Self-wired OrganizationSwitcher that internally handles both the WorkOS JWT update
|
|
11023
|
+
* (via AuthKit switchToOrganization) and the provider state update (via switchOrganization).
|
|
11024
|
+
*
|
|
11025
|
+
* Drop-in replacement for a custom onSwitch handler in most apps. If the app needs
|
|
11026
|
+
* post-switch side effects (e.g. navigating away from an org-scoped route), keep that
|
|
11027
|
+
* logic app-local and call useOrganization().switchOrganization directly.
|
|
11028
|
+
*/
|
|
11029
|
+
declare function OrganizationSwitcherConnected(): react_jsx_runtime.JSX.Element;
|
|
11030
|
+
|
|
10740
11031
|
interface OrganizationsState {
|
|
10741
11032
|
currentWorkOSOrganizationId: string | null;
|
|
10742
11033
|
currentSupabaseOrganizationId: string | null;
|
|
@@ -10924,5 +11215,5 @@ declare function InitializationProvider({ children }: {
|
|
|
10924
11215
|
children: ReactNode;
|
|
10925
11216
|
}): react.FunctionComponentElement<react.ProviderProps<AppInitializationState | null>>;
|
|
10926
11217
|
|
|
10927
|
-
export { AGENT_CONSTANTS, APIClientError, API_URL, AdminGuard, ApiClientProvider, ApiKeyService, AppearanceProvider, AuthProvider, CONTAINER_CONSTANTS, CredentialService, DEBOUNCE_FILTER, DEBOUNCE_SLIDER, DeploymentService, ElevasisCoreProvider, ElevasisFeaturesProvider, ElevasisServiceProvider, ElevasisUIProvider, FeatureShell, GC_TIME_LONG, GC_TIME_MEDIUM, GC_TIME_SHORT, GRAPH_CONSTANTS, InitializationContext, InitializationProvider, LIMIT_ACTIVITY_FEED, NotificationProvider, OAUTH_FLOW_TIMEOUT, OAUTH_POPUP_CHECK_INTERVAL, OperationsService, OrganizationContext, OrganizationMembershipService, OrganizationProvider, OrganizationSwitcher, PAGE_SIZE_DEFAULT, PresetsProvider, ProfileProvider, ProtectedRoute, REFETCH_INTERVAL_DASHBOARD, REFETCH_INTERVAL_REALTIME, REFETCH_INTERVAL_RUNNING, REFETCH_INTERVAL_RUNNING_FAST, ResourceStatusColors, RouterProvider, SHARED_VIZ_CONSTANTS, SSE_CLOSE_GRACE_PERIOD, SSE_TOKEN_REFRESH_DELAY, STALE_TIME_ADMIN, STALE_TIME_DEFAULT, STALE_TIME_MONITORING, STATUS_COLORS, ScrollToTop, TIMELINE_CONSTANTS, TOKEN_VAR_MAP, TanStackRouterBridge, UserProfileService, WORKFLOW_CONSTANTS, WS_MAX_RETRIES_BEFORE_ERROR, WS_RECONNECT_BASE_DELAY, WS_RECONNECT_MAX_DELAY, WebhookEndpointService, acquisitionListKeys, calculateBarPosition, calculateGraphHeight, collectResourceFilterFacets, companyKeys, componentThemes, contactKeys, createCssVariablesResolver, createFeatureAccessHook, createOrganizationsSlice, createTestFeaturesProvider, createUseAppInitialization, createUseOrgInitialization, createUseOrganizations, dealKeys, dealNoteKeys, dealTaskKeys, debounce, executionsKeys, filterByDomainFilters, formatChartAxisDate, formatDate, formatDateTime, formatDuration, formatErrorMessage, formatRelativeTime, formatTimeAgo, generateShades, getEdgeColor, getEdgeOpacity, getErrorInfo, getErrorTitle, getPreset, getResourceColor, getResourceFilterFacetIds, getResourceIcon, getResourceStatusColor, getStatusColors, getStatusIcon, getTimeRangeDates, getTimeRangeLabel, isAPIClientError, isSessionCapable, labelResourceFilterFacet, mantineThemeOverride, milestoneKeys, noteKeys, observabilityKeys, operationsKeys, PRESETS as presets, projectActivityKeys, projectKeys, requestsKeys, restoreConsole, scheduleKeys, sessionsKeys, setupBrowserMocks, shouldAnimateEdge, sortData, suppressKnownWarnings, taskKeys, useActivateDeployment, useActivities, useActivitiesRealtime, useActivityFilters, useActivityTrend, useAgentIterationData, useApiClient, useApiClientContext, useAppearance, useArchiveSession, useArchivedLogs, useAssignRole, useAuthContext, useAvailablePresets, useBatchDelete, useBatchTelemetry, useBatchedResourcesHealth, useBulkDeleteExecutions, useBusinessImpact, useCancelExecution, useCancelSchedule, useCheckpointTasks, useCommandQueue, useCommandQueueTotals, useCommandViewData, useCommandViewDomainFilters, useCommandViewLayout, useCommandViewStats, useCommandViewStore, useCompanies, useCompany, useCompanyFacets, useCompleteDealTask, useConnectionHighlight, useContact, useContacts, useCostBreakdown, useCostByModel, useCostSummary, useCostTrends, useCreateApiKey, useCreateCompany, useCreateContact, useCreateCredential, useCreateDealNote, useCreateDealTask, useCreateProject as useCreateDeliveryProject, useCreateList, useCreateMilestone, useCreateNote, useCreateOrgRole, useCreateSchedule, useCreateSession, useCreateTask, useCreateWebhookEndpoint, useCredentials, useDashboardMetrics, useDeactivateDeployment, useDeactivateMembership, useDealDetail, useDealNotes, useDealTasks, useDealTasksDue, useDeals, useDealsLookup, useDealsSummary, useDeleteApiKey, useDeleteCompanies, useDeleteContacts, useDeleteCredential, useDeleteDeal, useDeleteProject as useDeleteDeliveryProject, useDeleteTask as useDeleteDeliveryTask, useDeleteDeployment, useDeleteExecution, useDeleteList, useDeleteMilestone, useDeleteOrgRole, useDeleteRequest, useDeleteSchedule, useDeleteSession, useDeleteTask$1 as useDeleteTask, useDeleteWebhookEndpoint, useDirectedChainHighlighting, useEffectivePermissions, useElevasisFeatures, useElevasisServices, useErrorAnalysis, useErrorDetail, useErrorDetails, useErrorDistribution, useErrorNotification, useErrorTrends, useExecuteAsync, useExecuteResource, useExecution, useExecutionHealth, useExecutionLogSSE, useExecutionLogs, useExecutionLogsFilters, useExecutionPanelState, useExecutionPath, useExecutions, useFitViewTrigger, useGetExecutionHistory, useGetSchedule, useGraphHighlighting, useGraphStats, useHasPermission, useInitialization, useList, useListApiKeys, useListDeployments, useListExecutions, useListProgress, useListSchedules, useListWebhookEndpoints, useLists, useListsTelemetry, useMarkAllAsRead, useMarkAsRead, useMergedExecution, useMilestones, useNodeSelection, useNotificationAdapter, useNotificationCount as useNotificationCountSSE, useNotifications, useOptionalElevasisFeatures, useOrgRoles, useOrganization, useOrganizationMembers, useOrganizationPermissions, usePaginationState, usePatchTask, usePauseSchedule, usePermissionCatalog, usePresetsContext, useProfile, useProject, useProjectActivities, useProjectMilestones, useProjectNotes, useProjectRealtime, useProjectTasks, useProjects, useReactFlowAgent, useReactivateMembership, useRecentExecutionsByResource, useSessionCheck as useRefocusSessionCheck, useRequest, useRequestsList, useResolveAllErrors, useResolveError, useResolveErrorsByExecution, useResourceDefinition, useResourceErrors, useResourceExecutions, useResourceSearch, useResources, useResourcesDomainFilters, useResourcesHealth, useResumeSchedule, useRetryExecution, useRevokeRole, useRouterContext, useSSEConnection, useScheduledTasks, useSession, useSessionCheck, useSessionExecution, useSessionExecutions, useSessionMessages, useSessionWebSocket, useSessions, useSortedData, useStableAccessToken, useStatusFilter, useSubmitAction, useSuccessNotification,
|
|
10928
|
-
export type { AcqCompanyWithCount, AcqContactWithCompany, AcqDealNote, AcqDealTask, AcqDealTaskKind, ActivityFilters, ActivityTrendResponse, AdminGuardProps, AgentIterationEdgeData, AgentIterationNodeData, AgentStatus, ApiClientContextValue, ApiClientProviderProps, ApiErrorDetails, ApiKeyConfig, AppInitializationState, AppearanceConfig, AssignRoleInput, AuthConfig, AuthContextValue, AuthKitConfig, BulkDeleteExecutionsParams, BulkDeleteExecutionsResult, BusinessImpactMetrics, CancelExecutionParams, CancelExecutionResult, ChatMessage, ColorShadesTuple, CreateApiKeyRequest, CreateApiKeyResponse, CreateCredentialRequest, CreateCredentialResponse, CreateOrgRoleInput, CreateScheduleInput, CreateSessionResponse, CreateTestFeaturesProviderOptions, CredentialListItem, DealDetail, DealLookupFilters, DealLookupItem, DealSummaryStageItem, DealsSummaryResponse, DeleteExecutionParams, Deployment, DirectedChainHighlightingOptions, DirectedChainHighlightingResult, EdgeColorOptions, EdgeOpacityOptions, ElevasisCoreProviderProps, ElevasisCoreThemeConfig, ElevasisFeaturesContextValue, ElevasisFeaturesProviderProps, ElevasisServiceContextValue, ElevasisServiceProviderProps, ElevasisThemeConfig, ElevasisTokenOverrides, ErrorDistributionItem, ErrorDistributionParams, ErrorFilters, ErrorTrendsParams, ExecuteAsyncParams, ExecuteAsyncResult, ExecutionErrorDetails, ExecutionHistoryItem, ExecutionHistoryResponse, ExecutionLogsFilters, ExecutionLogsPageResponse, ExecutionPathState, ExecutionStatus, FailingResource, FeatureAccessResult, FeatureIconComponent, FeatureModule, FeatureSidebarComponent, FrameworkThemeOverrides, GetMessagesResponse, GlowIntensity, GraphHeightOptions, GraphHighlightingResult, GraphMode, GraphThemeColors, InitializationError, LinkProps, ListActivitiesResponse, ListApiKeysResponse, ListCredentialsResponse, ListSchedulesFilters, ListSchedulesResponse, ListWebhookEndpointsResponse, MembershipWithDetails, MessageEvent, MessageType, NodeColorType, NotificationAdapter, OrgRole, OrganizationContextValue, OrganizationGraphContextValue, OrganizationGraphFeatureBridge, OrganizationsActions, OrganizationsSlice, OrganizationsState, PresetEntry, PresetName, ProfileContextValue, ProtectedRouteProps, RequestRow, RequestsListFilters, ResolvedFeatureAccess, ResolvedFeatureModule, ResolvedFeatureSemantics, ResolvedShellFeature, ResolvedShellModel, ResolvedShellRouteMatch, ResourceFilterFacet, ResourcesResponse, RetryExecutionParams, RevokeRoleInput, RouterAdapter, SessionDTO, SessionExecution, SessionExecutionsResponse, SessionListItem, SessionTokenUsage, ShellRouteMatchStatus, ShellRuntime, SortDirection, SortState, StaleDealSummaryItem, StatusColorScheme, StatusFilter, StatusIconColors, StepExecutionData, SubmitActionRequest, SubmitActionResponse, SupabaseUserProfile, TablerIcon, TaskSchedule, ThemePreset, TimelineBarProps, TimelineContainerProps, TimelineRowProps, TopFailingResourcesParams, UnifiedWorkflowEdgeData, UnifiedWorkflowNodeData, UpdateOrgRoleInput, UpdateScheduleInput, UseActivitiesParams, UseActivityTrendParams, UseApiClientReturn, UseBatchedResourcesHealthParams, UseExecuteResourceOptions, UseExecutionHealthParams, UseExecutionLogsParams, UseExecutionPanelStateOptions, UseExecutionPanelStateReturn, UseNotificationCountArgs, UseOrgInitializationReturn, UseOrganizationsReturn, UseResourcesHealthParams, UseSSEConnectionOptions, UseScheduledTasksOptions, UseUserProfileReturn, WebSocketState, WithSchemes, WorkflowEdgeType, WorkflowStepEdgeData, WorkflowStepNodeData, WorkflowStepsLayoutInput };
|
|
11218
|
+
export { AGENT_CONSTANTS, APIClientError, API_URL, AdminGuard, ApiClientProvider, ApiKeyService, AppearanceProvider, AuthProvider, CONTAINER_CONSTANTS, CredentialService, CrmActionsProvider, DEBOUNCE_FILTER, DEBOUNCE_SLIDER, DeploymentService, ElevasisCoreProvider, ElevasisFeaturesProvider, ElevasisServiceProvider, ElevasisUIProvider, FeatureShell, GC_TIME_LONG, GC_TIME_MEDIUM, GC_TIME_SHORT, GRAPH_CONSTANTS, InitializationContext, InitializationProvider, LIMIT_ACTIVITY_FEED, NotificationProvider, OAUTH_FLOW_TIMEOUT, OAUTH_POPUP_CHECK_INTERVAL, OperationsService, OrganizationContext, OrganizationMembershipService, OrganizationProvider, OrganizationSwitcher, OrganizationSwitcherConnected, PAGE_SIZE_DEFAULT, PresetsProvider, ProfileProvider, ProtectedRoute, REFETCH_INTERVAL_DASHBOARD, REFETCH_INTERVAL_REALTIME, REFETCH_INTERVAL_RUNNING, REFETCH_INTERVAL_RUNNING_FAST, ResourceStatusColors, RouterProvider, SHARED_VIZ_CONSTANTS, SSE_CLOSE_GRACE_PERIOD, SSE_TOKEN_REFRESH_DELAY, STALE_TIME_ADMIN, STALE_TIME_DEFAULT, STALE_TIME_MONITORING, STATUS_COLORS, ScrollToTop, TIMELINE_CONSTANTS, TOKEN_VAR_MAP, TanStackRouterBridge, UserProfileService, WORKFLOW_CONSTANTS, WS_MAX_RETRIES_BEFORE_ERROR, WS_RECONNECT_BASE_DELAY, WS_RECONNECT_MAX_DELAY, WebhookEndpointService, acquisitionListKeys, calculateBarPosition, calculateGraphHeight, collectResourceFilterFacets, companyKeys, componentThemes, contactKeys, createCssVariablesResolver, createFeatureAccessHook, createOrganizationsSlice, createTestFeaturesProvider, createUseAppInitialization, createUseOrgInitialization, createUseOrganizations, dealKeys, dealNoteKeys, dealTaskKeys, debounce, executionsKeys, filterByDomainFilters, formatChartAxisDate, formatDate, formatDateTime, formatDuration, formatErrorMessage, formatRelativeTime, formatTimeAgo, generateShades, getEdgeColor, getEdgeOpacity, getErrorInfo, getErrorTitle, getPreset, getResourceColor, getResourceFilterFacetIds, getResourceIcon, getResourceStatusColor, getStatusColors, getStatusIcon, getTimeRangeDates, getTimeRangeLabel, isAPIClientError, isSessionCapable, labelResourceFilterFacet, leadGenArtifactKeys, leadGenListCompanyKeys, leadGenListMemberKeys, mantineThemeOverride, milestoneKeys, noteKeys, observabilityKeys, operationsKeys, PRESETS as presets, projectActivityKeys, projectKeys, requestsKeys, restoreConsole, scheduleKeys, sessionsKeys, setupBrowserMocks, shouldAnimateEdge, sortData, suppressKnownWarnings, taskKeys, useActivateDeployment, useActivities, useActivitiesRealtime, useActivityFilters, useActivityTrend, useAgentIterationData, useApiClient, useApiClientContext, useAppearance, useArchiveSession, useArchivedLogs, useArtifacts, useAssignRole, useAuthContext, useAvailablePresets, useBatchDelete, useBatchTelemetry, useBatchedResourcesHealth, useBulkDeleteExecutions, useBusinessImpact, useCancelExecution, useCancelSchedule, useCheckpointTasks, useCommandQueue, useCommandQueueTotals, useCommandViewData, useCommandViewDomainFilters, useCommandViewLayout, useCommandViewStats, useCommandViewStore, useCompanies, useCompany, useCompanyFacets, useCompleteDealTask, useConnectionHighlight, useContact, useContacts, useCostBreakdown, useCostByModel, useCostSummary, useCostTrends, useCreateApiKey, useCreateArtifact, useCreateCompany, useCreateContact, useCreateCredential, useCreateDealNote, useCreateDealTask, useCreateProject as useCreateDeliveryProject, useCreateList, useCreateMilestone, useCreateNote, useCreateOrgRole, useCreateSchedule, useCreateSession, useCreateTask, useCreateWebhookEndpoint, useCredentials, useCrmActions, useDashboardMetrics, useDeactivateDeployment, useDeactivateMembership, useDealDetail, useDealNotes, useDealTasks, useDealTasksDue, useDeals, useDealsLookup, useDealsSummary, useDeleteApiKey, useDeleteCompanies, useDeleteContacts, useDeleteCredential, useDeleteDeal, useDeleteProject as useDeleteDeliveryProject, useDeleteTask as useDeleteDeliveryTask, useDeleteDeployment, useDeleteExecution, useDeleteList, useDeleteMilestone, useDeleteOrgRole, useDeleteRequest, useDeleteSchedule, useDeleteSession, useDeleteTask$1 as useDeleteTask, useDeleteWebhookEndpoint, useDeriveActions, useDirectedChainHighlighting, useEffectivePermissions, useElevasisFeatures, useElevasisServices, useErrorAnalysis, useErrorDetail, useErrorDetails, useErrorDistribution, useErrorNotification, useErrorTrends, useExecuteAction, useExecuteAsync, useExecuteResource, useExecution, useExecutionHealth, useExecutionLogSSE, useExecutionLogs, useExecutionLogsFilters, useExecutionPanelState, useExecutionPath, useExecutions, useFitViewTrigger, useGetExecutionHistory, useGetSchedule, useGraphHighlighting, useGraphStats, useHasPermission, useInitialization, useList, useListApiKeys, useListDeployments, useListExecutions, useListMember, useListMembers, useListProgress, useListSchedules, useListWebhookEndpoints, useLists, useListsTelemetry, useMarkAllAsRead, useMarkAsRead, useMergedExecution, useMilestones, useNodeSelection, useNotificationAdapter, useNotificationCount as useNotificationCountSSE, useNotifications, useOptionalElevasisFeatures, useOrgRoles, useOrganization, useOrganizationMembers, useOrganizationPermissions, usePaginationState, usePatchTask, usePauseSchedule, usePermissionCatalog, usePresetsContext, useProfile, useProject, useProjectActivities, useProjectMilestones, useProjectNotes, useProjectRealtime, useProjectTasks, useProjects, useReactFlowAgent, useReactivateMembership, useRecentExecutionsByResource, useSessionCheck as useRefocusSessionCheck, useRequest, useRequestsList, useResolveAllErrors, useResolveError, useResolveErrorsByExecution, useResourceDefinition, useResourceErrors, useResourceExecutions, useResourceSearch, useResources, useResourcesDomainFilters, useResourcesHealth, useResumeSchedule, useRetryExecution, useRevokeRole, useRouterContext, useSSEConnection, useScheduledTasks, useSession, useSessionCheck, useSessionExecution, useSessionExecutions, useSessionMessages, useSessionWebSocket, useSessions, useSortedData, useStableAccessToken, useStatusFilter, useSubmitAction, useSuccessNotification, useTableSelection, useTableSort, useTasks, useTestNotification, useTimeRangeDates, useTimelineData, useTopFailingResources, useTransitionItem, useTransitionListCompany, useTransitionListMember, useUnifiedWorkflowLayout, useUnresolveError, useUnresolvedErrors, useUpdateAnchor, useUpdateApiKey, useUpdateCompany, useUpdateContact, useUpdateCredential, useUpdateProject as useUpdateDeliveryProject, useUpdateList, useUpdateListConfig, useUpdateListStatus, useUpdateMemberConfig, useUpdateMilestone, useUpdateOrgRole, useUpdateRequestStatus, useUpdateSchedule, useUpdateTask, useUpdateWebhookEndpoint, useUserMemberships, useUserProfile, useVisibleResources, useWarningNotification, useWorkflowStepsLayout, validateEmail };
|
|
11219
|
+
export type { AcqCompanyWithCount, AcqContactWithCompany, AcqDealNote, AcqDealTask, AcqDealTaskKind, ActivityFilters, ActivityTrendResponse, AdminGuardProps, AgentIterationEdgeData, AgentIterationNodeData, AgentStatus, ApiClientContextValue, ApiClientProviderProps, ApiErrorDetails, ApiKeyConfig, AppInitializationState, AppearanceConfig, AssignRoleInput, AuthConfig, AuthContextValue, AuthKitConfig, BulkDeleteExecutionsParams, BulkDeleteExecutionsResult, BusinessImpactMetrics, CancelExecutionParams, CancelExecutionResult, ChatMessage, ColorShadesTuple, CreateApiKeyRequest, CreateApiKeyResponse, CreateCredentialRequest, CreateCredentialResponse, CreateOrgRoleInput, CreateScheduleInput, CreateSessionResponse, CreateTestFeaturesProviderOptions, CredentialListItem, DealDetail, DealLookupFilters, DealLookupItem, DealSummaryStageItem, DealsSummaryResponse, DeleteExecutionParams, Deployment, DirectedChainHighlightingOptions, DirectedChainHighlightingResult, EdgeColorOptions, EdgeOpacityOptions, ElevasisCoreProviderProps, ElevasisCoreThemeConfig, ElevasisFeaturesContextValue, ElevasisFeaturesProviderProps, ElevasisServiceContextValue, ElevasisServiceProviderProps, ElevasisThemeConfig, ElevasisTokenOverrides, ErrorDistributionItem, ErrorDistributionParams, ErrorFilters, ErrorTrendsParams, ExecuteActionInput, ExecuteAsyncParams, ExecuteAsyncResult, ExecutionErrorDetails, ExecutionHistoryItem, ExecutionHistoryResponse, ExecutionLogsFilters, ExecutionLogsPageResponse, ExecutionPathState, ExecutionStatus, FailingResource, FeatureAccessResult, FeatureIconComponent, FeatureModule, FeatureSidebarComponent, FrameworkThemeOverrides, GetMessagesResponse, GlowIntensity, GraphHeightOptions, GraphHighlightingResult, GraphMode, GraphThemeColors, InitializationError, LinkProps, ListActivitiesResponse, ListApiKeysResponse, ListCredentialsResponse, ListSchedulesFilters, ListSchedulesResponse, ListWebhookEndpointsResponse, MembershipWithDetails, MessageEvent, MessageType, NodeColorType, NotificationAdapter, OrgRole, OrganizationContextValue, OrganizationGraphContextValue, OrganizationGraphFeatureBridge, OrganizationsActions, OrganizationsSlice, OrganizationsState, PresetEntry, PresetName, ProfileContextValue, ProtectedRouteProps, RequestRow, RequestsListFilters, ResolvedFeatureAccess, ResolvedFeatureModule, ResolvedFeatureSemantics, ResolvedShellFeature, ResolvedShellModel, ResolvedShellRouteMatch, ResourceFilterFacet, ResourcesResponse, RetryExecutionParams, RevokeRoleInput, RouterAdapter, SessionDTO, SessionExecution, SessionExecutionsResponse, SessionListItem, SessionTokenUsage, ShellRouteMatchStatus, ShellRuntime, SortDirection, SortState, StaleDealSummaryItem, StatefulItem, StatusColorScheme, StatusFilter, StatusIconColors, StepExecutionData, SubmitActionRequest, SubmitActionResponse, SupabaseUserProfile, TablerIcon, TaskSchedule, ThemePreset, TimelineBarProps, TimelineContainerProps, TimelineRowProps, TopFailingResourcesParams, TransitionItemInput, TransitionListCompanyInput, TransitionListMemberInput, UnifiedWorkflowEdgeData, UnifiedWorkflowNodeData, UpdateListStatusInput, UpdateOrgRoleInput, UpdateScheduleInput, UseActivitiesParams, UseActivityTrendParams, UseApiClientReturn, UseArtifactsParams, UseBatchedResourcesHealthParams, UseExecuteResourceOptions, UseExecutionHealthParams, UseExecutionLogsParams, UseExecutionPanelStateOptions, UseExecutionPanelStateReturn, UseNotificationCountArgs, UseOrgInitializationReturn, UseOrganizationsReturn, UseResourcesHealthParams, UseSSEConnectionOptions, UseScheduledTasksOptions, UseUserProfileReturn, WebSocketState, WithSchemes, WorkflowEdgeType, WorkflowStepEdgeData, WorkflowStepNodeData, WorkflowStepsLayoutInput };
|