Skip to content

feat(typegen): add functions setof type introspection #1826

feat(typegen): add functions setof type introspection

feat(typegen): add functions setof type introspection #1826

Triggered via pull request September 27, 2025 09:57
Status Failure
Total duration 2m 37s
Artifacts

ci.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

9 errors
Test
Process completed with exit code 1.
test/index.test.ts > typegen: swift w/ public access control: test/server/typegen.ts#L5058
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:5058:16
test/index.test.ts > typegen: swift: test/server/typegen.ts#L4673
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:4673:16
test/index.test.ts > typegen: go: test/server/typegen.ts#L4461
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:4461:16
test/index.test.ts > typegen: typescript w/ postgrestVersion: test/server/typegen.ts#L3140
Error: Snapshot `typegen: typescript w/ postgrestVersion 1` mismatched - Expected + Received @@ -912,10 +912,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:3140:16
test/index.test.ts > typegen: typescript w/ one-to-one relationships: test/server/typegen.ts#L2087
Error: Snapshot `typegen: typescript w/ one-to-one relationships 1` mismatched - Expected + Received @@ -907,10 +907,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:2087:16
test/index.test.ts > typegen w/ one-to-one relationships: test/server/typegen.ts#L1034
Error: Snapshot `typegen w/ one-to-one relationships 1` mismatched - Expected + Received @@ -907,10 +907,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:1034:16
test/index.test.ts > typegen: typescript: test/server/typegen.ts#L6
Error: Snapshot `typegen: typescript 1` mismatched - Expected + Received @@ -882,10 +882,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": 16964, + "type_relation_id": 16966, } ❯ test/lib/types.ts:97:67