@elevasis/ui 2.79.0 → 2.81.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/{CoreAuthKitInner-PSTKG4B3.js → CoreAuthKitInner-5J7P7ZDL.js} +1 -1
- package/dist/api/index.js +6 -6
- package/dist/app/index.d.ts +1 -15
- package/dist/app/index.js +18 -18
- package/dist/auth/index.js +10 -10
- package/dist/charts/index.d.ts +4 -4
- package/dist/charts/index.js +10 -10
- package/dist/{chunk-NCPNKI3V.js → chunk-2HXDI4RY.js} +1 -1
- package/dist/{chunk-TVTSASST.js → chunk-34B3ACOZ.js} +9 -1
- package/dist/{chunk-AZCDL2SS.js → chunk-3ZADOARU.js} +5 -5
- package/dist/{chunk-2IU6BP6F.js → chunk-42C2WVYU.js} +11 -10
- package/dist/{chunk-3ONNZ4SO.js → chunk-52AZTFUR.js} +6 -6
- package/dist/{chunk-MGCXAAX4.js → chunk-5GYJ3IDO.js} +15 -9
- package/dist/{chunk-SJRIO26Q.js → chunk-6J3SCCZ2.js} +2 -2
- package/dist/{chunk-A37T4NIZ.js → chunk-6YWBMLEM.js} +22 -11
- package/dist/{chunk-GWCLI2RX.js → chunk-75OLN23F.js} +22 -39
- package/dist/{chunk-LDQSTEFW.js → chunk-7D4FKBB4.js} +38 -14
- package/dist/{chunk-JZQNUQE4.js → chunk-7RS2NUC6.js} +10 -2
- package/dist/{chunk-7ICEQPBU.js → chunk-AI5OYVLR.js} +1 -1
- package/dist/{chunk-G3WOMHVI.js → chunk-BLYK6I4D.js} +4 -3
- package/dist/{chunk-5ZK7K7YP.js → chunk-DEZW7QDI.js} +38 -25
- package/dist/{chunk-QLEY6Q7K.js → chunk-FPRDEKFY.js} +1 -1
- package/dist/{chunk-SVZR4GYA.js → chunk-G6VHIXWD.js} +1 -1
- package/dist/{chunk-VM2OWOXL.js → chunk-GY7FXTC4.js} +2 -3
- package/dist/{chunk-GFSOQH3N.js → chunk-HDITVHZT.js} +8 -11
- package/dist/{chunk-ASI3FDPC.js → chunk-HDLYC63N.js} +1 -1
- package/dist/{chunk-2GIJBHZT.js → chunk-IIMC4TRH.js} +3 -3
- package/dist/{chunk-22TWX4XG.js → chunk-ILOKKA6L.js} +8 -8
- package/dist/{chunk-4ZHX5KOT.js → chunk-JLKZUO2I.js} +1 -1
- package/dist/{chunk-WJO6QEI7.js → chunk-K635QVGI.js} +33 -78
- package/dist/{chunk-R42OYAQ2.js → chunk-KU7KN5VN.js} +1 -1
- package/dist/{chunk-6AJUWYKS.js → chunk-LGJASP5H.js} +1 -1
- package/dist/{chunk-4IYWLUXA.js → chunk-LTKBVL7D.js} +14 -10
- package/dist/{chunk-INCEZAM3.js → chunk-LTRJZOHA.js} +1 -1
- package/dist/{chunk-RMLWK3IR.js → chunk-O4XUKLRY.js} +1 -1
- package/dist/{chunk-3RK2NNJX.js → chunk-PJN6CMWZ.js} +1 -1
- package/dist/{chunk-KXNRTJAE.js → chunk-PNCJJE4Z.js} +1 -1
- package/dist/{chunk-4VGPEDQF.js → chunk-PSGSFPWA.js} +126 -69
- package/dist/{chunk-QMAIUPXK.js → chunk-QEQXPWOK.js} +23 -231
- package/dist/{chunk-M77G2MGW.js → chunk-QFKOHZM3.js} +3 -3
- package/dist/{chunk-P6HHXMLJ.js → chunk-ROC2TFPS.js} +10 -9
- package/dist/{chunk-QMOBXKW3.js → chunk-SHJYK2X4.js} +222 -191
- package/dist/{chunk-ODXLZZFR.js → chunk-SOBKRB4N.js} +1 -1
- package/dist/{chunk-SXZMHLH6.js → chunk-SWC54W3A.js} +4 -4
- package/dist/{chunk-G4IEH7NX.js → chunk-TLMNBOAG.js} +5 -5
- package/dist/{chunk-N6K2Q5BM.js → chunk-WDABHUIL.js} +9 -21
- package/dist/{chunk-3KCLWJDC.js → chunk-XUL4UBYJ.js} +22 -11
- package/dist/{chunk-UD657ICS.js → chunk-YJ437RDY.js} +29 -16
- package/dist/components/index.d.ts +18 -20
- package/dist/components/index.js +48 -48
- package/dist/components/navigation/index.js +11 -11
- package/dist/execution/index.js +2 -2
- package/dist/features/auth/index.d.ts +1 -1
- package/dist/features/auth/index.js +12 -12
- package/dist/features/clients/index.js +14 -15
- package/dist/features/content/index.js +13 -13
- package/dist/features/crm/index.d.ts +0 -14
- package/dist/features/crm/index.js +16 -16
- package/dist/features/dashboard/index.d.ts +8 -8
- package/dist/features/dashboard/index.js +13 -13
- package/dist/features/delivery/index.d.ts +0 -14
- package/dist/features/delivery/index.js +25 -25
- package/dist/features/knowledge/index.js +10 -10
- package/dist/features/lead-gen/index.d.ts +103 -48
- package/dist/features/lead-gen/index.js +17 -17
- package/dist/features/monitoring/index.d.ts +10 -10
- package/dist/features/monitoring/index.js +15 -15
- package/dist/features/monitoring/requests/index.js +12 -12
- package/dist/features/notes/index.js +1 -1
- package/dist/features/operations/index.d.ts +12 -12
- package/dist/features/operations/index.js +18 -18
- package/dist/features/public-agent-chat/index.js +4 -4
- package/dist/features/seo/index.d.ts +105 -17
- package/dist/features/seo/index.js +13 -13
- package/dist/features/settings/index.d.ts +1 -1
- package/dist/features/settings/index.js +13 -13
- package/dist/hooks/access/index.d.ts +60 -1
- package/dist/hooks/access/index.js +10 -10
- package/dist/hooks/delivery/index.d.ts +0 -14
- package/dist/hooks/delivery/index.js +6 -6
- package/dist/hooks/published.d.ts +286 -107
- package/dist/hooks/published.js +23 -23
- package/dist/hooks/user-notes/index.js +1 -1
- package/dist/initialization/index.d.ts +13 -1
- package/dist/initialization/index.js +1 -1
- package/dist/knowledge/index.d.ts +1 -1
- package/dist/knowledge/index.js +93 -91
- package/dist/{knowledge-search-index-6GQK55IQ.js → knowledge-search-index-UPKXCXQP.js} +91 -91
- package/dist/layout/index.js +14 -14
- package/dist/organization/index.d.ts +17 -1
- package/dist/organization/index.js +2 -2
- package/dist/profile/index.d.ts +1 -1
- package/dist/profile/index.js +1 -1
- package/dist/provider/ElevasisServiceContext.js +1 -1
- package/dist/provider/index.d.ts +0 -14
- package/dist/provider/index.js +10 -10
- package/dist/provider/published.d.ts +0 -14
- package/dist/provider/published.js +10 -10
- package/dist/sse/index.d.ts +7 -1
- package/dist/sse/index.js +36 -2
- package/dist/test-utils/index.d.ts +3 -1
- package/dist/test-utils/index.js +32 -9
- package/dist/types/index.d.ts +13 -15
- package/dist/utils/index.d.ts +25 -7
- package/dist/utils/index.js +4 -4
- package/package.json +24 -14
- /package/dist/{chunk-Y6I3IC45.js → chunk-6XBZPKMI.js} +0 -0
- /package/dist/{chunk-5F3QGBEI.js → chunk-7ZUXA2NW.js} +0 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { brandWorkOsOrgId } from './chunk-MQZE7SUI.js';
|
|
2
|
-
import './chunk-
|
|
2
|
+
import './chunk-34B3ACOZ.js';
|
|
3
3
|
import { AuthProvider } from './chunk-BRJ3QZ4E.js';
|
|
4
4
|
import './chunk-I2KLQ2HA.js';
|
|
5
5
|
import { AuthKitProvider, useAuth } from '@workos-inc/authkit-react';
|
package/dist/api/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export { createElevasisQueryClient } from '../chunk-
|
|
2
|
-
export { ApiClientProvider, useApiClient, useApiClientContext } from '../chunk-
|
|
1
|
+
export { createElevasisQueryClient } from '../chunk-G6VHIXWD.js';
|
|
2
|
+
export { ApiClientProvider, useApiClient, useApiClientContext } from '../chunk-7RS2NUC6.js';
|
|
3
3
|
import '../chunk-DD3CCMCZ.js';
|
|
4
|
-
import '../chunk-
|
|
5
|
-
import '../chunk-
|
|
6
|
-
import '../chunk-
|
|
7
|
-
import '../chunk-
|
|
4
|
+
import '../chunk-DEZW7QDI.js';
|
|
5
|
+
import '../chunk-6XBZPKMI.js';
|
|
6
|
+
import '../chunk-7ZUXA2NW.js';
|
|
7
|
+
import '../chunk-34B3ACOZ.js';
|
|
8
8
|
import '../chunk-I2KLQ2HA.js';
|
package/dist/app/index.d.ts
CHANGED
|
@@ -2777,13 +2777,6 @@ type Database = {
|
|
|
2777
2777
|
referencedRelation: "users";
|
|
2778
2778
|
referencedColumns: ["id"];
|
|
2779
2779
|
},
|
|
2780
|
-
{
|
|
2781
|
-
foreignKeyName: "prj_notes_milestone_id_fkey";
|
|
2782
|
-
columns: ["milestone_id"];
|
|
2783
|
-
isOneToOne: false;
|
|
2784
|
-
referencedRelation: "prj_milestones";
|
|
2785
|
-
referencedColumns: ["id"];
|
|
2786
|
-
},
|
|
2787
2780
|
{
|
|
2788
2781
|
foreignKeyName: "prj_notes_organization_id_fkey";
|
|
2789
2782
|
columns: ["organization_id"];
|
|
@@ -2797,13 +2790,6 @@ type Database = {
|
|
|
2797
2790
|
isOneToOne: false;
|
|
2798
2791
|
referencedRelation: "prj_projects";
|
|
2799
2792
|
referencedColumns: ["id"];
|
|
2800
|
-
},
|
|
2801
|
-
{
|
|
2802
|
-
foreignKeyName: "prj_notes_task_id_fkey";
|
|
2803
|
-
columns: ["task_id"];
|
|
2804
|
-
isOneToOne: false;
|
|
2805
|
-
referencedRelation: "prj_tasks";
|
|
2806
|
-
referencedColumns: ["id"];
|
|
2807
2793
|
}
|
|
2808
2794
|
];
|
|
2809
2795
|
};
|
|
@@ -3721,7 +3707,7 @@ type Database = {
|
|
|
3721
3707
|
/**
|
|
3722
3708
|
* Concrete row shapes for the published Supabase tables.
|
|
3723
3709
|
*
|
|
3724
|
-
*
|
|
3710
|
+
* @generated by packages/core/scripts/gen-published-rows.mjs — DO NOT EDIT. Re-run `pnpm gen:published-rows`.
|
|
3725
3711
|
*
|
|
3726
3712
|
* These were `Tables<'users'>` / `TablesInsert<...>` aliases in `./index.ts`. Each one indexes
|
|
3727
3713
|
* into the generated `Database` type, and a published `.d.ts` that references `Database` makes
|
package/dist/app/index.js
CHANGED
|
@@ -1,32 +1,32 @@
|
|
|
1
|
-
import { AppErrorBoundary } from '../chunk-
|
|
2
|
-
import { SidebarProvider, AppShellContainer, Sidebar, AppShellRightSideContainer, AppShellRightSideOuterContainer } from '../chunk-
|
|
3
|
-
import '../chunk-
|
|
4
|
-
import '../chunk-
|
|
5
|
-
import '../chunk-
|
|
6
|
-
import '../chunk-
|
|
1
|
+
import { AppErrorBoundary } from '../chunk-HDLYC63N.js';
|
|
2
|
+
import { SidebarProvider, AppShellContainer, Sidebar, AppShellRightSideContainer, AppShellRightSideOuterContainer } from '../chunk-KU7KN5VN.js';
|
|
3
|
+
import '../chunk-JLKZUO2I.js';
|
|
4
|
+
import '../chunk-LGJASP5H.js';
|
|
5
|
+
import '../chunk-FPRDEKFY.js';
|
|
6
|
+
import '../chunk-SOBKRB4N.js';
|
|
7
7
|
import '../chunk-BZZCNLT6.js';
|
|
8
|
-
import { useSessionCheck, ElevasisSystemsProvider, useElevasisSystems, SystemShell, ElevasisUIProvider } from '../chunk-
|
|
8
|
+
import { useSessionCheck, ElevasisSystemsProvider, useElevasisSystems, SystemShell, ElevasisUIProvider } from '../chunk-PSGSFPWA.js';
|
|
9
9
|
import '../chunk-4WLAVUPS.js';
|
|
10
10
|
import '../chunk-RXZ3XDBM.js';
|
|
11
|
-
import '../chunk-
|
|
11
|
+
import '../chunk-7RS2NUC6.js';
|
|
12
12
|
import '../chunk-L7BZZ4SI.js';
|
|
13
|
-
import '../chunk-
|
|
13
|
+
import '../chunk-PNCJJE4Z.js';
|
|
14
14
|
import '../chunk-62GVNH5U.js';
|
|
15
15
|
import { useInitialization } from '../chunk-P45GQ3ZW.js';
|
|
16
|
-
import '../chunk-
|
|
16
|
+
import '../chunk-IIMC4TRH.js';
|
|
17
17
|
import '../chunk-3KMDHCAR.js';
|
|
18
18
|
import { TanStackRouterBridge, ScrollToTop } from '../chunk-2IFYDILW.js';
|
|
19
|
-
import '../chunk-
|
|
20
|
-
import '../chunk-
|
|
19
|
+
import '../chunk-2HXDI4RY.js';
|
|
20
|
+
import '../chunk-YJ437RDY.js';
|
|
21
21
|
import '../chunk-DD3CCMCZ.js';
|
|
22
22
|
import '../chunk-RNP5R5I3.js';
|
|
23
23
|
import '../chunk-RT4KRGZT.js';
|
|
24
|
-
import '../chunk-
|
|
25
|
-
import '../chunk-
|
|
26
|
-
import '../chunk-
|
|
24
|
+
import '../chunk-DEZW7QDI.js';
|
|
25
|
+
import '../chunk-6XBZPKMI.js';
|
|
26
|
+
import '../chunk-7ZUXA2NW.js';
|
|
27
27
|
import '../chunk-BI5VDO2K.js';
|
|
28
28
|
import '../chunk-MQZE7SUI.js';
|
|
29
|
-
import '../chunk-
|
|
29
|
+
import '../chunk-34B3ACOZ.js';
|
|
30
30
|
import '../chunk-BRJ3QZ4E.js';
|
|
31
31
|
import '../chunk-Q7DJKLEN.js';
|
|
32
32
|
import '../chunk-I2KLQ2HA.js';
|
|
@@ -174,7 +174,6 @@ function ElevasisAuthenticatedShell({
|
|
|
174
174
|
AuthenticatedShellLayout,
|
|
175
175
|
{
|
|
176
176
|
accountPath,
|
|
177
|
-
children,
|
|
178
177
|
initialization,
|
|
179
178
|
isDark,
|
|
180
179
|
isDev,
|
|
@@ -183,7 +182,8 @@ function ElevasisAuthenticatedShell({
|
|
|
183
182
|
signOutReturnTo,
|
|
184
183
|
signOut,
|
|
185
184
|
topbar,
|
|
186
|
-
user
|
|
185
|
+
user,
|
|
186
|
+
children
|
|
187
187
|
}
|
|
188
188
|
)
|
|
189
189
|
}
|
package/dist/auth/index.js
CHANGED
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
export { AccessGuard, AccessKeys, ProtectedRoute, useSessionCheck as useRefocusSessionCheck, useSessionCheck, useStableAccessToken } from '../chunk-
|
|
1
|
+
export { AccessGuard, AccessKeys, ProtectedRoute, useSessionCheck as useRefocusSessionCheck, useSessionCheck, useStableAccessToken } from '../chunk-PSGSFPWA.js';
|
|
2
2
|
import '../chunk-4WLAVUPS.js';
|
|
3
3
|
import '../chunk-RXZ3XDBM.js';
|
|
4
|
-
import '../chunk-
|
|
4
|
+
import '../chunk-7RS2NUC6.js';
|
|
5
5
|
import '../chunk-L7BZZ4SI.js';
|
|
6
|
-
import '../chunk-
|
|
6
|
+
import '../chunk-PNCJJE4Z.js';
|
|
7
7
|
import '../chunk-62GVNH5U.js';
|
|
8
8
|
import '../chunk-P45GQ3ZW.js';
|
|
9
|
-
import '../chunk-
|
|
9
|
+
import '../chunk-IIMC4TRH.js';
|
|
10
10
|
import '../chunk-3KMDHCAR.js';
|
|
11
11
|
import '../chunk-2IFYDILW.js';
|
|
12
|
-
import '../chunk-
|
|
13
|
-
import '../chunk-
|
|
12
|
+
import '../chunk-2HXDI4RY.js';
|
|
13
|
+
import '../chunk-YJ437RDY.js';
|
|
14
14
|
import '../chunk-DD3CCMCZ.js';
|
|
15
15
|
import '../chunk-RNP5R5I3.js';
|
|
16
16
|
import '../chunk-RT4KRGZT.js';
|
|
17
|
-
import '../chunk-
|
|
18
|
-
import '../chunk-
|
|
19
|
-
import '../chunk-
|
|
17
|
+
import '../chunk-DEZW7QDI.js';
|
|
18
|
+
import '../chunk-6XBZPKMI.js';
|
|
19
|
+
import '../chunk-7ZUXA2NW.js';
|
|
20
20
|
import '../chunk-BI5VDO2K.js';
|
|
21
21
|
import '../chunk-MQZE7SUI.js';
|
|
22
|
-
import '../chunk-
|
|
22
|
+
import '../chunk-34B3ACOZ.js';
|
|
23
23
|
export { AuthProvider, useAuthContext } from '../chunk-BRJ3QZ4E.js';
|
|
24
24
|
import '../chunk-Q7DJKLEN.js';
|
|
25
25
|
import '../chunk-I2KLQ2HA.js';
|
package/dist/charts/index.d.ts
CHANGED
|
@@ -293,9 +293,9 @@ interface ActivityTrendChartProps {
|
|
|
293
293
|
timestamps: Date[];
|
|
294
294
|
total: number;
|
|
295
295
|
isLoading: boolean;
|
|
296
|
-
timeRange
|
|
296
|
+
timeRange?: TimeRange;
|
|
297
297
|
}
|
|
298
|
-
declare function ActivityTrendChart({ timestamps, total, isLoading, timeRange }: ActivityTrendChartProps): react_jsx_runtime.JSX.Element;
|
|
298
|
+
declare function ActivityTrendChart({ timestamps, total, isLoading, timeRange: timeRangeProp }: ActivityTrendChartProps): react_jsx_runtime.JSX.Element;
|
|
299
299
|
|
|
300
300
|
interface CostTrendChartProps {
|
|
301
301
|
data?: CostTrendsResponse;
|
|
@@ -324,12 +324,12 @@ interface CombinedTrendChartProps {
|
|
|
324
324
|
errorData?: ErrorAnalysisMetrics;
|
|
325
325
|
isLoading: boolean;
|
|
326
326
|
error?: Error | null;
|
|
327
|
-
timeRange
|
|
327
|
+
timeRange?: TimeRange;
|
|
328
328
|
/** Optional navigation action rendered in the header (e.g., a Link button). */
|
|
329
329
|
navigationAction?: ReactNode;
|
|
330
330
|
compact?: boolean;
|
|
331
331
|
}
|
|
332
|
-
declare function CombinedTrendChart({ healthData, errorData: _errorData, isLoading, error, timeRange, navigationAction, compact }: CombinedTrendChartProps): react_jsx_runtime.JSX.Element;
|
|
332
|
+
declare function CombinedTrendChart({ healthData, errorData: _errorData, isLoading, error, timeRange: timeRangeProp, navigationAction, compact }: CombinedTrendChartProps): react_jsx_runtime.JSX.Element;
|
|
333
333
|
|
|
334
334
|
export { ActivityTrendChart, ChartFrame, CombinedTrendChart, CostTrendChart, CyberAreaChart, CyberDonut, CyberDonutTooltip, CyberLegendItem, HeroStatsRow, getSeriesColor, useCyberColors };
|
|
335
335
|
export type { ActivityTrendChartProps, ChartFrameProps, CombinedTrendChartProps, CostTrendChartProps, CyberAreaChartProps, CyberColors, CyberDonutProps, CyberDonutSegment, CyberSeries, HeroStatsRowProps };
|
package/dist/charts/index.js
CHANGED
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
export { ActivityTrendChart, ChartFrame, CombinedTrendChart, CostTrendChart, CyberAreaChart, CyberDonut, CyberDonutTooltip, CyberLegendItem, HeroStatsRow, getSeriesColor, useCyberColors } from '../chunk-
|
|
1
|
+
export { ActivityTrendChart, ChartFrame, CombinedTrendChart, CostTrendChart, CyberAreaChart, CyberDonut, CyberDonutTooltip, CyberLegendItem, HeroStatsRow, getSeriesColor, useCyberColors } from '../chunk-PSGSFPWA.js';
|
|
2
2
|
import '../chunk-4WLAVUPS.js';
|
|
3
3
|
import '../chunk-RXZ3XDBM.js';
|
|
4
|
-
import '../chunk-
|
|
4
|
+
import '../chunk-7RS2NUC6.js';
|
|
5
5
|
import '../chunk-L7BZZ4SI.js';
|
|
6
|
-
import '../chunk-
|
|
6
|
+
import '../chunk-PNCJJE4Z.js';
|
|
7
7
|
import '../chunk-62GVNH5U.js';
|
|
8
8
|
import '../chunk-P45GQ3ZW.js';
|
|
9
|
-
import '../chunk-
|
|
9
|
+
import '../chunk-IIMC4TRH.js';
|
|
10
10
|
import '../chunk-3KMDHCAR.js';
|
|
11
11
|
import '../chunk-2IFYDILW.js';
|
|
12
|
-
import '../chunk-
|
|
13
|
-
import '../chunk-
|
|
12
|
+
import '../chunk-2HXDI4RY.js';
|
|
13
|
+
import '../chunk-YJ437RDY.js';
|
|
14
14
|
import '../chunk-DD3CCMCZ.js';
|
|
15
15
|
import '../chunk-RNP5R5I3.js';
|
|
16
16
|
import '../chunk-RT4KRGZT.js';
|
|
17
|
-
import '../chunk-
|
|
18
|
-
import '../chunk-
|
|
19
|
-
import '../chunk-
|
|
17
|
+
import '../chunk-DEZW7QDI.js';
|
|
18
|
+
import '../chunk-6XBZPKMI.js';
|
|
19
|
+
import '../chunk-7ZUXA2NW.js';
|
|
20
20
|
import '../chunk-BI5VDO2K.js';
|
|
21
21
|
import '../chunk-MQZE7SUI.js';
|
|
22
|
-
import '../chunk-
|
|
22
|
+
import '../chunk-34B3ACOZ.js';
|
|
23
23
|
import '../chunk-BRJ3QZ4E.js';
|
|
24
24
|
import '../chunk-Q7DJKLEN.js';
|
|
25
25
|
import '../chunk-I2KLQ2HA.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { isStepStartedContext, isConditionalRouteContext, isStepCompletedContext, isStepFailedContext, isLifecycleEvent, isIterationEvent, isToolCallEvent, toWorkflowLogMessage } from './chunk-
|
|
1
|
+
import { isStepStartedContext, isConditionalRouteContext, isStepCompletedContext, isStepFailedContext, isLifecycleEvent, isIterationEvent, isToolCallEvent, toWorkflowLogMessage } from './chunk-7ZUXA2NW.js';
|
|
2
2
|
import { useMemo } from 'react';
|
|
3
3
|
import dagre from '@dagrejs/dagre';
|
|
4
4
|
import { IconCircleDot, IconLoader, IconAlertTriangle, IconX, IconCheck } from '@tabler/icons-react';
|
|
@@ -19,10 +19,18 @@ z.object({
|
|
|
19
19
|
limit: z.coerce.number().int().min(1).max(100).default(20),
|
|
20
20
|
offset: z.coerce.number().int().min(0).default(0)
|
|
21
21
|
});
|
|
22
|
+
var DEFAULT_PAGE_LIMIT = 50;
|
|
23
|
+
var MAX_PAGE_LIMIT = 100;
|
|
24
|
+
var PageLimitSchema = z.coerce.number().int().min(1).max(MAX_PAGE_LIMIT);
|
|
25
|
+
var PageOffsetSchema = z.coerce.number().int().min(0).default(0);
|
|
26
|
+
var PaginationQuerySchema = z.object({
|
|
27
|
+
limit: PageLimitSchema.default(DEFAULT_PAGE_LIMIT),
|
|
28
|
+
offset: PageOffsetSchema
|
|
29
|
+
});
|
|
22
30
|
z.string().datetime();
|
|
23
31
|
z.object({
|
|
24
32
|
startDate: z.string().datetime(),
|
|
25
33
|
endDate: z.string().datetime()
|
|
26
34
|
});
|
|
27
35
|
|
|
28
|
-
export { CredentialNameSchema, NonEmptyStringSchema, OriginResourceTypeSchema, ResourceTypeSchema, UuidSchema };
|
|
36
|
+
export { CredentialNameSchema, NonEmptyStringSchema, OriginResourceTypeSchema, PageLimitSchema, PageOffsetSchema, PaginationQuerySchema, ResourceTypeSchema, UuidSchema };
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { useProjectRealtime, useProjectActivities } from './chunk-
|
|
2
|
-
import { useCreateTask, useCreateMilestone, useProjectMilestones, useUpdateTask, useProjects, useDeleteProject, useProject, useProjectNotes, useUpdateMilestone, useCreateNote } from './chunk-
|
|
1
|
+
import { useProjectRealtime, useProjectActivities } from './chunk-K635QVGI.js';
|
|
2
|
+
import { useCreateTask, useCreateMilestone, useProjectMilestones, useUpdateTask, useProjects, useDeleteProject, useProject, useProjectNotes, useUpdateMilestone, useCreateNote } from './chunk-HDITVHZT.js';
|
|
3
3
|
import { useTableSort, sortData } from './chunk-2Y6AKWGU.js';
|
|
4
4
|
import { useTableSelection } from './chunk-WDBNW44Z.js';
|
|
5
5
|
import { milestoneStatusColors, formatStatusLabel, taskTypeColors, taskStatusColors, projectStatusColors, calculateProgress, noteTypeColors } from './chunk-DLR4SDZW.js';
|
|
6
|
-
import { SubshellPageLayout } from './chunk-
|
|
6
|
+
import { SubshellPageLayout } from './chunk-SOBKRB4N.js';
|
|
7
7
|
import { PageContainer } from './chunk-BZZCNLT6.js';
|
|
8
8
|
import { TableSelectionToolbar, SortableHeader } from './chunk-TUMSNGTX.js';
|
|
9
9
|
import { FilterBar } from './chunk-PDHTXPSF.js';
|
|
10
|
-
import { StatusBadge, EmptyState, SubshellSidebarSection, PageTitleCaption, usePaginationState, SubshellContentContainer, CenteredErrorState, CustomModal, StatCard, SubshellNavItem } from './chunk-
|
|
10
|
+
import { StatusBadge, EmptyState, SubshellSidebarSection, PageTitleCaption, usePaginationState, SubshellContentContainer, CenteredErrorState, CustomModal, StatCard, SubshellNavItem } from './chunk-PSGSFPWA.js';
|
|
11
11
|
import { CardHeader } from './chunk-62GVNH5U.js';
|
|
12
|
-
import { PAGE_SIZE_DEFAULT, formatTimeAgo, formatDate, formatRelativeTime } from './chunk-
|
|
12
|
+
import { PAGE_SIZE_DEFAULT, formatTimeAgo, formatDate, formatRelativeTime } from './chunk-DEZW7QDI.js';
|
|
13
13
|
import { useRouterContext } from './chunk-Q7DJKLEN.js';
|
|
14
14
|
import { useState, useMemo } from 'react';
|
|
15
15
|
import { Stack, Text, Group, Checkbox, ActionIcon, TextInput, Button, Modal, Title, Textarea, Select, SimpleGrid, Card, ThemeIcon, RingProgress, Paper, Timeline, Badge, Collapse, Center, Loader, Table, Pagination, Alert, CopyButton, Tooltip, Space, Tabs, Divider, Anchor, Chip, List } from '@mantine/core';
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { requestsKeys } from './chunk-
|
|
1
|
+
import { requestsKeys } from './chunk-PSGSFPWA.js';
|
|
2
|
+
import { buildQueryString } from './chunk-DEZW7QDI.js';
|
|
2
3
|
import { useElevasisServices } from './chunk-BI5VDO2K.js';
|
|
3
4
|
import { useQuery, useQueryClient, useMutation } from '@tanstack/react-query';
|
|
4
5
|
|
|
@@ -8,15 +9,15 @@ function useRequestsList(filters = {}) {
|
|
|
8
9
|
queryKey: requestsKeys.list(workOSOrganizationId ?? void 0, filters),
|
|
9
10
|
queryFn: async () => {
|
|
10
11
|
const { type, severity, status, source, limit, offset } = filters;
|
|
11
|
-
const
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
const { requests } = await apiRequest(`/requests${query
|
|
12
|
+
const query = buildQueryString({
|
|
13
|
+
type: type || void 0,
|
|
14
|
+
severity: severity || void 0,
|
|
15
|
+
status: status || void 0,
|
|
16
|
+
source: source || void 0,
|
|
17
|
+
limit,
|
|
18
|
+
offset
|
|
19
|
+
});
|
|
20
|
+
const { requests } = await apiRequest(`/requests${query}`);
|
|
20
21
|
return requests;
|
|
21
22
|
},
|
|
22
23
|
enabled: isReady
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { useAvailablePresets } from './chunk-IIEZXXDD.js';
|
|
2
|
-
import { MEMBERSHIP_STATUS_COLORS, PROVISIONING_STATE_DISPLAY, transformMembershipToTableRow, useUserMemberships, useUpdateWebhookEndpoint, useDeleteWebhookEndpoint, useCreateWebhookEndpoint, useListWebhookEndpoints, useOrgRoles, useAssignRole, useRevokeRole, useOrganizationMembers, usePermissionCatalog } from './chunk-
|
|
3
|
-
import { AppShellLoader } from './chunk-
|
|
2
|
+
import { MEMBERSHIP_STATUS_COLORS, PROVISIONING_STATE_DISPLAY, transformMembershipToTableRow, useUserMemberships, useUpdateWebhookEndpoint, useDeleteWebhookEndpoint, useCreateWebhookEndpoint, useListWebhookEndpoints, useOrgRoles, useAssignRole, useRevokeRole, useOrganizationMembers, usePermissionCatalog } from './chunk-SHJYK2X4.js';
|
|
3
|
+
import { AppShellLoader } from './chunk-LGJASP5H.js';
|
|
4
4
|
import { FilterBar } from './chunk-PDHTXPSF.js';
|
|
5
|
-
import { CustomModal, APIErrorAlert, EmptyState, PageTitleCaption, useResources, ListSkeleton, StatCard, useAccess, AccessKeys, AccessGuard } from './chunk-
|
|
6
|
-
import { showApiErrorNotification, showErrorNotification, showSuccessNotification } from './chunk-
|
|
5
|
+
import { CustomModal, APIErrorAlert, EmptyState, PageTitleCaption, useResources, ListSkeleton, StatCard, useAccess, AccessKeys, AccessGuard } from './chunk-PSGSFPWA.js';
|
|
6
|
+
import { showApiErrorNotification, showErrorNotification, showSuccessNotification } from './chunk-PNCJJE4Z.js';
|
|
7
7
|
import { CardHeader } from './chunk-62GVNH5U.js';
|
|
8
8
|
import { useInitialization } from './chunk-P45GQ3ZW.js';
|
|
9
|
-
import { RoleBadge } from './chunk-
|
|
9
|
+
import { RoleBadge } from './chunk-YJ437RDY.js';
|
|
10
10
|
import { useOrganization } from './chunk-DD3CCMCZ.js';
|
|
11
|
-
import { isAPIClientError, formatDateTime, OAUTH_FLOW_TIMEOUT } from './chunk-
|
|
11
|
+
import { isAPIClientError, formatDateTime, OAUTH_FLOW_TIMEOUT } from './chunk-DEZW7QDI.js';
|
|
12
12
|
import { useElevasisServices } from './chunk-BI5VDO2K.js';
|
|
13
13
|
import { useAuthContext } from './chunk-BRJ3QZ4E.js';
|
|
14
14
|
import { Text, Stack, Title, Alert, TextInput, Group, Button, Paper, SimpleGrid, Card, ThemeIcon, Badge, Tooltip, Select, Table, Center, Loader, Box, Code, CopyButton, ActionIcon, UnstyledButton, Switch, Divider, Textarea, MultiSelect } from '@mantine/core';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { deriveActions } from './chunk-
|
|
2
|
-
import { acquisitionListKeys, useNotificationAdapter } from './chunk-
|
|
3
|
-
import { showApiErrorNotification, showSuccessNotification } from './chunk-
|
|
1
|
+
import { deriveActions } from './chunk-75OLN23F.js';
|
|
2
|
+
import { acquisitionListKeys, useNotificationAdapter } from './chunk-PSGSFPWA.js';
|
|
3
|
+
import { showApiErrorNotification, showSuccessNotification } from './chunk-PNCJJE4Z.js';
|
|
4
4
|
import { useElevasisServices } from './chunk-BI5VDO2K.js';
|
|
5
|
-
import { CredentialNameSchema, UuidSchema } from './chunk-
|
|
5
|
+
import { CredentialNameSchema, UuidSchema } from './chunk-34B3ACOZ.js';
|
|
6
6
|
import { useQuery, useQueryClient, useMutation } from '@tanstack/react-query';
|
|
7
7
|
import { z } from 'zod';
|
|
8
8
|
import { useMemo } from 'react';
|
|
@@ -260,10 +260,16 @@ var CredentialService = class {
|
|
|
260
260
|
return CredentialSchemas.VerifyResponse.parse(response);
|
|
261
261
|
}
|
|
262
262
|
};
|
|
263
|
+
|
|
264
|
+
// src/hooks/settings/credentials/queryKeys.ts
|
|
265
|
+
var credentialsKeys = {
|
|
266
|
+
all: ["credentials"],
|
|
267
|
+
list: (organizationId) => [...credentialsKeys.all, organizationId]
|
|
268
|
+
};
|
|
263
269
|
function useCredentials() {
|
|
264
270
|
const { apiRequest, workOSOrganizationId, isReady } = useElevasisServices();
|
|
265
271
|
return useQuery({
|
|
266
|
-
queryKey:
|
|
272
|
+
queryKey: credentialsKeys.list(workOSOrganizationId),
|
|
267
273
|
queryFn: async () => {
|
|
268
274
|
const service = new CredentialService(apiRequest);
|
|
269
275
|
return await service.listCredentials();
|
|
@@ -291,7 +297,7 @@ function useCreateCredential() {
|
|
|
291
297
|
return await service.createCredential(data);
|
|
292
298
|
},
|
|
293
299
|
onSuccess: () => {
|
|
294
|
-
queryClient.invalidateQueries({ queryKey:
|
|
300
|
+
queryClient.invalidateQueries({ queryKey: credentialsKeys.all });
|
|
295
301
|
notifications.show({
|
|
296
302
|
title: "Success",
|
|
297
303
|
message: "Credential created successfully",
|
|
@@ -314,7 +320,7 @@ function useDeleteCredential() {
|
|
|
314
320
|
return await service.deleteCredential(credentialId);
|
|
315
321
|
},
|
|
316
322
|
onSuccess: () => {
|
|
317
|
-
queryClient.invalidateQueries({ queryKey:
|
|
323
|
+
queryClient.invalidateQueries({ queryKey: credentialsKeys.all });
|
|
318
324
|
notifications.show({
|
|
319
325
|
title: "Success",
|
|
320
326
|
message: "Credential deleted successfully",
|
|
@@ -337,7 +343,7 @@ function useUpdateCredential() {
|
|
|
337
343
|
return await service.updateCredential(credentialId, updates);
|
|
338
344
|
},
|
|
339
345
|
onSuccess: () => {
|
|
340
|
-
queryClient.invalidateQueries({ queryKey:
|
|
346
|
+
queryClient.invalidateQueries({ queryKey: credentialsKeys.all });
|
|
341
347
|
notifications.show({
|
|
342
348
|
title: "Success",
|
|
343
349
|
message: "Credential updated successfully",
|
|
@@ -389,4 +395,4 @@ function useTransitionListCompany() {
|
|
|
389
395
|
});
|
|
390
396
|
}
|
|
391
397
|
|
|
392
|
-
export { CredentialSchemas, CredentialService, leadGenArtifactKeys, leadGenListCompanyKeys, leadGenListMemberKeys, useArtifacts, useCreateArtifact, useCreateCredential, useCredentials, useDeleteCredential, useDeriveActions, useListMember, useListMembers, useTransitionListCompany, useTransitionListMember, useUpdateCredential, useUpdateListStatus, useVerifyCredential };
|
|
398
|
+
export { CredentialSchemas, CredentialService, credentialsKeys, leadGenArtifactKeys, leadGenListCompanyKeys, leadGenListMemberKeys, useArtifacts, useCreateArtifact, useCreateCredential, useCredentials, useDeleteCredential, useDeriveActions, useListMember, useListMembers, useTransitionListCompany, useTransitionListMember, useUpdateCredential, useUpdateListStatus, useVerifyCredential };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { getLeadGenStageCatalog } from './chunk-
|
|
2
|
-
import { SYSTEM_INTERFACE_PROFILES, formatOntologyId, registerBuiltInReadinessProfile, registerReadinessInterfaceMarker, requireContractReadiness, computeInterfaceReadiness, addReadinessIssue, formatInterfaceIdentity, getSystem, resourceBindingIds, requireCatalogReadiness, requireScopedBinding } from './chunk-
|
|
1
|
+
import { getLeadGenStageCatalog } from './chunk-PSGSFPWA.js';
|
|
2
|
+
import { SYSTEM_INTERFACE_PROFILES, formatOntologyId, registerBuiltInReadinessProfile, registerReadinessInterfaceMarker, requireContractReadiness, computeInterfaceReadiness, addReadinessIssue, formatInterfaceIdentity, getSystem, resourceBindingIds, requireCatalogReadiness, requireScopedBinding } from './chunk-DEZW7QDI.js';
|
|
3
3
|
|
|
4
4
|
// ../core/src/business/acquisition/ontology-validation.ts
|
|
5
5
|
var LEAD_GEN_API_INTERFACE = SYSTEM_INTERFACE_PROFILES[0];
|
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
import { eqOrgId, useBatchDeleteRows } from './chunk-
|
|
2
|
-
import { LEAD_GEN_API_INTERFACE } from './chunk-
|
|
3
|
-
import { useCredentials, useVerifyCredential, useListMembers, useListMember, useTransitionListMember, useDeriveActions, useArtifacts } from './chunk-
|
|
1
|
+
import { eqOrgId, useBatchDeleteRows } from './chunk-AI5OYVLR.js';
|
|
2
|
+
import { LEAD_GEN_API_INTERFACE } from './chunk-6J3SCCZ2.js';
|
|
3
|
+
import { useCredentials, useVerifyCredential, useListMembers, useListMember, useTransitionListMember, useDeriveActions, useArtifacts } from './chunk-5GYJ3IDO.js';
|
|
4
4
|
import { useSupabase } from './chunk-MKH2KOAO.js';
|
|
5
|
-
import { useCompanyFacets, useCompanies, useDeleteCompanies, useContacts, useDeleteContacts } from './chunk-
|
|
5
|
+
import { useCompanyFacets, useCompanies, useDeleteCompanies, useContacts, useDeleteContacts } from './chunk-75OLN23F.js';
|
|
6
6
|
import { useTableSort, sortData } from './chunk-2Y6AKWGU.js';
|
|
7
|
-
import { getSystemApiInterfaceReadiness } from './chunk-
|
|
7
|
+
import { getSystemApiInterfaceReadiness } from './chunk-PJN6CMWZ.js';
|
|
8
8
|
import { sanitizeInput } from './chunk-3MEXPLWT.js';
|
|
9
9
|
import { useTableSelection } from './chunk-WDBNW44Z.js';
|
|
10
|
-
import { SubshellPageLayout } from './chunk-
|
|
10
|
+
import { SubshellPageLayout } from './chunk-SOBKRB4N.js';
|
|
11
11
|
import { PageContainer } from './chunk-BZZCNLT6.js';
|
|
12
12
|
import { TableSelectionToolbar, SortableHeader } from './chunk-TUMSNGTX.js';
|
|
13
13
|
import { FilterBar } from './chunk-PDHTXPSF.js';
|
|
14
|
-
import { SubshellSidebarSection, LeadGenSidebarMiddle, PageTitleCaption, acquisitionListKeys, useOptionalElevasisSystems, getAllBuildTemplates, getLeadGenStageCatalog, useListsTelemetry, useLists, useAccess, AccessKeys, SubshellContentContainer, CenteredErrorState, StatCard, usePaginationState, EmptyState, CustomModal, useListActions, useList, useListProgress, useListExecutions, useDeleteList, useExecuteAsync, SystemReadinessAlert, useCreateList, JsonViewer, isExecutionInFlight, useWorkflowExecution, useInFlightExecutions, useExecutionSSE, useListRecords } from './chunk-
|
|
15
|
-
import { showApiErrorNotification, showSuccessNotification } from './chunk-
|
|
14
|
+
import { SubshellSidebarSection, LeadGenSidebarMiddle, PageTitleCaption, acquisitionListKeys, useOptionalElevasisSystems, getAllBuildTemplates, getLeadGenStageCatalog, useListsTelemetry, useLists, useAccess, AccessKeys, SubshellContentContainer, CenteredErrorState, StatCard, usePaginationState, EmptyState, CustomModal, useListActions, useList, useListProgress, useListExecutions, useDeleteList, useExecuteAsync, SystemReadinessAlert, useCreateList, JsonViewer, isExecutionInFlight, useWorkflowExecution, useInFlightExecutions, useExecutionSSE, useListRecords } from './chunk-PSGSFPWA.js';
|
|
15
|
+
import { showApiErrorNotification, showSuccessNotification } from './chunk-PNCJJE4Z.js';
|
|
16
16
|
import { CardHeader } from './chunk-62GVNH5U.js';
|
|
17
17
|
import { useOrganization } from './chunk-DD3CCMCZ.js';
|
|
18
|
-
import { PAGE_SIZE_DEFAULT, formatTimeAgo, getSystem } from './chunk-
|
|
19
|
-
import { REFETCH_INTERVAL_RUNNING, REFETCH_INTERVAL_REALTIME } from './chunk-
|
|
18
|
+
import { PAGE_SIZE_DEFAULT, formatTimeAgo, getSystem } from './chunk-DEZW7QDI.js';
|
|
19
|
+
import { REFETCH_INTERVAL_RUNNING, REFETCH_INTERVAL_REALTIME } from './chunk-6XBZPKMI.js';
|
|
20
20
|
import { useElevasisServices } from './chunk-BI5VDO2K.js';
|
|
21
21
|
import { Stack, Group, Title, Text, Alert, Button, Collapse, Paper, Anchor, Center, Loader, SimpleGrid, Table, Badge, TextInput, Select, Checkbox, Pagination, ActionIcon, Tooltip, Tabs, Switch, Card, Divider, Textarea, ThemeIcon, Box, SegmentedControl, UnstyledButton, Pill, Drawer, JsonInput, NumberInput, MultiSelect, TagsInput, ScrollArea } from '@mantine/core';
|
|
22
22
|
import { IconTarget, IconAlertCircle, IconPlayerPlay, IconArrowRight, IconListDetails, IconPlus, IconAlertTriangle, IconSearch, IconList, IconExternalLink, IconCopy, IconTrash, IconBuilding, IconUsers, IconBolt, IconLayoutDashboard, IconBuildingFactory2, IconMessage, IconArrowLeft, IconCircleDot, IconChevronLeft, IconChevronRight, IconCheck, IconSparkles, IconAddressBook, IconSettings, IconChevronDown, IconRefresh, IconMail, IconUser, IconDatabase } from '@tabler/icons-react';
|
|
@@ -29,6 +29,17 @@ import { useQueryClient, useMutation, useQuery } from '@tanstack/react-query';
|
|
|
29
29
|
import { useClipboard } from '@mantine/hooks';
|
|
30
30
|
import { notifications } from '@mantine/notifications';
|
|
31
31
|
|
|
32
|
+
// src/features/lead-gen/apollo-options.ts
|
|
33
|
+
var EMPLOYEE_RANGES = [
|
|
34
|
+
{ value: "1,10", label: "1-10" },
|
|
35
|
+
{ value: "11,50", label: "11-50" },
|
|
36
|
+
{ value: "51,200", label: "51-200" },
|
|
37
|
+
{ value: "201,500", label: "201-500" },
|
|
38
|
+
{ value: "501,1000", label: "501-1,000" },
|
|
39
|
+
{ value: "1001,5000", label: "1,001-5,000" },
|
|
40
|
+
{ value: "5001,10000", label: "5,001-10,000" },
|
|
41
|
+
{ value: "10001,1000000", label: "10,000+" }
|
|
42
|
+
];
|
|
32
43
|
var LeadGenSidebarTop = () => {
|
|
33
44
|
return /* @__PURE__ */ jsx(SubshellSidebarSection, { icon: IconTarget, label: "Lead Gen" });
|
|
34
45
|
};
|
|
@@ -5246,4 +5257,4 @@ function SocialPostDetailPage({
|
|
|
5246
5257
|
] });
|
|
5247
5258
|
}
|
|
5248
5259
|
|
|
5249
|
-
export { LEAD_GEN_ROUTE_LINKS, LeadGenCompaniesPage, LeadGenContactsPage, LeadGenListDetailPage, LeadGenListsPage, LeadGenOverviewPage, LeadGenRouteShell, LeadGenSidebar, LeadGenSidebarTop, ListBuilderIndexPage, ListBuilderPage, ORPHAN_STAGE_ORDER, SocialMonitoringPage, SocialPostDetailPage, StepConfigForm, TabSection, deriveBusinessProgress, formatDate, getEnrichmentColor, getEnrichmentStatus, getLeadGenApiInterfaceReadiness, getLeadGenExportWorkflowId, getStateKeyColor, getStatusColor, getStepActionLabel, isLeadGenExportAction, resolveBuildPlanSteps, resolveBuildState, socialPostDetailKeys, socialPostKeys, sortStageKeys, useAdjacentPosts, useDeleteLists, useDeleteSocialPost, useLeadGenConfig, useSocialPost, useSocialPosts, useUpdateSocialPost };
|
|
5260
|
+
export { EMPLOYEE_RANGES, LEAD_GEN_ROUTE_LINKS, LeadGenCompaniesPage, LeadGenContactsPage, LeadGenListDetailPage, LeadGenListsPage, LeadGenOverviewPage, LeadGenRouteShell, LeadGenSidebar, LeadGenSidebarTop, ListBuilderIndexPage, ListBuilderPage, ORPHAN_STAGE_ORDER, SocialMonitoringPage, SocialPostDetailPage, StepConfigForm, TabSection, deriveBusinessProgress, formatDate, getEnrichmentColor, getEnrichmentStatus, getLeadGenApiInterfaceReadiness, getLeadGenExportWorkflowId, getStateKeyColor, getStatusColor, getStepActionLabel, isLeadGenExportAction, resolveBuildPlanSteps, resolveBuildState, socialPostDetailKeys, socialPostKeys, sortStageKeys, useAdjacentPosts, useDeleteLists, useDeleteSocialPost, useLeadGenConfig, useSocialPost, useSocialPosts, useUpdateSocialPost };
|
|
@@ -1,29 +1,27 @@
|
|
|
1
|
-
import { acquisitionListKeys } from './chunk-
|
|
2
|
-
import { showApiErrorNotification, showSuccessNotification } from './chunk-
|
|
3
|
-
import { APIClientError } from './chunk-
|
|
1
|
+
import { acquisitionListKeys } from './chunk-PSGSFPWA.js';
|
|
2
|
+
import { showApiErrorNotification, showSuccessNotification } from './chunk-PNCJJE4Z.js';
|
|
3
|
+
import { APIClientError, buildQueryString } from './chunk-DEZW7QDI.js';
|
|
4
4
|
import { useElevasisServices } from './chunk-BI5VDO2K.js';
|
|
5
5
|
import { useQuery, useQueryClient, useMutation } from '@tanstack/react-query';
|
|
6
6
|
import { z } from 'zod';
|
|
7
7
|
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
8
|
+
// src/hooks/acquisition/queryKeys.ts
|
|
9
|
+
var companyKeys = {
|
|
10
|
+
all: ["acquisition-companies"],
|
|
11
|
+
list: (organizationId, filters) => [...companyKeys.all, "list", organizationId, filters],
|
|
12
|
+
facets: (organizationId) => [...companyKeys.all, "facets", organizationId],
|
|
13
|
+
detail: (organizationId, companyId) => [...companyKeys.all, "detail", organizationId, companyId]
|
|
14
|
+
};
|
|
14
15
|
var contactKeys = {
|
|
15
16
|
all: ["acquisition-contacts"],
|
|
16
17
|
list: (organizationId, filters) => [...contactKeys.all, "list", organizationId, filters],
|
|
17
18
|
detail: (organizationId, contactId) => [...contactKeys.all, "detail", organizationId, contactId]
|
|
18
19
|
};
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
}
|
|
25
|
-
const queryString = searchParams.toString();
|
|
26
|
-
return queryString ? `?${queryString}` : "";
|
|
20
|
+
z.object({
|
|
21
|
+
replyBody: z.string().trim().min(1).max(1e4)
|
|
22
|
+
}).strict();
|
|
23
|
+
function deriveActions(deal, actions = []) {
|
|
24
|
+
return actions.filter((a) => a.isAvailableFor(deal)).map(({ key, label, payloadSchema }) => ({ key, label, payloadSchema }));
|
|
27
25
|
}
|
|
28
26
|
function useContacts(filters = {}) {
|
|
29
27
|
const { apiRequest, isReady, workOSOrganizationId } = useElevasisServices();
|
|
@@ -66,7 +64,7 @@ function useCreateContact() {
|
|
|
66
64
|
}),
|
|
67
65
|
onSuccess: () => {
|
|
68
66
|
queryClient.invalidateQueries({ queryKey: contactKeys.all });
|
|
69
|
-
queryClient.invalidateQueries({ queryKey:
|
|
67
|
+
queryClient.invalidateQueries({ queryKey: companyKeys.all });
|
|
70
68
|
queryClient.invalidateQueries({ queryKey: acquisitionListKeys.all });
|
|
71
69
|
showSuccessNotification("Contact created");
|
|
72
70
|
},
|
|
@@ -85,7 +83,7 @@ function useUpdateContact(contactId) {
|
|
|
85
83
|
}),
|
|
86
84
|
onSuccess: () => {
|
|
87
85
|
queryClient.invalidateQueries({ queryKey: contactKeys.all });
|
|
88
|
-
queryClient.invalidateQueries({ queryKey:
|
|
86
|
+
queryClient.invalidateQueries({ queryKey: companyKeys.all });
|
|
89
87
|
queryClient.invalidateQueries({ queryKey: acquisitionListKeys.all });
|
|
90
88
|
showSuccessNotification("Contact updated");
|
|
91
89
|
},
|
|
@@ -111,7 +109,7 @@ function useDeleteContacts() {
|
|
|
111
109
|
},
|
|
112
110
|
onSuccess: () => {
|
|
113
111
|
queryClient.invalidateQueries({ queryKey: contactKeys.all });
|
|
114
|
-
queryClient.invalidateQueries({ queryKey:
|
|
112
|
+
queryClient.invalidateQueries({ queryKey: companyKeys.all });
|
|
115
113
|
queryClient.invalidateQueries({ queryKey: acquisitionListKeys.all });
|
|
116
114
|
showSuccessNotification("Contacts deleted");
|
|
117
115
|
},
|
|
@@ -122,27 +120,12 @@ function useDeleteContacts() {
|
|
|
122
120
|
}
|
|
123
121
|
|
|
124
122
|
// src/hooks/acquisition/useCompanies.ts
|
|
125
|
-
var companyKeys = {
|
|
126
|
-
all: ["acquisition-companies"],
|
|
127
|
-
list: (organizationId, filters) => [...companyKeys.all, "list", organizationId, filters],
|
|
128
|
-
facets: (organizationId) => [...companyKeys.all, "facets", organizationId],
|
|
129
|
-
detail: (organizationId, companyId) => [...companyKeys.all, "detail", organizationId, companyId]
|
|
130
|
-
};
|
|
131
|
-
function buildQueryString2(params) {
|
|
132
|
-
const searchParams = new URLSearchParams();
|
|
133
|
-
for (const [key, value] of Object.entries(params)) {
|
|
134
|
-
if (value === void 0) continue;
|
|
135
|
-
searchParams.set(key, String(value));
|
|
136
|
-
}
|
|
137
|
-
const queryString = searchParams.toString();
|
|
138
|
-
return queryString ? `?${queryString}` : "";
|
|
139
|
-
}
|
|
140
123
|
function useCompanies(filters = {}) {
|
|
141
124
|
const { apiRequest, isReady, workOSOrganizationId } = useElevasisServices();
|
|
142
125
|
return useQuery({
|
|
143
126
|
queryKey: companyKeys.list(workOSOrganizationId, filters),
|
|
144
127
|
queryFn: async () => {
|
|
145
|
-
const queryString =
|
|
128
|
+
const queryString = buildQueryString({
|
|
146
129
|
listId: filters.listId,
|
|
147
130
|
search: filters.search,
|
|
148
131
|
domain: filters.domain,
|
|
@@ -190,7 +173,7 @@ function useCreateCompany() {
|
|
|
190
173
|
}),
|
|
191
174
|
onSuccess: () => {
|
|
192
175
|
queryClient.invalidateQueries({ queryKey: companyKeys.all });
|
|
193
|
-
queryClient.invalidateQueries({ queryKey:
|
|
176
|
+
queryClient.invalidateQueries({ queryKey: contactKeys.all });
|
|
194
177
|
queryClient.invalidateQueries({ queryKey: acquisitionListKeys.all });
|
|
195
178
|
showSuccessNotification("Company created");
|
|
196
179
|
},
|
|
@@ -209,7 +192,7 @@ function useUpdateCompany(companyId) {
|
|
|
209
192
|
}),
|
|
210
193
|
onSuccess: () => {
|
|
211
194
|
queryClient.invalidateQueries({ queryKey: companyKeys.all });
|
|
212
|
-
queryClient.invalidateQueries({ queryKey:
|
|
195
|
+
queryClient.invalidateQueries({ queryKey: contactKeys.all });
|
|
213
196
|
queryClient.invalidateQueries({ queryKey: acquisitionListKeys.all });
|
|
214
197
|
showSuccessNotification("Company updated");
|
|
215
198
|
},
|
|
@@ -235,7 +218,7 @@ function useDeleteCompanies() {
|
|
|
235
218
|
},
|
|
236
219
|
onSuccess: () => {
|
|
237
220
|
queryClient.invalidateQueries({ queryKey: companyKeys.all });
|
|
238
|
-
queryClient.invalidateQueries({ queryKey:
|
|
221
|
+
queryClient.invalidateQueries({ queryKey: contactKeys.all });
|
|
239
222
|
queryClient.invalidateQueries({ queryKey: acquisitionListKeys.all });
|
|
240
223
|
showSuccessNotification("Companies deleted");
|
|
241
224
|
},
|