@elevasis/ui 2.22.0 → 2.24.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (57) hide show
  1. package/dist/app/index.d.ts +2915 -0
  2. package/dist/app/index.js +5 -4
  3. package/dist/{chunk-3HEUGBOT.js → chunk-2WZ635SS.js} +2 -2
  4. package/dist/{chunk-GJ7EIABJ.js → chunk-4NWNS7TX.js} +1 -1
  5. package/dist/{chunk-LKVBEE63.js → chunk-FUEXGRFR.js} +2 -2
  6. package/dist/{chunk-6IA2OMAE.js → chunk-HC2KV6BU.js} +9 -0
  7. package/dist/{chunk-IBUYJXA3.js → chunk-KCJ6VATY.js} +1133 -578
  8. package/dist/{chunk-WWJ6S2HQ.js → chunk-KLFIJDTD.js} +1 -1
  9. package/dist/{chunk-COG4ABRI.js → chunk-M2HWJY6O.js} +704 -375
  10. package/dist/{chunk-LVJGPE6H.js → chunk-MTR6AN2C.js} +3 -12
  11. package/dist/chunk-OWHQ65EQ.js +211 -0
  12. package/dist/{chunk-XOTJNW4Q.js → chunk-QIW6OCEI.js} +18 -1
  13. package/dist/{chunk-B4FHWKEF.js → chunk-QULLZ5PE.js} +193 -10
  14. package/dist/{chunk-QZJM3RYI.js → chunk-SNHGSCKH.js} +1 -1
  15. package/dist/{chunk-LVUCBY7X.js → chunk-UDJE54WN.js} +85 -3
  16. package/dist/{chunk-IOTLB6ND.js → chunk-VGNAV3TH.js} +406 -195
  17. package/dist/{chunk-BSZRKBAW.js → chunk-YBZT7MJR.js} +3 -3
  18. package/dist/{chunk-SQ5JGELM.js → chunk-ZDKQNQ4X.js} +19 -1
  19. package/dist/components/index.d.ts +500 -466
  20. package/dist/components/index.js +75 -32
  21. package/dist/components/navigation/index.js +2 -2
  22. package/dist/features/auth/index.d.ts +472 -389
  23. package/dist/features/crm/index.d.ts +468 -391
  24. package/dist/features/crm/index.js +8 -8
  25. package/dist/features/dashboard/index.js +8 -8
  26. package/dist/features/delivery/index.d.ts +466 -383
  27. package/dist/features/delivery/index.js +8 -8
  28. package/dist/features/lead-gen/index.d.ts +213 -65
  29. package/dist/features/lead-gen/index.js +9 -8
  30. package/dist/features/monitoring/index.js +9 -9
  31. package/dist/features/monitoring/requests/index.js +7 -7
  32. package/dist/features/operations/index.js +11 -10
  33. package/dist/features/settings/index.d.ts +472 -389
  34. package/dist/features/settings/index.js +9 -9
  35. package/dist/hooks/delivery/index.d.ts +466 -383
  36. package/dist/hooks/index.d.ts +967 -744
  37. package/dist/hooks/index.js +7 -7
  38. package/dist/hooks/published.d.ts +967 -744
  39. package/dist/hooks/published.js +7 -7
  40. package/dist/index.d.ts +1360 -1069
  41. package/dist/index.js +8 -8
  42. package/dist/initialization/index.d.ts +472 -389
  43. package/dist/organization/index.d.ts +11 -1
  44. package/dist/organization/index.js +2 -2
  45. package/dist/profile/index.d.ts +472 -389
  46. package/dist/provider/index.d.ts +3132 -169
  47. package/dist/provider/index.js +6 -6
  48. package/dist/provider/published.d.ts +3098 -168
  49. package/dist/provider/published.js +3 -3
  50. package/dist/supabase/index.d.ts +577 -413
  51. package/dist/test-utils/index.d.ts +21 -1
  52. package/dist/test-utils/index.js +13 -4
  53. package/dist/theme/index.js +2 -2
  54. package/dist/types/index.d.ts +472 -389
  55. package/package.json +2 -2
  56. package/src/test-utils/README.md +2 -0
  57. /package/dist/{chunk-ZBCTB5CA.js → chunk-EIOJNUPL.js} +0 -0
@@ -7,10 +7,57 @@ type Json = string | number | boolean | null | {
7
7
  } | Json[];
