@elevasis/core 0.13.0 → 0.14.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.
Files changed (41) hide show
  1. package/dist/index.d.ts +1 -1
  2. package/dist/index.js +9 -2
  3. package/dist/organization-model/index.d.ts +1 -1
  4. package/dist/organization-model/index.js +9 -2
  5. package/dist/test-utils/index.d.ts +463 -377
  6. package/dist/test-utils/index.js +9 -2
  7. package/package.json +1 -1
  8. package/src/_gen/__tests__/__snapshots__/contracts.md.snap +2324 -0
  9. package/src/business/acquisition/activity-events.test.ts +250 -0
  10. package/src/business/acquisition/activity-events.ts +7 -65
  11. package/src/business/acquisition/api-schemas.test.ts +1180 -0
  12. package/src/business/acquisition/api-schemas.ts +1075 -859
  13. package/src/business/acquisition/crm-state-actions.test.ts +160 -0
  14. package/src/business/acquisition/derive-actions.test.ts +518 -0
  15. package/src/business/acquisition/derive-actions.ts +103 -90
  16. package/src/business/acquisition/index.ts +149 -111
  17. package/src/business/acquisition/stateful.ts +30 -0
  18. package/src/business/acquisition/types.ts +44 -77
  19. package/src/execution/engine/index.ts +437 -434
  20. package/src/execution/engine/tools/integration/server/adapters/attio/__tests__/attio-crud.integration.test.ts +363 -360
  21. package/src/execution/engine/tools/integration/server/adapters/attio/fetch/get-record/index.test.ts +162 -186
  22. package/src/execution/engine/tools/integration/server/adapters/attio/fetch/list-records/index.test.ts +316 -338
  23. package/src/execution/engine/tools/integration/server/adapters/gmail/gmail-adapter.ts +204 -210
  24. package/src/execution/engine/tools/integration/server/adapters/resend/fetch/send-email/index.test.ts +88 -0
  25. package/src/execution/engine/tools/integration/server/adapters/resend/fetch/send-email/index.ts +141 -134
  26. package/src/execution/engine/tools/integration/server/adapters/resend/fetch/utils/types.ts +76 -75
  27. package/src/execution/engine/tools/integration/service.test.ts +34 -9
  28. package/src/execution/engine/tools/integration/service.ts +6 -3
  29. package/src/execution/engine/tools/lead-service-types.ts +945 -888
  30. package/src/execution/engine/tools/platform/acquisition/types.ts +266 -260
  31. package/src/execution/engine/tools/registry.ts +701 -699
  32. package/src/execution/engine/tools/tool-maps.ts +816 -791
  33. package/src/execution/engine/workflow/types.ts +11 -0
  34. package/src/organization-model/contracts.ts +4 -4
  35. package/src/organization-model/domains/navigation.ts +62 -62
  36. package/src/organization-model/domains/sales.ts +272 -0
  37. package/src/organization-model/published.ts +21 -21
  38. package/src/organization-model/resolve.ts +21 -8
  39. package/src/platform/constants/versions.ts +1 -1
  40. package/src/reference/_generated/contracts.md +2324 -0
  41. package/src/supabase/database.types.ts +2958 -2886
@@ -9,10 +9,57 @@ type Json = string | number | boolean | null | {
9
9
  } | Json[];
