@teardown/types 0.0.2 → 0.0.3

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.
@@ -1,976 +0,0 @@
1
- export type Json = string | number | boolean | null | { [key: string]: Json | undefined } | Json[];
2
-
3
- export type Database = {
4
- // Allows to automatically instantiate createClient with right options
5
- // instead of createClient<Database, { PostgrestVersion: 'XX' }>(URL, KEY)
6
- __InternalSupabase: {
7
- PostgrestVersion: "13.0.5";
8
- };
9
- public: {
10
- Tables: {
11
- device_sessions: {
12
- Row: {
13
- created_at: string;
14
- device_id: string;
15
- emergency_launch_reason: string | null;
16
- id: string;
17
- is_embedded_launch: boolean | null;
18
- is_emergency_launch: boolean | null;
19
- metadata: Json | null;
20
- os_version: string | null;
21
- ota_update_created_at: string | null;
22
- ota_update_id: string | null;
23
- ota_update_runtime_version: string | null;
24
- ota_updates_enabled: boolean | null;
25
- started_at: string;
26
- token: string | null;
27
- updated_at: string;
28
- version: string | null;
29
- version_build_id: string | null;
30
- version_id: string | null;
31
- };
32
- Insert: {
33
- created_at?: string;
34
- device_id: string;
35
- emergency_launch_reason?: string | null;
36
- id?: string;
37
- is_embedded_launch?: boolean | null;
38
- is_emergency_launch?: boolean | null;
39
- metadata?: Json | null;
40
- os_version?: string | null;
41
- ota_update_created_at?: string | null;
42
- ota_update_id?: string | null;
43
- ota_update_runtime_version?: string | null;
44
- ota_updates_enabled?: boolean | null;
45
- started_at?: string;
46
- token?: string | null;
47
- updated_at?: string;
48
- version?: string | null;
49
- version_build_id?: string | null;
50
- version_id?: string | null;
51
- };
52
- Update: {
53
- created_at?: string;
54
- device_id?: string;
55
- emergency_launch_reason?: string | null;
56
- id?: string;
57
- is_embedded_launch?: boolean | null;
58
- is_emergency_launch?: boolean | null;
59
- metadata?: Json | null;
60
- os_version?: string | null;
61
- ota_update_created_at?: string | null;
62
- ota_update_id?: string | null;
63
- ota_update_runtime_version?: string | null;
64
- ota_updates_enabled?: boolean | null;
65
- started_at?: string;
66
- token?: string | null;
67
- updated_at?: string;
68
- version?: string | null;
69
- version_build_id?: string | null;
70
- version_id?: string | null;
71
- };
72
- Relationships: [
73
- {
74
- foreignKeyName: "device_sessions_device_id_fkey";
75
- columns: ["device_id"];
76
- isOneToOne: false;
77
- referencedRelation: "devices";
78
- referencedColumns: ["id"];
79
- },
80
- {
81
- foreignKeyName: "device_sessions_ota_update_id_fkey";
82
- columns: ["ota_update_id"];
83
- isOneToOne: false;
84
- referencedRelation: "ota_updates";
85
- referencedColumns: ["id"];
86
- },
87
- {
88
- foreignKeyName: "device_sessions_version_build_id_fkey";
89
- columns: ["version_build_id"];
90
- isOneToOne: false;
91
- referencedRelation: "version_builds";
92
- referencedColumns: ["id"];
93
- },
94
- {
95
- foreignKeyName: "device_sessions_version_id_fkey";
96
- columns: ["version_id"];
97
- isOneToOne: false;
98
- referencedRelation: "project_versions";
99
- referencedColumns: ["id"];
100
- },
101
- ];
102
- };
103
- devices: {
104
- Row: {
105
- created_at: string;
106
- device_brand: string | null;
107
- device_id: string;
108
- device_name: string | null;
109
- id: string;
110
- metadata: Json | null;
111
- os_name: string | null;
112
- os_type: string | null;
113
- persona_id: string;
114
- platform: Database["public"]["Enums"]["device_platform"] | null;
115
- updated_at: string;
116
- };
117
- Insert: {
118
- created_at?: string;
119
- device_brand?: string | null;
120
- device_id: string;
121
- device_name?: string | null;
122
- id?: string;
123
- metadata?: Json | null;
124
- os_name?: string | null;
125
- os_type?: string | null;
126
- persona_id: string;
127
- platform?: Database["public"]["Enums"]["device_platform"] | null;
128
- updated_at?: string;
129
- };
130
- Update: {
131
- created_at?: string;
132
- device_brand?: string | null;
133
- device_id?: string;
134
- device_name?: string | null;
135
- id?: string;
136
- metadata?: Json | null;
137
- os_name?: string | null;
138
- os_type?: string | null;
139
- persona_id?: string;
140
- platform?: Database["public"]["Enums"]["device_platform"] | null;
141
- updated_at?: string;
142
- };
143
- Relationships: [
144
- {
145
- foreignKeyName: "devices_persona_id_fkey";
146
- columns: ["persona_id"];
147
- isOneToOne: false;
148
- referencedRelation: "personas";
149
- referencedColumns: ["id"];
150
- },
151
- ];
152
- };
153
- environments: {
154
- Row: {
155
- created_at: string;
156
- id: string;
157
- name: string;
158
- project_id: string;
159
- slug: string;
160
- type: Database["public"]["Enums"]["environment_type"];
161
- updated_at: string;
162
- };
163
- Insert: {
164
- created_at?: string;
165
- id?: string;
166
- name: string;
167
- project_id: string;
168
- slug: string;
169
- type: Database["public"]["Enums"]["environment_type"];
170
- updated_at?: string;
171
- };
172
- Update: {
173
- created_at?: string;
174
- id?: string;
175
- name?: string;
176
- project_id?: string;
177
- slug?: string;
178
- type?: Database["public"]["Enums"]["environment_type"];
179
- updated_at?: string;
180
- };
181
- Relationships: [
182
- {
183
- foreignKeyName: "environments_project_id_fkey";
184
- columns: ["project_id"];
185
- isOneToOne: false;
186
- referencedRelation: "projects";
187
- referencedColumns: ["id"];
188
- },
189
- ];
190
- };
191
- github_installations: {
192
- Row: {
193
- account_id: number;
194
- account_login: string;
195
- account_type: string;
196
- created_at: string;
197
- events: string[] | null;
198
- id: string;
199
- installation_id: number;
200
- installed_by_user_id: string | null;
201
- permissions: Json | null;
202
- suspended_at: string | null;
203
- suspended_by: Json | null;
204
- target_type: string;
205
- updated_at: string;
206
- };
207
- Insert: {
208
- account_id: number;
209
- account_login: string;
210
- account_type: string;
211
- created_at?: string;
212
- events?: string[] | null;
213
- id?: string;
214
- installation_id: number;
215
- installed_by_user_id?: string | null;
216
- permissions?: Json | null;
217
- suspended_at?: string | null;
218
- suspended_by?: Json | null;
219
- target_type: string;
220
- updated_at?: string;
221
- };
222
- Update: {
223
- account_id?: number;
224
- account_login?: string;
225
- account_type?: string;
226
- created_at?: string;
227
- events?: string[] | null;
228
- id?: string;
229
- installation_id?: number;
230
- installed_by_user_id?: string | null;
231
- permissions?: Json | null;
232
- suspended_at?: string | null;
233
- suspended_by?: Json | null;
234
- target_type?: string;
235
- updated_at?: string;
236
- };
237
- Relationships: [];
238
- };
239
- github_project_connections: {
240
- Row: {
241
- connected_by_user_id: string;
242
- created_at: string;
243
- id: string;
244
- installation_id: string;
245
- project_id: string;
246
- repository_id: string;
247
- updated_at: string;
248
- };
249
- Insert: {
250
- connected_by_user_id: string;
251
- created_at?: string;
252
- id?: string;
253
- installation_id: string;
254
- project_id: string;
255
- repository_id: string;
256
- updated_at?: string;
257
- };
258
- Update: {
259
- connected_by_user_id?: string;
260
- created_at?: string;
261
- id?: string;
262
- installation_id?: string;
263
- project_id?: string;
264
- repository_id?: string;
265
- updated_at?: string;
266
- };
267
- Relationships: [
268
- {
269
- foreignKeyName: "github_project_connections_installation_id_fkey";
270
- columns: ["installation_id"];
271
- isOneToOne: false;
272
- referencedRelation: "github_installations";
273
- referencedColumns: ["id"];
274
- },
275
- {
276
- foreignKeyName: "github_project_connections_project_id_fkey";
277
- columns: ["project_id"];
278
- isOneToOne: true;
279
- referencedRelation: "projects";
280
- referencedColumns: ["id"];
281
- },
282
- {
283
- foreignKeyName: "github_project_connections_repository_id_fkey";
284
- columns: ["repository_id"];
285
- isOneToOne: false;
286
- referencedRelation: "github_repositories";
287
- referencedColumns: ["id"];
288
- },
289
- ];
290
- };
291
- github_repositories: {
292
- Row: {
293
- archived: boolean;
294
- created_at: string;
295
- default_branch: string;
296
- disabled: boolean;
297
- fork: boolean;
298
- full_name: string;
299
- id: string;
300
- installation_id: string;
301
- name: string;
302
- owner: string;
303
- permissions: Json | null;
304
- private: boolean;
305
- repository_id: number;
306
- updated_at: string;
307
- };
308
- Insert: {
309
- archived?: boolean;
310
- created_at?: string;
311
- default_branch?: string;
312
- disabled?: boolean;
313
- fork?: boolean;
314
- full_name: string;
315
- id?: string;
316
- installation_id: string;
317
- name: string;
318
- owner: string;
319
- permissions?: Json | null;
320
- private?: boolean;
321
- repository_id: number;
322
- updated_at?: string;
323
- };
324
- Update: {
325
- archived?: boolean;
326
- created_at?: string;
327
- default_branch?: string;
328
- disabled?: boolean;
329
- fork?: boolean;
330
- full_name?: string;
331
- id?: string;
332
- installation_id?: string;
333
- name?: string;
334
- owner?: string;
335
- permissions?: Json | null;
336
- private?: boolean;
337
- repository_id?: number;
338
- updated_at?: string;
339
- };
340
- Relationships: [
341
- {
342
- foreignKeyName: "github_repositories_installation_id_fkey";
343
- columns: ["installation_id"];
344
- isOneToOne: false;
345
- referencedRelation: "github_installations";
346
- referencedColumns: ["id"];
347
- },
348
- ];
349
- };
350
- github_webhook_events: {
351
- Row: {
352
- action: string | null;
353
- created_at: string;
354
- delivery_id: string | null;
355
- error: string | null;
356
- event_type: string;
357
- id: string;
358
- installation_id: string | null;
359
- payload: Json;
360
- processed: boolean;
361
- processed_at: string | null;
362
- };
363
- Insert: {
364
- action?: string | null;
365
- created_at?: string;
366
- delivery_id?: string | null;
367
- error?: string | null;
368
- event_type: string;
369
- id?: string;
370
- installation_id?: string | null;
371
- payload: Json;
372
- processed?: boolean;
373
- processed_at?: string | null;
374
- };
375
- Update: {
376
- action?: string | null;
377
- created_at?: string;
378
- delivery_id?: string | null;
379
- error?: string | null;
380
- event_type?: string;
381
- id?: string;
382
- installation_id?: string | null;
383
- payload?: Json;
384
- processed?: boolean;
385
- processed_at?: string | null;
386
- };
387
- Relationships: [
388
- {
389
- foreignKeyName: "github_webhook_events_installation_id_fkey";
390
- columns: ["installation_id"];
391
- isOneToOne: false;
392
- referencedRelation: "github_installations";
393
- referencedColumns: ["id"];
394
- },
395
- ];
396
- };
397
- org_api_keys: {
398
- Row: {
399
- created_at: string;
400
- id: string;
401
- key: string;
402
- name: string;
403
- org_id: string;
404
- updated_at: string;
405
- };
406
- Insert: {
407
- created_at?: string;
408
- id?: string;
409
- key?: string;
410
- name?: string;
411
- org_id: string;
412
- updated_at?: string;
413
- };
414
- Update: {
415
- created_at?: string;
416
- id?: string;
417
- key?: string;
418
- name?: string;
419
- org_id?: string;
420
- updated_at?: string;
421
- };
422
- Relationships: [
423
- {
424
- foreignKeyName: "org_api_keys_org_id_fkey";
425
- columns: ["org_id"];
426
- isOneToOne: false;
427
- referencedRelation: "orgs";
428
- referencedColumns: ["id"];
429
- },
430
- ];
431
- };
432
- org_roles: {
433
- Row: {
434
- created_at: string;
435
- id: string;
436
- org_id: string;
437
- role: Database["public"]["Enums"]["org_role_type"];
438
- updated_at: string;
439
- user_id: string;
440
- };
441
- Insert: {
442
- created_at?: string;
443
- id?: string;
444
- org_id: string;
445
- role?: Database["public"]["Enums"]["org_role_type"];
446
- updated_at?: string;
447
- user_id: string;
448
- };
449
- Update: {
450
- created_at?: string;
451
- id?: string;
452
- org_id?: string;
453
- role?: Database["public"]["Enums"]["org_role_type"];
454
- updated_at?: string;
455
- user_id?: string;
456
- };
457
- Relationships: [
458
- {
459
- foreignKeyName: "org_roles_org_id_fkey";
460
- columns: ["org_id"];
461
- isOneToOne: false;
462
- referencedRelation: "orgs";
463
- referencedColumns: ["id"];
464
- },
465
- ];
466
- };
467
- orgs: {
468
- Row: {
469
- created_at: string;
470
- id: string;
471
- name: string;
472
- slug: string;
473
- type: Database["public"]["Enums"]["org_type"];
474
- updated_at: string;
475
- };
476
- Insert: {
477
- created_at?: string;
478
- id?: string;
479
- name: string;
480
- slug: string;
481
- type?: Database["public"]["Enums"]["org_type"];
482
- updated_at?: string;
483
- };
484
- Update: {
485
- created_at?: string;
486
- id?: string;
487
- name?: string;
488
- slug?: string;
489
- type?: Database["public"]["Enums"]["org_type"];
490
- updated_at?: string;
491
- };
492
- Relationships: [];
493
- };
494
- ota_updates: {
495
- Row: {
496
- channel: string | null;
497
- created_at: string;
498
- fingerprint: string | null;
499
- id: string;
500
- metadata: Json | null;
501
- update_id: string;
502
- updated_at: string;
503
- version_build_id: string | null;
504
- };
505
- Insert: {
506
- channel?: string | null;
507
- created_at?: string;
508
- fingerprint?: string | null;
509
- id?: string;
510
- metadata?: Json | null;
511
- update_id: string;
512
- updated_at?: string;
513
- version_build_id?: string | null;
514
- };
515
- Update: {
516
- channel?: string | null;
517
- created_at?: string;
518
- fingerprint?: string | null;
519
- id?: string;
520
- metadata?: Json | null;
521
- update_id?: string;
522
- updated_at?: string;
523
- version_build_id?: string | null;
524
- };
525
- Relationships: [
526
- {
527
- foreignKeyName: "ota_updates_version_build_id_fkey";
528
- columns: ["version_build_id"];
529
- isOneToOne: false;
530
- referencedRelation: "version_builds";
531
- referencedColumns: ["id"];
532
- },
533
- ];
534
- };
535
- personas: {
536
- Row: {
537
- created_at: string;
538
- email: string | null;
539
- environment_id: string;
540
- id: string;
541
- name: string | null;
542
- updated_at: string;
543
- user_id: string | null;
544
- };
545
- Insert: {
546
- created_at?: string;
547
- email?: string | null;
548
- environment_id: string;
549
- id?: string;
550
- name?: string | null;
551
- updated_at?: string;
552
- user_id?: string | null;
553
- };
554
- Update: {
555
- created_at?: string;
556
- email?: string | null;
557
- environment_id?: string;
558
- id?: string;
559
- name?: string | null;
560
- updated_at?: string;
561
- user_id?: string | null;
562
- };
563
- Relationships: [
564
- {
565
- foreignKeyName: "personas_environment_id_fkey";
566
- columns: ["environment_id"];
567
- isOneToOne: false;
568
- referencedRelation: "environments";
569
- referencedColumns: ["id"];
570
- },
571
- ];
572
- };
573
- project_api_keys: {
574
- Row: {
575
- created_at: string;
576
- id: string;
577
- key: string;
578
- kind: Database["public"]["Enums"]["project_api_key_kind"];
579
- name: string;
580
- project_id: string;
581
- updated_at: string;
582
- };
583
- Insert: {
584
- created_at?: string;
585
- id?: string;
586
- key?: string;
587
- kind?: Database["public"]["Enums"]["project_api_key_kind"];
588
- name?: string;
589
- project_id: string;
590
- updated_at?: string;
591
- };
592
- Update: {
593
- created_at?: string;
594
- id?: string;
595
- key?: string;
596
- kind?: Database["public"]["Enums"]["project_api_key_kind"];
597
- name?: string;
598
- project_id?: string;
599
- updated_at?: string;
600
- };
601
- Relationships: [
602
- {
603
- foreignKeyName: "project_api_keys_project_id_fkey";
604
- columns: ["project_id"];
605
- isOneToOne: false;
606
- referencedRelation: "projects";
607
- referencedColumns: ["id"];
608
- },
609
- ];
610
- };
611
- project_versions: {
612
- Row: {
613
- created_at: string;
614
- id: string;
615
- major: number;
616
- minor: number;
617
- name: string;
618
- patch: number;
619
- project_id: string;
620
- status: Database["public"]["Enums"]["version_status"];
621
- updated_at: string;
622
- };
623
- Insert: {
624
- created_at?: string;
625
- id?: string;
626
- major?: number;
627
- minor?: number;
628
- name: string;
629
- patch?: number;
630
- project_id: string;
631
- status?: Database["public"]["Enums"]["version_status"];
632
- updated_at?: string;
633
- };
634
- Update: {
635
- created_at?: string;
636
- id?: string;
637
- major?: number;
638
- minor?: number;
639
- name?: string;
640
- patch?: number;
641
- project_id?: string;
642
- status?: Database["public"]["Enums"]["version_status"];
643
- updated_at?: string;
644
- };
645
- Relationships: [
646
- {
647
- foreignKeyName: "project_versions_project_id_fkey";
648
- columns: ["project_id"];
649
- isOneToOne: false;
650
- referencedRelation: "projects";
651
- referencedColumns: ["id"];
652
- },
653
- ];
654
- };
655
- projects: {
656
- Row: {
657
- created_at: string;
658
- id: string;
659
- name: string;
660
- org_id: string;
661
- slug: string;
662
- type: Database["public"]["Enums"]["project_type"];
663
- updated_at: string;
664
- };
665
- Insert: {
666
- created_at?: string;
667
- id?: string;
668
- name: string;
669
- org_id: string;
670
- slug: string;
671
- type: Database["public"]["Enums"]["project_type"];
672
- updated_at?: string;
673
- };
674
- Update: {
675
- created_at?: string;
676
- id?: string;
677
- name?: string;
678
- org_id?: string;
679
- slug?: string;
680
- type?: Database["public"]["Enums"]["project_type"];
681
- updated_at?: string;
682
- };
683
- Relationships: [
684
- {
685
- foreignKeyName: "projects_org_fk";
686
- columns: ["org_id"];
687
- isOneToOne: false;
688
- referencedRelation: "orgs";
689
- referencedColumns: ["id"];
690
- },
691
- ];
692
- };
693
- user_api_keys: {
694
- Row: {
695
- created_at: string;
696
- id: string;
697
- key: string;
698
- name: string;
699
- updated_at: string;
700
- user_id: string;
701
- };
702
- Insert: {
703
- created_at?: string;
704
- id?: string;
705
- key?: string;
706
- name?: string;
707
- updated_at?: string;
708
- user_id: string;
709
- };
710
- Update: {
711
- created_at?: string;
712
- id?: string;
713
- key?: string;
714
- name?: string;
715
- updated_at?: string;
716
- user_id?: string;
717
- };
718
- Relationships: [];
719
- };
720
- version_builds: {
721
- Row: {
722
- build_number: number;
723
- commit_sha: string | null;
724
- created_at: string;
725
- fingerprint: string | null;
726
- id: string;
727
- name: string | null;
728
- platform: Database["public"]["Enums"]["device_platform"];
729
- summary: string | null;
730
- updated_at: string;
731
- version_id: string;
732
- };
733
- Insert: {
734
- build_number: number;
735
- commit_sha?: string | null;
736
- created_at?: string;
737
- fingerprint?: string | null;
738
- id?: string;
739
- name?: string | null;
740
- platform: Database["public"]["Enums"]["device_platform"];
741
- summary?: string | null;
742
- updated_at?: string;
743
- version_id: string;
744
- };
745
- Update: {
746
- build_number?: number;
747
- commit_sha?: string | null;
748
- created_at?: string;
749
- fingerprint?: string | null;
750
- id?: string;
751
- name?: string | null;
752
- platform?: Database["public"]["Enums"]["device_platform"];
753
- summary?: string | null;
754
- updated_at?: string;
755
- version_id?: string;
756
- };
757
- Relationships: [
758
- {
759
- foreignKeyName: "version_builds_version_id_fkey";
760
- columns: ["version_id"];
761
- isOneToOne: false;
762
- referencedRelation: "project_versions";
763
- referencedColumns: ["id"];
764
- },
765
- ];
766
- };
767
- };
768
- Views: {
769
- [_ in never]: never;
770
- };
771
- Functions: {
772
- fn_create_org_api_key: {
773
- Args: { p_name?: string; p_org_id: string };
774
- Returns: {
775
- created_at: string;
776
- id: string;
777
- key: string;
778
- name: string;
779
- org_id: string;
780
- updated_at: string;
781
- };
782
- SetofOptions: {
783
- from: "*";
784
- to: "org_api_keys";
785
- isOneToOne: true;
786
- isSetofReturn: false;
787
- };
788
- };
789
- fn_create_user_api_key: {
790
- Args: { key_name?: string; user_id: string };
791
- Returns: {
792
- created_at: string;
793
- id: string;
794
- key: string;
795
- name: string;
796
- updated_at: string;
797
- user_id: string;
798
- };
799
- SetofOptions: {
800
- from: "*";
801
- to: "user_api_keys";
802
- isOneToOne: true;
803
- isSetofReturn: false;
804
- };
805
- };
806
- };
807
- Enums: {
808
- device_platform:
809
- | "IOS"
810
- | "ANDROID"
811
- | "WEB"
812
- | "WINDOWS"
813
- | "MACOS"
814
- | "LINUX"
815
- | "PHONE"
816
- | "TABLET"
817
- | "DESKTOP"
818
- | "CONSOLE"
819
- | "TV"
820
- | "WEARABLE"
821
- | "GAME_CONSOLE"
822
- | "VR"
823
- | "UNKNOWN"
824
- | "OTHER";
825
- environment_type: "DEVELOPMENT" | "STAGING" | "PRODUCTION";
826
- org_role_type: "OWNER" | "ADMIN" | "ENGINEER";
827
- org_type: "PERSONAL" | "START_UP" | "SCALE_UP" | "AGENCY" | "ENTERPRISE";
828
- project_api_key_kind: "publishable" | "secret";
829
- project_type: "REACT_NATIVE" | "EXPO";
830
- version_status: "LIVE" | "DISABLED";
831
- };
832
- CompositeTypes: {
833
- [_ in never]: never;
834
- };
835
- };
836
- };
837
-
838
- type DatabaseWithoutInternals = Omit<Database, "__InternalSupabase">;
839
-
840
- type DefaultSchema = DatabaseWithoutInternals[Extract<keyof Database, "public">];
841
-
842
- export type Tables<
843
- DefaultSchemaTableNameOrOptions extends
844
- | keyof (DefaultSchema["Tables"] & DefaultSchema["Views"])
845
- | { schema: keyof DatabaseWithoutInternals },
846
- TableName extends DefaultSchemaTableNameOrOptions extends {
847
- schema: keyof DatabaseWithoutInternals;
848
- }
849
- ? keyof (DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions["schema"]]["Tables"] &
850
- DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions["schema"]]["Views"])
851
- : never = never,
852
- > = DefaultSchemaTableNameOrOptions extends {
853
- schema: keyof DatabaseWithoutInternals;
854
- }
855
- ? (DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions["schema"]]["Tables"] &
856
- DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions["schema"]]["Views"])[TableName] extends {
857
- Row: infer R;
858
- }
859
- ? R
860
- : never
861
- : DefaultSchemaTableNameOrOptions extends keyof (DefaultSchema["Tables"] & DefaultSchema["Views"])
862
- ? (DefaultSchema["Tables"] & DefaultSchema["Views"])[DefaultSchemaTableNameOrOptions] extends {
863
- Row: infer R;
864
- }
865
- ? R
866
- : never
867
- : never;
868
-
869
- export type TablesInsert<
870
- DefaultSchemaTableNameOrOptions extends keyof DefaultSchema["Tables"] | { schema: keyof DatabaseWithoutInternals },
871
- TableName extends DefaultSchemaTableNameOrOptions extends {
872
- schema: keyof DatabaseWithoutInternals;
873
- }
874
- ? keyof DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions["schema"]]["Tables"]
875
- : never = never,
876
- > = DefaultSchemaTableNameOrOptions extends {
877
- schema: keyof DatabaseWithoutInternals;
878
- }
879
- ? DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions["schema"]]["Tables"][TableName] extends {
880
- Insert: infer I;
881
- }
882
- ? I
883
- : never
884
- : DefaultSchemaTableNameOrOptions extends keyof DefaultSchema["Tables"]
885
- ? DefaultSchema["Tables"][DefaultSchemaTableNameOrOptions] extends {
886
- Insert: infer I;
887
- }
888
- ? I
889
- : never
890
- : never;
891
-
892
- export type TablesUpdate<
893
- DefaultSchemaTableNameOrOptions extends keyof DefaultSchema["Tables"] | { schema: keyof DatabaseWithoutInternals },
894
- TableName extends DefaultSchemaTableNameOrOptions extends {
895
- schema: keyof DatabaseWithoutInternals;
896
- }
897
- ? keyof DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions["schema"]]["Tables"]
898
- : never = never,
899
- > = DefaultSchemaTableNameOrOptions extends {
900
- schema: keyof DatabaseWithoutInternals;
901
- }
902
- ? DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions["schema"]]["Tables"][TableName] extends {
903
- Update: infer U;
904
- }
905
- ? U
906
- : never
907
- : DefaultSchemaTableNameOrOptions extends keyof DefaultSchema["Tables"]
908
- ? DefaultSchema["Tables"][DefaultSchemaTableNameOrOptions] extends {
909
- Update: infer U;
910
- }
911
- ? U
912
- : never
913
- : never;
914
-
915
- export type Enums<
916
- DefaultSchemaEnumNameOrOptions extends keyof DefaultSchema["Enums"] | { schema: keyof DatabaseWithoutInternals },
917
- EnumName extends DefaultSchemaEnumNameOrOptions extends {
918
- schema: keyof DatabaseWithoutInternals;
919
- }
920
- ? keyof DatabaseWithoutInternals[DefaultSchemaEnumNameOrOptions["schema"]]["Enums"]
921
- : never = never,
922
- > = DefaultSchemaEnumNameOrOptions extends {
923
- schema: keyof DatabaseWithoutInternals;
924
- }
925
- ? DatabaseWithoutInternals[DefaultSchemaEnumNameOrOptions["schema"]]["Enums"][EnumName]
926
- : DefaultSchemaEnumNameOrOptions extends keyof DefaultSchema["Enums"]
927
- ? DefaultSchema["Enums"][DefaultSchemaEnumNameOrOptions]
928
- : never;
929
-
930
- export type CompositeTypes<
931
- PublicCompositeTypeNameOrOptions extends
932
- | keyof DefaultSchema["CompositeTypes"]
933
- | { schema: keyof DatabaseWithoutInternals },
934
- CompositeTypeName extends PublicCompositeTypeNameOrOptions extends {
935
- schema: keyof DatabaseWithoutInternals;
936
- }
937
- ? keyof DatabaseWithoutInternals[PublicCompositeTypeNameOrOptions["schema"]]["CompositeTypes"]
938
- : never = never,
939
- > = PublicCompositeTypeNameOrOptions extends {
940
- schema: keyof DatabaseWithoutInternals;
941
- }
942
- ? DatabaseWithoutInternals[PublicCompositeTypeNameOrOptions["schema"]]["CompositeTypes"][CompositeTypeName]
943
- : PublicCompositeTypeNameOrOptions extends keyof DefaultSchema["CompositeTypes"]
944
- ? DefaultSchema["CompositeTypes"][PublicCompositeTypeNameOrOptions]
945
- : never;
946
-
947
- export const Constants = {
948
- public: {
949
- Enums: {
950
- device_platform: [
951
- "IOS",
952
- "ANDROID",
953
- "WEB",
954
- "WINDOWS",
955
- "MACOS",
956
- "LINUX",
957
- "PHONE",
958
- "TABLET",
959
- "DESKTOP",
960
- "CONSOLE",
961
- "TV",
962
- "WEARABLE",
963
- "GAME_CONSOLE",
964
- "VR",
965
- "UNKNOWN",
966
- "OTHER",
967
- ],
968
- environment_type: ["DEVELOPMENT", "STAGING", "PRODUCTION"],
969
- org_role_type: ["OWNER", "ADMIN", "ENGINEER"],
970
- org_type: ["PERSONAL", "START_UP", "SCALE_UP", "AGENCY", "ENTERPRISE"],
971
- project_api_key_kind: ["publishable", "secret"],
972
- project_type: ["REACT_NATIVE", "EXPO"],
973
- version_status: ["LIVE", "DISABLED"],
974
- },
975
- },
976
- } as const;