8
8
  type Database = {
9
9
  __InternalSupabase: {
10
- PostgrestVersion: "12.2.3 (519615d)";
10
+ PostgrestVersion: '12.2.3 (519615d)';
11
11
  };
12
12
  public: {
13
13
  Tables: {
14
+ acq_artifacts: {
15
+ Row: {
16
+ content: Json;
17
+ created_at: string;
18
+ created_by: string | null;
19
+ id: string;
20
+ kind: string;
21
+ organization_id: string;
22
+ owner_id: string;
23
+ owner_kind: string;
24
+ source_execution_id: string | null;
25
+ version: number;
26
+ };
27
+ Insert: {
28
+ content: Json;
29
+ created_at?: string;
30
+ created_by?: string | null;
31
+ id?: string;
32
+ kind: string;
33
+ organization_id: string;
34
+ owner_id: string;
35
+ owner_kind: string;
36
+ source_execution_id?: string | null;
37
+ version?: number;
38
+ };
39
+ Update: {
40
+ content?: Json;
41
+ created_at?: string;
42
+ created_by?: string | null;
43
+ id?: string;
44
+ kind?: string;
45
+ organization_id?: string;
46
+ owner_id?: string;
47
+ owner_kind?: string;
48
+ source_execution_id?: string | null;
49
+ version?: number;
50
+ };
51
+ Relationships: [
52
+ {
53
+ foreignKeyName: 'acq_artifacts_organization_id_fkey';
54
+ columns: ['organization_id'];
55
+ isOneToOne: false;
56
+ referencedRelation: 'organizations';
57
+ referencedColumns: ['id'];
58
+ }
59
+ ];
60
+ };
14
61
  acq_companies: {
15
62
  Row: {
16
63
  batch_id: string | null;
@@ -29,6 +76,9 @@ type Database = {
29
76
  num_employees: number | null;
30
77
  organization_id: string;
31
78
  pipeline_status: Json;
79
+ qualification_rubric_key: string | null;
80
+ qualification_score: number | null;
81
+ qualification_signals: Json | null;
32
82
  segment: string | null;
33
83
  source: string | null;
34
84
  status: string;
@@ -52,6 +102,9 @@ type Database = {
52
102
  num_employees?: number | null;
53
103
  organization_id: string;
54
104
  pipeline_status?: Json;
105
+ qualification_rubric_key?: string | null;
106
+ qualification_score?: number | null;
107
+ qualification_signals?: Json | null;
55
108
  segment?: string | null;
56
109
  source?: string | null;
57
110
  status?: string;
@@ -75,6 +128,9 @@ type Database = {
75
128
  num_employees?: number | null;
76
129
  organization_id?: string;
77
130
  pipeline_status?: Json;
131
+ qualification_rubric_key?: string | null;
132
+ qualification_score?: number | null;
133
+ qualification_signals?: Json | null;
78
134
  segment?: string | null;
79
135
  source?: string | null;
80
136
  status?: string;
@@ -83,11 +139,11 @@ type Database = {
83
139
  };
84
140
  Relationships: [
85
141
  {
86
- foreignKeyName: "acq_companies_organization_id_fkey";
87
- columns: ["organization_id"];
142
+ foreignKeyName: 'acq_companies_organization_id_fkey';
143
+ columns: ['organization_id'];
88
144
  isOneToOne: false;
89
- referencedRelation: "organizations";
90
- referencedColumns: ["id"];
145
+ referencedRelation: 'organizations';
146
+ referencedColumns: ['id'];
91
147
  }
92
148
  ];
93
149
  };
@@ -111,6 +167,9 @@ type Database = {
111
167
  opening_line: string | null;
112
168
  organization_id: string;
113
169
  pipeline_status: Json;
170
+ qualification_rubric_key: string | null;
171
+ qualification_score: number | null;
172
+ qualification_signals: Json | null;
114
173
  source: string | null;
115
174
  source_id: string | null;
116
175
  status: string;
@@ -136,6 +195,9 @@ type Database = {
136
195
  opening_line?: string | null;
137
196
  organization_id: string;
138
197
  pipeline_status?: Json;
198
+ qualification_rubric_key?: string | null;
199
+ qualification_score?: number | null;
200
+ qualification_signals?: Json | null;
139
201
  source?: string | null;
140
202
  source_id?: string | null;
141
203
  status?: string;
@@ -161,6 +223,9 @@ type Database = {
161
223
  opening_line?: string | null;
162
224
  organization_id?: string;
163
225
  pipeline_status?: Json;
226
+ qualification_rubric_key?: string | null;
227
+ qualification_score?: number | null;
228
+ qualification_signals?: Json | null;
164
229
  source?: string | null;
165
230
  source_id?: string | null;
166
231
  status?: string;
@@ -169,18 +234,18 @@ type Database = {
169
234
  };
170
235
  Relationships: [
171
236
  {
172
- foreignKeyName: "acq_contacts_company_id_fkey";
173
- columns: ["company_id"];
237
+ foreignKeyName: 'acq_contacts_company_id_fkey';
238
+ columns: ['company_id'];
174
239
  isOneToOne: false;
175
- referencedRelation: "acq_companies";
176
- referencedColumns: ["id"];
240
+ referencedRelation: 'acq_companies';
241
+ referencedColumns: ['id'];
177
242
  },
178
243
  {
179
- foreignKeyName: "acq_contacts_organization_id_fkey";
180
- columns: ["organization_id"];
244
+ foreignKeyName: 'acq_contacts_organization_id_fkey';
245
+ columns: ['organization_id'];
181
246
  isOneToOne: false;
182
- referencedRelation: "organizations";
183
- referencedColumns: ["id"];
247
+ referencedRelation: 'organizations';
248
+ referencedColumns: ['id'];
184
249
  }
185
250
  ];
186
251
  };
@@ -217,11 +282,11 @@ type Database = {
217
282
  };
218
283
  Relationships: [
219
284
  {
220
- foreignKeyName: "acq_content_organization_id_fkey";
221
- columns: ["organization_id"];
285
+ foreignKeyName: 'acq_content_organization_id_fkey';
286
+ columns: ['organization_id'];
222
287
  isOneToOne: false;
223
- referencedRelation: "organizations";
224
- referencedColumns: ["id"];
288
+ referencedRelation: 'organizations';
289
+ referencedColumns: ['id'];
225
290
  }
226
291
  ];
227
292
  };
@@ -285,18 +350,18 @@ type Database = {
285
350
  };
286
351
  Relationships: [
287
352
  {
288
- foreignKeyName: "acq_content_distributions_content_id_fkey";
289
- columns: ["content_id"];
353
+ foreignKeyName: 'acq_content_distributions_content_id_fkey';
354
+ columns: ['content_id'];
290
355
  isOneToOne: false;
291
- referencedRelation: "acq_content";
292
- referencedColumns: ["id"];
356
+ referencedRelation: 'acq_content';
357
+ referencedColumns: ['id'];
293
358
  },
294
359
  {
295
- foreignKeyName: "acq_content_distributions_organization_id_fkey";
296
- columns: ["organization_id"];
360
+ foreignKeyName: 'acq_content_distributions_organization_id_fkey';
361
+ columns: ['organization_id'];
297
362
  isOneToOne: false;
298
- referencedRelation: "organizations";
299
- referencedColumns: ["id"];
363
+ referencedRelation: 'organizations';
364
+ referencedColumns: ['id'];
300
365
  }
301
366
  ];
302
367
  };
@@ -330,18 +395,18 @@ type Database = {
330
395
  };
331
396
  Relationships: [
332
397
  {
333
- foreignKeyName: "acq_deal_notes_deal_id_fkey";
334
- columns: ["deal_id"];
398
+ foreignKeyName: 'acq_deal_notes_deal_id_fkey';
399
+ columns: ['deal_id'];
335
400
  isOneToOne: false;
336
- referencedRelation: "acq_deals";
337
- referencedColumns: ["id"];
401
+ referencedRelation: 'acq_deals';
402
+ referencedColumns: ['id'];
338
403
  },
339
404
  {
340
- foreignKeyName: "acq_deal_notes_organization_id_fkey";
341
- columns: ["organization_id"];
405
+ foreignKeyName: 'acq_deal_notes_organization_id_fkey';
406
+ columns: ['organization_id'];
342
407
  isOneToOne: false;
343
- referencedRelation: "organizations";
344
- referencedColumns: ["id"];
408
+ referencedRelation: 'organizations';
409
+ referencedColumns: ['id'];
345
410
  }
346
411
  ];
347
412
  };
@@ -393,25 +458,24 @@ type Database = {
393
458
  };
394
459
  Relationships: [
395
460
  {
396
- foreignKeyName: "acq_deal_tasks_deal_id_fkey";
397
- columns: ["deal_id"];
461
+ foreignKeyName: 'acq_deal_tasks_deal_id_fkey';
462
+ columns: ['deal_id'];
398
463
  isOneToOne: false;
399
- referencedRelation: "acq_deals";
400
- referencedColumns: ["id"];
464
+ referencedRelation: 'acq_deals';
465
+ referencedColumns: ['id'];
401
466
  },
402
467
  {
403
- foreignKeyName: "acq_deal_tasks_organization_id_fkey";
404
- columns: ["organization_id"];
468
+ foreignKeyName: 'acq_deal_tasks_organization_id_fkey';
469
+ columns: ['organization_id'];
405
470
  isOneToOne: false;
406
- referencedRelation: "organizations";
407
- referencedColumns: ["id"];
471
+ referencedRelation: 'organizations';
472
+ referencedColumns: ['id'];
408
473
  }
409
474
  ];
410
475
  };
411
476
  acq_deals: {
412
477
  Row: {
413
478
  activity_log: Json;
414
- cached_stage: string | null;
415
479
  closed_lost_at: string | null;
416
480
  closed_lost_reason: string | null;
417
481
  contact_email: string;
@@ -426,6 +490,7 @@ type Database = {
426
490
  organization_id: string;
427
491
  payment_link_sent_at: string | null;
428
492
  payment_received_at: string | null;
493
+ pipeline_key: string;
429
494
  proposal_data: Json | null;
430
495
  proposal_generated_at: string | null;
431
496
  proposal_pdf_url: string | null;
@@ -433,10 +498,11 @@ type Database = {
433
498
  proposal_reviewed_by: string | null;
434
499
  proposal_sent_at: string | null;
435
500
  proposal_signed_at: string | null;
436
- proposal_status: string | null;
437
501
  signature_envelope_id: string | null;
438
502
  source_list_id: string | null;
439
503
  source_type: string | null;
504
+ stage_key: string | null;
505
+ state_key: string | null;
440
506
  stripe_payment_id: string | null;
441
507
  stripe_payment_link: string | null;
442
508
  stripe_payment_link_id: string | null;
@@ -445,7 +511,6 @@ type Database = {
445
511
  };
446
512
  Insert: {
447
513
  activity_log?: Json;
448
- cached_stage?: string | null;
449
514
  closed_lost_at?: string | null;
450
515
  closed_lost_reason?: string | null;
451
516
  contact_email: string;
@@ -460,6 +525,7 @@ type Database = {
460
525
  organization_id: string;
461
526
  payment_link_sent_at?: string | null;
462
527
  payment_received_at?: string | null;
528
+ pipeline_key?: string;
463
529
  proposal_data?: Json | null;
464
530
  proposal_generated_at?: string | null;
465
531
  proposal_pdf_url?: string | null;
@@ -467,10 +533,11 @@ type Database = {
467
533
  proposal_reviewed_by?: string | null;
468
534
  proposal_sent_at?: string | null;
469
535
  proposal_signed_at?: string | null;
470
- proposal_status?: string | null;
471
536
  signature_envelope_id?: string | null;
472
537
  source_list_id?: string | null;
473
538
  source_type?: string | null;
539
+ stage_key?: string | null;
540
+ state_key?: string | null;
474
541
  stripe_payment_id?: string | null;
475
542
  stripe_payment_link?: string | null;
476
543
  stripe_payment_link_id?: string | null;
@@ -479,7 +546,6 @@ type Database = {
479
546
  };
480
547
  Update: {
481
548
  activity_log?: Json;
482
- cached_stage?: string | null;
483
549
  closed_lost_at?: string | null;
484
550
  closed_lost_reason?: string | null;
485
551
  contact_email?: string;
@@ -494,6 +560,7 @@ type Database = {
494
560
  organization_id?: string;
495
561
  payment_link_sent_at?: string | null;
496
562
  payment_received_at?: string | null;
563
+ pipeline_key?: string;
497
564
  proposal_data?: Json | null;
498
565
  proposal_generated_at?: string | null;
499
566
  proposal_pdf_url?: string | null;
@@ -501,10 +568,11 @@ type Database = {
501
568
  proposal_reviewed_by?: string | null;
502
569
  proposal_sent_at?: string | null;
503
570
  proposal_signed_at?: string | null;
504
- proposal_status?: string | null;
505
571
  signature_envelope_id?: string | null;
506
572
  source_list_id?: string | null;
507
573
  source_type?: string | null;
574
+ stage_key?: string | null;
575
+ state_key?: string | null;
508
576
  stripe_payment_id?: string | null;
509
577
  stripe_payment_link?: string | null;
510
578
  stripe_payment_link_id?: string | null;
@@ -513,86 +581,95 @@ type Database = {
513
581
  };
514
582
  Relationships: [
515
583
  {
516
- foreignKeyName: "acq_deals_contact_id_fkey";
517
- columns: ["contact_id"];
584
+ foreignKeyName: 'acq_deals_contact_id_fkey';
585
+ columns: ['contact_id'];
518
586
  isOneToOne: false;
519
- referencedRelation: "acq_contacts";
520
- referencedColumns: ["id"];
587
+ referencedRelation: 'acq_contacts';
588
+ referencedColumns: ['id'];
521
589
  },
522
590
  {
523
- foreignKeyName: "acq_deals_organization_id_fkey";
524
- columns: ["organization_id"];
591
+ foreignKeyName: 'acq_deals_organization_id_fkey';
592
+ columns: ['organization_id'];
525
593
  isOneToOne: false;
526
- referencedRelation: "organizations";
527
- referencedColumns: ["id"];
594
+ referencedRelation: 'organizations';
595
+ referencedColumns: ['id'];
528
596
  },
529
597
  {
530
- foreignKeyName: "acq_deals_source_list_id_fkey";
531
- columns: ["source_list_id"];
598
+ foreignKeyName: 'acq_deals_source_list_id_fkey';
599
+ columns: ['source_list_id'];
532
600
  isOneToOne: false;
533
- referencedRelation: "acq_lists";
534
- referencedColumns: ["id"];
601
+ referencedRelation: 'acq_lists';
602
+ referencedColumns: ['id'];
535
603
  }
536
604
  ];
537
605
  };
538
606
  acq_list_companies: {
539
607
  Row: {
608
+ activity_log: Json;
540
609
  added_at: string;
541
610
  added_by: string | null;
542
611
  company_id: string;
543
612
  id: string;
544
613
  list_id: string;
614
+ pipeline_key: string;
615
+ processing_state: Json;
545
616
  source_execution_id: string | null;
546
617
  source_input_hash: string | null;
547
618
  source_resource_id: string | null;
548
- stage: string | null;
549
- stage_updated_at: string | null;
619
+ stage_key: string;
620
+ state_key: string;
550
621
  };
551
622
  Insert: {
623
+ activity_log?: Json;
552
624
  added_at?: string;
553
625
  added_by?: string | null;
554
626
  company_id: string;
555
627
  id?: string;
556
628
  list_id: string;
629
+ pipeline_key?: string;
630
+ processing_state?: Json;
557
631
  source_execution_id?: string | null;
558
632
  source_input_hash?: string | null;
559
633
  source_resource_id?: string | null;
560
- stage?: string | null;
561
- stage_updated_at?: string | null;
634
+ stage_key: string;
635
+ state_key: string;
562
636
  };
563
637
  Update: {
638
+ activity_log?: Json;
564
639
  added_at?: string;
565
640
  added_by?: string | null;
566
641
  company_id?: string;
567
642
  id?: string;
568
643
  list_id?: string;
644
+ pipeline_key?: string;
645
+ processing_state?: Json;
569
646
  source_execution_id?: string | null;
570
647
  source_input_hash?: string | null;
571
648
  source_resource_id?: string | null;
572
- stage?: string | null;
573
- stage_updated_at?: string | null;
649
+ stage_key?: string;
650
+ state_key?: string;
574
651
  };
575
652
  Relationships: [
576
653
  {
577
- foreignKeyName: "acq_list_companies_company_id_fkey";
578
- columns: ["company_id"];
654
+ foreignKeyName: 'acq_list_companies_company_id_fkey';
655
+ columns: ['company_id'];
579
656
  isOneToOne: false;
580
- referencedRelation: "acq_companies";
581
- referencedColumns: ["id"];
657
+ referencedRelation: 'acq_companies';
658
+ referencedColumns: ['id'];
582
659
  },
583
660
  {
584
- foreignKeyName: "acq_list_companies_list_id_fkey";
585
- columns: ["list_id"];
661
+ foreignKeyName: 'acq_list_companies_list_id_fkey';
662
+ columns: ['list_id'];
586
663
  isOneToOne: false;
587
- referencedRelation: "acq_lists";
588
- referencedColumns: ["id"];
664
+ referencedRelation: 'acq_lists';
665
+ referencedColumns: ['id'];
589
666
  },
590
667
  {
591
- foreignKeyName: "acq_list_companies_source_execution_id_fkey";
592
- columns: ["source_execution_id"];
668
+ foreignKeyName: 'acq_list_companies_source_execution_id_fkey';
669
+ columns: ['source_execution_id'];
593
670
  isOneToOne: false;
594
- referencedRelation: "execution_logs";
595
- referencedColumns: ["execution_id"];
671
+ referencedRelation: 'execution_logs';
672
+ referencedColumns: ['execution_id'];
596
673
  }
597
674
  ];
598
675
  };
@@ -620,79 +697,88 @@ type Database = {
620
697
  };
621
698
  Relationships: [
622
699
  {
623
- foreignKeyName: "acq_list_executions_execution_id_fkey";
624
- columns: ["execution_id"];
700
+ foreignKeyName: 'acq_list_executions_execution_id_fkey';
701
+ columns: ['execution_id'];
625
702
  isOneToOne: false;
626
- referencedRelation: "execution_logs";
627
- referencedColumns: ["execution_id"];
703
+ referencedRelation: 'execution_logs';
704
+ referencedColumns: ['execution_id'];
628
705
  },
629
706
  {
630
- foreignKeyName: "acq_list_executions_list_id_fkey";
631
- columns: ["list_id"];
707
+ foreignKeyName: 'acq_list_executions_list_id_fkey';
708
+ columns: ['list_id'];
632
709
  isOneToOne: false;
633
- referencedRelation: "acq_lists";
634
- referencedColumns: ["id"];
710
+ referencedRelation: 'acq_lists';
711
+ referencedColumns: ['id'];
635
712
  }
636
713
  ];
637
714
  };
638
715
  acq_list_members: {
639
716
  Row: {
717
+ activity_log: Json;
640
718
  added_at: string;
641
719
  added_by: string | null;
642
720
  contact_id: string;
643
721
  id: string;
644
722
  list_id: string;
723
+ pipeline_key: string;
724
+ processing_state: Json;
645
725
  source_execution_id: string | null;
646
726
  source_input_hash: string | null;
647
727
  source_resource_id: string | null;
648
- stage: string | null;
649
- stage_updated_at: string | null;
728
+ stage_key: string;
729
+ state_key: string;
650
730
  };
651
731
  Insert: {
732
+ activity_log?: Json;
652
733
  added_at?: string;
653
734
  added_by?: string | null;
654
735
  contact_id: string;
655
736
  id?: string;
656
737
  list_id: string;
738
+ pipeline_key?: string;
739
+ processing_state?: Json;
657
740
  source_execution_id?: string | null;
658
741
  source_input_hash?: string | null;
659
742
  source_resource_id?: string | null;
660
- stage?: string | null;
661
- stage_updated_at?: string | null;
743
+ stage_key: string;
744
+ state_key: string;
662
745
  };
663
746
  Update: {
747
+ activity_log?: Json;
664
748
  added_at?: string;
665
749
  added_by?: string | null;
666
750
  contact_id?: string;
667
751
  id?: string;
668
752
  list_id?: string;
753
+ pipeline_key?: string;
754
+ processing_state?: Json;
669
755
  source_execution_id?: string | null;
670
756
  source_input_hash?: string | null;
671
757
  source_resource_id?: string | null;
672
- stage?: string | null;
673
- stage_updated_at?: string | null;
758
+ stage_key?: string;
759
+ state_key?: string;
674
760
  };
675
761
  Relationships: [
676
762
  {
677
- foreignKeyName: "acq_list_members_contact_id_fkey";
678
- columns: ["contact_id"];
763
+ foreignKeyName: 'acq_list_members_contact_id_fkey';
764
+ columns: ['contact_id'];
679
765
  isOneToOne: false;
680
- referencedRelation: "acq_contacts";
681
- referencedColumns: ["id"];
766
+ referencedRelation: 'acq_contacts';
767
+ referencedColumns: ['id'];
682
768
  },
683
769
  {
684
- foreignKeyName: "acq_list_members_list_id_fkey";
685
- columns: ["list_id"];
770
+ foreignKeyName: 'acq_list_members_list_id_fkey';
771
+ columns: ['list_id'];
686
772
  isOneToOne: false;
687
- referencedRelation: "acq_lists";
688
- referencedColumns: ["id"];
773
+ referencedRelation: 'acq_lists';
774
+ referencedColumns: ['id'];
689
775
  },
690
776
  {
691
- foreignKeyName: "acq_list_members_source_execution_id_fkey";
692
- columns: ["source_execution_id"];
777
+ foreignKeyName: 'acq_list_members_source_execution_id_fkey';
778
+ columns: ['source_execution_id'];
693
779
  isOneToOne: false;
694
- referencedRelation: "execution_logs";
695
- referencedColumns: ["execution_id"];
780
+ referencedRelation: 'execution_logs';
781
+ referencedColumns: ['execution_id'];
696
782
  }
697
783
  ];
698
784
  };
@@ -700,55 +786,58 @@ type Database = {
700
786
  Row: {
701
787
  batch_ids: string[];
702
788
  completed_at: string | null;
703
- config: Json;
704
789
  created_at: string;
705
790
  description: string | null;
791
+ icp: Json;
706
792
  id: string;
707
793
  instantly_campaign_id: string | null;
708
794
  launched_at: string | null;
709
795
  metadata: Json;
710
796
  name: string;
711
797
  organization_id: string;
798
+ pipeline_config: Json;
799
+ scraping_config: Json;
712
800
  status: string;
713
- type: string;
714
801
  };
715
802
  Insert: {
716
803
  batch_ids?: string[];
717
804
  completed_at?: string | null;
718
- config?: Json;
719
805
  created_at?: string;
720
806
  description?: string | null;
807
+ icp?: Json;
721
808
  id?: string;
722
809
  instantly_campaign_id?: string | null;
723
810
  launched_at?: string | null;
724
811
  metadata?: Json;
725
812
  name: string;
726
813
  organization_id: string;
814
+ pipeline_config?: Json;
815
+ scraping_config?: Json;
727
816
  status?: string;
728
- type?: string;
729
817
  };
730
818
  Update: {
731
819
  batch_ids?: string[];
732
820
  completed_at?: string | null;
733
- config?: Json;
734
821
  created_at?: string;
735
822
  description?: string | null;
823
+ icp?: Json;
736
824
  id?: string;
737
825
  instantly_campaign_id?: string | null;
738
826
  launched_at?: string | null;
739
827
  metadata?: Json;
740
828
  name?: string;
741
829
  organization_id?: string;
830
+ pipeline_config?: Json;
831
+ scraping_config?: Json;
742
832
  status?: string;
743
- type?: string;
744
833
  };
745
834
  Relationships: [
746
835
  {
747
- foreignKeyName: "acq_lists_organization_id_fkey";
748
- columns: ["organization_id"];
836
+ foreignKeyName: 'acq_lists_organization_id_fkey';
837
+ columns: ['organization_id'];
749
838
  isOneToOne: false;
750
- referencedRelation: "organizations";
751
- referencedColumns: ["id"];
839
+ referencedRelation: 'organizations';
840
+ referencedColumns: ['id'];
752
841
  }
753
842
  ];
754
843
  };
@@ -824,18 +913,18 @@ type Database = {
824
913
  };
825
914
  Relationships: [
826
915
  {
827
- foreignKeyName: "acq_seo_metrics_organization_id_fkey";
828
- columns: ["organization_id"];
916
+ foreignKeyName: 'acq_seo_metrics_organization_id_fkey';
917
+ columns: ['organization_id'];
829
918
  isOneToOne: false;
830
- referencedRelation: "organizations";
831
- referencedColumns: ["id"];
919
+ referencedRelation: 'organizations';
920
+ referencedColumns: ['id'];
832
921
  },
833
922
  {
834
- foreignKeyName: "acq_seo_metrics_seo_page_id_fkey";
835
- columns: ["seo_page_id"];
923
+ foreignKeyName: 'acq_seo_metrics_seo_page_id_fkey';
924
+ columns: ['seo_page_id'];
836
925
  isOneToOne: false;
837
- referencedRelation: "acq_seo_pages";
838
- referencedColumns: ["id"];
926
+ referencedRelation: 'acq_seo_pages';
927
+ referencedColumns: ['id'];
839
928
  }
840
929
  ];
841
930
  };
@@ -911,11 +1000,11 @@ type Database = {
911
1000
  };
912
1001
  Relationships: [
913
1002
  {
914
- foreignKeyName: "acq_seo_pages_organization_id_fkey";
915
- columns: ["organization_id"];
1003
+ foreignKeyName: 'acq_seo_pages_organization_id_fkey';
1004
+ columns: ['organization_id'];
916
1005
  isOneToOne: false;
917
- referencedRelation: "organizations";
918
- referencedColumns: ["id"];
1006
+ referencedRelation: 'organizations';
1007
+ referencedColumns: ['id'];
919
1008
  }
920
1009
  ];
921
1010
  };
@@ -1012,11 +1101,11 @@ type Database = {
1012
1101
  };
1013
1102
  Relationships: [
1014
1103
  {
1015
- foreignKeyName: "acq_social_posts_organization_id_fkey";
1016
- columns: ["organization_id"];
1104
+ foreignKeyName: 'acq_social_posts_organization_id_fkey';
1105
+ columns: ['organization_id'];
1017
1106
  isOneToOne: false;
1018
- referencedRelation: "organizations";
1019
- referencedColumns: ["id"];
1107
+ referencedRelation: 'organizations';
1108
+ referencedColumns: ['id'];
1020
1109
  }
1021
1110
  ];
1022
1111
  };
@@ -1071,11 +1160,11 @@ type Database = {
1071
1160
  };
1072
1161
  Relationships: [
1073
1162
  {
1074
- foreignKeyName: "activities_organization_id_fkey";
1075
- columns: ["organization_id"];
1163
+ foreignKeyName: 'activities_organization_id_fkey';
1164
+ columns: ['organization_id'];
1076
1165
  isOneToOne: false;
1077
- referencedRelation: "organizations";
1078
- referencedColumns: ["id"];
1166
+ referencedRelation: 'organizations';
1167
+ referencedColumns: ['id'];
1079
1168
  }
1080
1169
  ];
1081
1170
  };
@@ -1106,11 +1195,11 @@ type Database = {
1106
1195
  };
1107
1196
  Relationships: [
1108
1197
  {
1109
- foreignKeyName: "api_keys_organization_id_fkey";
1110
- columns: ["organization_id"];
1198
+ foreignKeyName: 'api_keys_organization_id_fkey';
1199
+ columns: ['organization_id'];
1111
1200
  isOneToOne: false;
1112
- referencedRelation: "organizations";
1113
- referencedColumns: ["id"];
1201
+ referencedRelation: 'organizations';
1202
+ referencedColumns: ['id'];
1114
1203
  }
1115
1204
  ];
1116
1205
  };
@@ -1189,25 +1278,25 @@ type Database = {
1189
1278
  };
1190
1279
  Relationships: [
1191
1280
  {
1192
- foreignKeyName: "command_queue_completed_by_fkey";
1193
- columns: ["completed_by"];
1281
+ foreignKeyName: 'command_queue_completed_by_fkey';
1282
+ columns: ['completed_by'];
1194
1283
  isOneToOne: false;
1195
- referencedRelation: "users";
1196
- referencedColumns: ["id"];
1284
+ referencedRelation: 'users';
1285
+ referencedColumns: ['id'];
1197
1286
  },
1198
1287
  {
1199
- foreignKeyName: "command_queue_organization_id_fkey";
1200
- columns: ["organization_id"];
1288
+ foreignKeyName: 'command_queue_organization_id_fkey';
1289
+ columns: ['organization_id'];
1201
1290
  isOneToOne: false;
1202
- referencedRelation: "organizations";
1203
- referencedColumns: ["id"];
1291
+ referencedRelation: 'organizations';
1292
+ referencedColumns: ['id'];
1204
1293
  },
1205
1294
  {
1206
- foreignKeyName: "command_queue_target_execution_id_fkey";
1207
- columns: ["target_execution_id"];
1295
+ foreignKeyName: 'command_queue_target_execution_id_fkey';
1296
+ columns: ['target_execution_id'];
1208
1297
  isOneToOne: false;
1209
- referencedRelation: "execution_logs";
1210
- referencedColumns: ["execution_id"];
1298
+ referencedRelation: 'execution_logs';
1299
+ referencedColumns: ['execution_id'];
1211
1300
  }
1212
1301
  ];
1213
1302
  };
@@ -1247,18 +1336,18 @@ type Database = {
1247
1336
  };
1248
1337
  Relationships: [
1249
1338
  {
1250
- foreignKeyName: "credentials_created_by_fkey";
1251
- columns: ["created_by"];
1339
+ foreignKeyName: 'credentials_created_by_fkey';
1340
+ columns: ['created_by'];
1252
1341
  isOneToOne: false;
1253
- referencedRelation: "users";
1254
- referencedColumns: ["id"];
1342
+ referencedRelation: 'users';
1343
+ referencedColumns: ['id'];
1255
1344
  },
1256
1345
  {
1257
- foreignKeyName: "credentials_organization_id_fkey";
1258
- columns: ["organization_id"];
1346
+ foreignKeyName: 'credentials_organization_id_fkey';
1347
+ columns: ['organization_id'];
1259
1348
  isOneToOne: false;
1260
- referencedRelation: "organizations";
1261
- referencedColumns: ["id"];
1349
+ referencedRelation: 'organizations';
1350
+ referencedColumns: ['id'];
1262
1351
  }
1263
1352
  ];
1264
1353
  };
@@ -1304,11 +1393,11 @@ type Database = {
1304
1393
  };
1305
1394
  Relationships: [
1306
1395
  {
1307
- foreignKeyName: "deployments_organization_id_fkey";
1308
- columns: ["organization_id"];
1396
+ foreignKeyName: 'deployments_organization_id_fkey';
1397
+ columns: ['organization_id'];
1309
1398
  isOneToOne: false;
1310
- referencedRelation: "organizations";
1311
- referencedColumns: ["id"];
1399
+ referencedRelation: 'organizations';
1400
+ referencedColumns: ['id'];
1312
1401
  }
1313
1402
  ];
1314
1403
  };
@@ -1363,25 +1452,25 @@ type Database = {
1363
1452
  };
1364
1453
  Relationships: [
1365
1454
  {
1366
- foreignKeyName: "execution_errors_execution_id_fkey";
1367
- columns: ["execution_id"];
1455
+ foreignKeyName: 'execution_errors_execution_id_fkey';
1456
+ columns: ['execution_id'];
1368
1457
  isOneToOne: false;
1369
- referencedRelation: "execution_logs";
1370
- referencedColumns: ["execution_id"];
1458
+ referencedRelation: 'execution_logs';
1459
+ referencedColumns: ['execution_id'];
1371
1460
  },
1372
1461
  {
1373
- foreignKeyName: "execution_errors_organization_id_fkey";
1374
- columns: ["organization_id"];
1462
+ foreignKeyName: 'execution_errors_organization_id_fkey';
1463
+ columns: ['organization_id'];
1375
1464
  isOneToOne: false;
1376
- referencedRelation: "organizations";
1377
- referencedColumns: ["id"];
1465
+ referencedRelation: 'organizations';
1466
+ referencedColumns: ['id'];
1378
1467
  },
1379
1468
  {
1380
- foreignKeyName: "execution_errors_resolved_by_fkey";
1381
- columns: ["resolved_by"];
1469
+ foreignKeyName: 'execution_errors_resolved_by_fkey';
1470
+ columns: ['resolved_by'];
1382
1471
  isOneToOne: false;
1383
- referencedRelation: "users";
1384
- referencedColumns: ["id"];
1472
+ referencedRelation: 'users';
1473
+ referencedColumns: ['id'];
1385
1474
  }
1386
1475
  ];
1387
1476
  };
@@ -1463,32 +1552,32 @@ type Database = {
1463
1552
  };
1464
1553
  Relationships: [
1465
1554
  {
1466
- foreignKeyName: "execution_history_organization_id_fkey";
1467
- columns: ["organization_id"];
1555
+ foreignKeyName: 'execution_history_organization_id_fkey';
1556
+ columns: ['organization_id'];
1468
1557
  isOneToOne: false;
1469
- referencedRelation: "organizations";
1470
- referencedColumns: ["id"];
1558
+ referencedRelation: 'organizations';
1559
+ referencedColumns: ['id'];
1471
1560
  },
1472
1561
  {
1473
- foreignKeyName: "execution_logs_origin_execution_id_fkey";
1474
- columns: ["origin_execution_id"];
1562
+ foreignKeyName: 'execution_logs_origin_execution_id_fkey';
1563
+ columns: ['origin_execution_id'];
1475
1564
  isOneToOne: false;
1476
- referencedRelation: "execution_logs";
1477
- referencedColumns: ["execution_id"];
1565
+ referencedRelation: 'execution_logs';
1566
+ referencedColumns: ['execution_id'];
1478
1567
  },
1479
1568
  {
1480
- foreignKeyName: "execution_logs_session_id_fkey";
1481
- columns: ["session_id"];
1569
+ foreignKeyName: 'execution_logs_session_id_fkey';
1570
+ columns: ['session_id'];
1482
1571
  isOneToOne: false;
1483
- referencedRelation: "sessions";
1484
- referencedColumns: ["session_id"];
1572
+ referencedRelation: 'sessions';
1573
+ referencedColumns: ['session_id'];
1485
1574
  },
1486
1575
  {
1487
- foreignKeyName: "execution_logs_user_id_fkey";
1488
- columns: ["user_id"];
1576
+ foreignKeyName: 'execution_logs_user_id_fkey';
1577
+ columns: ['user_id'];
1489
1578
  isOneToOne: false;
1490
- referencedRelation: "users";
1491
- referencedColumns: ["id"];
1579
+ referencedRelation: 'users';
1580
+ referencedColumns: ['id'];
1492
1581
  }
1493
1582
  ];
1494
1583
  };
@@ -1534,18 +1623,18 @@ type Database = {
1534
1623
  };
1535
1624
  Relationships: [
1536
1625
  {
1537
- foreignKeyName: "execution_metrics_execution_id_fkey";
1538
- columns: ["execution_id"];
1626
+ foreignKeyName: 'execution_metrics_execution_id_fkey';
1627
+ columns: ['execution_id'];
1539
1628
  isOneToOne: true;
1540
- referencedRelation: "execution_logs";
1541
- referencedColumns: ["execution_id"];
1629
+ referencedRelation: 'execution_logs';
1630
+ referencedColumns: ['execution_id'];
1542
1631
  },
1543
1632
  {
1544
- foreignKeyName: "execution_metrics_organization_id_fkey";
1545
- columns: ["organization_id"];
1633
+ foreignKeyName: 'execution_metrics_organization_id_fkey';
1634
+ columns: ['organization_id'];
1546
1635
  isOneToOne: false;
1547
- referencedRelation: "organizations";
1548
- referencedColumns: ["id"];
1636
+ referencedRelation: 'organizations';
1637
+ referencedColumns: ['id'];
1549
1638
  }
1550
1639
  ];
1551
1640
  };
@@ -1588,18 +1677,18 @@ type Database = {
1588
1677
  };
1589
1678
  Relationships: [
1590
1679
  {
1591
- foreignKeyName: "notifications_organization_id_fkey";
1592
- columns: ["organization_id"];
1680
+ foreignKeyName: 'notifications_organization_id_fkey';
1681
+ columns: ['organization_id'];
1593
1682
  isOneToOne: false;
1594
- referencedRelation: "organizations";
1595
- referencedColumns: ["id"];
1683
+ referencedRelation: 'organizations';
1684
+ referencedColumns: ['id'];
1596
1685
  },
1597
1686
  {
1598
- foreignKeyName: "notifications_user_id_fkey";
1599
- columns: ["user_id"];
1687
+ foreignKeyName: 'notifications_user_id_fkey';
1688
+ columns: ['user_id'];
1600
1689
  isOneToOne: false;
1601
- referencedRelation: "users";
1602
- referencedColumns: ["id"];
1690
+ referencedRelation: 'users';
1691
+ referencedColumns: ['id'];
1603
1692
  }
1604
1693
  ];
1605
1694
  };
@@ -1654,18 +1743,18 @@ type Database = {
1654
1743
  };
1655
1744
  Relationships: [
1656
1745
  {
1657
- foreignKeyName: "org_invitations_inviter_user_id_fkey";
1658
- columns: ["inviter_user_id"];
1746
+ foreignKeyName: 'org_invitations_inviter_user_id_fkey';
1747
+ columns: ['inviter_user_id'];
1659
1748
  isOneToOne: false;
1660
- referencedRelation: "users";
1661
- referencedColumns: ["id"];
1749
+ referencedRelation: 'users';
1750
+ referencedColumns: ['id'];
1662
1751
  },
1663
1752
  {
1664
- foreignKeyName: "org_invitations_organization_id_fkey";
1665
- columns: ["organization_id"];
1753
+ foreignKeyName: 'org_invitations_organization_id_fkey';
1754
+ columns: ['organization_id'];
1666
1755
  isOneToOne: false;
1667
- referencedRelation: "organizations";
1668
- referencedColumns: ["id"];
1756
+ referencedRelation: 'organizations';
1757
+ referencedColumns: ['id'];
1669
1758
  }
1670
1759
  ];
1671
1760
  };