10
10
  type Database = {
11
11
  __InternalSupabase: {
12
- PostgrestVersion: "12.2.3 (519615d)";
12
+ PostgrestVersion: '12.2.3 (519615d)';
13
13
  };
14
14
  public: {
15
15
  Tables: {
16
+ acq_artifacts: {
17
+ Row: {
18
+ content: Json;
19
+ created_at: string;
20
+ created_by: string | null;
21
+ id: string;
22
+ kind: string;
23
+ organization_id: string;
24
+ owner_id: string;
25
+ owner_kind: string;
26
+ source_execution_id: string | null;
27
+ version: number;
28
+ };
29
+ Insert: {
30
+ content: Json;
31
+ created_at?: string;
32
+ created_by?: string | null;
33
+ id?: string;
34
+ kind: string;
35
+ organization_id: string;
36
+ owner_id: string;
37
+ owner_kind: string;
38
+ source_execution_id?: string | null;
39
+ version?: number;
40
+ };
41
+ Update: {
42
+ content?: Json;
43
+ created_at?: string;
44
+ created_by?: string | null;
45
+ id?: string;
46
+ kind?: string;
47
+ organization_id?: string;
48
+ owner_id?: string;
49
+ owner_kind?: string;
50
+ source_execution_id?: string | null;
51
+ version?: number;
52
+ };
53
+ Relationships: [
54
+ {
55
+ foreignKeyName: 'acq_artifacts_organization_id_fkey';
56
+ columns: ['organization_id'];
57
+ isOneToOne: false;
58
+ referencedRelation: 'organizations';
59
+ referencedColumns: ['id'];
60
+ }
61
+ ];
62
+ };
16
63
  acq_companies: {
17
64
  Row: {
18
65
  batch_id: string | null;
@@ -31,6 +78,9 @@ type Database = {
31
78
  num_employees: number | null;
32
79
  organization_id: string;
33
80
  pipeline_status: Json;
81
+ qualification_rubric_key: string | null;
82
+ qualification_score: number | null;
83
+ qualification_signals: Json | null;
34
84
  segment: string | null;
35
85
  source: string | null;
36
86
  status: string;
@@ -54,6 +104,9 @@ type Database = {
54
104
  num_employees?: number | null;
55
105
  organization_id: string;
56
106
  pipeline_status?: Json;
107
+ qualification_rubric_key?: string | null;
108
+ qualification_score?: number | null;
109
+ qualification_signals?: Json | null;
57
110
  segment?: string | null;
58
111
  source?: string | null;
59
112
  status?: string;
@@ -77,6 +130,9 @@ type Database = {
77
130
  num_employees?: number | null;
78
131
  organization_id?: string;
79
132
  pipeline_status?: Json;
133
+ qualification_rubric_key?: string | null;
134
+ qualification_score?: number | null;
135
+ qualification_signals?: Json | null;
80
136
  segment?: string | null;
81
137
  source?: string | null;
82
138
  status?: string;
@@ -85,11 +141,11 @@ type Database = {
85
141
  };
86
142
  Relationships: [
87
143
  {
88
- foreignKeyName: "acq_companies_organization_id_fkey";
89
- columns: ["organization_id"];
144
+ foreignKeyName: 'acq_companies_organization_id_fkey';
145
+ columns: ['organization_id'];
90
146
  isOneToOne: false;
91
- referencedRelation: "organizations";
92
- referencedColumns: ["id"];
147
+ referencedRelation: 'organizations';
148
+ referencedColumns: ['id'];
93
149
  }
94
150
  ];
95
151
  };
@@ -113,6 +169,9 @@ type Database = {
113
169
  opening_line: string | null;
114
170
  organization_id: string;
115
171
  pipeline_status: Json;
172
+ qualification_rubric_key: string | null;
173
+ qualification_score: number | null;
174
+ qualification_signals: Json | null;
116
175
  source: string | null;
117
176
  source_id: string | null;
118
177
  status: string;
@@ -138,6 +197,9 @@ type Database = {
138
197
  opening_line?: string | null;
139
198
  organization_id: string;
140
199
  pipeline_status?: Json;
200
+ qualification_rubric_key?: string | null;
201
+ qualification_score?: number | null;
202
+ qualification_signals?: Json | null;
141
203
  source?: string | null;
142
204
  source_id?: string | null;
143
205
  status?: string;
@@ -163,6 +225,9 @@ type Database = {
163
225
  opening_line?: string | null;
164
226
  organization_id?: string;
165
227
  pipeline_status?: Json;
228
+ qualification_rubric_key?: string | null;
229
+ qualification_score?: number | null;
230
+ qualification_signals?: Json | null;
166
231
  source?: string | null;
167
232
  source_id?: string | null;
168
233
  status?: string;
@@ -171,18 +236,18 @@ type Database = {
171
236
  };
172
237
  Relationships: [
173
238
  {
174
- foreignKeyName: "acq_contacts_company_id_fkey";
175
- columns: ["company_id"];
239
+ foreignKeyName: 'acq_contacts_company_id_fkey';
240
+ columns: ['company_id'];
176
241
  isOneToOne: false;
177
- referencedRelation: "acq_companies";
178
- referencedColumns: ["id"];
242
+ referencedRelation: 'acq_companies';
243
+ referencedColumns: ['id'];
179
244
  },
180
245
  {
181
- foreignKeyName: "acq_contacts_organization_id_fkey";
182
- columns: ["organization_id"];
246
+ foreignKeyName: 'acq_contacts_organization_id_fkey';
247
+ columns: ['organization_id'];
183
248
  isOneToOne: false;
184
- referencedRelation: "organizations";
185
- referencedColumns: ["id"];
249
+ referencedRelation: 'organizations';
250
+ referencedColumns: ['id'];
186
251
  }
187
252
  ];
188
253
  };
@@ -219,11 +284,11 @@ type Database = {
219
284
  };
220
285
  Relationships: [
221
286
  {
222
- foreignKeyName: "acq_content_organization_id_fkey";
223
- columns: ["organization_id"];
287
+ foreignKeyName: 'acq_content_organization_id_fkey';
288
+ columns: ['organization_id'];
224
289
  isOneToOne: false;
225
- referencedRelation: "organizations";
226
- referencedColumns: ["id"];
290
+ referencedRelation: 'organizations';
291
+ referencedColumns: ['id'];
227
292
  }
228
293
  ];
229
294
  };
@@ -287,18 +352,18 @@ type Database = {
287
352
  };
288
353
  Relationships: [
289
354
  {
290
- foreignKeyName: "acq_content_distributions_content_id_fkey";
291
- columns: ["content_id"];
355
+ foreignKeyName: 'acq_content_distributions_content_id_fkey';
356
+ columns: ['content_id'];
292
357
  isOneToOne: false;
293
- referencedRelation: "acq_content";
294
- referencedColumns: ["id"];
358
+ referencedRelation: 'acq_content';
359
+ referencedColumns: ['id'];
295
360
  },
296
361
  {
297
- foreignKeyName: "acq_content_distributions_organization_id_fkey";
298
- columns: ["organization_id"];
362
+ foreignKeyName: 'acq_content_distributions_organization_id_fkey';
363
+ columns: ['organization_id'];
299
364
  isOneToOne: false;
300
- referencedRelation: "organizations";
301
- referencedColumns: ["id"];
365
+ referencedRelation: 'organizations';
366
+ referencedColumns: ['id'];
302
367
  }
303
368
  ];
304
369
  };
@@ -332,18 +397,18 @@ type Database = {
332
397
  };
333
398
  Relationships: [
334
399
  {
335
- foreignKeyName: "acq_deal_notes_deal_id_fkey";
336
- columns: ["deal_id"];
400
+ foreignKeyName: 'acq_deal_notes_deal_id_fkey';
401
+ columns: ['deal_id'];
337
402
  isOneToOne: false;
338
- referencedRelation: "acq_deals";
339
- referencedColumns: ["id"];
403
+ referencedRelation: 'acq_deals';
404
+ referencedColumns: ['id'];
340
405
  },
341
406
  {
342
- foreignKeyName: "acq_deal_notes_organization_id_fkey";
343
- columns: ["organization_id"];
407
+ foreignKeyName: 'acq_deal_notes_organization_id_fkey';
408
+ columns: ['organization_id'];
344
409
  isOneToOne: false;
345
- referencedRelation: "organizations";
346
- referencedColumns: ["id"];
410
+ referencedRelation: 'organizations';
411
+ referencedColumns: ['id'];
347
412
  }
348
413
  ];
349
414
  };
@@ -395,18 +460,18 @@ type Database = {
395
460
  };
396
461
  Relationships: [
397
462
  {
398
- foreignKeyName: "acq_deal_tasks_deal_id_fkey";
399
- columns: ["deal_id"];
463
+ foreignKeyName: 'acq_deal_tasks_deal_id_fkey';
464
+ columns: ['deal_id'];
400
465
  isOneToOne: false;
401
- referencedRelation: "acq_deals";
402
- referencedColumns: ["id"];
466
+ referencedRelation: 'acq_deals';
467
+ referencedColumns: ['id'];
403
468
  },
404
469
  {
405
- foreignKeyName: "acq_deal_tasks_organization_id_fkey";
406
- columns: ["organization_id"];
470
+ foreignKeyName: 'acq_deal_tasks_organization_id_fkey';
471
+ columns: ['organization_id'];
407
472
  isOneToOne: false;
408
- referencedRelation: "organizations";
409
- referencedColumns: ["id"];
473
+ referencedRelation: 'organizations';
474
+ referencedColumns: ['id'];
410
475
  }
411
476
  ];
412
477
  };
@@ -518,86 +583,95 @@ type Database = {
518
583
  };
519
584
  Relationships: [
520
585
  {
521
- foreignKeyName: "acq_deals_contact_id_fkey";
522
- columns: ["contact_id"];
586
+ foreignKeyName: 'acq_deals_contact_id_fkey';
587
+ columns: ['contact_id'];
523
588
  isOneToOne: false;
524
- referencedRelation: "acq_contacts";
525
- referencedColumns: ["id"];
589
+ referencedRelation: 'acq_contacts';
590
+ referencedColumns: ['id'];
526
591
  },
527
592
  {
528
- foreignKeyName: "acq_deals_organization_id_fkey";
529
- columns: ["organization_id"];
593
+ foreignKeyName: 'acq_deals_organization_id_fkey';
594
+ columns: ['organization_id'];
530
595
  isOneToOne: false;
531
- referencedRelation: "organizations";
532
- referencedColumns: ["id"];
596
+ referencedRelation: 'organizations';
597
+ referencedColumns: ['id'];
533
598
  },
534
599
  {
535
- foreignKeyName: "acq_deals_source_list_id_fkey";
536
- columns: ["source_list_id"];
600
+ foreignKeyName: 'acq_deals_source_list_id_fkey';
601
+ columns: ['source_list_id'];
537
602
  isOneToOne: false;
538
- referencedRelation: "acq_lists";
539
- referencedColumns: ["id"];
603
+ referencedRelation: 'acq_lists';
604
+ referencedColumns: ['id'];
540
605
  }
541
606
  ];
542
607
  };
543
608
  acq_list_companies: {
544
609
  Row: {
610
+ activity_log: Json;
545
611
  added_at: string;
546
612
  added_by: string | null;
547
613
  company_id: string;
548
614
  id: string;
549
615
  list_id: string;
616
+ pipeline_key: string;
617
+ processing_state: Json;
550
618
  source_execution_id: string | null;
551
619
  source_input_hash: string | null;
552
620
  source_resource_id: string | null;
553
- stage: string | null;
554
- stage_updated_at: string | null;
621
+ stage_key: string;
622
+ state_key: string;
555
623
  };
556
624
  Insert: {
625
+ activity_log?: Json;
557
626
  added_at?: string;
558
627
  added_by?: string | null;
559
628
  company_id: string;
560
629
  id?: string;
561
630
  list_id: string;
631
+ pipeline_key?: string;
632
+ processing_state?: Json;
562
633
  source_execution_id?: string | null;
563
634
  source_input_hash?: string | null;
564
635
  source_resource_id?: string | null;
565
- stage?: string | null;
566
- stage_updated_at?: string | null;
636
+ stage_key: string;
637
+ state_key: string;
567
638
  };
568
639
  Update: {
640
+ activity_log?: Json;
569
641
  added_at?: string;
570
642
  added_by?: string | null;
571
643
  company_id?: string;
572
644
  id?: string;
573
645
  list_id?: string;
646
+ pipeline_key?: string;
647
+ processing_state?: Json;
574
648
  source_execution_id?: string | null;
575
649
  source_input_hash?: string | null;
576
650
  source_resource_id?: string | null;
577
- stage?: string | null;
578
- stage_updated_at?: string | null;
651
+ stage_key?: string;
652
+ state_key?: string;
579
653
  };
580
654
  Relationships: [
581
655
  {
582
- foreignKeyName: "acq_list_companies_company_id_fkey";
583
- columns: ["company_id"];
656
+ foreignKeyName: 'acq_list_companies_company_id_fkey';
657
+ columns: ['company_id'];
584
658
  isOneToOne: false;
585
- referencedRelation: "acq_companies";
586
- referencedColumns: ["id"];
659
+ referencedRelation: 'acq_companies';
660
+ referencedColumns: ['id'];
587
661
  },
588
662
  {
589
- foreignKeyName: "acq_list_companies_list_id_fkey";
590
- columns: ["list_id"];
663
+ foreignKeyName: 'acq_list_companies_list_id_fkey';
664
+ columns: ['list_id'];
591
665
  isOneToOne: false;
592
- referencedRelation: "acq_lists";
593
- referencedColumns: ["id"];
666
+ referencedRelation: 'acq_lists';
667
+ referencedColumns: ['id'];
594
668
  },
595
669
  {
596
- foreignKeyName: "acq_list_companies_source_execution_id_fkey";
597
- columns: ["source_execution_id"];
670
+ foreignKeyName: 'acq_list_companies_source_execution_id_fkey';
671
+ columns: ['source_execution_id'];
598
672
  isOneToOne: false;
599
- referencedRelation: "execution_logs";
600
- referencedColumns: ["execution_id"];
673
+ referencedRelation: 'execution_logs';
674
+ referencedColumns: ['execution_id'];
601
675
  }
602
676
  ];
603
677
  };
@@ -625,79 +699,88 @@ type Database = {
625
699
  };
626
700
  Relationships: [
627
701
  {
628
- foreignKeyName: "acq_list_executions_execution_id_fkey";
629
- columns: ["execution_id"];
702
+ foreignKeyName: 'acq_list_executions_execution_id_fkey';
703
+ columns: ['execution_id'];
630
704
  isOneToOne: false;
631
- referencedRelation: "execution_logs";
632
- referencedColumns: ["execution_id"];
705
+ referencedRelation: 'execution_logs';
706
+ referencedColumns: ['execution_id'];
633
707
  },
634
708
  {
635
- foreignKeyName: "acq_list_executions_list_id_fkey";
636
- columns: ["list_id"];
709
+ foreignKeyName: 'acq_list_executions_list_id_fkey';
710
+ columns: ['list_id'];
637
711
  isOneToOne: false;
638
- referencedRelation: "acq_lists";
639
- referencedColumns: ["id"];
712
+ referencedRelation: 'acq_lists';
713
+ referencedColumns: ['id'];
640
714
  }
641
715
  ];
642
716
  };
643
717
  acq_list_members: {
644
718
  Row: {
719
+ activity_log: Json;
645
720
  added_at: string;
646
721
  added_by: string | null;
647
722
  contact_id: string;
648
723
  id: string;
649
724
  list_id: string;
725
+ pipeline_key: string;
726
+ processing_state: Json;
650
727
  source_execution_id: string | null;
651
728
  source_input_hash: string | null;
652
729
  source_resource_id: string | null;
653
- stage: string | null;
654
- stage_updated_at: string | null;
730
+ stage_key: string;
731
+ state_key: string;
655
732
  };
656
733
  Insert: {
734
+ activity_log?: Json;
657
735
  added_at?: string;
658
736
  added_by?: string | null;
659
737
  contact_id: string;
660
738
  id?: string;
661
739
  list_id: string;
740
+ pipeline_key?: string;
741
+ processing_state?: Json;
662
742
  source_execution_id?: string | null;
663
743
  source_input_hash?: string | null;
664
744
  source_resource_id?: string | null;
665
- stage?: string | null;
666
- stage_updated_at?: string | null;
745
+ stage_key: string;
746
+ state_key: string;
667
747
  };
668
748
  Update: {
749
+ activity_log?: Json;
669
750
  added_at?: string;
670
751
  added_by?: string | null;
671
752
  contact_id?: string;
672
753
  id?: string;
673
754
  list_id?: string;
755
+ pipeline_key?: string;
756
+ processing_state?: Json;
674
757
  source_execution_id?: string | null;
675
758
  source_input_hash?: string | null;
676
759
  source_resource_id?: string | null;
677
- stage?: string | null;
678
- stage_updated_at?: string | null;
760
+ stage_key?: string;
761
+ state_key?: string;
679
762
  };
680
763
  Relationships: [
681
764
  {
682
- foreignKeyName: "acq_list_members_contact_id_fkey";
683
- columns: ["contact_id"];
765
+ foreignKeyName: 'acq_list_members_contact_id_fkey';
766
+ columns: ['contact_id'];
684
767
  isOneToOne: false;
685
- referencedRelation: "acq_contacts";
686
- referencedColumns: ["id"];
768
+ referencedRelation: 'acq_contacts';
769
+ referencedColumns: ['id'];
687
770
  },
688
771
  {
689
- foreignKeyName: "acq_list_members_list_id_fkey";
690
- columns: ["list_id"];
772
+ foreignKeyName: 'acq_list_members_list_id_fkey';
773
+ columns: ['list_id'];
691
774
  isOneToOne: false;
692
- referencedRelation: "acq_lists";
693
- referencedColumns: ["id"];
775
+ referencedRelation: 'acq_lists';
776
+ referencedColumns: ['id'];
694
777
  },
695
778
  {
696
- foreignKeyName: "acq_list_members_source_execution_id_fkey";
697
- columns: ["source_execution_id"];
779
+ foreignKeyName: 'acq_list_members_source_execution_id_fkey';
780
+ columns: ['source_execution_id'];
698
781
  isOneToOne: false;
699
- referencedRelation: "execution_logs";
700
- referencedColumns: ["execution_id"];
782
+ referencedRelation: 'execution_logs';
783
+ referencedColumns: ['execution_id'];
701
784
  }
702
785
  ];
703
786
  };
@@ -705,55 +788,58 @@ type Database = {
705
788
  Row: {
706
789
  batch_ids: string[];
707
790
  completed_at: string | null;
708
- config: Json;
709
791
  created_at: string;
710
792
  description: string | null;
793
+ icp: Json;
711
794
  id: string;
712
795
  instantly_campaign_id: string | null;
713
796
  launched_at: string | null;
714
797
  metadata: Json;
715
798
  name: string;
716
799
  organization_id: string;
800
+ pipeline_config: Json;
801
+ scraping_config: Json;
717
802
  status: string;
718
- type: string;
719
803
  };
720
804
  Insert: {
721
805
  batch_ids?: string[];
722
806
  completed_at?: string | null;
723
- config?: Json;
724
807
  created_at?: string;
725
808
  description?: string | null;
809
+ icp?: Json;
726
810
  id?: string;
727
811
  instantly_campaign_id?: string | null;
728
812
  launched_at?: string | null;
729
813
  metadata?: Json;
730
814
  name: string;
731
815
  organization_id: string;
816
+ pipeline_config?: Json;
817
+ scraping_config?: Json;
732
818
  status?: string;
733
- type?: string;
734
819
  };
735
820
  Update: {
736
821
  batch_ids?: string[];
737
822
  completed_at?: string | null;
738
- config?: Json;
739
823
  created_at?: string;
740
824
  description?: string | null;
825
+ icp?: Json;
741
826
  id?: string;
742
827
  instantly_campaign_id?: string | null;
743
828
  launched_at?: string | null;
744
829
  metadata?: Json;
745
830
  name?: string;
746
831
  organization_id?: string;
832
+ pipeline_config?: Json;
833
+ scraping_config?: Json;
747
834
  status?: string;
748
- type?: string;
749
835
  };
750
836
  Relationships: [
751
837
  {
752
- foreignKeyName: "acq_lists_organization_id_fkey";
753
- columns: ["organization_id"];
838
+ foreignKeyName: 'acq_lists_organization_id_fkey';
839
+ columns: ['organization_id'];
754
840
  isOneToOne: false;
755
- referencedRelation: "organizations";
756
- referencedColumns: ["id"];
841
+ referencedRelation: 'organizations';
842
+ referencedColumns: ['id'];
757
843
  }
758
844
  ];
759
845
  };
@@ -829,18 +915,18 @@ type Database = {
829
915
  };
830
916
  Relationships: [
831
917
  {
832
- foreignKeyName: "acq_seo_metrics_organization_id_fkey";
833
- columns: ["organization_id"];
918
+ foreignKeyName: 'acq_seo_metrics_organization_id_fkey';
919
+ columns: ['organization_id'];
834
920
  isOneToOne: false;
835
- referencedRelation: "organizations";
836
- referencedColumns: ["id"];
921
+ referencedRelation: 'organizations';
922
+ referencedColumns: ['id'];
837
923
  },
838
924
  {
839
- foreignKeyName: "acq_seo_metrics_seo_page_id_fkey";
840
- columns: ["seo_page_id"];
925
+ foreignKeyName: 'acq_seo_metrics_seo_page_id_fkey';
926
+ columns: ['seo_page_id'];
841
927
  isOneToOne: false;
842
- referencedRelation: "acq_seo_pages";
843
- referencedColumns: ["id"];
928
+ referencedRelation: 'acq_seo_pages';
929
+ referencedColumns: ['id'];
844
930
  }
845
931
  ];
846
932
  };
@@ -916,11 +1002,11 @@ type Database = {
916
1002
  };
917
1003
  Relationships: [
918
1004
  {
919
- foreignKeyName: "acq_seo_pages_organization_id_fkey";
920
- columns: ["organization_id"];
1005
+ foreignKeyName: 'acq_seo_pages_organization_id_fkey';
1006
+ columns: ['organization_id'];
921
1007
  isOneToOne: false;
922
- referencedRelation: "organizations";
923
- referencedColumns: ["id"];
1008
+ referencedRelation: 'organizations';
1009
+ referencedColumns: ['id'];
924
1010
  }
925
1011
  ];
926
1012
  };
@@ -1017,11 +1103,11 @@ type Database = {
1017
1103
  };
1018
1104
  Relationships: [
1019
1105
  {
1020
- foreignKeyName: "acq_social_posts_organization_id_fkey";
1021
- columns: ["organization_id"];
1106
+ foreignKeyName: 'acq_social_posts_organization_id_fkey';
1107
+ columns: ['organization_id'];
1022
1108
  isOneToOne: false;
1023
- referencedRelation: "organizations";
1024
- referencedColumns: ["id"];
1109
+ referencedRelation: 'organizations';
1110
+ referencedColumns: ['id'];
1025
1111
  }
1026
1112
  ];
1027
1113
  };
