@periskope/types 0.5.6 → 0.5.8

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/supabase.types.ts DELETED
@@ -1,972 +0,0 @@
1
- export type Json = { [key: string]: any } | any
2
-
3
- export interface Database {
4
- graphql_public: {
5
- Tables: {
6
- [_ in never]: never
7
- }
8
- Views: {
9
- [_ in never]: never
10
- }
11
- Functions: {
12
- graphql: {
13
- Args: {
14
- operationName?: string
15
- query?: string
16
- variables?: Json
17
- extensions?: Json
18
- }
19
- Returns: Json
20
- }
21
- }
22
- Enums: {
23
- [_ in never]: never
24
- }
25
- CompositeTypes: {
26
- [_ in never]: never
27
- }
28
- }
29
- public: {
30
- Tables: {
31
- tbl_chat_messages: {
32
- Row: {
33
- ack: string | null
34
- author: string | null
35
- body: string | null
36
- broadcast: boolean | null
37
- chat_id: string | null
38
- device_type: string | null
39
- duration: string | null
40
- forwarding_score: number | null
41
- from: string | null
42
- from_me: boolean | null
43
- has_media: boolean | null
44
- has_quoted_msg: boolean | null
45
- has_reaction: boolean | null
46
- id: Json | null
47
- invite_v4: Json | null
48
- is_ephemeral: boolean | null
49
- is_forwarded: boolean | null
50
- is_gif: boolean | null
51
- is_starred: boolean | null
52
- is_status: boolean | null
53
- links: Json | null
54
- location: Json | null
55
- media_key: string | null
56
- mentioned_ids: string[] | null
57
- message_id: string
58
- order_id: string | null
59
- org_id: string
60
- org_phone: string
61
- raw_data: Json | null
62
- timestamp: string | null
63
- to: string | null
64
- token: string | null
65
- type: string | null
66
- vcards: string[] | null
67
- }
68
- Insert: {
69
- ack?: string | null
70
- author?: string | null
71
- body?: string | null
72
- broadcast?: boolean | null
73
- chat_id?: string | null
74
- device_type?: string | null
75
- duration?: string | null
76
- forwarding_score?: number | null
77
- from?: string | null
78
- from_me?: boolean | null
79
- has_media?: boolean | null
80
- has_quoted_msg?: boolean | null
81
- has_reaction?: boolean | null
82
- id?: Json | null
83
- invite_v4?: Json | null
84
- is_ephemeral?: boolean | null
85
- is_forwarded?: boolean | null
86
- is_gif?: boolean | null
87
- is_starred?: boolean | null
88
- is_status?: boolean | null
89
- links?: Json | null
90
- location?: Json | null
91
- media_key?: string | null
92
- mentioned_ids?: string[] | null
93
- message_id: string
94
- order_id?: string | null
95
- org_id: string
96
- org_phone: string
97
- raw_data?: Json | null
98
- timestamp?: string | null
99
- to?: string | null
100
- token?: string | null
101
- type?: string | null
102
- vcards?: string[] | null
103
- }
104
- Update: {
105
- ack?: string | null
106
- author?: string | null
107
- body?: string | null
108
- broadcast?: boolean | null
109
- chat_id?: string | null
110
- device_type?: string | null
111
- duration?: string | null
112
- forwarding_score?: number | null
113
- from?: string | null
114
- from_me?: boolean | null
115
- has_media?: boolean | null
116
- has_quoted_msg?: boolean | null
117
- has_reaction?: boolean | null
118
- id?: Json | null
119
- invite_v4?: Json | null
120
- is_ephemeral?: boolean | null
121
- is_forwarded?: boolean | null
122
- is_gif?: boolean | null
123
- is_starred?: boolean | null
124
- is_status?: boolean | null
125
- links?: Json | null
126
- location?: Json | null
127
- media_key?: string | null
128
- mentioned_ids?: string[] | null
129
- message_id?: string
130
- order_id?: string | null
131
- org_id?: string
132
- org_phone?: string
133
- raw_data?: Json | null
134
- timestamp?: string | null
135
- to?: string | null
136
- token?: string | null
137
- type?: string | null
138
- vcards?: string[] | null
139
- }
140
- Relationships: [
141
- {
142
- foreignKeyName: "tbl_chat_messages_fkey_tbl_org_phones"
143
- columns: ["org_id", "org_phone"]
144
- isOneToOne: false
145
- referencedRelation: "tbl_org_phones"
146
- referencedColumns: ["org_id", "org_phone"]
147
- }
148
- ]
149
- }
150
- tbl_chat_notifications: {
151
- Row: {
152
- author: string | null
153
- body: string | null
154
- chat_id: string | null
155
- group_notification_id: string
156
- id: Json | null
157
- org_id: string
158
- org_phone: string
159
- recipientids: string[] | null
160
- timestamp: string | null
161
- type: string | null
162
- }
163
- Insert: {
164
- author?: string | null
165
- body?: string | null
166
- chat_id?: string | null
167
- group_notification_id: string
168
- id?: Json | null
169
- org_id: string
170
- org_phone: string
171
- recipientids?: string[] | null
172
- timestamp?: string | null
173
- type?: string | null
174
- }
175
- Update: {
176
- author?: string | null
177
- body?: string | null
178
- chat_id?: string | null
179
- group_notification_id?: string
180
- id?: Json | null
181
- org_id?: string
182
- org_phone?: string
183
- recipientids?: string[] | null
184
- timestamp?: string | null
185
- type?: string | null
186
- }
187
- Relationships: [
188
- {
189
- foreignKeyName: "tbl_chat_notifications_fkey_tbl_org_phones"
190
- columns: ["org_id", "org_phone"]
191
- isOneToOne: false
192
- referencedRelation: "tbl_org_phones"
193
- referencedColumns: ["org_id", "org_phone"]
194
- }
195
- ]
196
- }
197
- tbl_chat_participants: {
198
- Row: {
199
- chat_id: string
200
- contact_id: string
201
- id: Json | null
202
- is_admin: boolean | null
203
- is_super_admin: boolean | null
204
- org_id: string
205
- }
206
- Insert: {
207
- chat_id: string
208
- contact_id: string
209
- id?: Json | null
210
- is_admin?: boolean | null
211
- is_super_admin?: boolean | null
212
- org_id: string
213
- }
214
- Update: {
215
- chat_id?: string
216
- contact_id?: string
217
- id?: Json | null
218
- is_admin?: boolean | null
219
- is_super_admin?: boolean | null
220
- org_id?: string
221
- }
222
- Relationships: []
223
- }
224
- tbl_chat_reactions: {
225
- Row: {
226
- ack: number | null
227
- id: Json | null
228
- message_id: string | null
229
- msg_id: Json | null
230
- org_id: string
231
- org_phone: string
232
- orphan: number | null
233
- orphan_reason: string | null
234
- reaction: string | null
235
- reaction_id: string
236
- read: boolean | null
237
- sender_id: string | null
238
- timestamp: string | null
239
- }
240
- Insert: {
241
- ack?: number | null
242
- id?: Json | null
243
- message_id?: string | null
244
- msg_id?: Json | null
245
- org_id: string
246
- org_phone: string
247
- orphan?: number | null
248
- orphan_reason?: string | null
249
- reaction?: string | null
250
- reaction_id: string
251
- read?: boolean | null
252
- sender_id?: string | null
253
- timestamp?: string | null
254
- }
255
- Update: {
256
- ack?: number | null
257
- id?: Json | null
258
- message_id?: string | null
259
- msg_id?: Json | null
260
- org_id?: string
261
- org_phone?: string
262
- orphan?: number | null
263
- orphan_reason?: string | null
264
- reaction?: string | null
265
- reaction_id?: string
266
- read?: boolean | null
267
- sender_id?: string | null
268
- timestamp?: string | null
269
- }
270
- Relationships: [
271
- {
272
- foreignKeyName: "tbl_chat_reactions_fkey_tbl_org_phones"
273
- columns: ["org_id", "org_phone"]
274
- isOneToOne: false
275
- referencedRelation: "tbl_org_phones"
276
- referencedColumns: ["org_id", "org_phone"]
277
- }
278
- ]
279
- }
280
- tbl_chats: {
281
- Row: {
282
- archived: boolean | null
283
- chat_id: string
284
- chat_image: string | null
285
- group_metadata: Json | null
286
- id: Json | null
287
- invite_link: string | null
288
- is_group: boolean | null
289
- is_muted: boolean | null
290
- is_read_only: boolean | null
291
- label_ids: string[] | null
292
- mute_expiration: number | null
293
- name: string | null
294
- org_id: string
295
- org_phone: string
296
- pinned: boolean | null
297
- timestamp: string | null
298
- unread_count: number | null
299
- }
300
- Insert: {
301
- archived?: boolean | null
302
- chat_id: string
303
- chat_image?: string | null
304
- group_metadata?: Json | null
305
- id?: Json | null
306
- invite_link?: string | null
307
- is_group?: boolean | null
308
- is_muted?: boolean | null
309
- is_read_only?: boolean | null
310
- label_ids?: string[] | null
311
- mute_expiration?: number | null
312
- name?: string | null
313
- org_id: string
314
- org_phone: string
315
- pinned?: boolean | null
316
- timestamp?: string | null
317
- unread_count?: number | null
318
- }
319
- Update: {
320
- archived?: boolean | null
321
- chat_id?: string
322
- chat_image?: string | null
323
- group_metadata?: Json | null
324
- id?: Json | null
325
- invite_link?: string | null
326
- is_group?: boolean | null
327
- is_muted?: boolean | null
328
- is_read_only?: boolean | null
329
- label_ids?: string[] | null
330
- mute_expiration?: number | null
331
- name?: string | null
332
- org_id?: string
333
- org_phone?: string
334
- pinned?: boolean | null
335
- timestamp?: string | null
336
- unread_count?: number | null
337
- }
338
- Relationships: []
339
- }
340
- tbl_contacts: {
341
- Row: {
342
- contact_color: Database["public"]["Enums"]["enum_chat_colors"] | null
343
- contact_id: string
344
- contact_image: string | null
345
- id: Json | null
346
- is_blocked: boolean | null
347
- is_business: boolean | null
348
- is_enterprise: boolean | null
349
- is_group: boolean | null
350
- is_me: boolean | null
351
- is_my_contact: boolean | null
352
- is_user: boolean | null
353
- is_wa_contact: boolean | null
354
- name: string | null
355
- number: string | null
356
- org_id: string
357
- pushname: string | null
358
- short_name: string | null
359
- type: string | null
360
- }
361
- Insert: {
362
- contact_color?: Database["public"]["Enums"]["enum_chat_colors"] | null
363
- contact_id: string
364
- contact_image?: string | null
365
- id?: Json | null
366
- is_blocked?: boolean | null
367
- is_business?: boolean | null
368
- is_enterprise?: boolean | null
369
- is_group?: boolean | null
370
- is_me?: boolean | null
371
- is_my_contact?: boolean | null
372
- is_user?: boolean | null
373
- is_wa_contact?: boolean | null
374
- name?: string | null
375
- number?: string | null
376
- org_id: string
377
- pushname?: string | null
378
- short_name?: string | null
379
- type?: string | null
380
- }
381
- Update: {
382
- contact_color?: Database["public"]["Enums"]["enum_chat_colors"] | null
383
- contact_id?: string
384
- contact_image?: string | null
385
- id?: Json | null
386
- is_blocked?: boolean | null
387
- is_business?: boolean | null
388
- is_enterprise?: boolean | null
389
- is_group?: boolean | null
390
- is_me?: boolean | null
391
- is_my_contact?: boolean | null
392
- is_user?: boolean | null
393
- is_wa_contact?: boolean | null
394
- name?: string | null
395
- number?: string | null
396
- org_id?: string
397
- pushname?: string | null
398
- short_name?: string | null
399
- type?: string | null
400
- }
401
- Relationships: [
402
- {
403
- foreignKeyName: "tbl_contacts_org_id_fkey"
404
- columns: ["org_id"]
405
- isOneToOne: false
406
- referencedRelation: "tbl_org"
407
- referencedColumns: ["org_id"]
408
- }
409
- ]
410
- }
411
- tbl_org: {
412
- Row: {
413
- created_at: string
414
- org_id: string
415
- org_image: string | null
416
- org_name: string | null
417
- support_link: string | null
418
- }
419
- Insert: {
420
- created_at?: string
421
- org_id?: string
422
- org_image?: string | null
423
- org_name?: string | null
424
- support_link?: string | null
425
- }
426
- Update: {
427
- created_at?: string
428
- org_id?: string
429
- org_image?: string | null
430
- org_name?: string | null
431
- support_link?: string | null
432
- }
433
- Relationships: []
434
- }
435
- tbl_org_labels: {
436
- Row: {
437
- color: string
438
- created_at: string
439
- label_id: string
440
- name: string
441
- org_id: string
442
- type: string
443
- }
444
- Insert: {
445
- color?: string
446
- created_at?: string
447
- label_id?: string
448
- name: string
449
- org_id: string
450
- type: string
451
- }
452
- Update: {
453
- color?: string
454
- created_at?: string
455
- label_id?: string
456
- name?: string
457
- org_id?: string
458
- type?: string
459
- }
460
- Relationships: [
461
- {
462
- foreignKeyName: "tbl_org_labels_org_id_fkey"
463
- columns: ["org_id"]
464
- isOneToOne: false
465
- referencedRelation: "tbl_org"
466
- referencedColumns: ["org_id"]
467
- }
468
- ]
469
- }
470
- tbl_org_members: {
471
- Row: {
472
- created_at: string | null
473
- email: string
474
- invited_at: string | null
475
- invited_by: string | null
476
- is_active: boolean
477
- member_image: string | null
478
- member_name: string | null
479
- org_id: string
480
- role: Database["public"]["Enums"]["enum_member_role"]
481
- user_id: string | null
482
- }
483
- Insert: {
484
- created_at?: string | null
485
- email: string
486
- invited_at?: string | null
487
- invited_by?: string | null
488
- is_active?: boolean
489
- member_image?: string | null
490
- member_name?: string | null
491
- org_id: string
492
- role?: Database["public"]["Enums"]["enum_member_role"]
493
- user_id?: string | null
494
- }
495
- Update: {
496
- created_at?: string | null
497
- email?: string
498
- invited_at?: string | null
499
- invited_by?: string | null
500
- is_active?: boolean
501
- member_image?: string | null
502
- member_name?: string | null
503
- org_id?: string
504
- role?: Database["public"]["Enums"]["enum_member_role"]
505
- user_id?: string | null
506
- }
507
- Relationships: [
508
- {
509
- foreignKeyName: "tbl_org_members_fkey_auth_users"
510
- columns: ["user_id"]
511
- isOneToOne: false
512
- referencedRelation: "users"
513
- referencedColumns: ["id"]
514
- },
515
- {
516
- foreignKeyName: "tbl_org_members_fkey_tbl_org"
517
- columns: ["org_id"]
518
- isOneToOne: false
519
- referencedRelation: "tbl_org"
520
- referencedColumns: ["org_id"]
521
- }
522
- ]
523
- }
524
- tbl_org_phones: {
525
- Row: {
526
- created_at: string
527
- is_ready: boolean
528
- org_id: string
529
- org_phone: string | null
530
- phone_id: string
531
- qr_code: string | null
532
- updated_at: string
533
- wa_state: string | null
534
- }
535
- Insert: {
536
- created_at?: string
537
- is_ready?: boolean
538
- org_id: string
539
- org_phone?: string | null
540
- phone_id?: string
541
- qr_code?: string | null
542
- updated_at?: string
543
- wa_state?: string | null
544
- }
545
- Update: {
546
- created_at?: string
547
- is_ready?: boolean
548
- org_id?: string
549
- org_phone?: string | null
550
- phone_id?: string
551
- qr_code?: string | null
552
- updated_at?: string
553
- wa_state?: string | null
554
- }
555
- Relationships: [
556
- {
557
- foreignKeyName: "tbl_org_phones_fkey_tbl_org"
558
- columns: ["org_id"]
559
- isOneToOne: false
560
- referencedRelation: "tbl_org"
561
- referencedColumns: ["org_id"]
562
- }
563
- ]
564
- }
565
- }
566
- Views: {
567
- view_chat_messages: {
568
- Row: {
569
- ack: string | null
570
- author: string | null
571
- body: string | null
572
- broadcast: boolean | null
573
- chat_id: string | null
574
- contact_color: Database["public"]["Enums"]["enum_chat_colors"] | null
575
- device_type: string | null
576
- duration: string | null
577
- forwarding_score: number | null
578
- from: string | null
579
- from_me: boolean | null
580
- has_media: boolean | null
581
- has_quoted_msg: boolean | null
582
- has_reaction: boolean | null
583
- id: Json | null
584
- invite_v4: Json | null
585
- is_ephemeral: boolean | null
586
- is_forwarded: boolean | null
587
- is_gif: boolean | null
588
- is_starred: boolean | null
589
- is_status: boolean | null
590
- links: Json | null
591
- location: Json | null
592
- media_key: string | null
593
- mentioned_ids: string[] | null
594
- message_id: string | null
595
- name: string | null
596
- order_id: string | null
597
- org_id: string | null
598
- org_phone: string | null
599
- pushname: string | null
600
- raw_data: Json | null
601
- sender_phone: string | null
602
- timestamp: string | null
603
- to: string | null
604
- token: string | null
605
- type: string | null
606
- vcards: string[] | null
607
- }
608
- Relationships: [
609
- {
610
- foreignKeyName: "tbl_chat_messages_fkey_tbl_org_phones"
611
- columns: ["org_id", "org_phone"]
612
- isOneToOne: false
613
- referencedRelation: "tbl_org_phones"
614
- referencedColumns: ["org_id", "org_phone"]
615
- }
616
- ]
617
- }
618
- view_chats: {
619
- Row: {
620
- archived: boolean | null
621
- chat_id: string | null
622
- chat_image: string | null
623
- chat_type: string | null
624
- group_metadata: Json | null
625
- id: Json | null
626
- invite_link: string | null
627
- is_group: boolean | null
628
- is_muted: boolean | null
629
- is_read_only: boolean | null
630
- label_ids: string[] | null
631
- latest_message: Json | null
632
- latest_message_timestamp: string | null
633
- member_count: number | null
634
- mute_expiration: number | null
635
- name: string | null
636
- org_id: string | null
637
- org_participants: Json | null
638
- org_phone: string | null
639
- pinned: boolean | null
640
- timestamp: string | null
641
- unread_count: number | null
642
- }
643
- Relationships: []
644
- }
645
- }
646
- Functions: {
647
- gen_id: {
648
- Args: {
649
- prefix: string
650
- size?: number
651
- alphabet?: string
652
- }
653
- Returns: string
654
- }
655
- get_chats: {
656
- Args: {
657
- chat_id_input?: string[]
658
- with_metadata?: boolean
659
- }
660
- Returns: Json
661
- }
662
- get_contacts: {
663
- Args: {
664
- filters?: Json
665
- page_num?: number
666
- contact_id_input?: string
667
- }
668
- Returns: Json
669
- }
670
- get_media: {
671
- Args: {
672
- filters?: Json
673
- page_num?: number
674
- }
675
- Returns: Json
676
- }
677
- get_org: {
678
- Args: {
679
- org_id_input?: string
680
- }
681
- Returns: Json
682
- }
683
- list_org_from_user: {
684
- Args: Record<PropertyKey, never>
685
- Returns: string
686
- }
687
- }
688
- Enums: {
689
- enum_chat_colors:
690
- | "#B4876E"
691
- | "#A5B337"
692
- | "#06CF9C"
693
- | "#25D366"
694
- | "#02A698"
695
- | "#7D9EF1"
696
- | "#007BFC"
697
- | "#5E47DE"
698
- | "#7F66FF"
699
- | "#9333EA"
700
- | "#FA6533"
701
- | "#C4532D"
702
- | "#DC2626"
703
- | "#FF2E74"
704
- | "#DB2777"
705
- enum_member_role: "admin" | "member"
706
- }
707
- CompositeTypes: {
708
- [_ in never]: never
709
- }
710
- }
711
- storage: {
712
- Tables: {
713
- buckets: {
714
- Row: {
715
- allowed_mime_types: string[] | null
716
- avif_autodetection: boolean | null
717
- created_at: string | null
718
- file_size_limit: number | null
719
- id: string
720
- name: string
721
- owner: string | null
722
- owner_id: string | null
723
- public: boolean | null
724
- updated_at: string | null
725
- }
726
- Insert: {
727
- allowed_mime_types?: string[] | null
728
- avif_autodetection?: boolean | null
729
- created_at?: string | null
730
- file_size_limit?: number | null
731
- id: string
732
- name: string
733
- owner?: string | null
734
- owner_id?: string | null
735
- public?: boolean | null
736
- updated_at?: string | null
737
- }
738
- Update: {
739
- allowed_mime_types?: string[] | null
740
- avif_autodetection?: boolean | null
741
- created_at?: string | null
742
- file_size_limit?: number | null
743
- id?: string
744
- name?: string
745
- owner?: string | null
746
- owner_id?: string | null
747
- public?: boolean | null
748
- updated_at?: string | null
749
- }
750
- Relationships: []
751
- }
752
- migrations: {
753
- Row: {
754
- executed_at: string | null
755
- hash: string
756
- id: number
757
- name: string
758
- }
759
- Insert: {
760
- executed_at?: string | null
761
- hash: string
762
- id: number
763
- name: string
764
- }
765
- Update: {
766
- executed_at?: string | null
767
- hash?: string
768
- id?: number
769
- name?: string
770
- }
771
- Relationships: []
772
- }
773
- objects: {
774
- Row: {
775
- bucket_id: string | null
776
- created_at: string | null
777
- id: string
778
- last_accessed_at: string | null
779
- metadata: Json | null
780
- name: string | null
781
- owner: string | null
782
- owner_id: string | null
783
- path_tokens: string[] | null
784
- updated_at: string | null
785
- version: string | null
786
- }
787
- Insert: {
788
- bucket_id?: string | null
789
- created_at?: string | null
790
- id?: string
791
- last_accessed_at?: string | null
792
- metadata?: Json | null
793
- name?: string | null
794
- owner?: string | null
795
- owner_id?: string | null
796
- path_tokens?: string[] | null
797
- updated_at?: string | null
798
- version?: string | null
799
- }
800
- Update: {
801
- bucket_id?: string | null
802
- created_at?: string | null
803
- id?: string
804
- last_accessed_at?: string | null
805
- metadata?: Json | null
806
- name?: string | null
807
- owner?: string | null
808
- owner_id?: string | null
809
- path_tokens?: string[] | null
810
- updated_at?: string | null
811
- version?: string | null
812
- }
813
- Relationships: [
814
- {
815
- foreignKeyName: "objects_bucketId_fkey"
816
- columns: ["bucket_id"]
817
- isOneToOne: false
818
- referencedRelation: "buckets"
819
- referencedColumns: ["id"]
820
- }
821
- ]
822
- }
823
- }
824
- Views: {
825
- [_ in never]: never
826
- }
827
- Functions: {
828
- can_insert_object: {
829
- Args: {
830
- bucketid: string
831
- name: string
832
- owner: string
833
- metadata: Json
834
- }
835
- Returns: undefined
836
- }
837
- extension: {
838
- Args: {
839
- name: string
840
- }
841
- Returns: string
842
- }
843
- filename: {
844
- Args: {
845
- name: string
846
- }
847
- Returns: string
848
- }
849
- foldername: {
850
- Args: {
851
- name: string
852
- }
853
- Returns: unknown
854
- }
855
- get_size_by_bucket: {
856
- Args: Record<PropertyKey, never>
857
- Returns: {
858
- size: number
859
- bucket_id: string
860
- }[]
861
- }
862
- search: {
863
- Args: {
864
- prefix: string
865
- bucketname: string
866
- limits?: number
867
- levels?: number
868
- offsets?: number
869
- search?: string
870
- sortcolumn?: string
871
- sortorder?: string
872
- }
873
- Returns: {
874
- name: string
875
- id: string
876
- updated_at: string
877
- created_at: string
878
- last_accessed_at: string
879
- metadata: Json
880
- }[]
881
- }
882
- }
883
- Enums: {
884
- [_ in never]: never
885
- }
886
- CompositeTypes: {
887
- [_ in never]: never
888
- }
889
- }
890
- }
891
-
892
- export type Tables<
893
- PublicTableNameOrOptions extends
894
- | keyof (Database["public"]["Tables"] & Database["public"]["Views"])
895
- | { schema: keyof Database },
896
- TableName extends PublicTableNameOrOptions extends { schema: keyof Database }
897
- ? keyof (Database[PublicTableNameOrOptions["schema"]]["Tables"] &
898
- Database[PublicTableNameOrOptions["schema"]]["Views"])
899
- : never = never
900
- > = PublicTableNameOrOptions extends { schema: keyof Database }
901
- ? (Database[PublicTableNameOrOptions["schema"]]["Tables"] &
902
- Database[PublicTableNameOrOptions["schema"]]["Views"])[TableName] extends {
903
- Row: infer R
904
- }
905
- ? R
906
- : never
907
- : PublicTableNameOrOptions extends keyof (Database["public"]["Tables"] &
908
- Database["public"]["Views"])
909
- ? (Database["public"]["Tables"] &
910
- Database["public"]["Views"])[PublicTableNameOrOptions] extends {
911
- Row: infer R
912
- }
913
- ? R
914
- : never
915
- : never
916
-
917
- export type TablesInsert<
918
- PublicTableNameOrOptions extends
919
- | keyof Database["public"]["Tables"]
920
- | { schema: keyof Database },
921
- TableName extends PublicTableNameOrOptions extends { schema: keyof Database }
922
- ? keyof Database[PublicTableNameOrOptions["schema"]]["Tables"]
923
- : never = never
924
- > = PublicTableNameOrOptions extends { schema: keyof Database }
925
- ? Database[PublicTableNameOrOptions["schema"]]["Tables"][TableName] extends {
926
- Insert: infer I
927
- }
928
- ? I
929
- : never
930
- : PublicTableNameOrOptions extends keyof Database["public"]["Tables"]
931
- ? Database["public"]["Tables"][PublicTableNameOrOptions] extends {
932
- Insert: infer I
933
- }
934
- ? I
935
- : never
936
- : never
937
-
938
- export type TablesUpdate<
939
- PublicTableNameOrOptions extends
940
- | keyof Database["public"]["Tables"]
941
- | { schema: keyof Database },
942
- TableName extends PublicTableNameOrOptions extends { schema: keyof Database }
943
- ? keyof Database[PublicTableNameOrOptions["schema"]]["Tables"]
944
- : never = never
945
- > = PublicTableNameOrOptions extends { schema: keyof Database }
946
- ? Database[PublicTableNameOrOptions["schema"]]["Tables"][TableName] extends {
947
- Update: infer U
948
- }
949
- ? U
950
- : never
951
- : PublicTableNameOrOptions extends keyof Database["public"]["Tables"]
952
- ? Database["public"]["Tables"][PublicTableNameOrOptions] extends {
953
- Update: infer U
954
- }
955
- ? U
956
- : never
957
- : never
958
-
959
- export type Enums<
960
- PublicEnumNameOrOptions extends
961
- | keyof Database["public"]["Enums"]
962
- | { schema: keyof Database },
963
- EnumName extends PublicEnumNameOrOptions extends { schema: keyof Database }
964
- ? keyof Database[PublicEnumNameOrOptions["schema"]]["Enums"]
965
- : never = never
966
- > = PublicEnumNameOrOptions extends { schema: keyof Database }
967
- ? Database[PublicEnumNameOrOptions["schema"]]["Enums"][EnumName]
968
- : PublicEnumNameOrOptions extends keyof Database["public"]["Enums"]
969
- ? Database["public"]["Enums"][PublicEnumNameOrOptions]
970
- : never
971
-
972
-