@@ -1708,18 +1797,18 @@ type Database = {
1708
1797
  };
1709
1798
  Relationships: [
1710
1799
  {
1711
- foreignKeyName: "org_memberships_organization_id_fkey";
1712
- columns: ["organization_id"];
1800
+ foreignKeyName: 'org_memberships_organization_id_fkey';
1801
+ columns: ['organization_id'];
1713
1802
  isOneToOne: false;
1714
- referencedRelation: "organizations";
1715
- referencedColumns: ["id"];
1803
+ referencedRelation: 'organizations';
1804
+ referencedColumns: ['id'];
1716
1805
  },
1717
1806
  {
1718
- foreignKeyName: "org_memberships_user_id_fkey";
1719
- columns: ["user_id"];
1807
+ foreignKeyName: 'org_memberships_user_id_fkey';
1808
+ columns: ['user_id'];
1720
1809
  isOneToOne: false;
1721
- referencedRelation: "users";
1722
- referencedColumns: ["id"];
1810
+ referencedRelation: 'users';
1811
+ referencedColumns: ['id'];
1723
1812
  }
1724
1813
  ];
1725
1814
  };
@@ -1744,25 +1833,25 @@ type Database = {
1744
1833
  };
1745
1834
  Relationships: [
1746
1835
  {
1747
- foreignKeyName: "org_rol_assignments_granted_by_fkey";
1748
- columns: ["granted_by"];
1836
+ foreignKeyName: 'org_rol_assignments_granted_by_fkey';
1837
+ columns: ['granted_by'];
1749
1838
  isOneToOne: false;
1750
- referencedRelation: "users";
1751
- referencedColumns: ["id"];
1839
+ referencedRelation: 'users';
1840
+ referencedColumns: ['id'];
1752
1841
  },
1753
1842
  {
1754
- foreignKeyName: "org_rol_assignments_membership_id_fkey";
1755
- columns: ["membership_id"];
1843
+ foreignKeyName: 'org_rol_assignments_membership_id_fkey';
1844
+ columns: ['membership_id'];
1756
1845
  isOneToOne: false;
1757
- referencedRelation: "org_memberships";
1758
- referencedColumns: ["id"];
1846
+ referencedRelation: 'org_memberships';
1847
+ referencedColumns: ['id'];
1759
1848
  },
1760
1849
  {
1761
- foreignKeyName: "org_rol_assignments_role_id_fkey";
1762
- columns: ["role_id"];
1850
+ foreignKeyName: 'org_rol_assignments_role_id_fkey';
1851
+ columns: ['role_id'];
1763
1852
  isOneToOne: false;
1764
- referencedRelation: "org_rol_definitions";
1765
- referencedColumns: ["id"];
1853
+ referencedRelation: 'org_rol_definitions';
1854
+ referencedColumns: ['id'];
1766
1855
  }
1767
1856
  ];