@@ -1076,11 +1162,11 @@ type Database = {
1076
1162
  };
1077
1163
  Relationships: [
1078
1164
  {
1079
- foreignKeyName: "activities_organization_id_fkey";
1080
- columns: ["organization_id"];
1165
+ foreignKeyName: 'activities_organization_id_fkey';
1166
+ columns: ['organization_id'];
1081
1167
  isOneToOne: false;
1082
- referencedRelation: "organizations";
1083
- referencedColumns: ["id"];
1168
+ referencedRelation: 'organizations';
1169
+ referencedColumns: ['id'];
1084
1170
  }
1085
1171
  ];
1086
1172
  };
@@ -1111,11 +1197,11 @@ type Database = {
1111
1197
  };
1112
1198
  Relationships: [
1113
1199
  {
1114
- foreignKeyName: "api_keys_organization_id_fkey";
1115
- columns: ["organization_id"];
1200
+ foreignKeyName: 'api_keys_organization_id_fkey';
1201
+ columns: ['organization_id'];
1116
1202
  isOneToOne: false;
1117
- referencedRelation: "organizations";
1118
- referencedColumns: ["id"];
1203
+ referencedRelation: 'organizations';
1204
+ referencedColumns: ['id'];
1119
1205
  }
1120
1206
  ];
