feat(typegen): add functions setof type introspection #1821
Triggered via pull request
September 24, 2025 18:17
Status
Failure
Total duration
3m 10s
Artifacts
–
Annotations
9 errors
Test
Process completed with exit code 1.
|
test/index.test.ts > typegen: swift w/ public access control:
test/server/typegen.ts#L5154
Error: Snapshot `typegen: swift w/ public access control 1` mismatched
- Expected
+ Received
@@ -370,6 +370,14 @@
public let Todo: TodosSelect
public enum CodingKeys: String, CodingKey {
case Todo = "todo"
}
}
+ public struct TestComposite: Codable, Hashable, Sendable {
+ public let Id: AnyJSON
+ public let Data: String
+ public enum CodingKeys: String, CodingKey {
+ case Id = "id"
+ case Data = "data"
+ }
+ }
}"
❯ test/server/typegen.ts:5154:16
|
test/index.test.ts > typegen: swift:
test/server/typegen.ts#L4769
Error: Snapshot `typegen: swift 1` mismatched
- Expected
+ Received
@@ -370,6 +370,14 @@
internal let Todo: TodosSelect
internal enum CodingKeys: String, CodingKey {
case Todo = "todo"
}
}
+ internal struct TestComposite: Codable, Hashable, Sendable {
+ internal let Id: AnyJSON
+ internal let Data: String
+ internal enum CodingKeys: String, CodingKey {
+ case Id = "id"
+ case Data = "data"
+ }
+ }
}"
❯ test/server/typegen.ts:4769:16
|
test/index.test.ts > typegen: go:
test/server/typegen.ts#L4557
Error: Snapshot `typegen: go 1` mismatched
- Expected
+ Received
@@ -201,6 +201,11 @@
MyTextArray interface{} `json:"my_text_array"`
}
type PublicCompositeTypeWithRecordAttribute struct {
Todo interface{} `json:"todo"`
+ }
+
+ type PublicTestComposite struct {
+ Id interface{} `json:"id"`
+ Data string `json:"data"`
}"
❯ test/server/typegen.ts:4557:16
|
test/index.test.ts > typegen: typescript w/ postgrestVersion:
test/server/typegen.ts#L3212
Error: Snapshot `typegen: typescript w/ postgrestVersion 1` mismatched
- Expected
+ Received
@@ -936,10 +936,14 @@
my_text_array: string[] | null
}
composite_type_with_record_attribute: {
todo: Database["public"]["Tables"]["todos"]["Row"] | null
}
+ test_composite: {
+ id: number | null
+ data: string | null
+ }
}
}
}
type DatabaseWithoutInternals = Omit<Database, "__InternalSupabase">
❯ test/server/typegen.ts:3212:16
|
test/index.test.ts > typegen: typescript w/ one-to-one relationships:
test/server/typegen.ts#L2135
Error: Snapshot `typegen: typescript w/ one-to-one relationships 1` mismatched
- Expected
+ Received
@@ -931,10 +931,14 @@
my_text_array: string[] | null
}
composite_type_with_record_attribute: {
todo: Database["public"]["Tables"]["todos"]["Row"] | null
}
+ test_composite: {
+ id: number | null
+ data: string | null
+ }
}
}
}
type DatabaseWithoutInternals = Omit<Database, "__InternalSupabase">
❯ test/server/typegen.ts:2135:16
|
test/index.test.ts > typegen w/ one-to-one relationships:
test/server/typegen.ts#L1058
Error: Snapshot `typegen w/ one-to-one relationships 1` mismatched
- Expected
+ Received
@@ -931,10 +931,14 @@
my_text_array: string[] | null
}
composite_type_with_record_attribute: {
todo: Database["public"]["Tables"]["todos"]["Row"] | null
}
+ test_composite: {
+ id: number | null
+ data: string | null
+ }
}
}
}
type DatabaseWithoutInternals = Omit<Database, "__InternalSupabase">
❯ test/server/typegen.ts:1058:16
|
test/index.test.ts > typegen: typescript:
test/server/typegen.ts#L6
Error: Snapshot `typegen: typescript 1` mismatched
- Expected
+ Received
@@ -906,10 +906,14 @@
my_text_array: string[] | null
}
composite_type_with_record_attribute: {
todo: Database["public"]["Tables"]["todos"]["Row"] | null
}
+ test_composite: {
+ id: number | null
+ data: string | null
+ }
}
}
}
type DatabaseWithoutInternals = Omit<Database, "__InternalSupabase">
❯ test/server/typegen.ts:6:16
|
test/index.test.ts > composite type attributes:
test/lib/types.ts#L97
Error: Snapshot `composite type attributes 1` mismatched
- Expected
+ Received
@@ -13,7 +13,7 @@
"enums": [],
"format": "test_composite",
"id": Any<Number>,
"name": "test_composite",
"schema": "public",
- "type_relation_id": 16966,
+ "type_relation_id": 16964,
}
❯ test/lib/types.ts:97:67
|