1768
1857
  };
@@ -1799,11 +1888,11 @@ type Database = {
1799
1888
  };
1800
1889
  Relationships: [
1801
1890
  {
1802
- foreignKeyName: "org_rol_definitions_organization_id_fkey";
1803
- columns: ["organization_id"];
1891
+ foreignKeyName: 'org_rol_definitions_organization_id_fkey';
1892
+ columns: ['organization_id'];
1804
1893
  isOneToOne: false;
1805
- referencedRelation: "organizations";
1806
- referencedColumns: ["id"];
1894
+ referencedRelation: 'organizations';
1895
+ referencedColumns: ['id'];
1807
1896
  }
1808
1897
  ];
1809
1898
  };
@@ -1825,18 +1914,18 @@ type Database = {
1825
1914
  };
1826
1915
  Relationships: [
1827
1916
  {
1828
- foreignKeyName: "org_rol_grants_permission_key_fkey";
1829
- columns: ["permission_key"];
1917
+ foreignKeyName: 'org_rol_grants_permission_key_fkey';
1918
+ columns: ['permission_key'];
1830
1919
  isOneToOne: false;
1831
- referencedRelation: "org_rol_permissions";
1832
- referencedColumns: ["key"];
1920
+ referencedRelation: 'org_rol_permissions';
1921
+ referencedColumns: ['key'];
1833
1922
  },
1834
1923
  {
1835
- foreignKeyName: "org_rol_grants_role_id_fkey";
1836
- columns: ["role_id"];
1924
+ foreignKeyName: 'org_rol_grants_role_id_fkey';
1925
+ columns: ['role_id'];
1837
1926
  isOneToOne: false;
1838
- referencedRelation: "org_rol_definitions";
1839
- referencedColumns: ["id"];
1927
+ referencedRelation: 'org_rol_definitions';
1928
+ referencedColumns: ['id'];
1840
1929
  }
1841
1930
  ];