1121
1207
  };
@@ -1194,25 +1280,25 @@ type Database = {
1194
1280
  };
1195
1281
  Relationships: [
1196
1282
  {
1197
- foreignKeyName: "command_queue_completed_by_fkey";
1198
- columns: ["completed_by"];
1283
+ foreignKeyName: 'command_queue_completed_by_fkey';
1284
+ columns: ['completed_by'];
1199
1285
  isOneToOne: false;
1200
- referencedRelation: "users";
1201
- referencedColumns: ["id"];
1286
+ referencedRelation: 'users';
1287
+ referencedColumns: ['id'];
1202
1288
  },
1203
1289
  {
1204
- foreignKeyName: "command_queue_organization_id_fkey";
1205
- columns: ["organization_id"];
1290
+ foreignKeyName: 'command_queue_organization_id_fkey';
1291
+ columns: ['organization_id'];
1206
1292
  isOneToOne: false;
1207
- referencedRelation: "organizations";
1208
- referencedColumns: ["id"];
1293
+ referencedRelation: 'organizations';
1294
+ referencedColumns: ['id'];
1209
1295
  },
1210
1296
  {
1211
- foreignKeyName: "command_queue_target_execution_id_fkey";
1212
- columns: ["target_execution_id"];
1297
+ foreignKeyName: 'command_queue_target_execution_id_fkey';
1298
+ columns: ['target_execution_id'];
1213
1299
  isOneToOne: false;
1214
- referencedRelation: "execution_logs";
1215
- referencedColumns: ["execution_id"];
1300
+ referencedRelation: 'execution_logs';
1301
+ referencedColumns: ['execution_id'];
1216
1302
  }
1217
1303
  ];
1218
1304
  };
@@ -1252,18 +1338,18 @@ type Database = {
1252
1338
  };
1253
1339
  Relationships: [
1254
1340
  {
1255
- foreignKeyName: "credentials_created_by_fkey";
1256
- columns: ["created_by"];
1341
+ foreignKeyName: 'credentials_created_by_fkey';
1342
+ columns: ['created_by'];
1257
1343
  isOneToOne: false;
1258
- referencedRelation: "users";
1259
- referencedColumns: ["id"];
1344
+ referencedRelation: 'users';
1345
+ referencedColumns: ['id'];
1260
1346
  },
1261
1347
  {
1262
- foreignKeyName: "credentials_organization_id_fkey";
1263
- columns: ["organization_id"];
1348
+ foreignKeyName: 'credentials_organization_id_fkey';
1349
+ columns: ['organization_id'];
1264
1350
  isOneToOne: false;
1265
- referencedRelation: "organizations";
1266
- referencedColumns: ["id"];
1351
+ referencedRelation: 'organizations';
1352
+ referencedColumns: ['id'];
1267
1353
  }
1268
1354
  ];
1269
1355
  };
@@ -1309,11 +1395,11 @@ type Database = {
1309
1395
  };
1310
1396
  Relationships: [
1311
1397
  {
1312
- foreignKeyName: "deployments_organization_id_fkey";
1313
- columns: ["organization_id"];
1398
+ foreignKeyName: 'deployments_organization_id_fkey';
1399
+ columns: ['organization_id'];
1314
1400
  isOneToOne: false;
1315
- referencedRelation: "organizations";
1316
- referencedColumns: ["id"];
1401
+ referencedRelation: 'organizations';
1402
+ referencedColumns: ['id'];
1317
1403
  }
1318
1404
  ];
1319
1405
  };
@@ -1368,25 +1454,25 @@ type Database = {
1368
1454
  };
