@elevasis/ui 2.29.0 → 2.31.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-QC62UHTZ.js → CoreAuthKitInner-KSEGSB67.js} +1 -1
- package/dist/api/index.js +3 -3
- package/dist/app/index.d.ts +176 -1
- package/dist/app/index.js +11 -11
- package/dist/auth/context.js +1 -1
- package/dist/auth/index.js +5 -5
- package/dist/charts/index.d.ts +2 -1
- package/dist/charts/index.js +9 -9
- package/dist/{chunk-XTVZFT7U.js → chunk-2Q2JQSQO.js} +1 -1
- package/dist/{chunk-LH4GPYDX.js → chunk-3BAPR3KA.js} +19 -3
- package/dist/{chunk-HLFFKKT3.js → chunk-3FV6HBXS.js} +17 -17
- package/dist/{chunk-WKJ47GIW.js → chunk-533DUEQY.js} +1 -1
- package/dist/{chunk-SZWXQHKO.js → chunk-542WPQU2.js} +9 -8
- package/dist/{chunk-5CW2HXQA.js → chunk-5LJAEZMA.js} +7 -28
- package/dist/{chunk-V3HUIZJX.js → chunk-6IXOKUBC.js} +1 -1
- package/dist/{chunk-VKMNWHTL.js → chunk-6YT4IKJ7.js} +3 -3
- package/dist/{chunk-CEHUFNAL.js → chunk-7HMCB26R.js} +12 -12
- package/dist/chunk-7KC4P3AU.js +357 -0
- package/dist/{chunk-OWESKPTJ.js → chunk-CQZ3DNQY.js} +30 -11
- package/dist/{chunk-ROSMICXG.js → chunk-CXY7FMUM.js} +35 -20
- package/dist/{chunk-I2KLQ2HA.js → chunk-DZTG5IAC.js} +7 -1
- package/dist/{chunk-JCGD4GM6.js → chunk-GRDLB6LM.js} +1 -0
- package/dist/{chunk-FGDUK74A.js → chunk-HQGF4ATG.js} +10 -56
- package/dist/{chunk-HOIT677G.js → chunk-HUJCU55S.js} +1 -1
- package/dist/{chunk-OIMPGKDB.js → chunk-HYNYEBHM.js} +4 -4
- package/dist/{chunk-GESXCQWY.js → chunk-JA5ECJJB.js} +1 -1
- package/dist/{chunk-KU7ZDWQ7.js → chunk-JBWJ6WHZ.js} +1 -1
- package/dist/{chunk-HNFQCOD2.js → chunk-JKSUN5GN.js} +1107 -370
- package/dist/{chunk-5WWZXCS5.js → chunk-KJ3QUBNU.js} +9 -2
- package/dist/{chunk-OHGNCWJP.js → chunk-L2NVFLXU.js} +3 -3
- package/dist/{chunk-6WXDE5LZ.js → chunk-L3BVJWML.js} +1 -1
- package/dist/{chunk-3DUOPXOJ.js → chunk-MVFCLZSK.js} +691 -222
- package/dist/{chunk-A7R2URMV.js → chunk-ND42LPY4.js} +44 -10
- package/dist/{chunk-CLUP5H3C.js → chunk-O2QOPJI5.js} +360 -126
- package/dist/{chunk-VMJVQAFZ.js → chunk-OAVTMITG.js} +1 -1
- package/dist/{chunk-X2SUMO3P.js → chunk-P55BJZZW.js} +2 -1
- package/dist/{chunk-QNL7UI5G.js → chunk-Q6OYNEGR.js} +6 -6
- package/dist/{chunk-Y3YJKKEB.js → chunk-QDEETKYT.js} +5 -2
- package/dist/{chunk-XBMCDGHA.js → chunk-QHEWXU7I.js} +1 -1
- package/dist/chunk-R2XR4FCV.js +48 -0
- package/dist/chunk-R66W5UDG.js +26 -0
- package/dist/{chunk-65RQE3XF.js → chunk-SHQXMW4F.js} +1051 -380
- package/dist/{chunk-AK5E6ILJ.js → chunk-T3IPHEYJ.js} +1893 -305
- package/dist/{chunk-7E3FUTND.js → chunk-TOIXUWR6.js} +1 -1
- package/dist/{chunk-FFDAE2QI.js → chunk-TVRQ6AQI.js} +172 -26
- package/dist/{chunk-CN2HC4D4.js → chunk-UFTM5SZZ.js} +2 -2
- package/dist/{chunk-WFTNY755.js → chunk-VKIZUUPM.js} +1 -1
- package/dist/{chunk-KVJ3LFH2.js → chunk-VNFR57DF.js} +4 -24
- package/dist/{chunk-S66IQSSR.js → chunk-WF227UBV.js} +1 -1
- package/dist/{chunk-6NHCE7JM.js → chunk-Y4FWCG7Y.js} +159 -314
- package/dist/components/chat/index.d.ts +2 -1
- package/dist/components/chat/index.js +2 -2
- package/dist/components/index.d.ts +205 -11
- package/dist/components/index.js +51 -48
- package/dist/components/navigation/index.js +9 -9
- package/dist/execution/index.d.ts +2 -1
- package/dist/execution/index.js +1 -1
- package/dist/features/auth/index.d.ts +121 -0
- package/dist/features/auth/index.js +6 -6
- package/dist/features/clients/index.css +611 -0
- package/dist/features/clients/index.d.ts +86 -0
- package/dist/features/clients/index.js +719 -0
- package/dist/features/crm/index.d.ts +148 -2
- package/dist/features/crm/index.js +27 -25
- package/dist/features/dashboard/index.d.ts +36 -1
- package/dist/features/dashboard/index.js +23 -23
- package/dist/features/delivery/index.d.ts +121 -0
- package/dist/features/delivery/index.js +27 -25
- package/dist/features/knowledge/index.js +52 -29
- package/dist/features/lead-gen/index.d.ts +116 -12
- package/dist/features/lead-gen/index.js +28 -26
- package/dist/features/monitoring/index.js +26 -25
- package/dist/features/monitoring/requests/index.js +23 -22
- package/dist/features/operations/index.d.ts +38 -2
- package/dist/features/operations/index.js +32 -31
- package/dist/features/seo/index.js +1 -1
- package/dist/features/settings/index.d.ts +121 -0
- package/dist/features/settings/index.js +25 -24
- package/dist/graph/index.js +1 -1
- package/dist/hooks/delivery/index.d.ts +140 -0
- package/dist/hooks/delivery/index.js +4 -4
- package/dist/hooks/index.d.ts +844 -21
- package/dist/hooks/index.js +21 -21
- package/dist/hooks/operations/command-view/utils/transformCommandViewData.d.ts +82 -1
- package/dist/hooks/operations/command-view/utils/transformCommandViewData.js +1 -1
- package/dist/hooks/published.d.ts +844 -21
- package/dist/hooks/published.js +21 -21
- package/dist/index.d.ts +1056 -27
- package/dist/index.js +22 -22
- package/dist/initialization/index.d.ts +121 -0
- package/dist/initialization/index.js +5 -5
- package/dist/knowledge/index.d.ts +151 -1
- package/dist/knowledge/index.js +1692 -1039
- package/dist/layout/index.d.ts +6 -0
- package/dist/layout/index.js +4 -4
- package/dist/organization/index.js +5 -5
- package/dist/profile/index.d.ts +121 -0
- package/dist/profile/index.js +3 -3
- package/dist/provider/ElevasisServiceContext.d.ts +11 -5
- package/dist/provider/ElevasisServiceContext.js +2 -2
- package/dist/provider/index.d.ts +337 -7
- package/dist/provider/index.js +18 -18
- package/dist/provider/published.d.ts +337 -7
- package/dist/provider/published.js +14 -14
- package/dist/router/context.js +1 -1
- package/dist/router/index.js +1 -1
- package/dist/sse/index.js +1 -1
- package/dist/supabase/index.d.ts +232 -0
- package/dist/supabase/index.js +1 -1
- package/dist/test-utils/index.d.ts +3 -0
- package/dist/test-utils/index.js +31 -7
- package/dist/test-utils/setup-integration.js +1 -1
- package/dist/test-utils/setup.js +2 -2
- package/dist/theme/index.js +4 -4
- package/dist/theme/presets/index.js +2 -2
- package/dist/typeform/index.js +1 -1
- package/dist/typeform/schemas.js +1 -1
- package/dist/types/index.d.ts +204 -1
- package/dist/utils/index.d.ts +36 -1
- package/dist/utils/index.js +2 -2
- package/dist/vite/index.js +3 -3
- package/dist/vite-plugin-knowledge/index.js +2 -2
- package/dist/zustand/index.js +1 -1
- package/package.json +14 -5
- /package/dist/{chunk-HXZQWMKE.js → chunk-XQHZBA65.js} +0 -0
package/dist/layout/index.d.ts
CHANGED
|
@@ -292,6 +292,12 @@ interface LinkItem {
|
|
|
292
292
|
dataOnboardingTourId?: string;
|
|
293
293
|
/** When true, only mark active on exact path match (not on prefix). Used when a sibling has a more-specific sub-path. */
|
|
294
294
|
exact?: boolean;
|
|
295
|
+
/**
|
|
296
|
+
* Additional path prefixes that mark this link active. Useful when a hub link
|
|
297
|
+
* (e.g. `/sales`) should also light up while the user is on a sibling route
|
|
298
|
+
* (e.g. `/lead-gen` or `/crm`) handled by the same subshell.
|
|
299
|
+
*/
|
|
300
|
+
activeMatchPaths?: string[];
|
|
295
301
|
}
|
|
296
302
|
interface LinksGroupProps {
|
|
297
303
|
icon: React$1.ComponentType<{
|
package/dist/layout/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
export { AppShellContainer, AppShellContentContainer, AppShellRightSideContainer, AppShellRightSideOuterContainer, AppTopbarAdjusterWrapper, CollapsibleSidebarGroup, CyberParticles, LinksGroup, Sidebar, SidebarContext, SidebarProvider, SubshellNavList, Topbar, TopbarContainer, Vignette, subsidebarWidth, useSidebar, useSidebarCollapse } from '../chunk-
|
|
1
|
+
export { AppShellContainer, AppShellContentContainer, AppShellRightSideContainer, AppShellRightSideOuterContainer, AppTopbarAdjusterWrapper, CollapsibleSidebarGroup, CyberParticles, LinksGroup, Sidebar, SidebarContext, SidebarProvider, SubshellNavList, Topbar, TopbarContainer, Vignette, subsidebarWidth, useSidebar, useSidebarCollapse } from '../chunk-P55BJZZW.js';
|
|
2
2
|
export { SubshellLoader } from '../chunk-JDNEWB5F.js';
|
|
3
3
|
export { SubshellSidebarLoader } from '../chunk-XQQEKWTL.js';
|
|
4
|
-
export { AppShellCenteredContainer, AppShellError, AppShellLoader } from '../chunk-RYTEQBAO.js';
|
|
5
|
-
export { PageContainer } from '../chunk-BZZCNLT6.js';
|
|
6
4
|
export { SubshellNavItem } from '../chunk-X4WBGKJQ.js';
|
|
7
5
|
export { SubshellSidebarSection } from '../chunk-IIMU5YAJ.js';
|
|
6
|
+
export { AppShellCenteredContainer, AppShellError, AppShellLoader } from '../chunk-RYTEQBAO.js';
|
|
7
|
+
export { PageContainer } from '../chunk-BZZCNLT6.js';
|
|
8
8
|
export { AmbientBloomGrid, AppBackground, CyberBackground, FilmGrain, FloatingMotes, FloatingOrbs, PerspectiveGrid, RadiantGlow, WaveBackground } from '../chunk-WLOQ4IBG.js';
|
|
9
9
|
export { SubshellContainer, SubshellContentContainer, SubshellRightSideContainer, SubshellSidebar } from '../chunk-TKAYX2SP.js';
|
|
10
10
|
import '../chunk-NYBEU5TE.js';
|
|
@@ -12,4 +12,4 @@ import '../chunk-2IFYDILW.js';
|
|
|
12
12
|
import '../chunk-Q7DJKLEN.js';
|
|
13
13
|
import '../chunk-E565XMTQ.js';
|
|
14
14
|
export { sidebarBottomSectionCollapsedHeight, sidebarBottomSectionHeight, sidebarCollapsedWidth, sidebarGroupChevronSize, sidebarHoverDelay, sidebarIconInnerSize, sidebarIconSize, sidebarIconStroke, sidebarItemGap, sidebarItemHeight, sidebarItemPadding, sidebarSectionPadding, sidebarSubLinkIndent, sidebarSubLinkPaddingX, sidebarSubLinkPaddingY, sidebarToggleIconSize, sidebarTransitionDuration, sidebarWidth, subshellNavItemIconSize, topbarHeight } from '../chunk-DT3QYZVU.js';
|
|
15
|
-
import '../chunk-
|
|
15
|
+
import '../chunk-DZTG5IAC.js';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export { OrganizationSwitcher, OrganizationSwitcherConnected, createOrganizationsSlice, createUseOrgInitialization, createUseOrganizations } from '../chunk-
|
|
2
|
-
export { OrganizationProvider } from '../chunk-
|
|
1
|
+
export { OrganizationSwitcher, OrganizationSwitcherConnected, createOrganizationsSlice, createUseOrgInitialization, createUseOrganizations } from '../chunk-JA5ECJJB.js';
|
|
2
|
+
export { OrganizationProvider } from '../chunk-HUJCU55S.js';
|
|
3
3
|
import '../chunk-RNP5R5I3.js';
|
|
4
4
|
export { OrganizationContext, useOrganization } from '../chunk-DD3CCMCZ.js';
|
|
5
|
-
import '../chunk-
|
|
6
|
-
import '../chunk-
|
|
5
|
+
import '../chunk-2Q2JQSQO.js';
|
|
6
|
+
import '../chunk-KJ3QUBNU.js';
|
|
7
7
|
import '../chunk-BRJ3QZ4E.js';
|
|
8
|
-
import '../chunk-
|
|
8
|
+
import '../chunk-DZTG5IAC.js';
|
package/dist/profile/index.d.ts
CHANGED
|
@@ -62,6 +62,7 @@ type Database = {
|
|
|
62
62
|
batch_id: string | null;
|
|
63
63
|
category: string | null;
|
|
64
64
|
category_pain: string | null;
|
|
65
|
+
client_id: string | null;
|
|
65
66
|
created_at: string;
|
|
66
67
|
domain: string | null;
|
|
67
68
|
enrichment_data: Json | null;
|
|
@@ -88,6 +89,7 @@ type Database = {
|
|
|
88
89
|
batch_id?: string | null;
|
|
89
90
|
category?: string | null;
|
|
90
91
|
category_pain?: string | null;
|
|
92
|
+
client_id?: string | null;
|
|
91
93
|
created_at?: string;
|
|
92
94
|
domain?: string | null;
|
|
93
95
|
enrichment_data?: Json | null;
|
|
@@ -114,6 +116,7 @@ type Database = {
|
|
|
114
116
|
batch_id?: string | null;
|
|
115
117
|
category?: string | null;
|
|
116
118
|
category_pain?: string | null;
|
|
119
|
+
client_id?: string | null;
|
|
117
120
|
created_at?: string;
|
|
118
121
|
domain?: string | null;
|
|
119
122
|
enrichment_data?: Json | null;
|
|
@@ -137,6 +140,13 @@ type Database = {
|
|
|
137
140
|
website?: string | null;
|
|
138
141
|
};
|
|
139
142
|
Relationships: [
|
|
143
|
+
{
|
|
144
|
+
foreignKeyName: "acq_companies_client_id_fkey";
|
|
145
|
+
columns: ["client_id"];
|
|
146
|
+
isOneToOne: false;
|
|
147
|
+
referencedRelation: "clients";
|
|
148
|
+
referencedColumns: ["id"];
|
|
149
|
+
},
|
|
140
150
|
{
|
|
141
151
|
foreignKeyName: "acq_companies_organization_id_fkey";
|
|
142
152
|
columns: ["organization_id"];
|
|
@@ -151,6 +161,7 @@ type Database = {
|
|
|
151
161
|
batch_id: string | null;
|
|
152
162
|
brochure_first_viewed_at: string | null;
|
|
153
163
|
brochure_view_count: number;
|
|
164
|
+
client_id: string | null;
|
|
154
165
|
company_id: string | null;
|
|
155
166
|
created_at: string;
|
|
156
167
|
email: string;
|
|
@@ -179,6 +190,7 @@ type Database = {
|
|
|
179
190
|
batch_id?: string | null;
|
|
180
191
|
brochure_first_viewed_at?: string | null;
|
|
181
192
|
brochure_view_count?: number;
|
|
193
|
+
client_id?: string | null;
|
|
182
194
|
company_id?: string | null;
|
|
183
195
|
created_at?: string;
|
|
184
196
|
email: string;
|
|
@@ -207,6 +219,7 @@ type Database = {
|
|
|
207
219
|
batch_id?: string | null;
|
|
208
220
|
brochure_first_viewed_at?: string | null;
|
|
209
221
|
brochure_view_count?: number;
|
|
222
|
+
client_id?: string | null;
|
|
210
223
|
company_id?: string | null;
|
|
211
224
|
created_at?: string;
|
|
212
225
|
email?: string;
|
|
@@ -232,6 +245,13 @@ type Database = {
|
|
|
232
245
|
updated_at?: string;
|
|
233
246
|
};
|
|
234
247
|
Relationships: [
|
|
248
|
+
{
|
|
249
|
+
foreignKeyName: "acq_contacts_client_id_fkey";
|
|
250
|
+
columns: ["client_id"];
|
|
251
|
+
isOneToOne: false;
|
|
252
|
+
referencedRelation: "clients";
|
|
253
|
+
referencedColumns: ["id"];
|
|
254
|
+
},
|
|
235
255
|
{
|
|
236
256
|
foreignKeyName: "acq_contacts_company_id_fkey";
|
|
237
257
|
columns: ["company_id"];
|
|
@@ -475,8 +495,10 @@ type Database = {
|
|
|
475
495
|
acq_deals: {
|
|
476
496
|
Row: {
|
|
477
497
|
activity_log: Json;
|
|
498
|
+
client_id: string | null;
|
|
478
499
|
closed_lost_at: string | null;
|
|
479
500
|
closed_lost_reason: string | null;
|
|
501
|
+
company_id: string | null;
|
|
480
502
|
contact_email: string;
|
|
481
503
|
contact_id: string | null;
|
|
482
504
|
created_at: string;
|
|
@@ -512,8 +534,10 @@ type Database = {
|
|
|
512
534
|
};
|
|
513
535
|
Insert: {
|
|
514
536
|
activity_log?: Json;
|
|
537
|
+
client_id?: string | null;
|
|
515
538
|
closed_lost_at?: string | null;
|
|
516
539
|
closed_lost_reason?: string | null;
|
|
540
|
+
company_id?: string | null;
|
|
517
541
|
contact_email: string;
|
|
518
542
|
contact_id?: string | null;
|
|
519
543
|
created_at?: string;
|
|
@@ -549,8 +573,10 @@ type Database = {
|
|
|
549
573
|
};
|
|
550
574
|
Update: {
|
|
551
575
|
activity_log?: Json;
|
|
576
|
+
client_id?: string | null;
|
|
552
577
|
closed_lost_at?: string | null;
|
|
553
578
|
closed_lost_reason?: string | null;
|
|
579
|
+
company_id?: string | null;
|
|
554
580
|
contact_email?: string;
|
|
555
581
|
contact_id?: string | null;
|
|
556
582
|
created_at?: string;
|
|
@@ -585,6 +611,20 @@ type Database = {
|
|
|
585
611
|
updated_at?: string;
|
|
586
612
|
};
|
|
587
613
|
Relationships: [
|
|
614
|
+
{
|
|
615
|
+
foreignKeyName: "acq_deals_client_id_fkey";
|
|
616
|
+
columns: ["client_id"];
|
|
617
|
+
isOneToOne: false;
|
|
618
|
+
referencedRelation: "clients";
|
|
619
|
+
referencedColumns: ["id"];
|
|
620
|
+
},
|
|
621
|
+
{
|
|
622
|
+
foreignKeyName: "acq_deals_company_id_fkey";
|
|
623
|
+
columns: ["company_id"];
|
|
624
|
+
isOneToOne: false;
|
|
625
|
+
referencedRelation: "acq_companies";
|
|
626
|
+
referencedColumns: ["id"];
|
|
627
|
+
},
|
|
588
628
|
{
|
|
589
629
|
foreignKeyName: "acq_deals_contact_id_fkey";
|
|
590
630
|
columns: ["contact_id"];
|
|
@@ -1202,6 +1242,77 @@ type Database = {
|
|
|
1202
1242
|
}
|
|
1203
1243
|
];
|
|
1204
1244
|
};
|
|
1245
|
+
clients: {
|
|
1246
|
+
Row: {
|
|
1247
|
+
converted_at: string | null;
|
|
1248
|
+
created_at: string;
|
|
1249
|
+
id: string;
|
|
1250
|
+
metadata: Json;
|
|
1251
|
+
name: string;
|
|
1252
|
+
organization_id: string;
|
|
1253
|
+
primary_company_id: string | null;
|
|
1254
|
+
primary_contact_id: string | null;
|
|
1255
|
+
source_deal_id: string | null;
|
|
1256
|
+
status: string;
|
|
1257
|
+
updated_at: string;
|
|
1258
|
+
};
|
|
1259
|
+
Insert: {
|
|
1260
|
+
converted_at?: string | null;
|
|
1261
|
+
created_at?: string;
|
|
1262
|
+
id?: string;
|
|
1263
|
+
metadata?: Json;
|
|
1264
|
+
name: string;
|
|
1265
|
+
organization_id: string;
|
|
1266
|
+
primary_company_id?: string | null;
|
|
1267
|
+
primary_contact_id?: string | null;
|
|
1268
|
+
source_deal_id?: string | null;
|
|
1269
|
+
status?: string;
|
|
1270
|
+
updated_at?: string;
|
|
1271
|
+
};
|
|
1272
|
+
Update: {
|
|
1273
|
+
converted_at?: string | null;
|
|
1274
|
+
created_at?: string;
|
|
1275
|
+
id?: string;
|
|
1276
|
+
metadata?: Json;
|
|
1277
|
+
name?: string;
|
|
1278
|
+
organization_id?: string;
|
|
1279
|
+
primary_company_id?: string | null;
|
|
1280
|
+
primary_contact_id?: string | null;
|
|
1281
|
+
source_deal_id?: string | null;
|
|
1282
|
+
status?: string;
|
|
1283
|
+
updated_at?: string;
|
|
1284
|
+
};
|
|
1285
|
+
Relationships: [
|
|
1286
|
+
{
|
|
1287
|
+
foreignKeyName: "clients_organization_id_fkey";
|
|
1288
|
+
columns: ["organization_id"];
|
|
1289
|
+
isOneToOne: false;
|
|
1290
|
+
referencedRelation: "organizations";
|
|
1291
|
+
referencedColumns: ["id"];
|
|
1292
|
+
},
|
|
1293
|
+
{
|
|
1294
|
+
foreignKeyName: "clients_primary_company_id_fkey";
|
|
1295
|
+
columns: ["primary_company_id"];
|
|
1296
|
+
isOneToOne: false;
|
|
1297
|
+
referencedRelation: "acq_companies";
|
|
1298
|
+
referencedColumns: ["id"];
|
|
1299
|
+
},
|
|
1300
|
+
{
|
|
1301
|
+
foreignKeyName: "clients_primary_contact_id_fkey";
|
|
1302
|
+
columns: ["primary_contact_id"];
|
|
1303
|
+
isOneToOne: false;
|
|
1304
|
+
referencedRelation: "acq_contacts";
|
|
1305
|
+
referencedColumns: ["id"];
|
|
1306
|
+
},
|
|
1307
|
+
{
|
|
1308
|
+
foreignKeyName: "clients_source_deal_id_fkey";
|
|
1309
|
+
columns: ["source_deal_id"];
|
|
1310
|
+
isOneToOne: false;
|
|
1311
|
+
referencedRelation: "acq_deals";
|
|
1312
|
+
referencedColumns: ["id"];
|
|
1313
|
+
}
|
|
1314
|
+
];
|
|
1315
|
+
};
|
|
1205
1316
|
command_queue: {
|
|
1206
1317
|
Row: {
|
|
1207
1318
|
action_payload: Json | null;
|
|
@@ -2171,6 +2282,7 @@ type Database = {
|
|
|
2171
2282
|
Row: {
|
|
2172
2283
|
actual_end_date: string | null;
|
|
2173
2284
|
client_company_id: string | null;
|
|
2285
|
+
client_id: string | null;
|
|
2174
2286
|
contract_value: number | null;
|
|
2175
2287
|
created_at: string;
|
|
2176
2288
|
deal_id: string | null;
|
|
@@ -2188,6 +2300,7 @@ type Database = {
|
|
|
2188
2300
|
Insert: {
|
|
2189
2301
|
actual_end_date?: string | null;
|
|
2190
2302
|
client_company_id?: string | null;
|
|
2303
|
+
client_id?: string | null;
|
|
2191
2304
|
contract_value?: number | null;
|
|
2192
2305
|
created_at?: string;
|
|
2193
2306
|
deal_id?: string | null;
|
|
@@ -2205,6 +2318,7 @@ type Database = {
|
|
|
2205
2318
|
Update: {
|
|
2206
2319
|
actual_end_date?: string | null;
|
|
2207
2320
|
client_company_id?: string | null;
|
|
2321
|
+
client_id?: string | null;
|
|
2208
2322
|
contract_value?: number | null;
|
|
2209
2323
|
created_at?: string;
|
|
2210
2324
|
deal_id?: string | null;
|
|
@@ -2241,6 +2355,13 @@ type Database = {
|
|
|
2241
2355
|
referencedRelation: "acq_companies";
|
|
2242
2356
|
referencedColumns: ["id"];
|
|
2243
2357
|
},
|
|
2358
|
+
{
|
|
2359
|
+
foreignKeyName: "prj_projects_client_id_fkey";
|
|
2360
|
+
columns: ["client_id"];
|
|
2361
|
+
isOneToOne: false;
|
|
2362
|
+
referencedRelation: "clients";
|
|
2363
|
+
referencedColumns: ["id"];
|
|
2364
|
+
},
|
|
2244
2365
|
{
|
|
2245
2366
|
foreignKeyName: "prj_projects_deal_id_fkey";
|
|
2246
2367
|
columns: ["deal_id"];
|
package/dist/profile/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import '../chunk-RNP5R5I3.js';
|
|
2
|
-
export { ProfileProvider, UserProfileService, useProfile, useUserProfile } from '../chunk-
|
|
3
|
-
import '../chunk-
|
|
2
|
+
export { ProfileProvider, UserProfileService, useProfile, useUserProfile } from '../chunk-2Q2JQSQO.js';
|
|
3
|
+
import '../chunk-KJ3QUBNU.js';
|
|
4
4
|
import '../chunk-BRJ3QZ4E.js';
|
|
5
|
-
import '../chunk-
|
|
5
|
+
import '../chunk-DZTG5IAC.js';
|
|
@@ -11,12 +11,18 @@ import { ReactNode } from 'react';
|
|
|
11
11
|
*/
|
|
12
12
|
interface ElevasisServiceContextValue {
|
|
13
13
|
apiRequest: <T>(endpoint: string, options?: RequestInit) => Promise<T>;
|
|
14
|
+
/** Organization ID alias retained for existing query-key consumers. */
|
|
14
15
|
organizationId: string | null;
|
|
16
|
+
/** WorkOS `org_xxx` string for the current organization. */
|
|
17
|
+
workOSOrganizationId: string | null;
|
|
15
18
|
isReady: boolean;
|
|
16
19
|
}
|
|
17
20
|
interface ElevasisServiceProviderProps {
|
|
18
21
|
apiRequest: <T>(endpoint: string, options?: RequestInit) => Promise<T>;
|
|
19
|
-
|
|
22
|
+
/** Organization ID alias retained for existing query-key consumers. */
|
|
23
|
+
organizationId?: string | null;
|
|
24
|
+
/** WorkOS `org_xxx` string for the current organization. */
|
|
25
|
+
workOSOrganizationId?: string | null;
|
|
20
26
|
isReady: boolean;
|
|
21
27
|
children: ReactNode;
|
|
22
28
|
}
|
|
@@ -25,7 +31,7 @@ declare const ElevasisServiceContext: react.Context<ElevasisServiceContextValue
|
|
|
25
31
|
|
|
26
32
|
/**
|
|
27
33
|
* Hook to access the ElevasisServiceProvider context.
|
|
28
|
-
* Provides apiRequest,
|
|
34
|
+
* Provides apiRequest, workOSOrganizationId, and isReady.
|
|
29
35
|
*
|
|
30
36
|
* Throws if used outside of an ElevasisServiceProvider or ElevasisUIProvider (with apiUrl).
|
|
31
37
|
*/
|
|
@@ -38,18 +44,18 @@ declare function useElevasisServices(): ElevasisServiceContextValue;
|
|
|
38
44
|
*
|
|
39
45
|
* @example Testing
|
|
40
46
|
* ```tsx
|
|
41
|
-
* <ElevasisServiceProvider apiRequest={mockApiRequest}
|
|
47
|
+
* <ElevasisServiceProvider apiRequest={mockApiRequest} workOSOrganizationId="org-1" isReady={true}>
|
|
42
48
|
* <ComponentUnderTest />
|
|
43
49
|
* </ElevasisServiceProvider>
|
|
44
50
|
* ```
|
|
45
51
|
*
|
|
46
52
|
* @example Embedding
|
|
47
53
|
* ```tsx
|
|
48
|
-
* <ElevasisServiceProvider apiRequest={myFetcher}
|
|
54
|
+
* <ElevasisServiceProvider apiRequest={myFetcher} workOSOrganizationId={orgId} isReady={!!orgId}>
|
|
49
55
|
* <CommandQueuePanel />
|
|
50
56
|
* </ElevasisServiceProvider>
|
|
51
57
|
* ```
|
|
52
58
|
*/
|
|
53
|
-
declare function ElevasisServiceProvider({ apiRequest, organizationId, isReady, children }: ElevasisServiceProviderProps): react_jsx_runtime.JSX.Element;
|
|
59
|
+
declare function ElevasisServiceProvider({ apiRequest, organizationId, workOSOrganizationId, isReady, children }: ElevasisServiceProviderProps): react_jsx_runtime.JSX.Element;
|
|
54
60
|
|
|
55
61
|
export { ElevasisServiceContext, ElevasisServiceProvider, useElevasisServices };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { ElevasisServiceContext, ElevasisServiceProvider, useElevasisServices } from '../chunk-
|
|
2
|
-
import '../chunk-
|
|
1
|
+
export { ElevasisServiceContext, ElevasisServiceProvider, useElevasisServices } from '../chunk-KJ3QUBNU.js';
|
|
2
|
+
import '../chunk-DZTG5IAC.js';
|