1842
1931
  };
@@ -1948,25 +2037,25 @@ type Database = {
1948
2037
  };
1949
2038
  Relationships: [
1950
2039
  {
1951
- foreignKeyName: "fk_milestones_project";
1952
- columns: ["project_id"];
2040
+ foreignKeyName: 'fk_milestones_project';
2041
+ columns: ['project_id'];
1953
2042
  isOneToOne: false;
1954
- referencedRelation: "prj_projects";
1955
- referencedColumns: ["id"];
2043
+ referencedRelation: 'prj_projects';
2044
+ referencedColumns: ['id'];
1956
2045
  },
1957
2046
  {
1958
- foreignKeyName: "prj_milestones_organization_id_fkey";
1959
- columns: ["organization_id"];
2047
+ foreignKeyName: 'prj_milestones_organization_id_fkey';
2048
+ columns: ['organization_id'];
1960
2049
  isOneToOne: false;
1961
- referencedRelation: "organizations";
1962
- referencedColumns: ["id"];
2050
+ referencedRelation: 'organizations';
2051
+ referencedColumns: ['id'];
1963
2052
  },
1964
2053
  {
1965
- foreignKeyName: "prj_milestones_project_id_fkey";
1966
- columns: ["project_id"];
2054
+ foreignKeyName: 'prj_milestones_project_id_fkey';
2055
+ columns: ['project_id'];
1967
2056
  isOneToOne: false;
1968
- referencedRelation: "prj_projects";
1969
- referencedColumns: ["id"];
2057
+ referencedRelation: 'prj_projects';
2058
+ referencedColumns: ['id'];
1970
2059
  }
1971
2060
  ];
