@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.
- package/dist/index.d.ts +1 -1
- package/dist/index.js +9 -2
- package/dist/organization-model/index.d.ts +1 -1
- package/dist/organization-model/index.js +9 -2
- package/dist/test-utils/index.d.ts +463 -377
- package/dist/test-utils/index.js +9 -2
- package/package.json +1 -1
- package/src/_gen/__tests__/__snapshots__/contracts.md.snap +2324 -0
- package/src/business/acquisition/activity-events.test.ts +250 -0
- package/src/business/acquisition/activity-events.ts +7 -65
- package/src/business/acquisition/api-schemas.test.ts +1180 -0
- package/src/business/acquisition/api-schemas.ts +1075 -859
- package/src/business/acquisition/crm-state-actions.test.ts +160 -0
- package/src/business/acquisition/derive-actions.test.ts +518 -0
- package/src/business/acquisition/derive-actions.ts +103 -90
- package/src/business/acquisition/index.ts +149 -111
- package/src/business/acquisition/stateful.ts +30 -0
- package/src/business/acquisition/types.ts +44 -77
- package/src/execution/engine/index.ts +437 -434
- package/src/execution/engine/tools/integration/server/adapters/attio/__tests__/attio-crud.integration.test.ts +363 -360
- package/src/execution/engine/tools/integration/server/adapters/attio/fetch/get-record/index.test.ts +162 -186
- package/src/execution/engine/tools/integration/server/adapters/attio/fetch/list-records/index.test.ts +316 -338
- package/src/execution/engine/tools/integration/server/adapters/gmail/gmail-adapter.ts +204 -210
- package/src/execution/engine/tools/integration/server/adapters/resend/fetch/send-email/index.test.ts +88 -0
- package/src/execution/engine/tools/integration/server/adapters/resend/fetch/send-email/index.ts +141 -134
- package/src/execution/engine/tools/integration/server/adapters/resend/fetch/utils/types.ts +76 -75
- package/src/execution/engine/tools/integration/service.test.ts +34 -9
- package/src/execution/engine/tools/integration/service.ts +6 -3
- package/src/execution/engine/tools/lead-service-types.ts +945 -888
- package/src/execution/engine/tools/platform/acquisition/types.ts +266 -260
- package/src/execution/engine/tools/registry.ts +701 -699
- package/src/execution/engine/tools/tool-maps.ts +816 -791
- package/src/execution/engine/workflow/types.ts +11 -0
- package/src/organization-model/contracts.ts +4 -4
- package/src/organization-model/domains/navigation.ts +62 -62
- package/src/organization-model/domains/sales.ts +272 -0
- package/src/organization-model/published.ts +21 -21
- package/src/organization-model/resolve.ts +21 -8
- package/src/platform/constants/versions.ts +1 -1
- package/src/reference/_generated/contracts.md +2324 -0
- 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
|
+
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:
|
|
89
|
-
columns: [
|
|
144
|
+
foreignKeyName: 'acq_companies_organization_id_fkey';
|
|
145
|
+
columns: ['organization_id'];
|
|
90
146
|
isOneToOne: false;
|
|
91
|
-
referencedRelation:
|
|
92
|
-
referencedColumns: [
|
|
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:
|
|
175
|
-
columns: [
|
|
239
|
+
foreignKeyName: 'acq_contacts_company_id_fkey';
|
|
240
|
+
columns: ['company_id'];
|
|
176
241
|
isOneToOne: false;
|
|
177
|
-
referencedRelation:
|
|
178
|
-
referencedColumns: [
|
|
242
|
+
referencedRelation: 'acq_companies';
|
|
243
|
+
referencedColumns: ['id'];
|
|
179
244
|
},
|
|
180
245
|
{
|
|
181
|
-
foreignKeyName:
|
|
182
|
-
columns: [
|
|
246
|
+
foreignKeyName: 'acq_contacts_organization_id_fkey';
|
|
247
|
+
columns: ['organization_id'];
|
|
183
248
|
isOneToOne: false;
|
|
184
|
-
referencedRelation:
|
|
185
|
-
referencedColumns: [
|
|
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:
|
|
223
|
-
columns: [
|
|
287
|
+
foreignKeyName: 'acq_content_organization_id_fkey';
|
|
288
|
+
columns: ['organization_id'];
|
|
224
289
|
isOneToOne: false;
|
|
225
|
-
referencedRelation:
|
|
226
|
-
referencedColumns: [
|
|
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:
|
|
291
|
-
columns: [
|
|
355
|
+
foreignKeyName: 'acq_content_distributions_content_id_fkey';
|
|
356
|
+
columns: ['content_id'];
|
|
292
357
|
isOneToOne: false;
|
|
293
|
-
referencedRelation:
|
|
294
|
-
referencedColumns: [
|
|
358
|
+
referencedRelation: 'acq_content';
|
|
359
|
+
referencedColumns: ['id'];
|
|
295
360
|
},
|
|
296
361
|
{
|
|
297
|
-
foreignKeyName:
|
|
298
|
-
columns: [
|
|
362
|
+
foreignKeyName: 'acq_content_distributions_organization_id_fkey';
|
|
363
|
+
columns: ['organization_id'];
|
|
299
364
|
isOneToOne: false;
|
|
300
|
-
referencedRelation:
|
|
301
|
-
referencedColumns: [
|
|
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:
|
|
336
|
-
columns: [
|
|
400
|
+
foreignKeyName: 'acq_deal_notes_deal_id_fkey';
|
|
401
|
+
columns: ['deal_id'];
|
|
337
402
|
isOneToOne: false;
|
|
338
|
-
referencedRelation:
|
|
339
|
-
referencedColumns: [
|
|
403
|
+
referencedRelation: 'acq_deals';
|
|
404
|
+
referencedColumns: ['id'];
|
|
340
405
|
},
|
|
341
406
|
{
|
|
342
|
-
foreignKeyName:
|
|
343
|
-
columns: [
|
|
407
|
+
foreignKeyName: 'acq_deal_notes_organization_id_fkey';
|
|
408
|
+
columns: ['organization_id'];
|
|
344
409
|
isOneToOne: false;
|
|
345
|
-
referencedRelation:
|
|
346
|
-
referencedColumns: [
|
|
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:
|
|
399
|
-
columns: [
|
|
463
|
+
foreignKeyName: 'acq_deal_tasks_deal_id_fkey';
|
|
464
|
+
columns: ['deal_id'];
|
|
400
465
|
isOneToOne: false;
|
|
401
|
-
referencedRelation:
|
|
402
|
-
referencedColumns: [
|
|
466
|
+
referencedRelation: 'acq_deals';
|
|
467
|
+
referencedColumns: ['id'];
|
|
403
468
|
},
|
|
404
469
|
{
|
|
405
|
-
foreignKeyName:
|
|
406
|
-
columns: [
|
|
470
|
+
foreignKeyName: 'acq_deal_tasks_organization_id_fkey';
|
|
471
|
+
columns: ['organization_id'];
|
|
407
472
|
isOneToOne: false;
|
|
408
|
-
referencedRelation:
|
|
409
|
-
referencedColumns: [
|
|
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:
|
|
522
|
-
columns: [
|
|
586
|
+
foreignKeyName: 'acq_deals_contact_id_fkey';
|
|
587
|
+
columns: ['contact_id'];
|
|
523
588
|
isOneToOne: false;
|
|
524
|
-
referencedRelation:
|
|
525
|
-
referencedColumns: [
|
|
589
|
+
referencedRelation: 'acq_contacts';
|
|
590
|
+
referencedColumns: ['id'];
|
|
526
591
|
},
|
|
527
592
|
{
|
|
528
|
-
foreignKeyName:
|
|
529
|
-
columns: [
|
|
593
|
+
foreignKeyName: 'acq_deals_organization_id_fkey';
|
|
594
|
+
columns: ['organization_id'];
|
|
530
595
|
isOneToOne: false;
|
|
531
|
-
referencedRelation:
|
|
532
|
-
referencedColumns: [
|
|
596
|
+
referencedRelation: 'organizations';
|
|
597
|
+
referencedColumns: ['id'];
|
|
533
598
|
},
|
|
534
599
|
{
|
|
535
|
-
foreignKeyName:
|
|
536
|
-
columns: [
|
|
600
|
+
foreignKeyName: 'acq_deals_source_list_id_fkey';
|
|
601
|
+
columns: ['source_list_id'];
|
|
537
602
|
isOneToOne: false;
|
|
538
|
-
referencedRelation:
|
|
539
|
-
referencedColumns: [
|
|
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
|
-
|
|
554
|
-
|
|
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
|
-
|
|
566
|
-
|
|
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
|
-
|
|
578
|
-
|
|
651
|
+
stage_key?: string;
|
|
652
|
+
state_key?: string;
|
|
579
653
|
};
|
|
580
654
|
Relationships: [
|
|
581
655
|
{
|
|
582
|
-
foreignKeyName:
|
|
583
|
-
columns: [
|
|
656
|
+
foreignKeyName: 'acq_list_companies_company_id_fkey';
|
|
657
|
+
columns: ['company_id'];
|
|
584
658
|
isOneToOne: false;
|
|
585
|
-
referencedRelation:
|
|
586
|
-
referencedColumns: [
|
|
659
|
+
referencedRelation: 'acq_companies';
|
|
660
|
+
referencedColumns: ['id'];
|
|
587
661
|
},
|
|
588
662
|
{
|
|
589
|
-
foreignKeyName:
|
|
590
|
-
columns: [
|
|
663
|
+
foreignKeyName: 'acq_list_companies_list_id_fkey';
|
|
664
|
+
columns: ['list_id'];
|
|
591
665
|
isOneToOne: false;
|
|
592
|
-
referencedRelation:
|
|
593
|
-
referencedColumns: [
|
|
666
|
+
referencedRelation: 'acq_lists';
|
|
667
|
+
referencedColumns: ['id'];
|
|
594
668
|
},
|
|
595
669
|
{
|
|
596
|
-
foreignKeyName:
|
|
597
|
-
columns: [
|
|
670
|
+
foreignKeyName: 'acq_list_companies_source_execution_id_fkey';
|
|
671
|
+
columns: ['source_execution_id'];
|
|
598
672
|
isOneToOne: false;
|
|
599
|
-
referencedRelation:
|
|
600
|
-
referencedColumns: [
|
|
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:
|
|
629
|
-
columns: [
|
|
702
|
+
foreignKeyName: 'acq_list_executions_execution_id_fkey';
|
|
703
|
+
columns: ['execution_id'];
|
|
630
704
|
isOneToOne: false;
|
|
631
|
-
referencedRelation:
|
|
632
|
-
referencedColumns: [
|
|
705
|
+
referencedRelation: 'execution_logs';
|
|
706
|
+
referencedColumns: ['execution_id'];
|
|
633
707
|
},
|
|
634
708
|
{
|
|
635
|
-
foreignKeyName:
|
|
636
|
-
columns: [
|
|
709
|
+
foreignKeyName: 'acq_list_executions_list_id_fkey';
|
|
710
|
+
columns: ['list_id'];
|
|
637
711
|
isOneToOne: false;
|
|
638
|
-
referencedRelation:
|
|
639
|
-
referencedColumns: [
|
|
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
|
-
|
|
654
|
-
|
|
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
|
-
|
|
666
|
-
|
|
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
|
-
|
|
678
|
-
|
|
760
|
+
stage_key?: string;
|
|
761
|
+
state_key?: string;
|
|
679
762
|
};
|
|
680
763
|
Relationships: [
|
|
681
764
|
{
|
|
682
|
-
foreignKeyName:
|
|
683
|
-
columns: [
|
|
765
|
+
foreignKeyName: 'acq_list_members_contact_id_fkey';
|
|
766
|
+
columns: ['contact_id'];
|
|
684
767
|
isOneToOne: false;
|
|
685
|
-
referencedRelation:
|
|
686
|
-
referencedColumns: [
|
|
768
|
+
referencedRelation: 'acq_contacts';
|
|
769
|
+
referencedColumns: ['id'];
|
|
687
770
|
},
|
|
688
771
|
{
|
|
689
|
-
foreignKeyName:
|
|
690
|
-
columns: [
|
|
772
|
+
foreignKeyName: 'acq_list_members_list_id_fkey';
|
|
773
|
+
columns: ['list_id'];
|
|
691
774
|
isOneToOne: false;
|
|
692
|
-
referencedRelation:
|
|
693
|
-
referencedColumns: [
|
|
775
|
+
referencedRelation: 'acq_lists';
|
|
776
|
+
referencedColumns: ['id'];
|
|
694
777
|
},
|
|
695
778
|
{
|
|
696
|
-
foreignKeyName:
|
|
697
|
-
columns: [
|
|
779
|
+
foreignKeyName: 'acq_list_members_source_execution_id_fkey';
|
|
780
|
+
columns: ['source_execution_id'];
|
|
698
781
|
isOneToOne: false;
|
|
699
|
-
referencedRelation:
|
|
700
|
-
referencedColumns: [
|
|
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:
|
|
753
|
-
columns: [
|
|
838
|
+
foreignKeyName: 'acq_lists_organization_id_fkey';
|
|
839
|
+
columns: ['organization_id'];
|
|
754
840
|
isOneToOne: false;
|
|
755
|
-
referencedRelation:
|
|
756
|
-
referencedColumns: [
|
|
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:
|
|
833
|
-
columns: [
|
|
918
|
+
foreignKeyName: 'acq_seo_metrics_organization_id_fkey';
|
|
919
|
+
columns: ['organization_id'];
|
|
834
920
|
isOneToOne: false;
|
|
835
|
-
referencedRelation:
|
|
836
|
-
referencedColumns: [
|
|
921
|
+
referencedRelation: 'organizations';
|
|
922
|
+
referencedColumns: ['id'];
|
|
837
923
|
},
|
|
838
924
|
{
|
|
839
|
-
foreignKeyName:
|
|
840
|
-
columns: [
|
|
925
|
+
foreignKeyName: 'acq_seo_metrics_seo_page_id_fkey';
|
|
926
|
+
columns: ['seo_page_id'];
|
|
841
927
|
isOneToOne: false;
|
|
842
|
-
referencedRelation:
|
|
843
|
-
referencedColumns: [
|
|
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:
|
|
920
|
-
columns: [
|
|
1005
|
+
foreignKeyName: 'acq_seo_pages_organization_id_fkey';
|
|
1006
|
+
columns: ['organization_id'];
|
|
921
1007
|
isOneToOne: false;
|
|
922
|
-
referencedRelation:
|
|
923
|
-
referencedColumns: [
|
|
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:
|
|
1021
|
-
columns: [
|
|
1106
|
+
foreignKeyName: 'acq_social_posts_organization_id_fkey';
|
|
1107
|
+
columns: ['organization_id'];
|
|
1022
1108
|
isOneToOne: false;
|
|
1023
|
-
referencedRelation:
|
|
1024
|
-
referencedColumns: [
|
|
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:
|
|
1080
|
-
columns: [
|
|
1165
|
+
foreignKeyName: 'activities_organization_id_fkey';
|
|
1166
|
+
columns: ['organization_id'];
|
|
1081
1167
|
isOneToOne: false;
|
|
1082
|
-
referencedRelation:
|
|
1083
|
-
referencedColumns: [
|
|
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:
|
|
1115
|
-
columns: [
|
|
1200
|
+
foreignKeyName: 'api_keys_organization_id_fkey';
|
|
1201
|
+
columns: ['organization_id'];
|
|
1116
1202
|
isOneToOne: false;
|
|
1117
|
-
referencedRelation:
|
|
1118
|
-
referencedColumns: [
|
|
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:
|
|
1198
|
-
columns: [
|
|
1283
|
+
foreignKeyName: 'command_queue_completed_by_fkey';
|
|
1284
|
+
columns: ['completed_by'];
|
|
1199
1285
|
isOneToOne: false;
|
|
1200
|
-
referencedRelation:
|
|
1201
|
-
referencedColumns: [
|
|
1286
|
+
referencedRelation: 'users';
|
|
1287
|
+
referencedColumns: ['id'];
|
|
1202
1288
|
},
|
|
1203
1289
|
{
|
|
1204
|
-
foreignKeyName:
|
|
1205
|
-
columns: [
|
|
1290
|
+
foreignKeyName: 'command_queue_organization_id_fkey';
|
|
1291
|
+
columns: ['organization_id'];
|
|
1206
1292
|
isOneToOne: false;
|
|
1207
|
-
referencedRelation:
|
|
1208
|
-
referencedColumns: [
|
|
1293
|
+
referencedRelation: 'organizations';
|
|
1294
|
+
referencedColumns: ['id'];
|
|
1209
1295
|
},
|
|
1210
1296
|
{
|
|
1211
|
-
foreignKeyName:
|
|
1212
|
-
columns: [
|
|
1297
|
+
foreignKeyName: 'command_queue_target_execution_id_fkey';
|
|
1298
|
+
columns: ['target_execution_id'];
|
|
1213
1299
|
isOneToOne: false;
|
|
1214
|
-
referencedRelation:
|
|
1215
|
-
referencedColumns: [
|
|
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:
|
|
1256
|
-
columns: [
|
|
1341
|
+
foreignKeyName: 'credentials_created_by_fkey';
|
|
1342
|
+
columns: ['created_by'];
|
|
1257
1343
|
isOneToOne: false;
|
|
1258
|
-
referencedRelation:
|
|
1259
|
-
referencedColumns: [
|
|
1344
|
+
referencedRelation: 'users';
|
|
1345
|
+
referencedColumns: ['id'];
|
|
1260
1346
|
},
|
|
1261
1347
|
{
|
|
1262
|
-
foreignKeyName:
|
|
1263
|
-
columns: [
|
|
1348
|
+
foreignKeyName: 'credentials_organization_id_fkey';
|
|
1349
|
+
columns: ['organization_id'];
|
|
1264
1350
|
isOneToOne: false;
|
|
1265
|
-
referencedRelation:
|
|
1266
|
-
referencedColumns: [
|
|
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:
|
|
1313
|
-
columns: [
|
|
1398
|
+
foreignKeyName: 'deployments_organization_id_fkey';
|
|
1399
|
+
columns: ['organization_id'];
|
|
1314
1400
|
isOneToOne: false;
|
|
1315
|
-
referencedRelation:
|
|
1316
|
-
referencedColumns: [
|
|
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:
|
|
1372
|
-
columns: [
|
|
1457
|
+
foreignKeyName: 'execution_errors_execution_id_fkey';
|
|
1458
|
+
columns: ['execution_id'];
|
|
1373
1459
|
isOneToOne: false;
|
|
1374
|
-
referencedRelation:
|
|
1375
|
-
referencedColumns: [
|
|
1460
|
+
referencedRelation: 'execution_logs';
|
|
1461
|
+
referencedColumns: ['execution_id'];
|
|
1376
1462
|
},
|
|
1377
1463
|
{
|
|
1378
|
-
foreignKeyName:
|
|
1379
|
-
columns: [
|
|
1464
|
+
foreignKeyName: 'execution_errors_organization_id_fkey';
|
|
1465
|
+
columns: ['organization_id'];
|
|
1380
1466
|
isOneToOne: false;
|
|
1381
|
-
referencedRelation:
|
|
1382
|
-
referencedColumns: [
|
|
1467
|
+
referencedRelation: 'organizations';
|
|
1468
|
+
referencedColumns: ['id'];
|
|
1383
1469
|
},
|
|
1384
1470
|
{
|
|
1385
|
-
foreignKeyName:
|
|
1386
|
-
columns: [
|
|
1471
|
+
foreignKeyName: 'execution_errors_resolved_by_fkey';
|
|
1472
|
+
columns: ['resolved_by'];
|
|
1387
1473
|
isOneToOne: false;
|
|
1388
|
-
referencedRelation:
|
|
1389
|
-
referencedColumns: [
|
|
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:
|
|
1472
|
-
columns: [
|
|
1557
|
+
foreignKeyName: 'execution_history_organization_id_fkey';
|
|
1558
|
+
columns: ['organization_id'];
|
|
1473
1559
|
isOneToOne: false;
|
|
1474
|
-
referencedRelation:
|
|
1475
|
-
referencedColumns: [
|
|
1560
|
+
referencedRelation: 'organizations';
|
|
1561
|
+
referencedColumns: ['id'];
|
|
1476
1562
|
},
|
|
1477
1563
|
{
|
|
1478
|
-
foreignKeyName:
|
|
1479
|
-
columns: [
|
|
1564
|
+
foreignKeyName: 'execution_logs_origin_execution_id_fkey';
|
|
1565
|
+
columns: ['origin_execution_id'];
|
|
1480
1566
|
isOneToOne: false;
|
|
1481
|
-
referencedRelation:
|
|
1482
|
-
referencedColumns: [
|
|
1567
|
+
referencedRelation: 'execution_logs';
|
|
1568
|
+
referencedColumns: ['execution_id'];
|
|
1483
1569
|
},
|
|
1484
1570
|
{
|
|
1485
|
-
foreignKeyName:
|
|
1486
|
-
columns: [
|
|
1571
|
+
foreignKeyName: 'execution_logs_session_id_fkey';
|
|
1572
|
+
columns: ['session_id'];
|
|
1487
1573
|
isOneToOne: false;
|
|
1488
|
-
referencedRelation:
|
|
1489
|
-
referencedColumns: [
|
|
1574
|
+
referencedRelation: 'sessions';
|
|
1575
|
+
referencedColumns: ['session_id'];
|
|
1490
1576
|
},
|
|
1491
1577
|
{
|
|
1492
|
-
foreignKeyName:
|
|
1493
|
-
columns: [
|
|
1578
|
+
foreignKeyName: 'execution_logs_user_id_fkey';
|
|
1579
|
+
columns: ['user_id'];
|
|
1494
1580
|
isOneToOne: false;
|
|
1495
|
-
referencedRelation:
|
|
1496
|
-
referencedColumns: [
|
|
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:
|
|
1543
|
-
columns: [
|
|
1628
|
+
foreignKeyName: 'execution_metrics_execution_id_fkey';
|
|
1629
|
+
columns: ['execution_id'];
|
|
1544
1630
|
isOneToOne: true;
|
|
1545
|
-
referencedRelation:
|
|
1546
|
-
referencedColumns: [
|
|
1631
|
+
referencedRelation: 'execution_logs';
|
|
1632
|
+
referencedColumns: ['execution_id'];
|
|
1547
1633
|
},
|
|
1548
1634
|
{
|
|
1549
|
-
foreignKeyName:
|
|
1550
|
-
columns: [
|
|
1635
|
+
foreignKeyName: 'execution_metrics_organization_id_fkey';
|
|
1636
|
+
columns: ['organization_id'];
|
|
1551
1637
|
isOneToOne: false;
|
|
1552
|
-
referencedRelation:
|
|
1553
|
-
referencedColumns: [
|
|
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:
|
|
1597
|
-
columns: [
|
|
1682
|
+
foreignKeyName: 'notifications_organization_id_fkey';
|
|
1683
|
+
columns: ['organization_id'];
|
|
1598
1684
|
isOneToOne: false;
|
|
1599
|
-
referencedRelation:
|
|
1600
|
-
referencedColumns: [
|
|
1685
|
+
referencedRelation: 'organizations';
|
|
1686
|
+
referencedColumns: ['id'];
|
|
1601
1687
|
},
|
|
1602
1688
|
{
|
|
1603
|
-
foreignKeyName:
|
|
1604
|
-
columns: [
|
|
1689
|
+
foreignKeyName: 'notifications_user_id_fkey';
|
|
1690
|
+
columns: ['user_id'];
|
|
1605
1691
|
isOneToOne: false;
|
|
1606
|
-
referencedRelation:
|
|
1607
|
-
referencedColumns: [
|
|
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:
|
|
1663
|
-
columns: [
|
|
1748
|
+
foreignKeyName: 'org_invitations_inviter_user_id_fkey';
|
|
1749
|
+
columns: ['inviter_user_id'];
|
|
1664
1750
|
isOneToOne: false;
|
|
1665
|
-
referencedRelation:
|
|
1666
|
-
referencedColumns: [
|
|
1751
|
+
referencedRelation: 'users';
|
|
1752
|
+
referencedColumns: ['id'];
|
|
1667
1753
|
},
|
|
1668
1754
|
{
|
|
1669
|
-
foreignKeyName:
|
|
1670
|
-
columns: [
|
|
1755
|
+
foreignKeyName: 'org_invitations_organization_id_fkey';
|
|
1756
|
+
columns: ['organization_id'];
|
|
1671
1757
|
isOneToOne: false;
|
|
1672
|
-
referencedRelation:
|
|
1673
|
-
referencedColumns: [
|
|
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:
|
|
1717
|
-
columns: [
|
|
1802
|
+
foreignKeyName: 'org_memberships_organization_id_fkey';
|
|
1803
|
+
columns: ['organization_id'];
|
|
1718
1804
|
isOneToOne: false;
|
|
1719
|
-
referencedRelation:
|
|
1720
|
-
referencedColumns: [
|
|
1805
|
+
referencedRelation: 'organizations';
|
|
1806
|
+
referencedColumns: ['id'];
|
|
1721
1807
|
},
|
|
1722
1808
|
{
|
|
1723
|
-
foreignKeyName:
|
|
1724
|
-
columns: [
|
|
1809
|
+
foreignKeyName: 'org_memberships_user_id_fkey';
|
|
1810
|
+
columns: ['user_id'];
|
|
1725
1811
|
isOneToOne: false;
|
|
1726
|
-
referencedRelation:
|
|
1727
|
-
referencedColumns: [
|
|
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:
|
|
1753
|
-
columns: [
|
|
1838
|
+
foreignKeyName: 'org_rol_assignments_granted_by_fkey';
|
|
1839
|
+
columns: ['granted_by'];
|
|
1754
1840
|
isOneToOne: false;
|
|
1755
|
-
referencedRelation:
|
|
1756
|
-
referencedColumns: [
|
|
1841
|
+
referencedRelation: 'users';
|
|
1842
|
+
referencedColumns: ['id'];
|
|
1757
1843
|
},
|
|
1758
1844
|
{
|
|
1759
|
-
foreignKeyName:
|
|
1760
|
-
columns: [
|
|
1845
|
+
foreignKeyName: 'org_rol_assignments_membership_id_fkey';
|
|
1846
|
+
columns: ['membership_id'];
|
|
1761
1847
|
isOneToOne: false;
|
|
1762
|
-
referencedRelation:
|
|
1763
|
-
referencedColumns: [
|
|
1848
|
+
referencedRelation: 'org_memberships';
|
|
1849
|
+
referencedColumns: ['id'];
|
|
1764
1850
|
},
|
|
1765
1851
|
{
|
|
1766
|
-
foreignKeyName:
|
|
1767
|
-
columns: [
|
|
1852
|
+
foreignKeyName: 'org_rol_assignments_role_id_fkey';
|
|
1853
|
+
columns: ['role_id'];
|
|
1768
1854
|
isOneToOne: false;
|
|
1769
|
-
referencedRelation:
|
|
1770
|
-
referencedColumns: [
|
|
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:
|
|
1808
|
-
columns: [
|
|
1893
|
+
foreignKeyName: 'org_rol_definitions_organization_id_fkey';
|
|
1894
|
+
columns: ['organization_id'];
|
|
1809
1895
|
isOneToOne: false;
|
|
1810
|
-
referencedRelation:
|
|
1811
|
-
referencedColumns: [
|
|
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:
|
|
1834
|
-
columns: [
|
|
1919
|
+
foreignKeyName: 'org_rol_grants_permission_key_fkey';
|
|
1920
|
+
columns: ['permission_key'];
|
|
1835
1921
|
isOneToOne: false;
|
|
1836
|
-
referencedRelation:
|
|
1837
|
-
referencedColumns: [
|
|
1922
|
+
referencedRelation: 'org_rol_permissions';
|
|
1923
|
+
referencedColumns: ['key'];
|
|
1838
1924
|
},
|
|
1839
1925
|
{
|
|
1840
|
-
foreignKeyName:
|
|
1841
|
-
columns: [
|
|
1926
|
+
foreignKeyName: 'org_rol_grants_role_id_fkey';
|
|
1927
|
+
columns: ['role_id'];
|
|
1842
1928
|
isOneToOne: false;
|
|
1843
|
-
referencedRelation:
|
|
1844
|
-
referencedColumns: [
|
|
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:
|
|
1957
|
-
columns: [
|
|
2042
|
+
foreignKeyName: 'fk_milestones_project';
|
|
2043
|
+
columns: ['project_id'];
|
|
1958
2044
|
isOneToOne: false;
|
|
1959
|
-
referencedRelation:
|
|
1960
|
-
referencedColumns: [
|
|
2045
|
+
referencedRelation: 'prj_projects';
|
|
2046
|
+
referencedColumns: ['id'];
|
|
1961
2047
|
},
|
|
1962
2048
|
{
|
|
1963
|
-
foreignKeyName:
|
|
1964
|
-
columns: [
|
|
2049
|
+
foreignKeyName: 'prj_milestones_organization_id_fkey';
|
|
2050
|
+
columns: ['organization_id'];
|
|
1965
2051
|
isOneToOne: false;
|
|
1966
|
-
referencedRelation:
|
|
1967
|
-
referencedColumns: [
|
|
2052
|
+
referencedRelation: 'organizations';
|
|
2053
|
+
referencedColumns: ['id'];
|
|
1968
2054
|
},
|
|
1969
2055
|
{
|
|
1970
|
-
foreignKeyName:
|
|
1971
|
-
columns: [
|
|
2056
|
+
foreignKeyName: 'prj_milestones_project_id_fkey';
|
|
2057
|
+
columns: ['project_id'];
|
|
1972
2058
|
isOneToOne: false;
|
|
1973
|
-
referencedRelation:
|
|
1974
|
-
referencedColumns: [
|
|
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:
|
|
2024
|
-
columns: [
|
|
2109
|
+
foreignKeyName: 'fk_notes_created_by';
|
|
2110
|
+
columns: ['created_by'];
|
|
2025
2111
|
isOneToOne: false;
|
|
2026
|
-
referencedRelation:
|
|
2027
|
-
referencedColumns: [
|
|
2112
|
+
referencedRelation: 'users';
|
|
2113
|
+
referencedColumns: ['id'];
|
|
2028
2114
|
},
|
|
2029
2115
|
{
|
|
2030
|
-
foreignKeyName:
|
|
2031
|
-
columns: [
|
|
2116
|
+
foreignKeyName: 'fk_notes_milestone';
|
|
2117
|
+
columns: ['milestone_id'];
|
|
2032
2118
|
isOneToOne: false;
|
|
2033
|
-
referencedRelation:
|
|
2034
|
-
referencedColumns: [
|
|
2119
|
+
referencedRelation: 'prj_milestones';
|
|
2120
|
+
referencedColumns: ['id'];
|
|
2035
2121
|
},
|
|
2036
2122
|
{
|
|
2037
|
-
foreignKeyName:
|
|
2038
|
-
columns: [
|
|
2123
|
+
foreignKeyName: 'fk_notes_project';
|
|
2124
|
+
columns: ['project_id'];
|
|
2039
2125
|
isOneToOne: false;
|
|
2040
|
-
referencedRelation:
|
|
2041
|
-
referencedColumns: [
|
|
2126
|
+
referencedRelation: 'prj_projects';
|
|
2127
|
+
referencedColumns: ['id'];
|
|
2042
2128
|
},
|
|
2043
2129
|
{
|
|
2044
|
-
foreignKeyName:
|
|
2045
|
-
columns: [
|
|
2130
|
+
foreignKeyName: 'fk_notes_task';
|
|
2131
|
+
columns: ['task_id'];
|
|
2046
2132
|
isOneToOne: false;
|
|
2047
|
-
referencedRelation:
|
|
2048
|
-
referencedColumns: [
|
|
2133
|
+
referencedRelation: 'prj_tasks';
|
|
2134
|
+
referencedColumns: ['id'];
|
|
2049
2135
|
},
|
|
2050
2136
|
{
|
|
2051
|
-
foreignKeyName:
|
|
2052
|
-
columns: [
|
|
2137
|
+
foreignKeyName: 'prj_notes_created_by_fkey';
|
|
2138
|
+
columns: ['created_by'];
|
|
2053
2139
|
isOneToOne: false;
|
|
2054
|
-
referencedRelation:
|
|
2055
|
-
referencedColumns: [
|
|
2140
|
+
referencedRelation: 'users';
|
|
2141
|
+
referencedColumns: ['id'];
|
|
2056
2142
|
},
|
|
2057
2143
|
{
|
|
2058
|
-
foreignKeyName:
|
|
2059
|
-
columns: [
|
|
2144
|
+
foreignKeyName: 'prj_notes_milestone_id_fkey';
|
|
2145
|
+
columns: ['milestone_id'];
|
|
2060
2146
|
isOneToOne: false;
|
|
2061
|
-
referencedRelation:
|
|
2062
|
-
referencedColumns: [
|
|
2147
|
+
referencedRelation: 'prj_milestones';
|
|
2148
|
+
referencedColumns: ['id'];
|
|
2063
2149
|
},
|
|
2064
2150
|
{
|
|
2065
|
-
foreignKeyName:
|
|
2066
|
-
columns: [
|
|
2151
|
+
foreignKeyName: 'prj_notes_organization_id_fkey';
|
|
2152
|
+
columns: ['organization_id'];
|
|
2067
2153
|
isOneToOne: false;
|
|
2068
|
-
referencedRelation:
|
|
2069
|
-
referencedColumns: [
|
|
2154
|
+
referencedRelation: 'organizations';
|
|
2155
|
+
referencedColumns: ['id'];
|
|
2070
2156
|
},
|
|
2071
2157
|
{
|
|
2072
|
-
foreignKeyName:
|
|
2073
|
-
columns: [
|
|
2158
|
+
foreignKeyName: 'prj_notes_project_id_fkey';
|
|
2159
|
+
columns: ['project_id'];
|
|
2074
2160
|
isOneToOne: false;
|
|
2075
|
-
referencedRelation:
|
|
2076
|
-
referencedColumns: [
|
|
2161
|
+
referencedRelation: 'prj_projects';
|
|
2162
|
+
referencedColumns: ['id'];
|
|
2077
2163
|
},
|
|
2078
2164
|
{
|
|
2079
|
-
foreignKeyName:
|
|
2080
|
-
columns: [
|
|
2165
|
+
foreignKeyName: 'prj_notes_task_id_fkey';
|
|
2166
|
+
columns: ['task_id'];
|
|
2081
2167
|
isOneToOne: false;
|
|
2082
|
-
referencedRelation:
|
|
2083
|
-
referencedColumns: [
|
|
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:
|
|
2142
|
-
columns: [
|
|
2227
|
+
foreignKeyName: 'fk_projects_company';
|
|
2228
|
+
columns: ['client_company_id'];
|
|
2143
2229
|
isOneToOne: false;
|
|
2144
|
-
referencedRelation:
|
|
2145
|
-
referencedColumns: [
|
|
2230
|
+
referencedRelation: 'acq_companies';
|
|
2231
|
+
referencedColumns: ['id'];
|
|
2146
2232
|
},
|
|
2147
2233
|
{
|
|
2148
|
-
foreignKeyName:
|
|
2149
|
-
columns: [
|
|
2234
|
+
foreignKeyName: 'fk_projects_deal';
|
|
2235
|
+
columns: ['deal_id'];
|
|
2150
2236
|
isOneToOne: false;
|
|
2151
|
-
referencedRelation:
|
|
2152
|
-
referencedColumns: [
|
|
2237
|
+
referencedRelation: 'acq_deals';
|
|
2238
|
+
referencedColumns: ['id'];
|
|
2153
2239
|
},
|
|
2154
2240
|
{
|
|
2155
|
-
foreignKeyName:
|
|
2156
|
-
columns: [
|
|
2241
|
+
foreignKeyName: 'prj_projects_client_company_id_fkey';
|
|
2242
|
+
columns: ['client_company_id'];
|
|
2157
2243
|
isOneToOne: false;
|
|
2158
|
-
referencedRelation:
|
|
2159
|
-
referencedColumns: [
|
|
2244
|
+
referencedRelation: 'acq_companies';
|
|
2245
|
+
referencedColumns: ['id'];
|
|
2160
2246
|
},
|
|
2161
2247
|
{
|
|
2162
|
-
foreignKeyName:
|
|
2163
|
-
columns: [
|
|
2248
|
+
foreignKeyName: 'prj_projects_deal_id_fkey';
|
|
2249
|
+
columns: ['deal_id'];
|
|
2164
2250
|
isOneToOne: false;
|
|
2165
|
-
referencedRelation:
|
|
2166
|
-
referencedColumns: [
|
|
2251
|
+
referencedRelation: 'acq_deals';
|
|
2252
|
+
referencedColumns: ['id'];
|
|
2167
2253
|
},
|
|
2168
2254
|
{
|
|
2169
|
-
foreignKeyName:
|
|
2170
|
-
columns: [
|
|
2255
|
+
foreignKeyName: 'prj_projects_organization_id_fkey';
|
|
2256
|
+
columns: ['organization_id'];
|
|
2171
2257
|
isOneToOne: false;
|
|
2172
|
-
referencedRelation:
|
|
2173
|
-
referencedColumns: [
|
|
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:
|
|
2238
|
-
columns: [
|
|
2323
|
+
foreignKeyName: 'fk_tasks_milestone';
|
|
2324
|
+
columns: ['milestone_id'];
|
|
2239
2325
|
isOneToOne: false;
|
|
2240
|
-
referencedRelation:
|
|
2241
|
-
referencedColumns: [
|
|
2326
|
+
referencedRelation: 'prj_milestones';
|
|
2327
|
+
referencedColumns: ['id'];
|
|
2242
2328
|
},
|
|
2243
2329
|
{
|
|
2244
|
-
foreignKeyName:
|
|
2245
|
-
columns: [
|
|
2330
|
+
foreignKeyName: 'fk_tasks_parent';
|
|
2331
|
+
columns: ['parent_task_id'];
|
|
2246
2332
|
isOneToOne: false;
|
|
2247
|
-
referencedRelation:
|
|
2248
|
-
referencedColumns: [
|
|
2333
|
+
referencedRelation: 'prj_tasks';
|
|
2334
|
+
referencedColumns: ['id'];
|
|
2249
2335
|
},
|
|
2250
2336
|
{
|
|
2251
|
-
foreignKeyName:
|
|
2252
|
-
columns: [
|
|
2337
|
+
foreignKeyName: 'fk_tasks_project';
|
|
2338
|
+
columns: ['project_id'];
|
|
2253
2339
|
isOneToOne: false;
|
|
2254
|
-
referencedRelation:
|
|
2255
|
-
referencedColumns: [
|
|
2340
|
+
referencedRelation: 'prj_projects';
|
|
2341
|
+
referencedColumns: ['id'];
|
|
2256
2342
|
},
|
|
2257
2343
|
{
|
|
2258
|
-
foreignKeyName:
|
|
2259
|
-
columns: [
|
|
2344
|
+
foreignKeyName: 'prj_tasks_milestone_id_fkey';
|
|
2345
|
+
columns: ['milestone_id'];
|
|
2260
2346
|
isOneToOne: false;
|
|
2261
|
-
referencedRelation:
|
|
2262
|
-
referencedColumns: [
|
|
2347
|
+
referencedRelation: 'prj_milestones';
|
|
2348
|
+
referencedColumns: ['id'];
|
|
2263
2349
|
},
|
|
2264
2350
|
{
|
|
2265
|
-
foreignKeyName:
|
|
2266
|
-
columns: [
|
|
2351
|
+
foreignKeyName: 'prj_tasks_organization_id_fkey';
|
|
2352
|
+
columns: ['organization_id'];
|
|
2267
2353
|
isOneToOne: false;
|
|
2268
|
-
referencedRelation:
|
|
2269
|
-
referencedColumns: [
|
|
2354
|
+
referencedRelation: 'organizations';
|
|
2355
|
+
referencedColumns: ['id'];
|
|
2270
2356
|
},
|
|
2271
2357
|
{
|
|
2272
|
-
foreignKeyName:
|
|
2273
|
-
columns: [
|
|
2358
|
+
foreignKeyName: 'prj_tasks_parent_task_id_fkey';
|
|
2359
|
+
columns: ['parent_task_id'];
|
|
2274
2360
|
isOneToOne: false;
|
|
2275
|
-
referencedRelation:
|
|
2276
|
-
referencedColumns: [
|
|
2361
|
+
referencedRelation: 'prj_tasks';
|
|
2362
|
+
referencedColumns: ['id'];
|
|
2277
2363
|
},
|
|
2278
2364
|
{
|
|
2279
|
-
foreignKeyName:
|
|
2280
|
-
columns: [
|
|
2365
|
+
foreignKeyName: 'prj_tasks_project_id_fkey';
|
|
2366
|
+
columns: ['project_id'];
|
|
2281
2367
|
isOneToOne: false;
|
|
2282
|
-
referencedRelation:
|
|
2283
|
-
referencedColumns: [
|
|
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:
|
|
2354
|
-
columns: [
|
|
2439
|
+
foreignKeyName: 'reported_requests_organization_id_fkey';
|
|
2440
|
+
columns: ['organization_id'];
|
|
2355
2441
|
isOneToOne: false;
|
|
2356
|
-
referencedRelation:
|
|
2357
|
-
referencedColumns: [
|
|
2442
|
+
referencedRelation: 'organizations';
|
|
2443
|
+
referencedColumns: ['id'];
|
|
2358
2444
|
},
|
|
2359
2445
|
{
|
|
2360
|
-
foreignKeyName:
|
|
2361
|
-
columns: [
|
|
2446
|
+
foreignKeyName: 'reported_requests_project_id_fkey';
|
|
2447
|
+
columns: ['project_id'];
|
|
2362
2448
|
isOneToOne: false;
|
|
2363
|
-
referencedRelation:
|
|
2364
|
-
referencedColumns: [
|
|
2449
|
+
referencedRelation: 'prj_projects';
|
|
2450
|
+
referencedColumns: ['id'];
|
|
2365
2451
|
},
|
|
2366
2452
|
{
|
|
2367
|
-
foreignKeyName:
|
|
2368
|
-
columns: [
|
|
2453
|
+
foreignKeyName: 'reported_requests_task_id_fkey';
|
|
2454
|
+
columns: ['task_id'];
|
|
2369
2455
|
isOneToOne: false;
|
|
2370
|
-
referencedRelation:
|
|
2371
|
-
referencedColumns: [
|
|
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:
|
|
2412
|
-
columns: [
|
|
2497
|
+
foreignKeyName: 'session_messages_session_id_fkey';
|
|
2498
|
+
columns: ['session_id'];
|
|
2413
2499
|
isOneToOne: false;
|
|
2414
|
-
referencedRelation:
|
|
2415
|
-
referencedColumns: [
|
|
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:
|
|
2471
|
-
columns: [
|
|
2556
|
+
foreignKeyName: 'fk_organization';
|
|
2557
|
+
columns: ['organization_id'];
|
|
2472
2558
|
isOneToOne: false;
|
|
2473
|
-
referencedRelation:
|
|
2474
|
-
referencedColumns: [
|
|
2559
|
+
referencedRelation: 'organizations';
|
|
2560
|
+
referencedColumns: ['id'];
|
|
2475
2561
|
},
|
|
2476
2562
|
{
|
|
2477
|
-
foreignKeyName:
|
|
2478
|
-
columns: [
|
|
2563
|
+
foreignKeyName: 'fk_user';
|
|
2564
|
+
columns: ['user_id'];
|
|
2479
2565
|
isOneToOne: false;
|
|
2480
|
-
referencedRelation:
|
|
2481
|
-
referencedColumns: [
|
|
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:
|
|
2558
|
-
columns: [
|
|
2643
|
+
foreignKeyName: 'task_schedules_organization_id_fkey';
|
|
2644
|
+
columns: ['organization_id'];
|
|
2559
2645
|
isOneToOne: false;
|
|
2560
|
-
referencedRelation:
|
|
2561
|
-
referencedColumns: [
|
|
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:
|
|
2617
|
-
columns: [
|
|
2702
|
+
foreignKeyName: 'user_profiles_last_visited_org_fkey';
|
|
2703
|
+
columns: ['last_visited_org'];
|
|
2618
2704
|
isOneToOne: false;
|
|
2619
|
-
referencedRelation:
|
|
2620
|
-
referencedColumns: [
|
|
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:
|
|
2670
|
-
columns: [
|
|
2755
|
+
foreignKeyName: 'webhook_endpoints_organization_id_fkey';
|
|
2756
|
+
columns: ['organization_id'];
|
|
2671
2757
|
isOneToOne: false;
|
|
2672
|
-
referencedRelation:
|
|
2673
|
-
referencedColumns: [
|
|
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,
|
|
2822
|
-
type DefaultSchema = DatabaseWithoutInternals[Extract<keyof Database,
|
|
2823
|
-
type Tables<DefaultSchemaTableNameOrOptions extends keyof (DefaultSchema[
|
|
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[
|
|
2913
|
+
} ? keyof (DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions['schema']]['Tables'] & DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions['schema']]['Views']) : never = never> = DefaultSchemaTableNameOrOptions extends {
|
|
2828
2914
|
schema: keyof DatabaseWithoutInternals;
|
|
2829
|
-
} ? (DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions[
|
|
2915
|
+
} ? (DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions['schema']]['Tables'] & DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions['schema']]['Views'])[TableName] extends {
|
|
2830
2916
|
Row: infer R;
|
|
2831
|
-
} ? R : never : DefaultSchemaTableNameOrOptions extends keyof (DefaultSchema[
|
|
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
|
|