1369
1455
  Relationships: [
1370
1456
  {
1371
- foreignKeyName: "execution_errors_execution_id_fkey";
1372
- columns: ["execution_id"];
1457
+ foreignKeyName: 'execution_errors_execution_id_fkey';
1458
+ columns: ['execution_id'];
1373
1459
  isOneToOne: false;
1374
- referencedRelation: "execution_logs";
1375
- referencedColumns: ["execution_id"];
1460
+ referencedRelation: 'execution_logs';
1461
+ referencedColumns: ['execution_id'];
1376
1462
  },
1377
1463
  {
1378
- foreignKeyName: "execution_errors_organization_id_fkey";
1379
- columns: ["organization_id"];
1464
+ foreignKeyName: 'execution_errors_organization_id_fkey';
1465
+ columns: ['organization_id'];
1380
1466
  isOneToOne: false;
1381
- referencedRelation: "organizations";
1382
- referencedColumns: ["id"];
1467
+ referencedRelation: 'organizations';
1468
+ referencedColumns: ['id'];
1383
1469
  },
1384
1470
  {
1385
- foreignKeyName: "execution_errors_resolved_by_fkey";
1386
- columns: ["resolved_by"];
1471
+ foreignKeyName: 'execution_errors_resolved_by_fkey';
1472
+ columns: ['resolved_by'];
1387
1473
  isOneToOne: false;
1388
- referencedRelation: "users";
1389
- referencedColumns: ["id"];
1474
+ referencedRelation: 'users';
1475
+ referencedColumns: ['id'];
1390
1476
  }
1391
1477
  ];
1392
1478
  };
@@ -1468,32 +1554,32 @@ type Database = {
1468
1554
  };
1469
1555
  Relationships: [
1470
1556
  {
1471
- foreignKeyName: "execution_history_organization_id_fkey";
1472
- columns: ["organization_id"];
1557
+ foreignKeyName: 'execution_history_organization_id_fkey';
1558
+ columns: ['organization_id'];
1473
1559
  isOneToOne: false;
1474
- referencedRelation: "organizations";
1475
- referencedColumns: ["id"];
1560
+ referencedRelation: 'organizations';
1561
+ referencedColumns: ['id'];
1476
1562
  },
1477
1563
  {
1478
- foreignKeyName: "execution_logs_origin_execution_id_fkey";
1479
- columns: ["origin_execution_id"];
1564
+ foreignKeyName: 'execution_logs_origin_execution_id_fkey';
1565
+ columns: ['origin_execution_id'];
1480
1566
  isOneToOne: false;
1481
- referencedRelation: "execution_logs";
1482
- referencedColumns: ["execution_id"];
1567
+ referencedRelation: 'execution_logs';
1568
+ referencedColumns: ['execution_id'];
1483
1569
  },
1484
1570
  {
1485
- foreignKeyName: "execution_logs_session_id_fkey";
1486
- columns: ["session_id"];
1571
+ foreignKeyName: 'execution_logs_session_id_fkey';
1572
+ columns: ['session_id'];
1487
1573
  isOneToOne: false;
1488
- referencedRelation: "sessions";
1489
- referencedColumns: ["session_id"];
1574
+ referencedRelation: 'sessions';
1575
+ referencedColumns: ['session_id'];
1490
1576
  },
1491
1577
  {
1492
- foreignKeyName: "execution_logs_user_id_fkey";
1493
- columns: ["user_id"];
1578
+ foreignKeyName: 'execution_logs_user_id_fkey';
1579
+ columns: ['user_id'];
1494
1580
  isOneToOne: false;
1495
- referencedRelation: "users";
1496
- referencedColumns: ["id"];
1581
+ referencedRelation: 'users';
1582
+ referencedColumns: ['id'];
1497
1583
  }
1498
1584
  ];
1499
1585
  };
@@ -1539,18 +1625,18 @@ type Database = {
1539
1625
  };
1540
1626
  Relationships: [
1541
1627
  {
1542
- foreignKeyName: "execution_metrics_execution_id_fkey";
1543
- columns: ["execution_id"];
1628
+ foreignKeyName: 'execution_metrics_execution_id_fkey';
1629
+ columns: ['execution_id'];
1544
1630
  isOneToOne: true;
1545
- referencedRelation: "execution_logs";
1546
- referencedColumns: ["execution_id"];
1631
+ referencedRelation: 'execution_logs';
1632
+ referencedColumns: ['execution_id'];
1547
1633
  },
1548
1634
  {
1549
- foreignKeyName: "execution_metrics_organization_id_fkey";
1550
- columns: ["organization_id"];
1635
+ foreignKeyName: 'execution_metrics_organization_id_fkey';
1636
+ columns: ['organization_id'];
1551
1637
  isOneToOne: false;
1552
- referencedRelation: "organizations";
1553
- referencedColumns: ["id"];
1638
+ referencedRelation: 'organizations';
1639
+ referencedColumns: ['id'];
1554
1640
  }
1555
1641
  ];
1556
1642
  };
@@ -1593,18 +1679,18 @@ type Database = {
1593
1679
  };
1594
1680
  Relationships: [
1595
1681
  {
1596
- foreignKeyName: "notifications_organization_id_fkey";
1597
- columns: ["organization_id"];
1682
+ foreignKeyName: 'notifications_organization_id_fkey';
1683
+ columns: ['organization_id'];
1598
1684
  isOneToOne: false;
1599
- referencedRelation: "organizations";
1600
- referencedColumns: ["id"];
1685
+ referencedRelation: 'organizations';
1686
+ referencedColumns: ['id'];
1601
1687
  },
1602
1688
  {
1603
- foreignKeyName: "notifications_user_id_fkey";
1604
- columns: ["user_id"];
1689
+ foreignKeyName: 'notifications_user_id_fkey';
1690
+ columns: ['user_id'];
1605
1691
  isOneToOne: false;
1606
- referencedRelation: "users";
1607
- referencedColumns: ["id"];
1692
+ referencedRelation: 'users';
1693
+ referencedColumns: ['id'];
1608
1694
  }
1609
1695
  ];
1610
1696
  };
@@ -1659,18 +1745,18 @@ type Database = {
1659
1745
  };
1660
1746
  Relationships: [
1661
1747
  {
1662
- foreignKeyName: "org_invitations_inviter_user_id_fkey";
1663
- columns: ["inviter_user_id"];
1748
+ foreignKeyName: 'org_invitations_inviter_user_id_fkey';
1749
+ columns: ['inviter_user_id'];
1664
1750
  isOneToOne: false;
1665
- referencedRelation: "users";
1666
- referencedColumns: ["id"];
1751
+ referencedRelation: 'users';
1752
+ referencedColumns: ['id'];
1667
1753
  },
1668
1754
  {
1669
- foreignKeyName: "org_invitations_organization_id_fkey";
1670
- columns: ["organization_id"];
1755
+ foreignKeyName: 'org_invitations_organization_id_fkey';
1756
+ columns: ['organization_id'];
1671
1757
  isOneToOne: false;
1672
- referencedRelation: "organizations";
1673
- referencedColumns: ["id"];
1758
+ referencedRelation: 'organizations';
1759
+ referencedColumns: ['id'];
1674
1760
  }
1675
1761
  ];
1676
1762
  };
@@ -1713,18 +1799,18 @@ type Database = {
1713
1799
  };
1714
1800
  Relationships: [
1715
1801
  {
1716
- foreignKeyName: "org_memberships_organization_id_fkey";
1717
- columns: ["organization_id"];
1802
+ foreignKeyName: 'org_memberships_organization_id_fkey';
1803
+ columns: ['organization_id'];
1718
1804
  isOneToOne: false;
1719
- referencedRelation: "organizations";
1720
- referencedColumns: ["id"];
1805
+ referencedRelation: 'organizations';
1806
+ referencedColumns: ['id'];
1721
1807
  },
1722
1808
  {
1723
- foreignKeyName: "org_memberships_user_id_fkey";
1724
- columns: ["user_id"];
1809
+ foreignKeyName: 'org_memberships_user_id_fkey';
1810
+ columns: ['user_id'];
1725
1811
  isOneToOne: false;
1726
- referencedRelation: "users";
1727
- referencedColumns: ["id"];
1812
+ referencedRelation: 'users';
1813
+ referencedColumns: ['id'];
1728
1814
  }
1729
1815
  ];