1972
2061
  };
@@ -2015,67 +2104,67 @@ type Database = {
2015
2104
  };
2016
2105
  Relationships: [
2017
2106
  {
2018
- foreignKeyName: "fk_notes_created_by";
2019
- columns: ["created_by"];
2107
+ foreignKeyName: 'fk_notes_created_by';
2108
+ columns: ['created_by'];
2020
2109
  isOneToOne: false;
2021
- referencedRelation: "users";
2022
- referencedColumns: ["id"];
2110
+ referencedRelation: 'users';
2111
+ referencedColumns: ['id'];
2023
2112
  },
2024
2113
  {
2025
- foreignKeyName: "fk_notes_milestone";
2026
- columns: ["milestone_id"];
2114
+ foreignKeyName: 'fk_notes_milestone';
2115
+ columns: ['milestone_id'];
2027
2116
  isOneToOne: false;
2028
- referencedRelation: "prj_milestones";
2029
- referencedColumns: ["id"];
2117
+ referencedRelation: 'prj_milestones';
2118
+ referencedColumns: ['id'];
2030
2119
  },
2031
2120
  {
2032
- foreignKeyName: "fk_notes_project";
2033
- columns: ["project_id"];
2121
+ foreignKeyName: 'fk_notes_project';
2122
+ columns: ['project_id'];
2034
2123
  isOneToOne: false;
2035
- referencedRelation: "prj_projects";
2036
- referencedColumns: ["id"];
2124
+ referencedRelation: 'prj_projects';
2125
+ referencedColumns: ['id'];
2037
2126
  },
2038
2127
  {
2039
- foreignKeyName: "fk_notes_task";
2040
- columns: ["task_id"];
2128
+ foreignKeyName: 'fk_notes_task';
2129
+ columns: ['task_id'];
2041
2130
  isOneToOne: false;
2042
- referencedRelation: "prj_tasks";
2043
- referencedColumns: ["id"];
2131
+ referencedRelation: 'prj_tasks';
2132
+ referencedColumns: ['id'];
2044
2133
  },
2045
2134
  {
2046
- foreignKeyName: "prj_notes_created_by_fkey";
2047
- columns: ["created_by"];
2135
+ foreignKeyName: 'prj_notes_created_by_fkey';
2136
+ columns: ['created_by'];
2048
2137
  isOneToOne: false;
2049
- referencedRelation: "users";
2050
- referencedColumns: ["id"];
2138
+ referencedRelation: 'users';
2139
+ referencedColumns: ['id'];
2051
2140
  },
2052
2141
  {
2053
- foreignKeyName: "prj_notes_milestone_id_fkey";
2054
- columns: ["milestone_id"];
2142
+ foreignKeyName: 'prj_notes_milestone_id_fkey';
2143
+ columns: ['milestone_id'];
2055
2144
  isOneToOne: false;
2056
- referencedRelation: "prj_milestones";
2057
- referencedColumns: ["id"];
2145
+ referencedRelation: 'prj_milestones';
2146
+ referencedColumns: ['id'];
2058
2147
  },
2059
2148
  {
2060
- foreignKeyName: "prj_notes_organization_id_fkey";
2061
- columns: ["organization_id"];
2149
+ foreignKeyName: 'prj_notes_organization_id_fkey';
2150
+ columns: ['organization_id'];
2062
2151
  isOneToOne: false;
2063
- referencedRelation: "organizations";
2064
- referencedColumns: ["id"];
2152
+ referencedRelation: 'organizations';
2153
+ referencedColumns: ['id'];
2065
2154
  },
2066
2155
  {
2067
- foreignKeyName: "prj_notes_project_id_fkey";
2068
- columns: ["project_id"];
2156
+ foreignKeyName: 'prj_notes_project_id_fkey';
2157
+ columns: ['project_id'];
2069
2158
  isOneToOne: false;
2070
- referencedRelation: "prj_projects";
2071
- referencedColumns: ["id"];
2159
+ referencedRelation: 'prj_projects';
2160
+ referencedColumns: ['id'];
2072
2161
  },
2073
2162
  {
2074
- foreignKeyName: "prj_notes_task_id_fkey";
2075
- columns: ["task_id"];
2163
+ foreignKeyName: 'prj_notes_task_id_fkey';
2164
+ columns: ['task_id'];
2076
2165
  isOneToOne: false;
2077
- referencedRelation: "prj_tasks";
2078
- referencedColumns: ["id"];
2166
+ referencedRelation: 'prj_tasks';
2167
+ referencedColumns: ['id'];
2079
2168
  }
2080
2169
  ];
