@plutocms/supabase 0.1.0 → 0.1.1
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/CHANGELOG.md +7 -0
- package/package.json +1 -1
- package/shared/types/supabase.ts +52 -11
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [0.1.1](https://github.com/plutocms/supabase/compare/v0.1.0...v0.1.1) (2026-09-03)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Bug Fixes
|
|
7
|
+
|
|
8
|
+
* regenerate Database types to include the media table ([b0e6203](https://github.com/plutocms/supabase/commit/b0e6203706eaec9eed3db3c3b235a2ef05b80605))
|
|
9
|
+
|
|
3
10
|
## [0.1.0](https://github.com/plutocms/supabase/compare/v0.0.1-alpha.17...v0.1.0) (2026-09-03)
|
|
4
11
|
|
|
5
12
|
|
package/package.json
CHANGED
package/shared/types/supabase.ts
CHANGED
|
@@ -10,7 +10,7 @@ export type Database = {
|
|
|
10
10
|
// Allows to automatically instantiate createClient with right options
|
|
11
11
|
// instead of createClient<Database, { PostgrestVersion: 'XX' }>(URL, KEY)
|
|
12
12
|
__InternalSupabase: {
|
|
13
|
-
PostgrestVersion: "14.
|
|
13
|
+
PostgrestVersion: "14.5"
|
|
14
14
|
}
|
|
15
15
|
public: {
|
|
16
16
|
Tables: {
|
|
@@ -32,6 +32,47 @@ export type Database = {
|
|
|
32
32
|
}
|
|
33
33
|
Relationships: []
|
|
34
34
|
}
|
|
35
|
+
media: {
|
|
36
|
+
Row: {
|
|
37
|
+
alt: string | null
|
|
38
|
+
created_at: string
|
|
39
|
+
id: number
|
|
40
|
+
mime_type: string | null
|
|
41
|
+
name: string | null
|
|
42
|
+
product_id: number | null
|
|
43
|
+
size: number | null
|
|
44
|
+
storage_path: string | null
|
|
45
|
+
}
|
|
46
|
+
Insert: {
|
|
47
|
+
alt?: string | null
|
|
48
|
+
created_at?: string
|
|
49
|
+
id?: number
|
|
50
|
+
mime_type?: string | null
|
|
51
|
+
name?: string | null
|
|
52
|
+
product_id?: number | null
|
|
53
|
+
size?: number | null
|
|
54
|
+
storage_path?: string | null
|
|
55
|
+
}
|
|
56
|
+
Update: {
|
|
57
|
+
alt?: string | null
|
|
58
|
+
created_at?: string
|
|
59
|
+
id?: number
|
|
60
|
+
mime_type?: string | null
|
|
61
|
+
name?: string | null
|
|
62
|
+
product_id?: number | null
|
|
63
|
+
size?: number | null
|
|
64
|
+
storage_path?: string | null
|
|
65
|
+
}
|
|
66
|
+
Relationships: [
|
|
67
|
+
{
|
|
68
|
+
foreignKeyName: "media_product_id_fkey"
|
|
69
|
+
columns: ["product_id"]
|
|
70
|
+
isOneToOne: false
|
|
71
|
+
referencedRelation: "products"
|
|
72
|
+
referencedColumns: ["id"]
|
|
73
|
+
},
|
|
74
|
+
]
|
|
75
|
+
}
|
|
35
76
|
pluto_migrations: {
|
|
36
77
|
Row: {
|
|
37
78
|
applied_at: string
|
|
@@ -260,12 +301,12 @@ export type Tables<
|
|
|
260
301
|
DefaultSchemaTableNameOrOptions extends
|
|
261
302
|
| keyof (DefaultSchema["Tables"] & DefaultSchema["Views"])
|
|
262
303
|
| { schema: keyof DatabaseWithoutInternals },
|
|
263
|
-
TableName extends DefaultSchemaTableNameOrOptions extends {
|
|
304
|
+
TableName extends (DefaultSchemaTableNameOrOptions extends {
|
|
264
305
|
schema: keyof DatabaseWithoutInternals
|
|
265
306
|
}
|
|
266
307
|
? keyof (DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions["schema"]]["Tables"] &
|
|
267
308
|
DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions["schema"]]["Views"])
|
|
268
|
-
: never = never,
|
|
309
|
+
: never) = never,
|
|
269
310
|
> = DefaultSchemaTableNameOrOptions extends {
|
|
270
311
|
schema: keyof DatabaseWithoutInternals
|
|
271
312
|
}
|
|
@@ -289,11 +330,11 @@ export type TablesInsert<
|
|
|
289
330
|
DefaultSchemaTableNameOrOptions extends
|
|
290
331
|
| keyof DefaultSchema["Tables"]
|
|
291
332
|
| { schema: keyof DatabaseWithoutInternals },
|
|
292
|
-
TableName extends DefaultSchemaTableNameOrOptions extends {
|
|
333
|
+
TableName extends (DefaultSchemaTableNameOrOptions extends {
|
|
293
334
|
schema: keyof DatabaseWithoutInternals
|
|
294
335
|
}
|
|
295
336
|
? keyof DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions["schema"]]["Tables"]
|
|
296
|
-
: never = never,
|
|
337
|
+
: never) = never,
|
|
297
338
|
> = DefaultSchemaTableNameOrOptions extends {
|
|
298
339
|
schema: keyof DatabaseWithoutInternals
|
|
299
340
|
}
|
|
@@ -314,11 +355,11 @@ export type TablesUpdate<
|
|
|
314
355
|
DefaultSchemaTableNameOrOptions extends
|
|
315
356
|
| keyof DefaultSchema["Tables"]
|
|
316
357
|
| { schema: keyof DatabaseWithoutInternals },
|
|
317
|
-
TableName extends DefaultSchemaTableNameOrOptions extends {
|
|
358
|
+
TableName extends (DefaultSchemaTableNameOrOptions extends {
|
|
318
359
|
schema: keyof DatabaseWithoutInternals
|
|
319
360
|
}
|
|
320
361
|
? keyof DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions["schema"]]["Tables"]
|
|
321
|
-
: never = never,
|
|
362
|
+
: never) = never,
|
|
322
363
|
> = DefaultSchemaTableNameOrOptions extends {
|
|
323
364
|
schema: keyof DatabaseWithoutInternals
|
|
324
365
|
}
|
|
@@ -339,11 +380,11 @@ export type Enums<
|
|
|
339
380
|
DefaultSchemaEnumNameOrOptions extends
|
|
340
381
|
| keyof DefaultSchema["Enums"]
|
|
341
382
|
| { schema: keyof DatabaseWithoutInternals },
|
|
342
|
-
EnumName extends DefaultSchemaEnumNameOrOptions extends {
|
|
383
|
+
EnumName extends (DefaultSchemaEnumNameOrOptions extends {
|
|
343
384
|
schema: keyof DatabaseWithoutInternals
|
|
344
385
|
}
|
|
345
386
|
? keyof DatabaseWithoutInternals[DefaultSchemaEnumNameOrOptions["schema"]]["Enums"]
|
|
346
|
-
: never = never,
|
|
387
|
+
: never) = never,
|
|
347
388
|
> = DefaultSchemaEnumNameOrOptions extends {
|
|
348
389
|
schema: keyof DatabaseWithoutInternals
|
|
349
390
|
}
|
|
@@ -356,11 +397,11 @@ export type CompositeTypes<
|
|
|
356
397
|
PublicCompositeTypeNameOrOptions extends
|
|
357
398
|
| keyof DefaultSchema["CompositeTypes"]
|
|
358
399
|
| { schema: keyof DatabaseWithoutInternals },
|
|
359
|
-
CompositeTypeName extends PublicCompositeTypeNameOrOptions extends {
|
|
400
|
+
CompositeTypeName extends (PublicCompositeTypeNameOrOptions extends {
|
|
360
401
|
schema: keyof DatabaseWithoutInternals
|
|
361
402
|
}
|
|
362
403
|
? keyof DatabaseWithoutInternals[PublicCompositeTypeNameOrOptions["schema"]]["CompositeTypes"]
|
|
363
|
-
: never = never,
|
|
404
|
+
: never) = never,
|
|
364
405
|
> = PublicCompositeTypeNameOrOptions extends {
|
|
365
406
|
schema: keyof DatabaseWithoutInternals
|
|
366
407
|
}
|