1730
1816
  };
@@ -1749,25 +1835,25 @@ type Database = {
1749
1835
  };
1750
1836
  Relationships: [
1751
1837
  {
1752
- foreignKeyName: "org_rol_assignments_granted_by_fkey";
1753
- columns: ["granted_by"];
1838
+ foreignKeyName: 'org_rol_assignments_granted_by_fkey';
1839
+ columns: ['granted_by'];
1754
1840
  isOneToOne: false;
1755
- referencedRelation: "users";
1756
- referencedColumns: ["id"];
1841
+ referencedRelation: 'users';
1842
+ referencedColumns: ['id'];
1757
1843
  },
1758
1844
  {
1759
- foreignKeyName: "org_rol_assignments_membership_id_fkey";
1760
- columns: ["membership_id"];
1845
+ foreignKeyName: 'org_rol_assignments_membership_id_fkey';
1846
+ columns: ['membership_id'];
1761
1847
  isOneToOne: false;
1762
- referencedRelation: "org_memberships";
1763
- referencedColumns: ["id"];
1848
+ referencedRelation: 'org_memberships';
1849
+ referencedColumns: ['id'];
1764
1850
  },
1765
1851
  {
1766
- foreignKeyName: "org_rol_assignments_role_id_fkey";
1767
- columns: ["role_id"];
1852
+ foreignKeyName: 'org_rol_assignments_role_id_fkey';
1853
+ columns: ['role_id'];
1768
1854
  isOneToOne: false;
1769
- referencedRelation: "org_rol_definitions";
1770
- referencedColumns: ["id"];
1855
+ referencedRelation: 'org_rol_definitions';
1856
+ referencedColumns: ['id'];
1771
1857
  }
1772
1858
  ];
1773
1859
  };
@@ -1804,11 +1890,11 @@ type Database = {
1804
1890
  };
1805
1891
  Relationships: [
1806
1892
  {
1807
- foreignKeyName: "org_rol_definitions_organization_id_fkey";
1808
- columns: ["organization_id"];
1893
+ foreignKeyName: 'org_rol_definitions_organization_id_fkey';
1894
+ columns: ['organization_id'];
1809
1895
  isOneToOne: false;
1810
- referencedRelation: "organizations";
1811
- referencedColumns: ["id"];
1896
+ referencedRelation: 'organizations';
1897
+ referencedColumns: ['id'];
1812
1898
  }
1813
1899
  ];
1814
1900
  };
@@ -1830,18 +1916,18 @@ type Database = {
1830
1916
  };
1831
1917
  Relationships: [
1832
1918
  {
1833
- foreignKeyName: "org_rol_grants_permission_key_fkey";
1834
- columns: ["permission_key"];
1919
+ foreignKeyName: 'org_rol_grants_permission_key_fkey';
1920
+ columns: ['permission_key'];
1835
1921
  isOneToOne: false;
1836
- referencedRelation: "org_rol_permissions";
1837
- referencedColumns: ["key"];
1922
+ referencedRelation: 'org_rol_permissions';
1923
+ referencedColumns: ['key'];
1838
1924
  },
1839
1925
  {
1840
- foreignKeyName: "org_rol_grants_role_id_fkey";
1841
- columns: ["role_id"];
1926
+ foreignKeyName: 'org_rol_grants_role_id_fkey';
1927
+ columns: ['role_id'];
1842
1928
  isOneToOne: false;
1843
- referencedRelation: "org_rol_definitions";
1844
- referencedColumns: ["id"];
1929
+ referencedRelation: 'org_rol_definitions';
1930
+ referencedColumns: ['id'];
1845
1931
  }
1846
1932
  ];
1847
1933
  };
@@ -1953,25 +2039,25 @@ type Database = {
1953
2039
  };
1954
2040
  Relationships: [
1955
2041
  {
1956
- foreignKeyName: "fk_milestones_project";
1957
- columns: ["project_id"];
2042
+ foreignKeyName: 'fk_milestones_project';
2043
+ columns: ['project_id'];
1958
2044
  isOneToOne: false;
1959
- referencedRelation: "prj_projects";
1960
- referencedColumns: ["id"];
2045
+ referencedRelation: 'prj_projects';
2046
+ referencedColumns: ['id'];
1961
2047
  },
1962
2048
  {
1963
- foreignKeyName: "prj_milestones_organization_id_fkey";
1964
- columns: ["organization_id"];
2049
+ foreignKeyName: 'prj_milestones_organization_id_fkey';
2050
+ columns: ['organization_id'];
1965
2051
  isOneToOne: false;
1966
- referencedRelation: "organizations";
1967
- referencedColumns: ["id"];
2052
+ referencedRelation: 'organizations';
2053
+ referencedColumns: ['id'];
1968
2054
  },
1969
2055
  {
1970
- foreignKeyName: "prj_milestones_project_id_fkey";
1971
- columns: ["project_id"];
2056
+ foreignKeyName: 'prj_milestones_project_id_fkey';
2057
+ columns: ['project_id'];
1972
2058
  isOneToOne: false;
1973
- referencedRelation: "prj_projects";
1974
- referencedColumns: ["id"];
2059
+ referencedRelation: 'prj_projects';
2060
+ referencedColumns: ['id'];
1975
2061
  }
1976
2062
  ];
1977
2063
  };
@@ -2020,67 +2106,67 @@ type Database = {
2020
2106
  };
2021
2107
  Relationships: [
2022
2108
  {
2023
- foreignKeyName: "fk_notes_created_by";
2024
- columns: ["created_by"];
2109
+ foreignKeyName: 'fk_notes_created_by';
2110
+ columns: ['created_by'];
2025
2111
  isOneToOne: false;
2026
- referencedRelation: "users";
2027
- referencedColumns: ["id"];
2112
+ referencedRelation: 'users';
2113
+ referencedColumns: ['id'];
2028
2114
  },
2029
2115
  {
2030
- foreignKeyName: "fk_notes_milestone";
2031
- columns: ["milestone_id"];
2116
+ foreignKeyName: 'fk_notes_milestone';
2117
+ columns: ['milestone_id'];
2032
2118
  isOneToOne: false;
2033
- referencedRelation: "prj_milestones";
2034
- referencedColumns: ["id"];
2119
+ referencedRelation: 'prj_milestones';
2120
+ referencedColumns: ['id'];
2035
2121
  },
2036
2122
  {
2037
- foreignKeyName: "fk_notes_project";
2038
- columns: ["project_id"];
2123
+ foreignKeyName: 'fk_notes_project';
2124
+ columns: ['project_id'];
2039
2125
  isOneToOne: false;
2040
- referencedRelation: "prj_projects";
2041
- referencedColumns: ["id"];
2126
+ referencedRelation: 'prj_projects';
2127
+ referencedColumns: ['id'];
2042
2128
  },
2043
2129
  {
2044
- foreignKeyName: "fk_notes_task";
2045
- columns: ["task_id"];
2130
+ foreignKeyName: 'fk_notes_task';
2131
+ columns: ['task_id'];
2046
2132
  isOneToOne: false;
2047
- referencedRelation: "prj_tasks";
2048
- referencedColumns: ["id"];
2133
+ referencedRelation: 'prj_tasks';
2134
+ referencedColumns: ['id'];
2049
2135
  },
2050
2136
  {
2051
- foreignKeyName: "prj_notes_created_by_fkey";
2052
- columns: ["created_by"];
2137
+ foreignKeyName: 'prj_notes_created_by_fkey';
2138
+ columns: ['created_by'];
2053
2139
  isOneToOne: false;
2054
- referencedRelation: "users";
2055
- referencedColumns: ["id"];
2140
+ referencedRelation: 'users';
2141
+ referencedColumns: ['id'];
2056
2142
  },
2057
2143
  {
2058
- foreignKeyName: "prj_notes_milestone_id_fkey";
2059
- columns: ["milestone_id"];
2144
+ foreignKeyName: 'prj_notes_milestone_id_fkey';
2145
+ columns: ['milestone_id'];
2060
2146
  isOneToOne: false;
2061
- referencedRelation: "prj_milestones";
2062
- referencedColumns: ["id"];
2147
+ referencedRelation: 'prj_milestones';
2148
+ referencedColumns: ['id'];
2063
2149
  },
2064
2150
  {
2065
- foreignKeyName: "prj_notes_organization_id_fkey";
2066
- columns: ["organization_id"];
2151
+ foreignKeyName: 'prj_notes_organization_id_fkey';
2152
+ columns: ['organization_id'];
2067
2153
  isOneToOne: false;
2068
- referencedRelation: "organizations";
2069
- referencedColumns: ["id"];
2154
+ referencedRelation: 'organizations';
2155
+ referencedColumns: ['id'];
2070
2156
  },
2071
2157
  {
2072
- foreignKeyName: "prj_notes_project_id_fkey";
2073
- columns: ["project_id"];
2158
+ foreignKeyName: 'prj_notes_project_id_fkey';
2159
+ columns: ['project_id'];
2074
2160
  isOneToOne: false;
2075
- referencedRelation: "prj_projects";
2076
- referencedColumns: ["id"];
2161
+ referencedRelation: 'prj_projects';
2162
+ referencedColumns: ['id'];
2077
2163
  },
2078
2164
  {
2079
- foreignKeyName: "prj_notes_task_id_fkey";
2080
- columns: ["task_id"];
2165
+ foreignKeyName: 'prj_notes_task_id_fkey';
2166
+ columns: ['task_id'];
2081
2167
  isOneToOne: false;
2082
- referencedRelation: "prj_tasks";
2083
- referencedColumns: ["id"];
2168
+ referencedRelation: 'prj_tasks';
2169
+ referencedColumns: ['id'];
2084
2170
  }
2085
2171
  ];