2081
2170
  };
@@ -2133,39 +2222,39 @@ type Database = {
2133
2222
  };
2134
2223
  Relationships: [
2135
2224
  {
2136
- foreignKeyName: "fk_projects_company";
2137
- columns: ["client_company_id"];
2225
+ foreignKeyName: 'fk_projects_company';
2226
+ columns: ['client_company_id'];
2138
2227
  isOneToOne: false;
2139
- referencedRelation: "acq_companies";
2140
- referencedColumns: ["id"];
2228
+ referencedRelation: 'acq_companies';
2229
+ referencedColumns: ['id'];
2141
2230
  },
2142
2231
  {
2143
- foreignKeyName: "fk_projects_deal";
2144
- columns: ["deal_id"];
2232
+ foreignKeyName: 'fk_projects_deal';
2233
+ columns: ['deal_id'];
2145
2234
  isOneToOne: false;
2146
- referencedRelation: "acq_deals";
2147
- referencedColumns: ["id"];
2235
+ referencedRelation: 'acq_deals';
2236
+ referencedColumns: ['id'];
2148
2237
  },
2149
2238
  {
2150
- foreignKeyName: "prj_projects_client_company_id_fkey";
2151
- columns: ["client_company_id"];
2239
+ foreignKeyName: 'prj_projects_client_company_id_fkey';
2240
+ columns: ['client_company_id'];
2152
2241
  isOneToOne: false;
2153
- referencedRelation: "acq_companies";
2154
- referencedColumns: ["id"];
2242
+ referencedRelation: 'acq_companies';
2243
+ referencedColumns: ['id'];
2155
2244
  },
2156
2245
  {
2157
- foreignKeyName: "prj_projects_deal_id_fkey";
2158
- columns: ["deal_id"];
2246
+ foreignKeyName: 'prj_projects_deal_id_fkey';
2247
+ columns: ['deal_id'];
2159
2248
  isOneToOne: false;
2160
- referencedRelation: "acq_deals";
2161
- referencedColumns: ["id"];
2249
+ referencedRelation: 'acq_deals';
2250
+ referencedColumns: ['id'];
2162
2251
  },
2163
2252
  {
2164
- foreignKeyName: "prj_projects_organization_id_fkey";
2165
- columns: ["organization_id"];
2253
+ foreignKeyName: 'prj_projects_organization_id_fkey';
2254
+ columns: ['organization_id'];
2166
2255
  isOneToOne: false;
2167
- referencedRelation: "organizations";
2168
- referencedColumns: ["id"];
2256
+ referencedRelation: 'organizations';
2257
+ referencedColumns: ['id'];
2169
2258
  }
2170
2259
  ];
2171
2260
  };
@@ -2229,53 +2318,53 @@ type Database = {
2229
2318
  };
2230
2319
  Relationships: [
2231
2320
  {
2232
- foreignKeyName: "fk_tasks_milestone";
2233
- columns: ["milestone_id"];
2321
+ foreignKeyName: 'fk_tasks_milestone';
2322
+ columns: ['milestone_id'];
2234
2323
  isOneToOne: false;
2235
- referencedRelation: "prj_milestones";
2236
- referencedColumns: ["id"];
2324
+ referencedRelation: 'prj_milestones';
2325
+ referencedColumns: ['id'];
2237
2326
  },
2238
2327
  {
2239
- foreignKeyName: "fk_tasks_parent";
2240
- columns: ["parent_task_id"];
2328
+ foreignKeyName: 'fk_tasks_parent';
2329
+ columns: ['parent_task_id'];
2241
2330
  isOneToOne: false;
2242
- referencedRelation: "prj_tasks";
2243
- referencedColumns: ["id"];
2331
+ referencedRelation: 'prj_tasks';
2332
+ referencedColumns: ['id'];
2244
2333
  },
2245
2334
  {
2246
- foreignKeyName: "fk_tasks_project";
2247
- columns: ["project_id"];
2335
+ foreignKeyName: 'fk_tasks_project';
2336
+ columns: ['project_id'];
2248
2337
  isOneToOne: false;
2249
- referencedRelation: "prj_projects";
2250
- referencedColumns: ["id"];
2338
+ referencedRelation: 'prj_projects';
2339
+ referencedColumns: ['id'];
2251
2340
  },
2252
2341
  {
2253
- foreignKeyName: "prj_tasks_milestone_id_fkey";
2254
- columns: ["milestone_id"];
2342
+ foreignKeyName: 'prj_tasks_milestone_id_fkey';
2343
+ columns: ['milestone_id'];
2255
2344
  isOneToOne: false;
2256
- referencedRelation: "prj_milestones";
2257
- referencedColumns: ["id"];
2345
+ referencedRelation: 'prj_milestones';
2346
+ referencedColumns: ['id'];
2258
2347
  },
2259
2348
  {
2260
- foreignKeyName: "prj_tasks_organization_id_fkey";
2261
- columns: ["organization_id"];
2349
+ foreignKeyName: 'prj_tasks_organization_id_fkey';
2350
+ columns: ['organization_id'];
2262
2351
  isOneToOne: false;
2263
- referencedRelation: "organizations";
2264
- referencedColumns: ["id"];
2352
+ referencedRelation: 'organizations';
2353
+ referencedColumns: ['id'];
2265
2354
  },
2266
2355
  {
2267
- foreignKeyName: "prj_tasks_parent_task_id_fkey";
2268
- columns: ["parent_task_id"];
2356
+ foreignKeyName: 'prj_tasks_parent_task_id_fkey';
2357
+ columns: ['parent_task_id'];
2269
2358
  isOneToOne: false;
2270
- referencedRelation: "prj_tasks";
2271
- referencedColumns: ["id"];
2359
+ referencedRelation: 'prj_tasks';
2360
+ referencedColumns: ['id'];
2272
2361
  },
2273
2362
  {
2274
- foreignKeyName: "prj_tasks_project_id_fkey";
2275
- columns: ["project_id"];
2363
+ foreignKeyName: 'prj_tasks_project_id_fkey';
2364
+ columns: ['project_id'];
2276
2365
  isOneToOne: false;
2277
- referencedRelation: "prj_projects";
2278
- referencedColumns: ["id"];
2366
+ referencedRelation: 'prj_projects';
2367
+ referencedColumns: ['id'];
2279
2368
  }
2280
2369
  ];
