|
1 |
| -export type Json = string | number | boolean | null | { [key: string]: Json } | Json[] |
| 1 | +export type Json = |
| 2 | + | string |
| 3 | + | number |
| 4 | + | boolean |
| 5 | + | null |
| 6 | + | { [key: string]: Json | undefined } |
| 7 | + | Json[] |
2 | 8 |
|
3 |
| -export interface Database { |
| 9 | +export type Database = { |
| 10 | + graphql_public: { |
| 11 | + Tables: { |
| 12 | + [_ in never]: never |
| 13 | + } |
| 14 | + Views: { |
| 15 | + [_ in never]: never |
| 16 | + } |
| 17 | + Functions: { |
| 18 | + graphql: { |
| 19 | + Args: { |
| 20 | + operationName?: string |
| 21 | + query?: string |
| 22 | + variables?: Json |
| 23 | + extensions?: Json |
| 24 | + } |
| 25 | + Returns: Json |
| 26 | + } |
| 27 | + } |
| 28 | + Enums: { |
| 29 | + [_ in never]: never |
| 30 | + } |
| 31 | + CompositeTypes: { |
| 32 | + [_ in never]: never |
| 33 | + } |
| 34 | + } |
4 | 35 | public: {
|
5 | 36 | Tables: {
|
6 | 37 | patches: {
|
7 | 38 | Row: {
|
8 | 39 | id: string
|
9 | 40 | links: string[]
|
10 |
| - releasedAt: string | null |
11 | 41 | number: number
|
| 42 | + releasedAt: string | null |
12 | 43 | }
|
13 | 44 | Insert: {
|
14 | 45 | id: string
|
15 | 46 | links: string[]
|
16 |
| - releasedAt?: string | null |
17 | 47 | number: number
|
| 48 | + releasedAt?: string | null |
18 | 49 | }
|
19 | 50 | Update: {
|
20 | 51 | id?: string
|
21 | 52 | links?: string[]
|
22 |
| - releasedAt?: string | null |
23 | 53 | number?: number
|
| 54 | + releasedAt?: string | null |
24 | 55 | }
|
| 56 | + Relationships: [] |
25 | 57 | }
|
26 | 58 | subscriptions: {
|
27 | 59 | Row: {
|
28 |
| - endpoint: string |
29 | 60 | auth: string
|
30 |
| - extra: string | null |
| 61 | + createdAt: string |
| 62 | + endpoint: string |
31 | 63 | environment: string
|
| 64 | + extra: string | null |
32 | 65 | lastNotified: number
|
33 |
| - createdAt: string |
34 | 66 | type: string
|
35 | 67 | }
|
36 | 68 | Insert: {
|
37 |
| - endpoint: string |
38 | 69 | auth: string
|
39 |
| - extra?: string | null |
| 70 | + createdAt?: string |
| 71 | + endpoint: string |
40 | 72 | environment: string
|
| 73 | + extra?: string | null |
41 | 74 | lastNotified: number
|
42 |
| - createdAt?: string |
43 | 75 | type?: string
|
44 | 76 | }
|
45 | 77 | Update: {
|
46 |
| - endpoint?: string |
47 | 78 | auth?: string
|
48 |
| - extra?: string | null |
| 79 | + createdAt?: string |
| 80 | + endpoint?: string |
49 | 81 | environment?: string
|
| 82 | + extra?: string | null |
50 | 83 | lastNotified?: number
|
51 |
| - createdAt?: string |
52 | 84 | type?: string
|
53 | 85 | }
|
| 86 | + Relationships: [] |
| 87 | + } |
| 88 | + } |
| 89 | + Views: { |
| 90 | + [_ in never]: never |
| 91 | + } |
| 92 | + Functions: { |
| 93 | + [_ in never]: never |
| 94 | + } |
| 95 | + Enums: { |
| 96 | + [_ in never]: never |
| 97 | + } |
| 98 | + CompositeTypes: { |
| 99 | + [_ in never]: never |
| 100 | + } |
| 101 | + } |
| 102 | + storage: { |
| 103 | + Tables: { |
| 104 | + buckets: { |
| 105 | + Row: { |
| 106 | + created_at: string | null |
| 107 | + id: string |
| 108 | + name: string |
| 109 | + owner: string | null |
| 110 | + updated_at: string | null |
| 111 | + } |
| 112 | + Insert: { |
| 113 | + created_at?: string | null |
| 114 | + id: string |
| 115 | + name: string |
| 116 | + owner?: string | null |
| 117 | + updated_at?: string | null |
| 118 | + } |
| 119 | + Update: { |
| 120 | + created_at?: string | null |
| 121 | + id?: string |
| 122 | + name?: string |
| 123 | + owner?: string | null |
| 124 | + updated_at?: string | null |
| 125 | + } |
| 126 | + Relationships: [] |
| 127 | + } |
| 128 | + migrations: { |
| 129 | + Row: { |
| 130 | + executed_at: string | null |
| 131 | + hash: string |
| 132 | + id: number |
| 133 | + name: string |
| 134 | + } |
| 135 | + Insert: { |
| 136 | + executed_at?: string | null |
| 137 | + hash: string |
| 138 | + id: number |
| 139 | + name: string |
| 140 | + } |
| 141 | + Update: { |
| 142 | + executed_at?: string | null |
| 143 | + hash?: string |
| 144 | + id?: number |
| 145 | + name?: string |
| 146 | + } |
| 147 | + Relationships: [] |
| 148 | + } |
| 149 | + objects: { |
| 150 | + Row: { |
| 151 | + bucket_id: string | null |
| 152 | + created_at: string | null |
| 153 | + id: string |
| 154 | + last_accessed_at: string | null |
| 155 | + metadata: Json | null |
| 156 | + name: string | null |
| 157 | + owner: string | null |
| 158 | + updated_at: string | null |
| 159 | + } |
| 160 | + Insert: { |
| 161 | + bucket_id?: string | null |
| 162 | + created_at?: string | null |
| 163 | + id?: string |
| 164 | + last_accessed_at?: string | null |
| 165 | + metadata?: Json | null |
| 166 | + name?: string | null |
| 167 | + owner?: string | null |
| 168 | + updated_at?: string | null |
| 169 | + } |
| 170 | + Update: { |
| 171 | + bucket_id?: string | null |
| 172 | + created_at?: string | null |
| 173 | + id?: string |
| 174 | + last_accessed_at?: string | null |
| 175 | + metadata?: Json | null |
| 176 | + name?: string | null |
| 177 | + owner?: string | null |
| 178 | + updated_at?: string | null |
| 179 | + } |
| 180 | + Relationships: [ |
| 181 | + { |
| 182 | + foreignKeyName: "objects_bucketId_fkey" |
| 183 | + columns: ["bucket_id"] |
| 184 | + isOneToOne: false |
| 185 | + referencedRelation: "buckets" |
| 186 | + referencedColumns: ["id"] |
| 187 | + }, |
| 188 | + ] |
54 | 189 | }
|
55 | 190 | }
|
56 | 191 | Views: {
|
57 | 192 | [_ in never]: never
|
58 | 193 | }
|
59 | 194 | Functions: {
|
| 195 | + extension: { |
| 196 | + Args: { |
| 197 | + name: string |
| 198 | + } |
| 199 | + Returns: string |
| 200 | + } |
| 201 | + filename: { |
| 202 | + Args: { |
| 203 | + name: string |
| 204 | + } |
| 205 | + Returns: string |
| 206 | + } |
| 207 | + foldername: { |
| 208 | + Args: { |
| 209 | + name: string |
| 210 | + } |
| 211 | + Returns: string[] |
| 212 | + } |
| 213 | + search: { |
| 214 | + Args: { |
| 215 | + prefix: string |
| 216 | + bucketname: string |
| 217 | + limits?: number |
| 218 | + levels?: number |
| 219 | + offsets?: number |
| 220 | + } |
| 221 | + Returns: { |
| 222 | + name: string |
| 223 | + id: string |
| 224 | + updated_at: string |
| 225 | + created_at: string |
| 226 | + last_accessed_at: string |
| 227 | + metadata: Json |
| 228 | + }[] |
| 229 | + } |
| 230 | + } |
| 231 | + Enums: { |
| 232 | + [_ in never]: never |
| 233 | + } |
| 234 | + CompositeTypes: { |
60 | 235 | [_ in never]: never
|
61 | 236 | }
|
62 | 237 | }
|
63 | 238 | }
|
| 239 | + |
| 240 | +type PublicSchema = Database[Extract<keyof Database, "public">] |
| 241 | + |
| 242 | +export type Tables< |
| 243 | + PublicTableNameOrOptions extends |
| 244 | + | keyof (PublicSchema["Tables"] & PublicSchema["Views"]) |
| 245 | + | { schema: keyof Database }, |
| 246 | + TableName extends PublicTableNameOrOptions extends { schema: keyof Database } |
| 247 | + ? keyof (Database[PublicTableNameOrOptions["schema"]]["Tables"] & |
| 248 | + Database[PublicTableNameOrOptions["schema"]]["Views"]) |
| 249 | + : never = never, |
| 250 | +> = PublicTableNameOrOptions extends { schema: keyof Database } |
| 251 | + ? (Database[PublicTableNameOrOptions["schema"]]["Tables"] & |
| 252 | + Database[PublicTableNameOrOptions["schema"]]["Views"])[TableName] extends { |
| 253 | + Row: infer R |
| 254 | + } |
| 255 | + ? R |
| 256 | + : never |
| 257 | + : PublicTableNameOrOptions extends keyof (PublicSchema["Tables"] & |
| 258 | + PublicSchema["Views"]) |
| 259 | + ? (PublicSchema["Tables"] & PublicSchema["Views"])[PublicTableNameOrOptions] extends { |
| 260 | + Row: infer R |
| 261 | + } |
| 262 | + ? R |
| 263 | + : never |
| 264 | + : never |
| 265 | + |
| 266 | +export type TablesInsert< |
| 267 | + PublicTableNameOrOptions extends |
| 268 | + | keyof PublicSchema["Tables"] |
| 269 | + | { schema: keyof Database }, |
| 270 | + TableName extends PublicTableNameOrOptions extends { schema: keyof Database } |
| 271 | + ? keyof Database[PublicTableNameOrOptions["schema"]]["Tables"] |
| 272 | + : never = never, |
| 273 | +> = PublicTableNameOrOptions extends { schema: keyof Database } |
| 274 | + ? Database[PublicTableNameOrOptions["schema"]]["Tables"][TableName] extends { |
| 275 | + Insert: infer I |
| 276 | + } |
| 277 | + ? I |
| 278 | + : never |
| 279 | + : PublicTableNameOrOptions extends keyof PublicSchema["Tables"] |
| 280 | + ? PublicSchema["Tables"][PublicTableNameOrOptions] extends { |
| 281 | + Insert: infer I |
| 282 | + } |
| 283 | + ? I |
| 284 | + : never |
| 285 | + : never |
| 286 | + |
| 287 | +export type TablesUpdate< |
| 288 | + PublicTableNameOrOptions extends |
| 289 | + | keyof PublicSchema["Tables"] |
| 290 | + | { schema: keyof Database }, |
| 291 | + TableName extends PublicTableNameOrOptions extends { schema: keyof Database } |
| 292 | + ? keyof Database[PublicTableNameOrOptions["schema"]]["Tables"] |
| 293 | + : never = never, |
| 294 | +> = PublicTableNameOrOptions extends { schema: keyof Database } |
| 295 | + ? Database[PublicTableNameOrOptions["schema"]]["Tables"][TableName] extends { |
| 296 | + Update: infer U |
| 297 | + } |
| 298 | + ? U |
| 299 | + : never |
| 300 | + : PublicTableNameOrOptions extends keyof PublicSchema["Tables"] |
| 301 | + ? PublicSchema["Tables"][PublicTableNameOrOptions] extends { |
| 302 | + Update: infer U |
| 303 | + } |
| 304 | + ? U |
| 305 | + : never |
| 306 | + : never |
| 307 | + |
| 308 | +export type Enums< |
| 309 | + PublicEnumNameOrOptions extends |
| 310 | + | keyof PublicSchema["Enums"] |
| 311 | + | { schema: keyof Database }, |
| 312 | + EnumName extends PublicEnumNameOrOptions extends { schema: keyof Database } |
| 313 | + ? keyof Database[PublicEnumNameOrOptions["schema"]]["Enums"] |
| 314 | + : never = never, |
| 315 | +> = PublicEnumNameOrOptions extends { schema: keyof Database } |
| 316 | + ? Database[PublicEnumNameOrOptions["schema"]]["Enums"][EnumName] |
| 317 | + : PublicEnumNameOrOptions extends keyof PublicSchema["Enums"] |
| 318 | + ? PublicSchema["Enums"][PublicEnumNameOrOptions] |
| 319 | + : never |
| 320 | + |
| 321 | +export type CompositeTypes< |
| 322 | + PublicCompositeTypeNameOrOptions extends |
| 323 | + | keyof PublicSchema["CompositeTypes"] |
| 324 | + | { schema: keyof Database }, |
| 325 | + CompositeTypeName extends PublicCompositeTypeNameOrOptions extends { |
| 326 | + schema: keyof Database |
| 327 | + } |
| 328 | + ? keyof Database[PublicCompositeTypeNameOrOptions["schema"]]["CompositeTypes"] |
| 329 | + : never = never, |
| 330 | +> = PublicCompositeTypeNameOrOptions extends { schema: keyof Database } |
| 331 | + ? Database[PublicCompositeTypeNameOrOptions["schema"]]["CompositeTypes"][CompositeTypeName] |
| 332 | + : PublicCompositeTypeNameOrOptions extends keyof PublicSchema["CompositeTypes"] |
| 333 | + ? PublicSchema["CompositeTypes"][PublicCompositeTypeNameOrOptions] |
| 334 | + : never |
0 commit comments