2086
2172
  };
@@ -2138,39 +2224,39 @@ type Database = {
2138
2224
  };
2139
2225
  Relationships: [
2140
2226
  {
2141
- foreignKeyName: "fk_projects_company";
2142
- columns: ["client_company_id"];
2227
+ foreignKeyName: 'fk_projects_company';
2228
+ columns: ['client_company_id'];
2143
2229
  isOneToOne: false;
2144
- referencedRelation: "acq_companies";
2145
- referencedColumns: ["id"];
2230
+ referencedRelation: 'acq_companies';
2231
+ referencedColumns: ['id'];
2146
2232
  },
2147
2233
  {
2148
- foreignKeyName: "fk_projects_deal";
2149
- columns: ["deal_id"];
2234
+ foreignKeyName: 'fk_projects_deal';
2235
+ columns: ['deal_id'];
2150
2236
  isOneToOne: false;
2151
- referencedRelation: "acq_deals";
2152
- referencedColumns: ["id"];
2237
+ referencedRelation: 'acq_deals';
2238
+ referencedColumns: ['id'];
2153
2239
  },
2154
2240
  {
2155
- foreignKeyName: "prj_projects_client_company_id_fkey";
2156
- columns: ["client_company_id"];
2241
+ foreignKeyName: 'prj_projects_client_company_id_fkey';
2242
+ columns: ['client_company_id'];
2157
2243
  isOneToOne: false;
2158
- referencedRelation: "acq_companies";
2159
- referencedColumns: ["id"];
2244
+ referencedRelation: 'acq_companies';
2245
+ referencedColumns: ['id'];
2160
2246
  },
2161
2247
  {
2162
- foreignKeyName: "prj_projects_deal_id_fkey";
2163
- columns: ["deal_id"];
2248
+ foreignKeyName: 'prj_projects_deal_id_fkey';
2249
+ columns: ['deal_id'];
2164
2250
  isOneToOne: false;
2165
- referencedRelation: "acq_deals";
2166
- referencedColumns: ["id"];
2251
+ referencedRelation: 'acq_deals';
2252
+ referencedColumns: ['id'];
2167
2253
  },
2168
2254
  {
2169
- foreignKeyName: "prj_projects_organization_id_fkey";
2170
- columns: ["organization_id"];
2255
+ foreignKeyName: 'prj_projects_organization_id_fkey';
2256
+ columns: ['organization_id'];
2171
2257
  isOneToOne: false;
2172
- referencedRelation: "organizations";
2173
- referencedColumns: ["id"];
2258
+ referencedRelation: 'organizations';
2259
+ referencedColumns: ['id'];
2174
2260
  }
2175
2261
  ];
2176
2262
  };
@@ -2234,53 +2320,53 @@ type Database = {
2234
2320
  };
2235
2321
  Relationships: [
2236
2322
  {
2237
- foreignKeyName: "fk_tasks_milestone";
2238
- columns: ["milestone_id"];
2323
+ foreignKeyName: 'fk_tasks_milestone';
2324
+ columns: ['milestone_id'];
2239
2325
  isOneToOne: false;
2240
- referencedRelation: "prj_milestones";
2241
- referencedColumns: ["id"];
2326
+ referencedRelation: 'prj_milestones';
2327
+ referencedColumns: ['id'];
2242
2328
  },
2243
2329
  {
2244
- foreignKeyName: "fk_tasks_parent";
2245
- columns: ["parent_task_id"];
2330
+ foreignKeyName: 'fk_tasks_parent';
2331
+ columns: ['parent_task_id'];
2246
2332
  isOneToOne: false;
2247
- referencedRelation: "prj_tasks";
2248
- referencedColumns: ["id"];
2333
+ referencedRelation: 'prj_tasks';
2334
+ referencedColumns: ['id'];
2249
2335
  },
2250
2336
  {
2251
- foreignKeyName: "fk_tasks_project";
2252
- columns: ["project_id"];
2337
+ foreignKeyName: 'fk_tasks_project';
2338
+ columns: ['project_id'];
2253
2339
  isOneToOne: false;
2254
- referencedRelation: "prj_projects";
2255
- referencedColumns: ["id"];
2340
+ referencedRelation: 'prj_projects';
2341
+ referencedColumns: ['id'];
2256
2342
  },
2257
2343
  {
2258
- foreignKeyName: "prj_tasks_milestone_id_fkey";
2259
- columns: ["milestone_id"];
2344
+ foreignKeyName: 'prj_tasks_milestone_id_fkey';
2345
+ columns: ['milestone_id'];
2260
2346
  isOneToOne: false;
2261
- referencedRelation: "prj_milestones";
2262
- referencedColumns: ["id"];
2347
+ referencedRelation: 'prj_milestones';
2348
+ referencedColumns: ['id'];
2263
2349
  },
2264
2350
  {
2265
- foreignKeyName: "prj_tasks_organization_id_fkey";
2266
- columns: ["organization_id"];
2351
+ foreignKeyName: 'prj_tasks_organization_id_fkey';
2352
+ columns: ['organization_id'];
2267
2353
  isOneToOne: false;
2268
- referencedRelation: "organizations";
2269
- referencedColumns: ["id"];
2354
+ referencedRelation: 'organizations';
2355
+ referencedColumns: ['id'];
2270
2356
  },
2271
2357
  {
2272
- foreignKeyName: "prj_tasks_parent_task_id_fkey";
2273
- columns: ["parent_task_id"];
2358
+ foreignKeyName: 'prj_tasks_parent_task_id_fkey';
2359
+ columns: ['parent_task_id'];
2274
2360
  isOneToOne: false;
2275
- referencedRelation: "prj_tasks";
2276
- referencedColumns: ["id"];
2361
+ referencedRelation: 'prj_tasks';
2362
+ referencedColumns: ['id'];
2277
2363
  },
2278
2364
  {
2279
- foreignKeyName: "prj_tasks_project_id_fkey";
2280
- columns: ["project_id"];
2365
+ foreignKeyName: 'prj_tasks_project_id_fkey';
2366
+ columns: ['project_id'];
2281
2367
  isOneToOne: false;
2282
- referencedRelation: "prj_projects";
2283
- referencedColumns: ["id"];
2368
+ referencedRelation: 'prj_projects';
2369
+ referencedColumns: ['id'];
2284
2370
  }
2285
2371
  ];