2281
2370
  };
@@ -2345,25 +2434,25 @@ type Database = {
2345
2434
  };
2346
2435
  Relationships: [
2347
2436
  {
2348
- foreignKeyName: "reported_requests_organization_id_fkey";
2349
- columns: ["organization_id"];
2437
+ foreignKeyName: 'reported_requests_organization_id_fkey';
2438
+ columns: ['organization_id'];
2350
2439
  isOneToOne: false;
2351
- referencedRelation: "organizations";
2352
- referencedColumns: ["id"];
2440
+ referencedRelation: 'organizations';
2441
+ referencedColumns: ['id'];
2353
2442
  },
2354
2443
  {
2355
- foreignKeyName: "reported_requests_project_id_fkey";
2356
- columns: ["project_id"];
2444
+ foreignKeyName: 'reported_requests_project_id_fkey';
2445
+ columns: ['project_id'];
2357
2446
  isOneToOne: false;
2358
- referencedRelation: "prj_projects";
2359
- referencedColumns: ["id"];
2447
+ referencedRelation: 'prj_projects';
2448
+ referencedColumns: ['id'];
2360
2449
  },
2361
2450
  {
2362
- foreignKeyName: "reported_requests_task_id_fkey";
2363
- columns: ["task_id"];
2451
+ foreignKeyName: 'reported_requests_task_id_fkey';
2452
+ columns: ['task_id'];
2364
2453
  isOneToOne: false;
2365
- referencedRelation: "prj_tasks";
2366
- referencedColumns: ["id"];
2454
+ referencedRelation: 'prj_tasks';
2455
+ referencedColumns: ['id'];
2367
2456
  }
2368
2457
  ];
2369
2458
  };
@@ -2403,11 +2492,11 @@ type Database = {
2403
2492
  };
2404
2493
  Relationships: [
2405
2494
  {
2406
- foreignKeyName: "session_messages_session_id_fkey";
2407
- columns: ["session_id"];
2495
+ foreignKeyName: 'session_messages_session_id_fkey';
2496
+ columns: ['session_id'];
2408
2497
  isOneToOne: false;
2409
- referencedRelation: "sessions";
2410
- referencedColumns: ["session_id"];
2498
+ referencedRelation: 'sessions';
2499
+ referencedColumns: ['session_id'];
2411
2500
  }
2412
2501
  ];
2413
2502
  };
@@ -2462,18 +2551,18 @@ type Database = {
2462
2551
  };
2463
2552
  Relationships: [
2464
2553
  {
2465
- foreignKeyName: "fk_organization";
2466
- columns: ["organization_id"];
2554
+ foreignKeyName: 'fk_organization';
2555
+ columns: ['organization_id'];
2467
2556
  isOneToOne: false;
2468
- referencedRelation: "organizations";
2469
- referencedColumns: ["id"];
2557
+ referencedRelation: 'organizations';
2558
+ referencedColumns: ['id'];
2470
2559
  },
2471
2560
  {
2472
- foreignKeyName: "fk_user";
2473
- columns: ["user_id"];
2561
+ foreignKeyName: 'fk_user';
2562
+ columns: ['user_id'];
2474
2563
  isOneToOne: false;
2475
- referencedRelation: "users";
2476
- referencedColumns: ["id"];
2564
+ referencedRelation: 'users';
2565
+ referencedColumns: ['id'];
2477
2566
  }
2478
2567
  ];
2479
2568
  };
@@ -2549,11 +2638,11 @@ type Database = {
2549
2638
  };
2550
2639
  Relationships: [
2551
2640
  {
2552
- foreignKeyName: "task_schedules_organization_id_fkey";
2553
- columns: ["organization_id"];
2641
+ foreignKeyName: 'task_schedules_organization_id_fkey';
2642
+ columns: ['organization_id'];
2554
2643
  isOneToOne: false;
2555
- referencedRelation: "organizations";
2556
- referencedColumns: ["id"];
2644
+ referencedRelation: 'organizations';
2645
+ referencedColumns: ['id'];
2557
2646
  }
2558
2647
  ];
2559
2648
  };
@@ -2608,11 +2697,11 @@ type Database = {
2608
2697
  };
2609
2698
  Relationships: [
2610
2699
  {
2611
- foreignKeyName: "user_profiles_last_visited_org_fkey";
2612
- columns: ["last_visited_org"];
2700
+ foreignKeyName: 'user_profiles_last_visited_org_fkey';
2701
+ columns: ['last_visited_org'];
2613
2702
  isOneToOne: false;
2614
- referencedRelation: "organizations";
2615
- referencedColumns: ["id"];
2703
+ referencedRelation: 'organizations';
2704
+ referencedColumns: ['id'];
2616
2705
  }
2617
2706
  ];
2618
2707
  };
@@ -2661,11 +2750,11 @@ type Database = {
2661
2750
  };
2662
2751
  Relationships: [
2663
2752
  {
2664
- foreignKeyName: "webhook_endpoints_organization_id_fkey";
2665
- columns: ["organization_id"];
2753
+ foreignKeyName: 'webhook_endpoints_organization_id_fkey';
2754
+ columns: ['organization_id'];
2666
2755
  isOneToOne: false;
2667
- referencedRelation: "organizations";
2668
- referencedColumns: ["id"];
2756
+ referencedRelation: 'organizations';
2757
+ referencedColumns: ['id'];
2669
2758
  }
2670
2759
  ];
2671
2760
  };
@@ -2753,12 +2842,6 @@ type Database = {
2753
2842
  };
2754
2843
  Returns: boolean;
2755
2844
  };
2756
- is_org_admin: {
2757
- Args: {
2758
- org_id: string;
2759
- };
2760
- Returns: boolean;
2761
- };
2762
2845
  is_org_member: {
2763
2846
  Args: {
2764
2847
  org_id: string;
@@ -2819,17 +2902,17 @@ type Database = {
2819
2902
  };
2820
2903
  };
2821
2904
  };
2822
- type DatabaseWithoutInternals = Omit<Database, "__InternalSupabase">;
2823
- type DefaultSchema = DatabaseWithoutInternals[Extract<keyof Database, "public">];
2824
- type Tables<DefaultSchemaTableNameOrOptions extends keyof (DefaultSchema["Tables"] & DefaultSchema["Views"]) | {
2905
+ type DatabaseWithoutInternals = Omit<Database, '__InternalSupabase'>;
2906
+ type DefaultSchema = DatabaseWithoutInternals[Extract<keyof Database, 'public'>];
2907
+ type Tables<DefaultSchemaTableNameOrOptions extends keyof (DefaultSchema['Tables'] & DefaultSchema['Views']) | {
2825
2908
  schema: keyof DatabaseWithoutInternals;
2826
2909
  }, TableName extends DefaultSchemaTableNameOrOptions extends {
2827
2910
  schema: keyof DatabaseWithoutInternals;
2828
- } ? keyof (DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions["schema"]]["Tables"] & DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions["schema"]]["Views"]) : never = never> = DefaultSchemaTableNameOrOptions extends {
2911
+ } ? keyof (DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions['schema']]['Tables'] & DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions['schema']]['Views']) : never = never> = DefaultSchemaTableNameOrOptions extends {
2829
2912
  schema: keyof DatabaseWithoutInternals;
2830
- } ? (DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions["schema"]]["Tables"] & DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions["schema"]]["Views"])[TableName] extends {
2913
+ } ? (DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions['schema']]['Tables'] & DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions['schema']]['Views'])[TableName] extends {
2831
2914
  Row: infer R;
2832
- } ? R : never : DefaultSchemaTableNameOrOptions extends keyof (DefaultSchema["Tables"] & DefaultSchema["Views"]) ? (DefaultSchema["Tables"] & DefaultSchema["Views"])[DefaultSchemaTableNameOrOptions] extends {
2915
+ } ? R : never : DefaultSchemaTableNameOrOptions extends keyof (DefaultSchema['Tables'] & DefaultSchema['Views']) ? (DefaultSchema['Tables'] & DefaultSchema['Views'])[DefaultSchemaTableNameOrOptions] extends {
2833
2916
  Row: infer R;
2834
2917
  } ? R : never : never;
2835
2918