@elevasis/ui 2.25.0 → 2.25.1
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.css +11 -0
- package/dist/app/index.d.ts +457 -357
- package/dist/app/index.js +8 -7
- package/dist/auth/index.js +4 -4
- package/dist/charts/index.js +7 -7
- package/dist/{chunk-DDZOHLHB.js → chunk-26HQMR7S.js} +1 -1
- package/dist/{chunk-ZMXZ476Y.js → chunk-3AHEHVJ6.js} +3 -3
- package/dist/{chunk-LJWV4TWV.js → chunk-4ZFBVND2.js} +2 -2
- package/dist/{chunk-7D2HSSIW.js → chunk-7LJUTTXU.js} +5 -5
- package/dist/{chunk-ABV5LDDC.js → chunk-AZQY7AJR.js} +13 -24
- package/dist/{chunk-BIWHHWCJ.js → chunk-DWK2QIAK.js} +2 -1
- package/dist/{chunk-ZDKQNQ4X.js → chunk-GESXCQWY.js} +1 -1
- package/dist/{chunk-Z6FAH4XV.js → chunk-HKBEURCV.js} +1 -1
- package/dist/{chunk-HC2KV6BU.js → chunk-HOIT677G.js} +1 -1
- package/dist/chunk-IS53MXE4.js +230 -0
- package/dist/{chunk-WSC5LU3U.js → chunk-IX7LWINC.js} +6 -5
- package/dist/{chunk-AXXTN44Z.js → chunk-IYIZYMIE.js} +2 -2
- package/dist/{chunk-WWVSPOJY.js → chunk-JDQSCEEF.js} +1237 -642
- package/dist/{chunk-AZXSFDG2.js → chunk-JMI7L7Y7.js} +113 -63
- package/dist/{chunk-TSSKOQBX.js → chunk-KMAXFJPH.js} +2 -2
- package/dist/{chunk-HQ7M6PBW.js → chunk-KU7ZDWQ7.js} +1 -1
- package/dist/{chunk-ZGZZIR6K.js → chunk-L4RT57WU.js} +7 -7
- package/dist/{chunk-LK4MPIMK.js → chunk-MU4VPAMR.js} +2 -2
- package/dist/{chunk-3JCMO7SD.js → chunk-N55DVMAG.js} +1 -1
- package/dist/{chunk-EIOJNUPL.js → chunk-PNLJIPV5.js} +1 -1
- package/dist/{chunk-6Z3G4U2R.js → chunk-Q5BEODAT.js} +3 -2
- package/dist/{chunk-HVC2BTFO.js → chunk-QB2CC4VH.js} +1979 -257
- package/dist/{chunk-QJLRDTYS.js → chunk-RSG2O3HF.js} +932 -707
- package/dist/{chunk-M25JL54Z.js → chunk-RYTEQBAO.js} +1 -1
- package/dist/{chunk-XUYBOO32.js → chunk-U36X6NZM.js} +15 -7
- package/dist/{chunk-QSTH6T77.js → chunk-VKMNWHTL.js} +1 -1
- package/dist/{chunk-V3UOW2HG.js → chunk-VOVZLL23.js} +4 -4
- package/dist/{chunk-SLH2QLKV.js → chunk-WFTNY755.js} +1 -1
- package/dist/{chunk-DK2HVHCY.js → chunk-WKJ47GIW.js} +1 -1
- package/dist/chunk-X4WBGKJQ.js +138 -0
- package/dist/{chunk-QHSW4WHM.js → chunk-XTVZFT7U.js} +1 -1
- package/dist/components/index.css +11 -0
- package/dist/components/index.d.ts +478 -386
- package/dist/components/index.js +138 -336
- package/dist/components/navigation/index.css +11 -0
- package/dist/components/navigation/index.js +8 -8
- package/dist/features/auth/index.css +11 -0
- package/dist/features/auth/index.d.ts +369 -363
- package/dist/features/auth/index.js +7 -7
- package/dist/features/crm/index.css +11 -0
- package/dist/features/crm/index.d.ts +551 -360
- package/dist/features/crm/index.js +19 -19
- package/dist/features/dashboard/index.css +11 -0
- package/dist/features/dashboard/index.js +20 -20
- package/dist/features/delivery/index.css +11 -0
- package/dist/features/delivery/index.d.ts +363 -357
- package/dist/features/delivery/index.js +19 -19
- package/dist/features/lead-gen/index.css +11 -0
- package/dist/features/lead-gen/index.d.ts +160 -2
- package/dist/features/lead-gen/index.js +20 -19
- package/dist/features/monitoring/index.css +11 -0
- package/dist/features/monitoring/index.js +21 -21
- package/dist/features/monitoring/requests/index.css +11 -0
- package/dist/features/monitoring/requests/index.js +17 -17
- package/dist/features/operations/index.css +11 -0
- package/dist/features/operations/index.js +24 -23
- package/dist/features/seo/index.js +2 -2
- package/dist/features/settings/index.css +11 -0
- package/dist/features/settings/index.d.ts +369 -363
- package/dist/features/settings/index.js +19 -19
- package/dist/hooks/delivery/index.css +11 -0
- package/dist/hooks/delivery/index.d.ts +363 -357
- package/dist/hooks/delivery/index.js +2 -2
- package/dist/hooks/index.css +11 -0
- package/dist/hooks/index.d.ts +746 -399
- package/dist/hooks/index.js +17 -17
- package/dist/hooks/published.css +11 -0
- package/dist/hooks/published.d.ts +746 -399
- package/dist/hooks/published.js +17 -17
- package/dist/index.css +11 -0
- package/dist/index.d.ts +862 -381
- package/dist/index.js +17 -17
- package/dist/initialization/index.d.ts +369 -363
- package/dist/initialization/index.js +4 -4
- package/dist/layout/index.d.ts +6 -0
- package/dist/layout/index.js +5 -5
- package/dist/organization/index.css +11 -0
- package/dist/organization/index.js +4 -4
- package/dist/profile/index.d.ts +369 -363
- package/dist/profile/index.js +2 -2
- package/dist/provider/ElevasisServiceContext.d.ts +1 -0
- package/dist/provider/ElevasisServiceContext.js +1 -1
- package/dist/provider/index.css +11 -0
- package/dist/provider/index.d.ts +503 -362
- package/dist/provider/index.js +14 -14
- package/dist/provider/published.css +11 -0
- package/dist/provider/published.d.ts +494 -359
- package/dist/provider/published.js +12 -12
- package/dist/supabase/index.d.ts +369 -357
- package/dist/test-utils/index.js +1 -1
- package/dist/typeform/index.js +49 -20
- package/dist/types/index.d.ts +382 -363
- package/package.json +4 -4
- package/dist/chunk-CEWTOKE7.js +0 -109
- /package/dist/{chunk-IRW7JMQ4.js → chunk-5WWZXCS5.js} +0 -0
- /package/dist/{chunk-QJ2KCHKX.js → chunk-E565XMTQ.js} +0 -0
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
import { ReactNode, ComponentType } from 'react';
|
|
3
3
|
import { z } from 'zod';
|
|
4
|
+
import * as _tanstack_react_query from '@tanstack/react-query';
|
|
4
5
|
|
|
5
6
|
interface CrmSidebarProps {
|
|
6
7
|
/** Replace the default `CrmSidebarMiddle` with custom middle content. Leave unset for the default layout. */
|
|
@@ -54,7 +55,7 @@ type Json = string | number | boolean | null | {
|
|
|
54
55
|
} | Json[];
|
|
55
56
|
type Database = {
|
|
56
57
|
__InternalSupabase: {
|
|
57
|
-
PostgrestVersion:
|
|
58
|
+
PostgrestVersion: "12.2.3 (519615d)";
|
|
58
59
|
};
|
|
59
60
|
public: {
|
|
60
61
|
Tables: {
|
|
@@ -97,11 +98,11 @@ type Database = {
|
|
|
97
98
|
};
|
|
98
99
|
Relationships: [
|
|
99
100
|
{
|
|
100
|
-
foreignKeyName:
|
|
101
|
-
columns: [
|
|
101
|
+
foreignKeyName: "acq_artifacts_organization_id_fkey";
|
|
102
|
+
columns: ["organization_id"];
|
|
102
103
|
isOneToOne: false;
|
|
103
|
-
referencedRelation:
|
|
104
|
-
referencedColumns: [
|
|
104
|
+
referencedRelation: "organizations";
|
|
105
|
+
referencedColumns: ["id"];
|
|
105
106
|
}
|
|
106
107
|
];
|
|
107
108
|
};
|
|
@@ -186,11 +187,11 @@ type Database = {
|
|
|
186
187
|
};
|
|
187
188
|
Relationships: [
|
|
188
189
|
{
|
|
189
|
-
foreignKeyName:
|
|
190
|
-
columns: [
|
|
190
|
+
foreignKeyName: "acq_companies_organization_id_fkey";
|
|
191
|
+
columns: ["organization_id"];
|
|
191
192
|
isOneToOne: false;
|
|
192
|
-
referencedRelation:
|
|
193
|
-
referencedColumns: [
|
|
193
|
+
referencedRelation: "organizations";
|
|
194
|
+
referencedColumns: ["id"];
|
|
194
195
|
}
|
|
195
196
|
];
|
|
196
197
|
};
|
|
@@ -281,18 +282,18 @@ type Database = {
|
|
|
281
282
|
};
|
|
282
283
|
Relationships: [
|
|
283
284
|
{
|
|
284
|
-
foreignKeyName:
|
|
285
|
-
columns: [
|
|
285
|
+
foreignKeyName: "acq_contacts_company_id_fkey";
|
|
286
|
+
columns: ["company_id"];
|
|
286
287
|
isOneToOne: false;
|
|
287
|
-
referencedRelation:
|
|
288
|
-
referencedColumns: [
|
|
288
|
+
referencedRelation: "acq_companies";
|
|
289
|
+
referencedColumns: ["id"];
|
|
289
290
|
},
|
|
290
291
|
{
|
|
291
|
-
foreignKeyName:
|
|
292
|
-
columns: [
|
|
292
|
+
foreignKeyName: "acq_contacts_organization_id_fkey";
|
|
293
|
+
columns: ["organization_id"];
|
|
293
294
|
isOneToOne: false;
|
|
294
|
-
referencedRelation:
|
|
295
|
-
referencedColumns: [
|
|
295
|
+
referencedRelation: "organizations";
|
|
296
|
+
referencedColumns: ["id"];
|
|
296
297
|
}
|
|
297
298
|
];
|
|
298
299
|
};
|
|
@@ -329,11 +330,11 @@ type Database = {
|
|
|
329
330
|
};
|
|
330
331
|
Relationships: [
|
|
331
332
|
{
|
|
332
|
-
foreignKeyName:
|
|
333
|
-
columns: [
|
|
333
|
+
foreignKeyName: "acq_content_organization_id_fkey";
|
|
334
|
+
columns: ["organization_id"];
|
|
334
335
|
isOneToOne: false;
|
|
335
|
-
referencedRelation:
|
|
336
|
-
referencedColumns: [
|
|
336
|
+
referencedRelation: "organizations";
|
|
337
|
+
referencedColumns: ["id"];
|
|
337
338
|
}
|
|
338
339
|
];
|
|
339
340
|
};
|
|
@@ -397,18 +398,18 @@ type Database = {
|
|
|
397
398
|
};
|
|
398
399
|
Relationships: [
|
|
399
400
|
{
|
|
400
|
-
foreignKeyName:
|
|
401
|
-
columns: [
|
|
401
|
+
foreignKeyName: "acq_content_distributions_content_id_fkey";
|
|
402
|
+
columns: ["content_id"];
|
|
402
403
|
isOneToOne: false;
|
|
403
|
-
referencedRelation:
|
|
404
|
-
referencedColumns: [
|
|
404
|
+
referencedRelation: "acq_content";
|
|
405
|
+
referencedColumns: ["id"];
|
|
405
406
|
},
|
|
406
407
|
{
|
|
407
|
-
foreignKeyName:
|
|
408
|
-
columns: [
|
|
408
|
+
foreignKeyName: "acq_content_distributions_organization_id_fkey";
|
|
409
|
+
columns: ["organization_id"];
|
|
409
410
|
isOneToOne: false;
|
|
410
|
-
referencedRelation:
|
|
411
|
-
referencedColumns: [
|
|
411
|
+
referencedRelation: "organizations";
|
|
412
|
+
referencedColumns: ["id"];
|
|
412
413
|
}
|
|
413
414
|
];
|
|
414
415
|
};
|
|
@@ -442,18 +443,18 @@ type Database = {
|
|
|
442
443
|
};
|
|
443
444
|
Relationships: [
|
|
444
445
|
{
|
|
445
|
-
foreignKeyName:
|
|
446
|
-
columns: [
|
|
446
|
+
foreignKeyName: "acq_deal_notes_deal_id_fkey";
|
|
447
|
+
columns: ["deal_id"];
|
|
447
448
|
isOneToOne: false;
|
|
448
|
-
referencedRelation:
|
|
449
|
-
referencedColumns: [
|
|
449
|
+
referencedRelation: "acq_deals";
|
|
450
|
+
referencedColumns: ["id"];
|
|
450
451
|
},
|
|
451
452
|
{
|
|
452
|
-
foreignKeyName:
|
|
453
|
-
columns: [
|
|
453
|
+
foreignKeyName: "acq_deal_notes_organization_id_fkey";
|
|
454
|
+
columns: ["organization_id"];
|
|
454
455
|
isOneToOne: false;
|
|
455
|
-
referencedRelation:
|
|
456
|
-
referencedColumns: [
|
|
456
|
+
referencedRelation: "organizations";
|
|
457
|
+
referencedColumns: ["id"];
|
|
457
458
|
}
|
|
458
459
|
];
|
|
459
460
|
};
|
|
@@ -505,18 +506,18 @@ type Database = {
|
|
|
505
506
|
};
|
|
506
507
|
Relationships: [
|
|
507
508
|
{
|
|
508
|
-
foreignKeyName:
|
|
509
|
-
columns: [
|
|
509
|
+
foreignKeyName: "acq_deal_tasks_deal_id_fkey";
|
|
510
|
+
columns: ["deal_id"];
|
|
510
511
|
isOneToOne: false;
|
|
511
|
-
referencedRelation:
|
|
512
|
-
referencedColumns: [
|
|
512
|
+
referencedRelation: "acq_deals";
|
|
513
|
+
referencedColumns: ["id"];
|
|
513
514
|
},
|
|
514
515
|
{
|
|
515
|
-
foreignKeyName:
|
|
516
|
-
columns: [
|
|
516
|
+
foreignKeyName: "acq_deal_tasks_organization_id_fkey";
|
|
517
|
+
columns: ["organization_id"];
|
|
517
518
|
isOneToOne: false;
|
|
518
|
-
referencedRelation:
|
|
519
|
-
referencedColumns: [
|
|
519
|
+
referencedRelation: "organizations";
|
|
520
|
+
referencedColumns: ["id"];
|
|
520
521
|
}
|
|
521
522
|
];
|
|
522
523
|
};
|
|
@@ -533,6 +534,8 @@ type Database = {
|
|
|
533
534
|
discovery_submitted_by: string | null;
|
|
534
535
|
id: string;
|
|
535
536
|
initial_fee: number | null;
|
|
537
|
+
instantly_email_account: string | null;
|
|
538
|
+
instantly_thread_uuid: string | null;
|
|
536
539
|
monthly_fee: number | null;
|
|
537
540
|
organization_id: string;
|
|
538
541
|
payment_link_sent_at: string | null;
|
|
@@ -568,6 +571,8 @@ type Database = {
|
|
|
568
571
|
discovery_submitted_by?: string | null;
|
|
569
572
|
id?: string;
|
|
570
573
|
initial_fee?: number | null;
|
|
574
|
+
instantly_email_account?: string | null;
|
|
575
|
+
instantly_thread_uuid?: string | null;
|
|
571
576
|
monthly_fee?: number | null;
|
|
572
577
|
organization_id: string;
|
|
573
578
|
payment_link_sent_at?: string | null;
|
|
@@ -603,6 +608,8 @@ type Database = {
|
|
|
603
608
|
discovery_submitted_by?: string | null;
|
|
604
609
|
id?: string;
|
|
605
610
|
initial_fee?: number | null;
|
|
611
|
+
instantly_email_account?: string | null;
|
|
612
|
+
instantly_thread_uuid?: string | null;
|
|
606
613
|
monthly_fee?: number | null;
|
|
607
614
|
organization_id?: string;
|
|
608
615
|
payment_link_sent_at?: string | null;
|
|
@@ -628,25 +635,25 @@ type Database = {
|
|
|
628
635
|
};
|
|
629
636
|
Relationships: [
|
|
630
637
|
{
|
|
631
|
-
foreignKeyName:
|
|
632
|
-
columns: [
|
|
638
|
+
foreignKeyName: "acq_deals_contact_id_fkey";
|
|
639
|
+
columns: ["contact_id"];
|
|
633
640
|
isOneToOne: false;
|
|
634
|
-
referencedRelation:
|
|
635
|
-
referencedColumns: [
|
|
641
|
+
referencedRelation: "acq_contacts";
|
|
642
|
+
referencedColumns: ["id"];
|
|
636
643
|
},
|
|
637
644
|
{
|
|
638
|
-
foreignKeyName:
|
|
639
|
-
columns: [
|
|
645
|
+
foreignKeyName: "acq_deals_organization_id_fkey";
|
|
646
|
+
columns: ["organization_id"];
|
|
640
647
|
isOneToOne: false;
|
|
641
|
-
referencedRelation:
|
|
642
|
-
referencedColumns: [
|
|
648
|
+
referencedRelation: "organizations";
|
|
649
|
+
referencedColumns: ["id"];
|
|
643
650
|
},
|
|
644
651
|
{
|
|
645
|
-
foreignKeyName:
|
|
646
|
-
columns: [
|
|
652
|
+
foreignKeyName: "acq_deals_source_list_id_fkey";
|
|
653
|
+
columns: ["source_list_id"];
|
|
647
654
|
isOneToOne: false;
|
|
648
|
-
referencedRelation:
|
|
649
|
-
referencedColumns: [
|
|
655
|
+
referencedRelation: "acq_lists";
|
|
656
|
+
referencedColumns: ["id"];
|
|
650
657
|
}
|
|
651
658
|
];
|
|
652
659
|
};
|
|
@@ -698,25 +705,25 @@ type Database = {
|
|
|
698
705
|
};
|
|
699
706
|
Relationships: [
|
|
700
707
|
{
|
|
701
|
-
foreignKeyName:
|
|
702
|
-
columns: [
|
|
708
|
+
foreignKeyName: "acq_list_companies_company_id_fkey";
|
|
709
|
+
columns: ["company_id"];
|
|
703
710
|
isOneToOne: false;
|
|
704
|
-
referencedRelation:
|
|
705
|
-
referencedColumns: [
|
|
711
|
+
referencedRelation: "acq_companies";
|
|
712
|
+
referencedColumns: ["id"];
|
|
706
713
|
},
|
|
707
714
|
{
|
|
708
|
-
foreignKeyName:
|
|
709
|
-
columns: [
|
|
715
|
+
foreignKeyName: "acq_list_companies_list_id_fkey";
|
|
716
|
+
columns: ["list_id"];
|
|
710
717
|
isOneToOne: false;
|
|
711
|
-
referencedRelation:
|
|
712
|
-
referencedColumns: [
|
|
718
|
+
referencedRelation: "acq_lists";
|
|
719
|
+
referencedColumns: ["id"];
|
|
713
720
|
},
|
|
714
721
|
{
|
|
715
|
-
foreignKeyName:
|
|
716
|
-
columns: [
|
|
722
|
+
foreignKeyName: "acq_list_companies_source_execution_id_fkey";
|
|
723
|
+
columns: ["source_execution_id"];
|
|
717
724
|
isOneToOne: false;
|
|
718
|
-
referencedRelation:
|
|
719
|
-
referencedColumns: [
|
|
725
|
+
referencedRelation: "execution_logs";
|
|
726
|
+
referencedColumns: ["execution_id"];
|
|
720
727
|
}
|
|
721
728
|
];
|
|
722
729
|
};
|
|
@@ -744,18 +751,18 @@ type Database = {
|
|
|
744
751
|
};
|
|
745
752
|
Relationships: [
|
|
746
753
|
{
|
|
747
|
-
foreignKeyName:
|
|
748
|
-
columns: [
|
|
754
|
+
foreignKeyName: "acq_list_executions_execution_id_fkey";
|
|
755
|
+
columns: ["execution_id"];
|
|
749
756
|
isOneToOne: false;
|
|
750
|
-
referencedRelation:
|
|
751
|
-
referencedColumns: [
|
|
757
|
+
referencedRelation: "execution_logs";
|
|
758
|
+
referencedColumns: ["execution_id"];
|
|
752
759
|
},
|
|
753
760
|
{
|
|
754
|
-
foreignKeyName:
|
|
755
|
-
columns: [
|
|
761
|
+
foreignKeyName: "acq_list_executions_list_id_fkey";
|
|
762
|
+
columns: ["list_id"];
|
|
756
763
|
isOneToOne: false;
|
|
757
|
-
referencedRelation:
|
|
758
|
-
referencedColumns: [
|
|
764
|
+
referencedRelation: "acq_lists";
|
|
765
|
+
referencedColumns: ["id"];
|
|
759
766
|
}
|
|
760
767
|
];
|
|
761
768
|
};
|
|
@@ -807,25 +814,25 @@ type Database = {
|
|
|
807
814
|
};
|
|
808
815
|
Relationships: [
|
|
809
816
|
{
|
|
810
|
-
foreignKeyName:
|
|
811
|
-
columns: [
|
|
817
|
+
foreignKeyName: "acq_list_members_contact_id_fkey";
|
|
818
|
+
columns: ["contact_id"];
|
|
812
819
|
isOneToOne: false;
|
|
813
|
-
referencedRelation:
|
|
814
|
-
referencedColumns: [
|
|
820
|
+
referencedRelation: "acq_contacts";
|
|
821
|
+
referencedColumns: ["id"];
|
|
815
822
|
},
|
|
816
823
|
{
|
|
817
|
-
foreignKeyName:
|
|
818
|
-
columns: [
|
|
824
|
+
foreignKeyName: "acq_list_members_list_id_fkey";
|
|
825
|
+
columns: ["list_id"];
|
|
819
826
|
isOneToOne: false;
|
|
820
|
-
referencedRelation:
|
|
821
|
-
referencedColumns: [
|
|
827
|
+
referencedRelation: "acq_lists";
|
|
828
|
+
referencedColumns: ["id"];
|
|
822
829
|
},
|
|
823
830
|
{
|
|
824
|
-
foreignKeyName:
|
|
825
|
-
columns: [
|
|
831
|
+
foreignKeyName: "acq_list_members_source_execution_id_fkey";
|
|
832
|
+
columns: ["source_execution_id"];
|
|
826
833
|
isOneToOne: false;
|
|
827
|
-
referencedRelation:
|
|
828
|
-
referencedColumns: [
|
|
834
|
+
referencedRelation: "execution_logs";
|
|
835
|
+
referencedColumns: ["execution_id"];
|
|
829
836
|
}
|
|
830
837
|
];
|
|
831
838
|
};
|
|
@@ -880,11 +887,11 @@ type Database = {
|
|
|
880
887
|
};
|
|
881
888
|
Relationships: [
|
|
882
889
|
{
|
|
883
|
-
foreignKeyName:
|
|
884
|
-
columns: [
|
|
890
|
+
foreignKeyName: "acq_lists_organization_id_fkey";
|
|
891
|
+
columns: ["organization_id"];
|
|
885
892
|
isOneToOne: false;
|
|
886
|
-
referencedRelation:
|
|
887
|
-
referencedColumns: [
|
|
893
|
+
referencedRelation: "organizations";
|
|
894
|
+
referencedColumns: ["id"];
|
|
888
895
|
}
|
|
889
896
|
];
|
|
890
897
|
};
|
|
@@ -960,18 +967,18 @@ type Database = {
|
|
|
960
967
|
};
|
|
961
968
|
Relationships: [
|
|
962
969
|
{
|
|
963
|
-
foreignKeyName:
|
|
964
|
-
columns: [
|
|
970
|
+
foreignKeyName: "acq_seo_metrics_organization_id_fkey";
|
|
971
|
+
columns: ["organization_id"];
|
|
965
972
|
isOneToOne: false;
|
|
966
|
-
referencedRelation:
|
|
967
|
-
referencedColumns: [
|
|
973
|
+
referencedRelation: "organizations";
|
|
974
|
+
referencedColumns: ["id"];
|
|
968
975
|
},
|
|
969
976
|
{
|
|
970
|
-
foreignKeyName:
|
|
971
|
-
columns: [
|
|
977
|
+
foreignKeyName: "acq_seo_metrics_seo_page_id_fkey";
|
|
978
|
+
columns: ["seo_page_id"];
|
|
972
979
|
isOneToOne: false;
|
|
973
|
-
referencedRelation:
|
|
974
|
-
referencedColumns: [
|
|
980
|
+
referencedRelation: "acq_seo_pages";
|
|
981
|
+
referencedColumns: ["id"];
|
|
975
982
|
}
|
|
976
983
|
];
|
|
977
984
|
};
|
|
@@ -1047,11 +1054,11 @@ type Database = {
|
|
|
1047
1054
|
};
|
|
1048
1055
|
Relationships: [
|
|
1049
1056
|
{
|
|
1050
|
-
foreignKeyName:
|
|
1051
|
-
columns: [
|
|
1057
|
+
foreignKeyName: "acq_seo_pages_organization_id_fkey";
|
|
1058
|
+
columns: ["organization_id"];
|
|
1052
1059
|
isOneToOne: false;
|
|
1053
|
-
referencedRelation:
|
|
1054
|
-
referencedColumns: [
|
|
1060
|
+
referencedRelation: "organizations";
|
|
1061
|
+
referencedColumns: ["id"];
|
|
1055
1062
|
}
|
|
1056
1063
|
];
|
|
1057
1064
|
};
|
|
@@ -1148,11 +1155,11 @@ type Database = {
|
|
|
1148
1155
|
};
|
|
1149
1156
|
Relationships: [
|
|
1150
1157
|
{
|
|
1151
|
-
foreignKeyName:
|
|
1152
|
-
columns: [
|
|
1158
|
+
foreignKeyName: "acq_social_posts_organization_id_fkey";
|
|
1159
|
+
columns: ["organization_id"];
|
|
1153
1160
|
isOneToOne: false;
|
|
1154
|
-
referencedRelation:
|
|
1155
|
-
referencedColumns: [
|
|
1161
|
+
referencedRelation: "organizations";
|
|
1162
|
+
referencedColumns: ["id"];
|
|
1156
1163
|
}
|
|
1157
1164
|
];
|
|
1158
1165
|
};
|
|
@@ -1207,11 +1214,11 @@ type Database = {
|
|
|
1207
1214
|
};
|
|
1208
1215
|
Relationships: [
|
|
1209
1216
|
{
|
|
1210
|
-
foreignKeyName:
|
|
1211
|
-
columns: [
|
|
1217
|
+
foreignKeyName: "activities_organization_id_fkey";
|
|
1218
|
+
columns: ["organization_id"];
|
|
1212
1219
|
isOneToOne: false;
|
|
1213
|
-
referencedRelation:
|
|
1214
|
-
referencedColumns: [
|
|
1220
|
+
referencedRelation: "organizations";
|
|
1221
|
+
referencedColumns: ["id"];
|
|
1215
1222
|
}
|
|
1216
1223
|
];
|
|
1217
1224
|
};
|
|
@@ -1242,11 +1249,11 @@ type Database = {
|
|
|
1242
1249
|
};
|
|
1243
1250
|
Relationships: [
|
|
1244
1251
|
{
|
|
1245
|
-
foreignKeyName:
|
|
1246
|
-
columns: [
|
|
1252
|
+
foreignKeyName: "api_keys_organization_id_fkey";
|
|
1253
|
+
columns: ["organization_id"];
|
|
1247
1254
|
isOneToOne: false;
|
|
1248
|
-
referencedRelation:
|
|
1249
|
-
referencedColumns: [
|
|
1255
|
+
referencedRelation: "organizations";
|
|
1256
|
+
referencedColumns: ["id"];
|
|
1250
1257
|
}
|
|
1251
1258
|
];
|
|
1252
1259
|
};
|
|
@@ -1325,25 +1332,25 @@ type Database = {
|
|
|
1325
1332
|
};
|
|
1326
1333
|
Relationships: [
|
|
1327
1334
|
{
|
|
1328
|
-
foreignKeyName:
|
|
1329
|
-
columns: [
|
|
1335
|
+
foreignKeyName: "command_queue_completed_by_fkey";
|
|
1336
|
+
columns: ["completed_by"];
|
|
1330
1337
|
isOneToOne: false;
|
|
1331
|
-
referencedRelation:
|
|
1332
|
-
referencedColumns: [
|
|
1338
|
+
referencedRelation: "users";
|
|
1339
|
+
referencedColumns: ["id"];
|
|
1333
1340
|
},
|
|
1334
1341
|
{
|
|
1335
|
-
foreignKeyName:
|
|
1336
|
-
columns: [
|
|
1342
|
+
foreignKeyName: "command_queue_organization_id_fkey";
|
|
1343
|
+
columns: ["organization_id"];
|
|
1337
1344
|
isOneToOne: false;
|
|
1338
|
-
referencedRelation:
|
|
1339
|
-
referencedColumns: [
|
|
1345
|
+
referencedRelation: "organizations";
|
|
1346
|
+
referencedColumns: ["id"];
|
|
1340
1347
|
},
|
|
1341
1348
|
{
|
|
1342
|
-
foreignKeyName:
|
|
1343
|
-
columns: [
|
|
1349
|
+
foreignKeyName: "command_queue_target_execution_id_fkey";
|
|
1350
|
+
columns: ["target_execution_id"];
|
|
1344
1351
|
isOneToOne: false;
|
|
1345
|
-
referencedRelation:
|
|
1346
|
-
referencedColumns: [
|
|
1352
|
+
referencedRelation: "execution_logs";
|
|
1353
|
+
referencedColumns: ["execution_id"];
|
|
1347
1354
|
}
|
|
1348
1355
|
];
|
|
1349
1356
|
};
|
|
@@ -1383,18 +1390,18 @@ type Database = {
|
|
|
1383
1390
|
};
|
|
1384
1391
|
Relationships: [
|
|
1385
1392
|
{
|
|
1386
|
-
foreignKeyName:
|
|
1387
|
-
columns: [
|
|
1393
|
+
foreignKeyName: "credentials_created_by_fkey";
|
|
1394
|
+
columns: ["created_by"];
|
|
1388
1395
|
isOneToOne: false;
|
|
1389
|
-
referencedRelation:
|
|
1390
|
-
referencedColumns: [
|
|
1396
|
+
referencedRelation: "users";
|
|
1397
|
+
referencedColumns: ["id"];
|
|
1391
1398
|
},
|
|
1392
1399
|
{
|
|
1393
|
-
foreignKeyName:
|
|
1394
|
-
columns: [
|
|
1400
|
+
foreignKeyName: "credentials_organization_id_fkey";
|
|
1401
|
+
columns: ["organization_id"];
|
|
1395
1402
|
isOneToOne: false;
|
|
1396
|
-
referencedRelation:
|
|
1397
|
-
referencedColumns: [
|
|
1403
|
+
referencedRelation: "organizations";
|
|
1404
|
+
referencedColumns: ["id"];
|
|
1398
1405
|
}
|
|
1399
1406
|
];
|
|
1400
1407
|
};
|
|
@@ -1440,11 +1447,11 @@ type Database = {
|
|
|
1440
1447
|
};
|
|
1441
1448
|
Relationships: [
|
|
1442
1449
|
{
|
|
1443
|
-
foreignKeyName:
|
|
1444
|
-
columns: [
|
|
1450
|
+
foreignKeyName: "deployments_organization_id_fkey";
|
|
1451
|
+
columns: ["organization_id"];
|
|
1445
1452
|
isOneToOne: false;
|
|
1446
|
-
referencedRelation:
|
|
1447
|
-
referencedColumns: [
|
|
1453
|
+
referencedRelation: "organizations";
|
|
1454
|
+
referencedColumns: ["id"];
|
|
1448
1455
|
}
|
|
1449
1456
|
];
|
|
1450
1457
|
};
|
|
@@ -1499,25 +1506,25 @@ type Database = {
|
|
|
1499
1506
|
};
|
|
1500
1507
|
Relationships: [
|
|
1501
1508
|
{
|
|
1502
|
-
foreignKeyName:
|
|
1503
|
-
columns: [
|
|
1509
|
+
foreignKeyName: "execution_errors_execution_id_fkey";
|
|
1510
|
+
columns: ["execution_id"];
|
|
1504
1511
|
isOneToOne: false;
|
|
1505
|
-
referencedRelation:
|
|
1506
|
-
referencedColumns: [
|
|
1512
|
+
referencedRelation: "execution_logs";
|
|
1513
|
+
referencedColumns: ["execution_id"];
|
|
1507
1514
|
},
|
|
1508
1515
|
{
|
|
1509
|
-
foreignKeyName:
|
|
1510
|
-
columns: [
|
|
1516
|
+
foreignKeyName: "execution_errors_organization_id_fkey";
|
|
1517
|
+
columns: ["organization_id"];
|
|
1511
1518
|
isOneToOne: false;
|
|
1512
|
-
referencedRelation:
|
|
1513
|
-
referencedColumns: [
|
|
1519
|
+
referencedRelation: "organizations";
|
|
1520
|
+
referencedColumns: ["id"];
|
|
1514
1521
|
},
|
|
1515
1522
|
{
|
|
1516
|
-
foreignKeyName:
|
|
1517
|
-
columns: [
|
|
1523
|
+
foreignKeyName: "execution_errors_resolved_by_fkey";
|
|
1524
|
+
columns: ["resolved_by"];
|
|
1518
1525
|
isOneToOne: false;
|
|
1519
|
-
referencedRelation:
|
|
1520
|
-
referencedColumns: [
|
|
1526
|
+
referencedRelation: "users";
|
|
1527
|
+
referencedColumns: ["id"];
|
|
1521
1528
|
}
|
|
1522
1529
|
];
|
|
1523
1530
|
};
|
|
@@ -1599,32 +1606,32 @@ type Database = {
|
|
|
1599
1606
|
};
|
|
1600
1607
|
Relationships: [
|
|
1601
1608
|
{
|
|
1602
|
-
foreignKeyName:
|
|
1603
|
-
columns: [
|
|
1609
|
+
foreignKeyName: "execution_history_organization_id_fkey";
|
|
1610
|
+
columns: ["organization_id"];
|
|
1604
1611
|
isOneToOne: false;
|
|
1605
|
-
referencedRelation:
|
|
1606
|
-
referencedColumns: [
|
|
1612
|
+
referencedRelation: "organizations";
|
|
1613
|
+
referencedColumns: ["id"];
|
|
1607
1614
|
},
|
|
1608
1615
|
{
|
|
1609
|
-
foreignKeyName:
|
|
1610
|
-
columns: [
|
|
1616
|
+
foreignKeyName: "execution_logs_origin_execution_id_fkey";
|
|
1617
|
+
columns: ["origin_execution_id"];
|
|
1611
1618
|
isOneToOne: false;
|
|
1612
|
-
referencedRelation:
|
|
1613
|
-
referencedColumns: [
|
|
1619
|
+
referencedRelation: "execution_logs";
|
|
1620
|
+
referencedColumns: ["execution_id"];
|
|
1614
1621
|
},
|
|
1615
1622
|
{
|
|
1616
|
-
foreignKeyName:
|
|
1617
|
-
columns: [
|
|
1623
|
+
foreignKeyName: "execution_logs_session_id_fkey";
|
|
1624
|
+
columns: ["session_id"];
|
|
1618
1625
|
isOneToOne: false;
|
|
1619
|
-
referencedRelation:
|
|
1620
|
-
referencedColumns: [
|
|
1626
|
+
referencedRelation: "sessions";
|
|
1627
|
+
referencedColumns: ["session_id"];
|
|
1621
1628
|
},
|
|
1622
1629
|
{
|
|
1623
|
-
foreignKeyName:
|
|
1624
|
-
columns: [
|
|
1630
|
+
foreignKeyName: "execution_logs_user_id_fkey";
|
|
1631
|
+
columns: ["user_id"];
|
|
1625
1632
|
isOneToOne: false;
|
|
1626
|
-
referencedRelation:
|
|
1627
|
-
referencedColumns: [
|
|
1633
|
+
referencedRelation: "users";
|
|
1634
|
+
referencedColumns: ["id"];
|
|
1628
1635
|
}
|
|
1629
1636
|
];
|
|
1630
1637
|
};
|
|
@@ -1670,18 +1677,18 @@ type Database = {
|
|
|
1670
1677
|
};
|
|
1671
1678
|
Relationships: [
|
|
1672
1679
|
{
|
|
1673
|
-
foreignKeyName:
|
|
1674
|
-
columns: [
|
|
1680
|
+
foreignKeyName: "execution_metrics_execution_id_fkey";
|
|
1681
|
+
columns: ["execution_id"];
|
|
1675
1682
|
isOneToOne: true;
|
|
1676
|
-
referencedRelation:
|
|
1677
|
-
referencedColumns: [
|
|
1683
|
+
referencedRelation: "execution_logs";
|
|
1684
|
+
referencedColumns: ["execution_id"];
|
|
1678
1685
|
},
|
|
1679
1686
|
{
|
|
1680
|
-
foreignKeyName:
|
|
1681
|
-
columns: [
|
|
1687
|
+
foreignKeyName: "execution_metrics_organization_id_fkey";
|
|
1688
|
+
columns: ["organization_id"];
|
|
1682
1689
|
isOneToOne: false;
|
|
1683
|
-
referencedRelation:
|
|
1684
|
-
referencedColumns: [
|
|
1690
|
+
referencedRelation: "organizations";
|
|
1691
|
+
referencedColumns: ["id"];
|
|
1685
1692
|
}
|
|
1686
1693
|
];
|
|
1687
1694
|
};
|
|
@@ -1724,18 +1731,18 @@ type Database = {
|
|
|
1724
1731
|
};
|
|
1725
1732
|
Relationships: [
|
|
1726
1733
|
{
|
|
1727
|
-
foreignKeyName:
|
|
1728
|
-
columns: [
|
|
1734
|
+
foreignKeyName: "notifications_organization_id_fkey";
|
|
1735
|
+
columns: ["organization_id"];
|
|
1729
1736
|
isOneToOne: false;
|
|
1730
|
-
referencedRelation:
|
|
1731
|
-
referencedColumns: [
|
|
1737
|
+
referencedRelation: "organizations";
|
|
1738
|
+
referencedColumns: ["id"];
|
|
1732
1739
|
},
|
|
1733
1740
|
{
|
|
1734
|
-
foreignKeyName:
|
|
1735
|
-
columns: [
|
|
1741
|
+
foreignKeyName: "notifications_user_id_fkey";
|
|
1742
|
+
columns: ["user_id"];
|
|
1736
1743
|
isOneToOne: false;
|
|
1737
|
-
referencedRelation:
|
|
1738
|
-
referencedColumns: [
|
|
1744
|
+
referencedRelation: "users";
|
|
1745
|
+
referencedColumns: ["id"];
|
|
1739
1746
|
}
|
|
1740
1747
|
];
|
|
1741
1748
|
};
|
|
@@ -1790,18 +1797,18 @@ type Database = {
|
|
|
1790
1797
|
};
|
|
1791
1798
|
Relationships: [
|
|
1792
1799
|
{
|
|
1793
|
-
foreignKeyName:
|
|
1794
|
-
columns: [
|
|
1800
|
+
foreignKeyName: "org_invitations_inviter_user_id_fkey";
|
|
1801
|
+
columns: ["inviter_user_id"];
|
|
1795
1802
|
isOneToOne: false;
|
|
1796
|
-
referencedRelation:
|
|
1797
|
-
referencedColumns: [
|
|
1803
|
+
referencedRelation: "users";
|
|
1804
|
+
referencedColumns: ["id"];
|
|
1798
1805
|
},
|
|
1799
1806
|
{
|
|
1800
|
-
foreignKeyName:
|
|
1801
|
-
columns: [
|
|
1807
|
+
foreignKeyName: "org_invitations_organization_id_fkey";
|
|
1808
|
+
columns: ["organization_id"];
|
|
1802
1809
|
isOneToOne: false;
|
|
1803
|
-
referencedRelation:
|
|
1804
|
-
referencedColumns: [
|
|
1810
|
+
referencedRelation: "organizations";
|
|
1811
|
+
referencedColumns: ["id"];
|
|
1805
1812
|
}
|
|
1806
1813
|
];
|
|
1807
1814
|
};
|
|
@@ -1844,18 +1851,18 @@ type Database = {
|
|
|
1844
1851
|
};
|
|
1845
1852
|
Relationships: [
|
|
1846
1853
|
{
|
|
1847
|
-
foreignKeyName:
|
|
1848
|
-
columns: [
|
|
1854
|
+
foreignKeyName: "org_memberships_organization_id_fkey";
|
|
1855
|
+
columns: ["organization_id"];
|
|
1849
1856
|
isOneToOne: false;
|
|
1850
|
-
referencedRelation:
|
|
1851
|
-
referencedColumns: [
|
|
1857
|
+
referencedRelation: "organizations";
|
|
1858
|
+
referencedColumns: ["id"];
|
|
1852
1859
|
},
|
|
1853
1860
|
{
|
|
1854
|
-
foreignKeyName:
|
|
1855
|
-
columns: [
|
|
1861
|
+
foreignKeyName: "org_memberships_user_id_fkey";
|
|
1862
|
+
columns: ["user_id"];
|
|
1856
1863
|
isOneToOne: false;
|
|
1857
|
-
referencedRelation:
|
|
1858
|
-
referencedColumns: [
|
|
1864
|
+
referencedRelation: "users";
|
|
1865
|
+
referencedColumns: ["id"];
|
|
1859
1866
|
}
|
|
1860
1867
|
];
|
|
1861
1868
|
};
|
|
@@ -1880,25 +1887,25 @@ type Database = {
|
|
|
1880
1887
|
};
|
|
1881
1888
|
Relationships: [
|
|
1882
1889
|
{
|
|
1883
|
-
foreignKeyName:
|
|
1884
|
-
columns: [
|
|
1890
|
+
foreignKeyName: "org_rol_assignments_granted_by_fkey";
|
|
1891
|
+
columns: ["granted_by"];
|
|
1885
1892
|
isOneToOne: false;
|
|
1886
|
-
referencedRelation:
|
|
1887
|
-
referencedColumns: [
|
|
1893
|
+
referencedRelation: "users";
|
|
1894
|
+
referencedColumns: ["id"];
|
|
1888
1895
|
},
|
|
1889
1896
|
{
|
|
1890
|
-
foreignKeyName:
|
|
1891
|
-
columns: [
|
|
1897
|
+
foreignKeyName: "org_rol_assignments_membership_id_fkey";
|
|
1898
|
+
columns: ["membership_id"];
|
|
1892
1899
|
isOneToOne: false;
|
|
1893
|
-
referencedRelation:
|
|
1894
|
-
referencedColumns: [
|
|
1900
|
+
referencedRelation: "org_memberships";
|
|
1901
|
+
referencedColumns: ["id"];
|
|
1895
1902
|
},
|
|
1896
1903
|
{
|
|
1897
|
-
foreignKeyName:
|
|
1898
|
-
columns: [
|
|
1904
|
+
foreignKeyName: "org_rol_assignments_role_id_fkey";
|
|
1905
|
+
columns: ["role_id"];
|
|
1899
1906
|
isOneToOne: false;
|
|
1900
|
-
referencedRelation:
|
|
1901
|
-
referencedColumns: [
|
|
1907
|
+
referencedRelation: "org_rol_definitions";
|
|
1908
|
+
referencedColumns: ["id"];
|
|
1902
1909
|
}
|
|
1903
1910
|
];
|
|
1904
1911
|
};
|
|
@@ -1935,11 +1942,11 @@ type Database = {
|
|
|
1935
1942
|
};
|
|
1936
1943
|
Relationships: [
|
|
1937
1944
|
{
|
|
1938
|
-
foreignKeyName:
|
|
1939
|
-
columns: [
|
|
1945
|
+
foreignKeyName: "org_rol_definitions_organization_id_fkey";
|
|
1946
|
+
columns: ["organization_id"];
|
|
1940
1947
|
isOneToOne: false;
|
|
1941
|
-
referencedRelation:
|
|
1942
|
-
referencedColumns: [
|
|
1948
|
+
referencedRelation: "organizations";
|
|
1949
|
+
referencedColumns: ["id"];
|
|
1943
1950
|
}
|
|
1944
1951
|
];
|
|
1945
1952
|
};
|
|
@@ -1961,18 +1968,18 @@ type Database = {
|
|
|
1961
1968
|
};
|
|
1962
1969
|
Relationships: [
|
|
1963
1970
|
{
|
|
1964
|
-
foreignKeyName:
|
|
1965
|
-
columns: [
|
|
1971
|
+
foreignKeyName: "org_rol_grants_permission_key_fkey";
|
|
1972
|
+
columns: ["permission_key"];
|
|
1966
1973
|
isOneToOne: false;
|
|
1967
|
-
referencedRelation:
|
|
1968
|
-
referencedColumns: [
|
|
1974
|
+
referencedRelation: "org_rol_permissions";
|
|
1975
|
+
referencedColumns: ["key"];
|
|
1969
1976
|
},
|
|
1970
1977
|
{
|
|
1971
|
-
foreignKeyName:
|
|
1972
|
-
columns: [
|
|
1978
|
+
foreignKeyName: "org_rol_grants_role_id_fkey";
|
|
1979
|
+
columns: ["role_id"];
|
|
1973
1980
|
isOneToOne: false;
|
|
1974
|
-
referencedRelation:
|
|
1975
|
-
referencedColumns: [
|
|
1981
|
+
referencedRelation: "org_rol_definitions";
|
|
1982
|
+
referencedColumns: ["id"];
|
|
1976
1983
|
}
|
|
1977
1984
|
];
|
|
1978
1985
|
};
|
|
@@ -2084,25 +2091,25 @@ type Database = {
|
|
|
2084
2091
|
};
|
|
2085
2092
|
Relationships: [
|
|
2086
2093
|
{
|
|
2087
|
-
foreignKeyName:
|
|
2088
|
-
columns: [
|
|
2094
|
+
foreignKeyName: "fk_milestones_project";
|
|
2095
|
+
columns: ["project_id"];
|
|
2089
2096
|
isOneToOne: false;
|
|
2090
|
-
referencedRelation:
|
|
2091
|
-
referencedColumns: [
|
|
2097
|
+
referencedRelation: "prj_projects";
|
|
2098
|
+
referencedColumns: ["id"];
|
|
2092
2099
|
},
|
|
2093
2100
|
{
|
|
2094
|
-
foreignKeyName:
|
|
2095
|
-
columns: [
|
|
2101
|
+
foreignKeyName: "prj_milestones_organization_id_fkey";
|
|
2102
|
+
columns: ["organization_id"];
|
|
2096
2103
|
isOneToOne: false;
|
|
2097
|
-
referencedRelation:
|
|
2098
|
-
referencedColumns: [
|
|
2104
|
+
referencedRelation: "organizations";
|
|
2105
|
+
referencedColumns: ["id"];
|
|
2099
2106
|
},
|
|
2100
2107
|
{
|
|
2101
|
-
foreignKeyName:
|
|
2102
|
-
columns: [
|
|
2108
|
+
foreignKeyName: "prj_milestones_project_id_fkey";
|
|
2109
|
+
columns: ["project_id"];
|
|
2103
2110
|
isOneToOne: false;
|
|
2104
|
-
referencedRelation:
|
|
2105
|
-
referencedColumns: [
|
|
2111
|
+
referencedRelation: "prj_projects";
|
|
2112
|
+
referencedColumns: ["id"];
|
|
2106
2113
|
}
|
|
2107
2114
|
];
|
|
2108
2115
|
};
|
|
@@ -2151,67 +2158,67 @@ type Database = {
|
|
|
2151
2158
|
};
|
|
2152
2159
|
Relationships: [
|
|
2153
2160
|
{
|
|
2154
|
-
foreignKeyName:
|
|
2155
|
-
columns: [
|
|
2161
|
+
foreignKeyName: "fk_notes_created_by";
|
|
2162
|
+
columns: ["created_by"];
|
|
2156
2163
|
isOneToOne: false;
|
|
2157
|
-
referencedRelation:
|
|
2158
|
-
referencedColumns: [
|
|
2164
|
+
referencedRelation: "users";
|
|
2165
|
+
referencedColumns: ["id"];
|
|
2159
2166
|
},
|
|
2160
2167
|
{
|
|
2161
|
-
foreignKeyName:
|
|
2162
|
-
columns: [
|
|
2168
|
+
foreignKeyName: "fk_notes_milestone";
|
|
2169
|
+
columns: ["milestone_id"];
|
|
2163
2170
|
isOneToOne: false;
|
|
2164
|
-
referencedRelation:
|
|
2165
|
-
referencedColumns: [
|
|
2171
|
+
referencedRelation: "prj_milestones";
|
|
2172
|
+
referencedColumns: ["id"];
|
|
2166
2173
|
},
|
|
2167
2174
|
{
|
|
2168
|
-
foreignKeyName:
|
|
2169
|
-
columns: [
|
|
2175
|
+
foreignKeyName: "fk_notes_project";
|
|
2176
|
+
columns: ["project_id"];
|
|
2170
2177
|
isOneToOne: false;
|
|
2171
|
-
referencedRelation:
|
|
2172
|
-
referencedColumns: [
|
|
2178
|
+
referencedRelation: "prj_projects";
|
|
2179
|
+
referencedColumns: ["id"];
|
|
2173
2180
|
},
|
|
2174
2181
|
{
|
|
2175
|
-
foreignKeyName:
|
|
2176
|
-
columns: [
|
|
2182
|
+
foreignKeyName: "fk_notes_task";
|
|
2183
|
+
columns: ["task_id"];
|
|
2177
2184
|
isOneToOne: false;
|
|
2178
|
-
referencedRelation:
|
|
2179
|
-
referencedColumns: [
|
|
2185
|
+
referencedRelation: "prj_tasks";
|
|
2186
|
+
referencedColumns: ["id"];
|
|
2180
2187
|
},
|
|
2181
2188
|
{
|
|
2182
|
-
foreignKeyName:
|
|
2183
|
-
columns: [
|
|
2189
|
+
foreignKeyName: "prj_notes_created_by_fkey";
|
|
2190
|
+
columns: ["created_by"];
|
|
2184
2191
|
isOneToOne: false;
|
|
2185
|
-
referencedRelation:
|
|
2186
|
-
referencedColumns: [
|
|
2192
|
+
referencedRelation: "users";
|
|
2193
|
+
referencedColumns: ["id"];
|
|
2187
2194
|
},
|
|
2188
2195
|
{
|
|
2189
|
-
foreignKeyName:
|
|
2190
|
-
columns: [
|
|
2196
|
+
foreignKeyName: "prj_notes_milestone_id_fkey";
|
|
2197
|
+
columns: ["milestone_id"];
|
|
2191
2198
|
isOneToOne: false;
|
|
2192
|
-
referencedRelation:
|
|
2193
|
-
referencedColumns: [
|
|
2199
|
+
referencedRelation: "prj_milestones";
|
|
2200
|
+
referencedColumns: ["id"];
|
|
2194
2201
|
},
|
|
2195
2202
|
{
|
|
2196
|
-
foreignKeyName:
|
|
2197
|
-
columns: [
|
|
2203
|
+
foreignKeyName: "prj_notes_organization_id_fkey";
|
|
2204
|
+
columns: ["organization_id"];
|
|
2198
2205
|
isOneToOne: false;
|
|
2199
|
-
referencedRelation:
|
|
2200
|
-
referencedColumns: [
|
|
2206
|
+
referencedRelation: "organizations";
|
|
2207
|
+
referencedColumns: ["id"];
|
|
2201
2208
|
},
|
|
2202
2209
|
{
|
|
2203
|
-
foreignKeyName:
|
|
2204
|
-
columns: [
|
|
2210
|
+
foreignKeyName: "prj_notes_project_id_fkey";
|
|
2211
|
+
columns: ["project_id"];
|
|
2205
2212
|
isOneToOne: false;
|
|
2206
|
-
referencedRelation:
|
|
2207
|
-
referencedColumns: [
|
|
2213
|
+
referencedRelation: "prj_projects";
|
|
2214
|
+
referencedColumns: ["id"];
|
|
2208
2215
|
},
|
|
2209
2216
|
{
|
|
2210
|
-
foreignKeyName:
|
|
2211
|
-
columns: [
|
|
2217
|
+
foreignKeyName: "prj_notes_task_id_fkey";
|
|
2218
|
+
columns: ["task_id"];
|
|
2212
2219
|
isOneToOne: false;
|
|
2213
|
-
referencedRelation:
|
|
2214
|
-
referencedColumns: [
|
|
2220
|
+
referencedRelation: "prj_tasks";
|
|
2221
|
+
referencedColumns: ["id"];
|
|
2215
2222
|
}
|
|
2216
2223
|
];
|
|
2217
2224
|
};
|
|
@@ -2269,39 +2276,39 @@ type Database = {
|
|
|
2269
2276
|
};
|
|
2270
2277
|
Relationships: [
|
|
2271
2278
|
{
|
|
2272
|
-
foreignKeyName:
|
|
2273
|
-
columns: [
|
|
2279
|
+
foreignKeyName: "fk_projects_company";
|
|
2280
|
+
columns: ["client_company_id"];
|
|
2274
2281
|
isOneToOne: false;
|
|
2275
|
-
referencedRelation:
|
|
2276
|
-
referencedColumns: [
|
|
2282
|
+
referencedRelation: "acq_companies";
|
|
2283
|
+
referencedColumns: ["id"];
|
|
2277
2284
|
},
|
|
2278
2285
|
{
|
|
2279
|
-
foreignKeyName:
|
|
2280
|
-
columns: [
|
|
2286
|
+
foreignKeyName: "fk_projects_deal";
|
|
2287
|
+
columns: ["deal_id"];
|
|
2281
2288
|
isOneToOne: false;
|
|
2282
|
-
referencedRelation:
|
|
2283
|
-
referencedColumns: [
|
|
2289
|
+
referencedRelation: "acq_deals";
|
|
2290
|
+
referencedColumns: ["id"];
|
|
2284
2291
|
},
|
|
2285
2292
|
{
|
|
2286
|
-
foreignKeyName:
|
|
2287
|
-
columns: [
|
|
2293
|
+
foreignKeyName: "prj_projects_client_company_id_fkey";
|
|
2294
|
+
columns: ["client_company_id"];
|
|
2288
2295
|
isOneToOne: false;
|
|
2289
|
-
referencedRelation:
|
|
2290
|
-
referencedColumns: [
|
|
2296
|
+
referencedRelation: "acq_companies";
|
|
2297
|
+
referencedColumns: ["id"];
|
|
2291
2298
|
},
|
|
2292
2299
|
{
|
|
2293
|
-
foreignKeyName:
|
|
2294
|
-
columns: [
|
|
2300
|
+
foreignKeyName: "prj_projects_deal_id_fkey";
|
|
2301
|
+
columns: ["deal_id"];
|
|
2295
2302
|
isOneToOne: false;
|
|
2296
|
-
referencedRelation:
|
|
2297
|
-
referencedColumns: [
|
|
2303
|
+
referencedRelation: "acq_deals";
|
|
2304
|
+
referencedColumns: ["id"];
|
|
2298
2305
|
},
|
|
2299
2306
|
{
|
|
2300
|
-
foreignKeyName:
|
|
2301
|
-
columns: [
|
|
2307
|
+
foreignKeyName: "prj_projects_organization_id_fkey";
|
|
2308
|
+
columns: ["organization_id"];
|
|
2302
2309
|
isOneToOne: false;
|
|
2303
|
-
referencedRelation:
|
|
2304
|
-
referencedColumns: [
|
|
2310
|
+
referencedRelation: "organizations";
|
|
2311
|
+
referencedColumns: ["id"];
|
|
2305
2312
|
}
|
|
2306
2313
|
];
|
|
2307
2314
|
};
|
|
@@ -2365,53 +2372,53 @@ type Database = {
|
|
|
2365
2372
|
};
|
|
2366
2373
|
Relationships: [
|
|
2367
2374
|
{
|
|
2368
|
-
foreignKeyName:
|
|
2369
|
-
columns: [
|
|
2375
|
+
foreignKeyName: "fk_tasks_milestone";
|
|
2376
|
+
columns: ["milestone_id"];
|
|
2370
2377
|
isOneToOne: false;
|
|
2371
|
-
referencedRelation:
|
|
2372
|
-
referencedColumns: [
|
|
2378
|
+
referencedRelation: "prj_milestones";
|
|
2379
|
+
referencedColumns: ["id"];
|
|
2373
2380
|
},
|
|
2374
2381
|
{
|
|
2375
|
-
foreignKeyName:
|
|
2376
|
-
columns: [
|
|
2382
|
+
foreignKeyName: "fk_tasks_parent";
|
|
2383
|
+
columns: ["parent_task_id"];
|
|
2377
2384
|
isOneToOne: false;
|
|
2378
|
-
referencedRelation:
|
|
2379
|
-
referencedColumns: [
|
|
2385
|
+
referencedRelation: "prj_tasks";
|
|
2386
|
+
referencedColumns: ["id"];
|
|
2380
2387
|
},
|
|
2381
2388
|
{
|
|
2382
|
-
foreignKeyName:
|
|
2383
|
-
columns: [
|
|
2389
|
+
foreignKeyName: "fk_tasks_project";
|
|
2390
|
+
columns: ["project_id"];
|
|
2384
2391
|
isOneToOne: false;
|
|
2385
|
-
referencedRelation:
|
|
2386
|
-
referencedColumns: [
|
|
2392
|
+
referencedRelation: "prj_projects";
|
|
2393
|
+
referencedColumns: ["id"];
|
|
2387
2394
|
},
|
|
2388
2395
|
{
|
|
2389
|
-
foreignKeyName:
|
|
2390
|
-
columns: [
|
|
2396
|
+
foreignKeyName: "prj_tasks_milestone_id_fkey";
|
|
2397
|
+
columns: ["milestone_id"];
|
|
2391
2398
|
isOneToOne: false;
|
|
2392
|
-
referencedRelation:
|
|
2393
|
-
referencedColumns: [
|
|
2399
|
+
referencedRelation: "prj_milestones";
|
|
2400
|
+
referencedColumns: ["id"];
|
|
2394
2401
|
},
|
|
2395
2402
|
{
|
|
2396
|
-
foreignKeyName:
|
|
2397
|
-
columns: [
|
|
2403
|
+
foreignKeyName: "prj_tasks_organization_id_fkey";
|
|
2404
|
+
columns: ["organization_id"];
|
|
2398
2405
|
isOneToOne: false;
|
|
2399
|
-
referencedRelation:
|
|
2400
|
-
referencedColumns: [
|
|
2406
|
+
referencedRelation: "organizations";
|
|
2407
|
+
referencedColumns: ["id"];
|
|
2401
2408
|
},
|
|
2402
2409
|
{
|
|
2403
|
-
foreignKeyName:
|
|
2404
|
-
columns: [
|
|
2410
|
+
foreignKeyName: "prj_tasks_parent_task_id_fkey";
|
|
2411
|
+
columns: ["parent_task_id"];
|
|
2405
2412
|
isOneToOne: false;
|
|
2406
|
-
referencedRelation:
|
|
2407
|
-
referencedColumns: [
|
|
2413
|
+
referencedRelation: "prj_tasks";
|
|
2414
|
+
referencedColumns: ["id"];
|
|
2408
2415
|
},
|
|
2409
2416
|
{
|
|
2410
|
-
foreignKeyName:
|
|
2411
|
-
columns: [
|
|
2417
|
+
foreignKeyName: "prj_tasks_project_id_fkey";
|
|
2418
|
+
columns: ["project_id"];
|
|
2412
2419
|
isOneToOne: false;
|
|
2413
|
-
referencedRelation:
|
|
2414
|
-
referencedColumns: [
|
|
2420
|
+
referencedRelation: "prj_projects";
|
|
2421
|
+
referencedColumns: ["id"];
|
|
2415
2422
|
}
|
|
2416
2423
|
];
|
|
2417
2424
|
};
|
|
@@ -2481,25 +2488,25 @@ type Database = {
|
|
|
2481
2488
|
};
|
|
2482
2489
|
Relationships: [
|
|
2483
2490
|
{
|
|
2484
|
-
foreignKeyName:
|
|
2485
|
-
columns: [
|
|
2491
|
+
foreignKeyName: "reported_requests_organization_id_fkey";
|
|
2492
|
+
columns: ["organization_id"];
|
|
2486
2493
|
isOneToOne: false;
|
|
2487
|
-
referencedRelation:
|
|
2488
|
-
referencedColumns: [
|
|
2494
|
+
referencedRelation: "organizations";
|
|
2495
|
+
referencedColumns: ["id"];
|
|
2489
2496
|
},
|
|
2490
2497
|
{
|
|
2491
|
-
foreignKeyName:
|
|
2492
|
-
columns: [
|
|
2498
|
+
foreignKeyName: "reported_requests_project_id_fkey";
|
|
2499
|
+
columns: ["project_id"];
|
|
2493
2500
|
isOneToOne: false;
|
|
2494
|
-
referencedRelation:
|
|
2495
|
-
referencedColumns: [
|
|
2501
|
+
referencedRelation: "prj_projects";
|
|
2502
|
+
referencedColumns: ["id"];
|
|
2496
2503
|
},
|
|
2497
2504
|
{
|
|
2498
|
-
foreignKeyName:
|
|
2499
|
-
columns: [
|
|
2505
|
+
foreignKeyName: "reported_requests_task_id_fkey";
|
|
2506
|
+
columns: ["task_id"];
|
|
2500
2507
|
isOneToOne: false;
|
|
2501
|
-
referencedRelation:
|
|
2502
|
-
referencedColumns: [
|
|
2508
|
+
referencedRelation: "prj_tasks";
|
|
2509
|
+
referencedColumns: ["id"];
|
|
2503
2510
|
}
|
|
2504
2511
|
];
|
|
2505
2512
|
};
|
|
@@ -2539,11 +2546,11 @@ type Database = {
|
|
|
2539
2546
|
};
|
|
2540
2547
|
Relationships: [
|
|
2541
2548
|
{
|
|
2542
|
-
foreignKeyName:
|
|
2543
|
-
columns: [
|
|
2549
|
+
foreignKeyName: "session_messages_session_id_fkey";
|
|
2550
|
+
columns: ["session_id"];
|
|
2544
2551
|
isOneToOne: false;
|
|
2545
|
-
referencedRelation:
|
|
2546
|
-
referencedColumns: [
|
|
2552
|
+
referencedRelation: "sessions";
|
|
2553
|
+
referencedColumns: ["session_id"];
|
|
2547
2554
|
}
|
|
2548
2555
|
];
|
|
2549
2556
|
};
|
|
@@ -2598,18 +2605,18 @@ type Database = {
|
|
|
2598
2605
|
};
|
|
2599
2606
|
Relationships: [
|
|
2600
2607
|
{
|
|
2601
|
-
foreignKeyName:
|
|
2602
|
-
columns: [
|
|
2608
|
+
foreignKeyName: "fk_organization";
|
|
2609
|
+
columns: ["organization_id"];
|
|
2603
2610
|
isOneToOne: false;
|
|
2604
|
-
referencedRelation:
|
|
2605
|
-
referencedColumns: [
|
|
2611
|
+
referencedRelation: "organizations";
|
|
2612
|
+
referencedColumns: ["id"];
|
|
2606
2613
|
},
|
|
2607
2614
|
{
|
|
2608
|
-
foreignKeyName:
|
|
2609
|
-
columns: [
|
|
2615
|
+
foreignKeyName: "fk_user";
|
|
2616
|
+
columns: ["user_id"];
|
|
2610
2617
|
isOneToOne: false;
|
|
2611
|
-
referencedRelation:
|
|
2612
|
-
referencedColumns: [
|
|
2618
|
+
referencedRelation: "users";
|
|
2619
|
+
referencedColumns: ["id"];
|
|
2613
2620
|
}
|
|
2614
2621
|
];
|
|
2615
2622
|
};
|
|
@@ -2685,11 +2692,11 @@ type Database = {
|
|
|
2685
2692
|
};
|
|
2686
2693
|
Relationships: [
|
|
2687
2694
|
{
|
|
2688
|
-
foreignKeyName:
|
|
2689
|
-
columns: [
|
|
2695
|
+
foreignKeyName: "task_schedules_organization_id_fkey";
|
|
2696
|
+
columns: ["organization_id"];
|
|
2690
2697
|
isOneToOne: false;
|
|
2691
|
-
referencedRelation:
|
|
2692
|
-
referencedColumns: [
|
|
2698
|
+
referencedRelation: "organizations";
|
|
2699
|
+
referencedColumns: ["id"];
|
|
2693
2700
|
}
|
|
2694
2701
|
];
|
|
2695
2702
|
};
|
|
@@ -2744,11 +2751,11 @@ type Database = {
|
|
|
2744
2751
|
};
|
|
2745
2752
|
Relationships: [
|
|
2746
2753
|
{
|
|
2747
|
-
foreignKeyName:
|
|
2748
|
-
columns: [
|
|
2754
|
+
foreignKeyName: "user_profiles_last_visited_org_fkey";
|
|
2755
|
+
columns: ["last_visited_org"];
|
|
2749
2756
|
isOneToOne: false;
|
|
2750
|
-
referencedRelation:
|
|
2751
|
-
referencedColumns: [
|
|
2757
|
+
referencedRelation: "organizations";
|
|
2758
|
+
referencedColumns: ["id"];
|
|
2752
2759
|
}
|
|
2753
2760
|
];
|
|
2754
2761
|
};
|
|
@@ -2797,11 +2804,11 @@ type Database = {
|
|
|
2797
2804
|
};
|
|
2798
2805
|
Relationships: [
|
|
2799
2806
|
{
|
|
2800
|
-
foreignKeyName:
|
|
2801
|
-
columns: [
|
|
2807
|
+
foreignKeyName: "webhook_endpoints_organization_id_fkey";
|
|
2808
|
+
columns: ["organization_id"];
|
|
2802
2809
|
isOneToOne: false;
|
|
2803
|
-
referencedRelation:
|
|
2804
|
-
referencedColumns: [
|
|
2810
|
+
referencedRelation: "organizations";
|
|
2811
|
+
referencedColumns: ["id"];
|
|
2805
2812
|
}
|
|
2806
2813
|
];
|
|
2807
2814
|
};
|
|
@@ -2953,6 +2960,16 @@ type Database = {
|
|
|
2953
2960
|
/** Raw database row type for acq_deals table */
|
|
2954
2961
|
type AcqDealRow = Database['public']['Tables']['acq_deals']['Row'];
|
|
2955
2962
|
type DealStage = 'interested' | 'proposal' | 'closing' | 'closed_won' | 'closed_lost' | 'nurturing';
|
|
2963
|
+
type DealPriorityBucketKey = 'needs_response' | 'follow_up_due' | 'waiting' | 'stale' | 'closed_low';
|
|
2964
|
+
interface DealPriority {
|
|
2965
|
+
bucketKey: DealPriorityBucketKey;
|
|
2966
|
+
rank: number;
|
|
2967
|
+
label: string;
|
|
2968
|
+
color: string;
|
|
2969
|
+
reason: string;
|
|
2970
|
+
latestActivityAt: string | null;
|
|
2971
|
+
nextActionAt: string | null;
|
|
2972
|
+
}
|
|
2956
2973
|
interface DealContact {
|
|
2957
2974
|
id: string;
|
|
2958
2975
|
first_name: string | null;
|
|
@@ -2982,9 +2999,149 @@ interface DealFilters {
|
|
|
2982
2999
|
}
|
|
2983
3000
|
/** Deal list item with joined contact and company data */
|
|
2984
3001
|
interface DealListItem extends AcqDealRow {
|
|
3002
|
+
priority: DealPriority;
|
|
3003
|
+
ownership: 'us' | 'them' | null;
|
|
3004
|
+
nextAction: string | null;
|
|
2985
3005
|
contact: DealContact | null;
|
|
2986
3006
|
}
|
|
2987
|
-
type DealDetail = DealListItem;
|
|
3007
|
+
type DealDetail$1 = DealListItem;
|
|
3008
|
+
|
|
3009
|
+
type CrmPriorityBucketKey = 'needs_response' | 'follow_up_due' | 'waiting' | 'stale' | 'closed_low';
|
|
3010
|
+
interface CrmPriorityBucketDefinition {
|
|
3011
|
+
bucketKey: CrmPriorityBucketKey;
|
|
3012
|
+
label: string;
|
|
3013
|
+
/** Lower ranks sort first in deal lists and pipeline columns. */
|
|
3014
|
+
rank: number;
|
|
3015
|
+
/** UI color token. Consumers may map this to their design system. */
|
|
3016
|
+
color: string;
|
|
3017
|
+
}
|
|
3018
|
+
interface CrmPriorityRuleConfig {
|
|
3019
|
+
buckets: CrmPriorityBucketDefinition[];
|
|
3020
|
+
closedStageKeys: string[];
|
|
3021
|
+
followUpAfterDaysByStateKey: Record<string, number>;
|
|
3022
|
+
staleAfterDays: number;
|
|
3023
|
+
}
|
|
3024
|
+
|
|
3025
|
+
declare const CrmPriorityOverrideSchema: z.ZodObject<{
|
|
3026
|
+
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
3027
|
+
staleAfterDays: z.ZodOptional<z.ZodNumber>;
|
|
3028
|
+
bucketOrder: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
3029
|
+
needs_response: "needs_response";
|
|
3030
|
+
follow_up_due: "follow_up_due";
|
|
3031
|
+
waiting: "waiting";
|
|
3032
|
+
stale: "stale";
|
|
3033
|
+
closed_low: "closed_low";
|
|
3034
|
+
}>>>;
|
|
3035
|
+
buckets: z.ZodOptional<z.ZodRecord<z.ZodEnum<{
|
|
3036
|
+
needs_response: "needs_response";
|
|
3037
|
+
follow_up_due: "follow_up_due";
|
|
3038
|
+
waiting: "waiting";
|
|
3039
|
+
stale: "stale";
|
|
3040
|
+
closed_low: "closed_low";
|
|
3041
|
+
}> & z.core.$partial, z.ZodObject<{
|
|
3042
|
+
label: z.ZodOptional<z.ZodString>;
|
|
3043
|
+
color: z.ZodOptional<z.ZodString>;
|
|
3044
|
+
rank: z.ZodOptional<z.ZodNumber>;
|
|
3045
|
+
}, z.core.$strict>>>;
|
|
3046
|
+
followUpAfterDaysByStateKey: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
|
|
3047
|
+
closedStageKeys: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
3048
|
+
}, z.core.$strict>;
|
|
3049
|
+
type CrmPriorityOverride = z.infer<typeof CrmPriorityOverrideSchema>;
|
|
3050
|
+
/**
|
|
3051
|
+
* Resolved CRM priority settings used by evaluators.
|
|
3052
|
+
*
|
|
3053
|
+
* When enabled is false, priority evaluation is intentionally neutral: all deals
|
|
3054
|
+
* receive the configured waiting bucket and no follow-up/stale urgency is computed.
|
|
3055
|
+
*/
|
|
3056
|
+
type ResolvedCrmPriorityRuleConfig = CrmPriorityRuleConfig & {
|
|
3057
|
+
enabled: boolean;
|
|
3058
|
+
};
|
|
3059
|
+
|
|
3060
|
+
/**
|
|
3061
|
+
* Deal detail shape — currently the same as a list item (full joined record).
|
|
3062
|
+
* Additive fields keep existing DealListItem callers compatible.
|
|
3063
|
+
*/
|
|
3064
|
+
declare const DealDetailResponseSchema: z.ZodObject<{
|
|
3065
|
+
id: z.ZodString;
|
|
3066
|
+
organization_id: z.ZodString;
|
|
3067
|
+
contact_id: z.ZodNullable<z.ZodString>;
|
|
3068
|
+
contact_email: z.ZodString;
|
|
3069
|
+
pipeline_key: z.ZodString;
|
|
3070
|
+
stage_key: z.ZodNullable<z.ZodString>;
|
|
3071
|
+
state_key: z.ZodNullable<z.ZodString>;
|
|
3072
|
+
activity_log: z.ZodUnknown;
|
|
3073
|
+
discovery_data: z.ZodNullable<z.ZodUnknown>;
|
|
3074
|
+
discovery_submitted_at: z.ZodNullable<z.ZodString>;
|
|
3075
|
+
discovery_submitted_by: z.ZodNullable<z.ZodString>;
|
|
3076
|
+
proposal_data: z.ZodNullable<z.ZodUnknown>;
|
|
3077
|
+
proposal_sent_at: z.ZodNullable<z.ZodString>;
|
|
3078
|
+
proposal_pdf_url: z.ZodNullable<z.ZodString>;
|
|
3079
|
+
signature_envelope_id: z.ZodNullable<z.ZodString>;
|
|
3080
|
+
source_list_id: z.ZodNullable<z.ZodString>;
|
|
3081
|
+
source_type: z.ZodNullable<z.ZodString>;
|
|
3082
|
+
initial_fee: z.ZodNullable<z.ZodNumber>;
|
|
3083
|
+
monthly_fee: z.ZodNullable<z.ZodNumber>;
|
|
3084
|
+
closed_lost_at: z.ZodNullable<z.ZodString>;
|
|
3085
|
+
closed_lost_reason: z.ZodNullable<z.ZodString>;
|
|
3086
|
+
created_at: z.ZodString;
|
|
3087
|
+
updated_at: z.ZodString;
|
|
3088
|
+
priority: z.ZodObject<{
|
|
3089
|
+
bucketKey: z.ZodEnum<{
|
|
3090
|
+
needs_response: "needs_response";
|
|
3091
|
+
follow_up_due: "follow_up_due";
|
|
3092
|
+
waiting: "waiting";
|
|
3093
|
+
stale: "stale";
|
|
3094
|
+
closed_low: "closed_low";
|
|
3095
|
+
}>;
|
|
3096
|
+
rank: z.ZodNumber;
|
|
3097
|
+
label: z.ZodString;
|
|
3098
|
+
color: z.ZodString;
|
|
3099
|
+
reason: z.ZodString;
|
|
3100
|
+
latestActivityAt: z.ZodNullable<z.ZodString>;
|
|
3101
|
+
nextActionAt: z.ZodNullable<z.ZodString>;
|
|
3102
|
+
}, z.core.$strip>;
|
|
3103
|
+
ownership: z.ZodNullable<z.ZodEnum<{
|
|
3104
|
+
us: "us";
|
|
3105
|
+
them: "them";
|
|
3106
|
+
}>>;
|
|
3107
|
+
nextAction: z.ZodNullable<z.ZodString>;
|
|
3108
|
+
contact: z.ZodNullable<z.ZodObject<{
|
|
3109
|
+
id: z.ZodString;
|
|
3110
|
+
first_name: z.ZodNullable<z.ZodString>;
|
|
3111
|
+
last_name: z.ZodNullable<z.ZodString>;
|
|
3112
|
+
email: z.ZodString;
|
|
3113
|
+
title: z.ZodNullable<z.ZodString>;
|
|
3114
|
+
headline: z.ZodNullable<z.ZodString>;
|
|
3115
|
+
linkedin_url: z.ZodNullable<z.ZodString>;
|
|
3116
|
+
pipeline_status: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
3117
|
+
enrichment_data: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
3118
|
+
company: z.ZodNullable<z.ZodObject<{
|
|
3119
|
+
id: z.ZodString;
|
|
3120
|
+
name: z.ZodString;
|
|
3121
|
+
domain: z.ZodNullable<z.ZodString>;
|
|
3122
|
+
website: z.ZodNullable<z.ZodString>;
|
|
3123
|
+
linkedin_url: z.ZodNullable<z.ZodString>;
|
|
3124
|
+
segment: z.ZodNullable<z.ZodString>;
|
|
3125
|
+
category: z.ZodNullable<z.ZodString>;
|
|
3126
|
+
num_employees: z.ZodNullable<z.ZodNumber>;
|
|
3127
|
+
}, z.core.$strip>>;
|
|
3128
|
+
}, z.core.$strip>>;
|
|
3129
|
+
conversation: z.ZodObject<{
|
|
3130
|
+
messages: z.ZodArray<z.ZodObject<{
|
|
3131
|
+
id: z.ZodString;
|
|
3132
|
+
direction: z.ZodEnum<{
|
|
3133
|
+
inbound: "inbound";
|
|
3134
|
+
outbound: "outbound";
|
|
3135
|
+
}>;
|
|
3136
|
+
fromEmail: z.ZodString;
|
|
3137
|
+
toEmail: z.ZodString;
|
|
3138
|
+
subject: z.ZodNullable<z.ZodString>;
|
|
3139
|
+
body: z.ZodString;
|
|
3140
|
+
sentAt: z.ZodNullable<z.ZodString>;
|
|
3141
|
+
}, z.core.$strip>>;
|
|
3142
|
+
}, z.core.$strip>;
|
|
3143
|
+
}, z.core.$strip>;
|
|
3144
|
+
type DealDetailResponse = z.infer<typeof DealDetailResponseSchema>;
|
|
2988
3145
|
|
|
2989
3146
|
/**
|
|
2990
3147
|
* CRM Overview API Schemas
|
|
@@ -3168,6 +3325,8 @@ declare function formatDealStageLabel(stage: string | null): string;
|
|
|
3168
3325
|
|
|
3169
3326
|
declare function DealsListPage(): react_jsx_runtime.JSX.Element;
|
|
3170
3327
|
|
|
3328
|
+
type DealDetail = DealDetail$1 & Pick<DealDetailResponse, 'conversation'>;
|
|
3329
|
+
|
|
3171
3330
|
interface DealDetailPageProps {
|
|
3172
3331
|
dealId: string;
|
|
3173
3332
|
renderActions?: (deal: DealDetail) => ReactNode;
|
|
@@ -3175,10 +3334,42 @@ interface DealDetailPageProps {
|
|
|
3175
3334
|
}
|
|
3176
3335
|
declare function DealDetailPage({ dealId, renderActions, onDealLoaded }: DealDetailPageProps): react_jsx_runtime.JSX.Element;
|
|
3177
3336
|
|
|
3337
|
+
type ConversationMessage = DealDetailResponse['conversation']['messages'][number];
|
|
3338
|
+
interface ConversationThreadProps {
|
|
3339
|
+
messages: ConversationMessage[];
|
|
3340
|
+
}
|
|
3341
|
+
declare function ConversationThread({ messages }: ConversationThreadProps): react_jsx_runtime.JSX.Element;
|
|
3342
|
+
|
|
3178
3343
|
interface CompanyDetailPageProps {
|
|
3179
3344
|
companyId: string;
|
|
3180
3345
|
}
|
|
3181
3346
|
declare function CompanyDetailPage({ companyId }: CompanyDetailPageProps): react_jsx_runtime.JSX.Element;
|
|
3182
3347
|
|
|
3183
|
-
|
|
3184
|
-
|
|
3348
|
+
declare function CrmSettingsPage(): react_jsx_runtime.JSX.Element;
|
|
3349
|
+
|
|
3350
|
+
interface CrmPrioritySettingsResponse {
|
|
3351
|
+
override: CrmPriorityOverride | null;
|
|
3352
|
+
resolved: ResolvedCrmPriorityRuleConfig;
|
|
3353
|
+
defaults: CrmPriorityRuleConfig | ResolvedCrmPriorityRuleConfig;
|
|
3354
|
+
}
|
|
3355
|
+
declare const crmPrioritySettingsKeys: {
|
|
3356
|
+
all: readonly ["crm-priority-settings"];
|
|
3357
|
+
detail: (organizationId: string | null) => readonly ["crm-priority-settings", string | null];
|
|
3358
|
+
};
|
|
3359
|
+
declare function useCrmPrioritySettings(): _tanstack_react_query.UseQueryResult<CrmPrioritySettingsResponse, Error>;
|
|
3360
|
+
declare function useUpdateCrmPrioritySettings(): _tanstack_react_query.UseMutationResult<CrmPrioritySettingsResponse, Error, {
|
|
3361
|
+
enabled?: boolean | undefined;
|
|
3362
|
+
staleAfterDays?: number | undefined;
|
|
3363
|
+
bucketOrder?: ("needs_response" | "follow_up_due" | "waiting" | "stale" | "closed_low")[] | undefined;
|
|
3364
|
+
buckets?: Partial<Record<"needs_response" | "follow_up_due" | "waiting" | "stale" | "closed_low", {
|
|
3365
|
+
label?: string | undefined;
|
|
3366
|
+
color?: string | undefined;
|
|
3367
|
+
rank?: number | undefined;
|
|
3368
|
+
}>> | undefined;
|
|
3369
|
+
followUpAfterDaysByStateKey?: Record<string, number> | undefined;
|
|
3370
|
+
closedStageKeys?: string[] | undefined;
|
|
3371
|
+
}, unknown>;
|
|
3372
|
+
declare function useResetCrmPrioritySettings(): _tanstack_react_query.UseMutationResult<CrmPrioritySettingsResponse, Error, void, unknown>;
|
|
3373
|
+
|
|
3374
|
+
export { ActivityFeedWidget, CRM_ITEMS, CompanyDetailPage, ConversationThread, CrmOverview, CrmSettingsPage, CrmSidebar, CrmSidebarMiddle, CrmSidebarTop, DEAL_STAGE_COLORS, DEAL_STAGE_OPTIONS, DealDetailPage, DealsListPage, MetricsStrip, MyTasksPanel, PIPELINE_FUNNEL_ORDER, PipelineFunnelWidget, QuickCreateActions, SAVED_VIEW_PRESETS, SavedViewsPanel, crmManifest, crmPrioritySettingsKeys, formatDealStageLabel, useCrmPipelineSummary, useCrmPrioritySettings, useCrmQuickMetrics, useRecentCrmActivity, useResetCrmPrioritySettings, useUpdateCrmPrioritySettings };
|
|
3375
|
+
export type { ActivityFeedWidgetProps, CompanyDetailPageProps, RecentActivityEntry as CrmActivityEntry, CrmActivityKind, CrmOverviewProps, CrmPrioritySettingsResponse, CrmQuickMetrics, CrmSidebarMiddleProps, MyTasksPanelProps, PipelineFunnelWidgetProps, PipelineStageSummary, QuickCreateActionsProps, SavedViewPreset, SavedViewsPanelProps };
|