2286
2372
  };
@@ -2350,25 +2436,25 @@ type Database = {
2350
2436
  };
2351
2437
  Relationships: [
2352
2438
  {
2353
- foreignKeyName: "reported_requests_organization_id_fkey";
2354
- columns: ["organization_id"];
2439
+ foreignKeyName: 'reported_requests_organization_id_fkey';
2440
+ columns: ['organization_id'];
2355
2441
  isOneToOne: false;
2356
- referencedRelation: "organizations";
2357
- referencedColumns: ["id"];
2442
+ referencedRelation: 'organizations';
2443
+ referencedColumns: ['id'];
2358
2444
  },
2359
2445
  {
2360
- foreignKeyName: "reported_requests_project_id_fkey";
2361
- columns: ["project_id"];
2446
+ foreignKeyName: 'reported_requests_project_id_fkey';
2447
+ columns: ['project_id'];
2362
2448
  isOneToOne: false;
2363
- referencedRelation: "prj_projects";
2364
- referencedColumns: ["id"];
2449
+ referencedRelation: 'prj_projects';
2450
+ referencedColumns: ['id'];
2365
2451
  },
2366
2452
  {
2367
- foreignKeyName: "reported_requests_task_id_fkey";
2368
- columns: ["task_id"];
2453
+ foreignKeyName: 'reported_requests_task_id_fkey';
2454
+ columns: ['task_id'];
2369
2455
  isOneToOne: false;
2370
- referencedRelation: "prj_tasks";
2371
- referencedColumns: ["id"];
2456
+ referencedRelation: 'prj_tasks';
2457
+ referencedColumns: ['id'];
2372
2458
  }
2373
2459
  ];
2374
2460
  };
@@ -2408,11 +2494,11 @@ type Database = {
2408
2494
  };
2409
2495
  Relationships: [
2410
2496
  {
2411
- foreignKeyName: "session_messages_session_id_fkey";
2412
- columns: ["session_id"];
2497
+ foreignKeyName: 'session_messages_session_id_fkey';
2498
+ columns: ['session_id'];
2413
2499
  isOneToOne: false;
2414
- referencedRelation: "sessions";
2415
- referencedColumns: ["session_id"];
2500
+ referencedRelation: 'sessions';
2501
+ referencedColumns: ['session_id'];
2416
2502
  }
2417
2503
  ];
2418
2504
  };
@@ -2467,18 +2553,18 @@ type Database = {
2467
2553
  };
2468
2554
  Relationships: [
2469
2555
  {
2470
- foreignKeyName: "fk_organization";
2471
- columns: ["organization_id"];
2556
+ foreignKeyName: 'fk_organization';
2557
+ columns: ['organization_id'];
2472
2558
  isOneToOne: false;
2473
- referencedRelation: "organizations";
2474
- referencedColumns: ["id"];
2559
+ referencedRelation: 'organizations';
2560
+ referencedColumns: ['id'];
2475
2561
  },
2476
2562
  {
2477
- foreignKeyName: "fk_user";
2478
- columns: ["user_id"];
2563
+ foreignKeyName: 'fk_user';
2564
+ columns: ['user_id'];
2479
2565
  isOneToOne: false;
2480
- referencedRelation: "users";
2481
- referencedColumns: ["id"];
2566
+ referencedRelation: 'users';
2567
+ referencedColumns: ['id'];
2482
2568
  }
2483
2569
  ];
2484
2570
  };
@@ -2554,11 +2640,11 @@ type Database = {
2554
2640
  };
2555
2641
  Relationships: [
2556
2642
  {
2557
- foreignKeyName: "task_schedules_organization_id_fkey";
2558
- columns: ["organization_id"];
2643
+ foreignKeyName: 'task_schedules_organization_id_fkey';
2644
+ columns: ['organization_id'];
2559
2645
  isOneToOne: false;
2560
- referencedRelation: "organizations";
2561
- referencedColumns: ["id"];
2646
+ referencedRelation: 'organizations';
2647
+ referencedColumns: ['id'];
2562
2648
  }
2563
2649
  ];
2564
2650
  };
@@ -2613,11 +2699,11 @@ type Database = {
2613
2699
  };
2614
2700
  Relationships: [
2615
2701
  {
2616
- foreignKeyName: "user_profiles_last_visited_org_fkey";
2617
- columns: ["last_visited_org"];
2702
+ foreignKeyName: 'user_profiles_last_visited_org_fkey';
2703
+ columns: ['last_visited_org'];
2618
2704
  isOneToOne: false;
2619
- referencedRelation: "organizations";
2620
- referencedColumns: ["id"];
2705
+ referencedRelation: 'organizations';
2706
+ referencedColumns: ['id'];
2621
2707
  }
2622
2708
  ];
2623
2709
  };
@@ -2666,11 +2752,11 @@ type Database = {
2666
2752
  };
2667
2753
  Relationships: [
2668
2754
  {
2669
- foreignKeyName: "webhook_endpoints_organization_id_fkey";
2670
- columns: ["organization_id"];
2755
+ foreignKeyName: 'webhook_endpoints_organization_id_fkey';
2756
+ columns: ['organization_id'];
2671
2757
  isOneToOne: false;
2672
- referencedRelation: "organizations";
2673
- referencedColumns: ["id"];
2758
+ referencedRelation: 'organizations';
2759
+ referencedColumns: ['id'];
2674
2760
  }
2675
2761
  ];
2676
2762
  };
@@ -2818,17 +2904,17 @@ type Database = {
2818
2904
  };
2819
2905
  };
2820
2906
  };
2821
- type DatabaseWithoutInternals = Omit<Database, "__InternalSupabase">;
2822
- type DefaultSchema = DatabaseWithoutInternals[Extract<keyof Database, "public">];
2823
- type Tables<DefaultSchemaTableNameOrOptions extends keyof (DefaultSchema["Tables"] & DefaultSchema["Views"]) | {
2907
+ type DatabaseWithoutInternals = Omit<Database, '__InternalSupabase'>;
2908
+ type DefaultSchema = DatabaseWithoutInternals[Extract<keyof Database, 'public'>];
2909
+ type Tables<DefaultSchemaTableNameOrOptions extends keyof (DefaultSchema['Tables'] & DefaultSchema['Views']) | {
2824
2910
  schema: keyof DatabaseWithoutInternals;
2825
2911
  }, TableName extends DefaultSchemaTableNameOrOptions extends {
2826
2912
  schema: keyof DatabaseWithoutInternals;
2827
- } ? keyof (DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions["schema"]]["Tables"] & DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions["schema"]]["Views"]) : never = never> = DefaultSchemaTableNameOrOptions extends {
2913
+ } ? keyof (DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions['schema']]['Tables'] & DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions['schema']]['Views']) : never = never> = DefaultSchemaTableNameOrOptions extends {
2828
2914
  schema: keyof DatabaseWithoutInternals;
2829
- } ? (DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions["schema"]]["Tables"] & DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions["schema"]]["Views"])[TableName] extends {
2915
+ } ? (DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions['schema']]['Tables'] & DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions['schema']]['Views'])[TableName] extends {
2830
2916
  Row: infer R;
2831
- } ? R : never : DefaultSchemaTableNameOrOptions extends keyof (DefaultSchema["Tables"] & DefaultSchema["Views"]) ? (DefaultSchema["Tables"] & DefaultSchema["Views"])[DefaultSchemaTableNameOrOptions] extends {
2917
+ } ? R : never : DefaultSchemaTableNameOrOptions extends keyof (DefaultSchema['Tables'] & DefaultSchema['Views']) ? (DefaultSchema['Tables'] & DefaultSchema['Views'])[DefaultSchemaTableNameOrOptions] extends {
2832
2918
  Row: infer R;
2833
2919
  } ? R : never : never;
2834
2920