Files
supabase/apps/docs/spec/enrichments/tsdoc_v2/postgrest.json
T

20577 lines
661 KiB
JSON

{
"id": 0,
"name": "@supabase/postgrest-js",
"kind": 1,
"kindString": "Project",
"flags": {},
"originalName": "",
"children": [
{
"id": 687,
"name": "PostgrestBuilder",
"kind": 128,
"kindString": "Class",
"flags": {
"isAbstract": true
},
"children": [
{
"id": 688,
"name": "constructor",
"kind": 512,
"kindString": "Constructor",
"flags": {},
"sources": [
{
"fileName": "src/PostgrestBuilder.ts",
"line": 35,
"character": 2
}
],
"signatures": [
{
"id": 689,
"name": "new PostgrestBuilder",
"kind": 16384,
"kindString": "Constructor signature",
"flags": {},
"typeParameter": [
{
"id": 690,
"name": "ClientOptions",
"kind": 131072,
"kindString": "Type parameter",
"flags": {},
"type": {
"type": "reference",
"id": 784,
"name": "ClientServerOptions"
}
},
{
"id": 691,
"name": "Result",
"kind": 131072,
"kindString": "Type parameter",
"flags": {}
},
{
"id": 692,
"name": "ThrowOnError",
"kind": 131072,
"kindString": "Type parameter",
"flags": {},
"type": {
"type": "intrinsic",
"name": "boolean"
},
"default": {
"type": "literal",
"value": false
}
}
],
"parameters": [
{
"id": 693,
"name": "builder",
"kind": 32768,
"kindString": "Parameter",
"flags": {},
"type": {
"type": "reflection",
"declaration": {
"id": 694,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
"flags": {},
"children": [
{
"id": 699,
"name": "body",
"kind": 1024,
"kindString": "Property",
"flags": {
"isOptional": true
},
"sources": [
{
"fileName": "src/PostgrestBuilder.ts",
"line": 40,
"character": 4
}
],
"type": {
"type": "intrinsic",
"name": "unknown"
}
},
{
"id": 702,
"name": "fetch",
"kind": 1024,
"kindString": "Property",
"flags": {
"isOptional": true
},
"sources": [
{
"fileName": "src/PostgrestBuilder.ts",
"line": 43,
"character": 4
}
],
"type": {
"type": "reflection",
"declaration": {
"id": 703,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
"flags": {},
"signatures": [
{
"id": 704,
"name": "__type",
"kind": 4096,
"kindString": "Call signature",
"flags": {},
"parameters": [
{
"id": 705,
"name": "input",
"kind": 32768,
"kindString": "Parameter",
"flags": {},
"type": {
"type": "union",
"types": [
{
"type": "reference",
"qualifiedName": "RequestInfo",
"package": "typescript",
"name": "RequestInfo"
},
{
"type": "reference",
"qualifiedName": "URL",
"package": "typescript",
"name": "URL"
}
]
}
},
{
"id": 706,
"name": "init",
"kind": 32768,
"kindString": "Parameter",
"flags": {
"isOptional": true
},
"type": {
"type": "reference",
"qualifiedName": "RequestInit",
"package": "typescript",
"name": "RequestInit"
}
}
],
"type": {
"type": "reference",
"typeArguments": [
{
"type": "reference",
"qualifiedName": "Response",
"package": "typescript",
"name": "Response"
}
],
"qualifiedName": "Promise",
"package": "typescript",
"name": "Promise"
}
}
]
}
}
},
{
"id": 697,
"name": "headers",
"kind": 1024,
"kindString": "Property",
"flags": {},
"sources": [
{
"fileName": "src/PostgrestBuilder.ts",
"line": 38,
"character": 4
}
],
"type": {
"type": "reference",
"qualifiedName": "HeadersInit",
"package": "typescript",
"name": "HeadersInit"
}
},
{
"id": 707,
"name": "isMaybeSingle",
"kind": 1024,
"kindString": "Property",
"flags": {
"isOptional": true
},
"sources": [
{
"fileName": "src/PostgrestBuilder.ts",
"line": 44,
"character": 4
}
],
"type": {
"type": "intrinsic",
"name": "boolean"
}
},
{
"id": 695,
"name": "method",
"kind": 1024,
"kindString": "Property",
"flags": {},
"sources": [
{
"fileName": "src/PostgrestBuilder.ts",
"line": 36,
"character": 4
}
],
"type": {
"type": "union",
"types": [
{
"type": "literal",
"value": "GET"
},
{
"type": "literal",
"value": "HEAD"
},
{
"type": "literal",
"value": "POST"
},
{
"type": "literal",
"value": "PATCH"
},
{
"type": "literal",
"value": "DELETE"
}
]
}
},
{
"id": 698,
"name": "schema",
"kind": 1024,
"kindString": "Property",
"flags": {
"isOptional": true
},
"sources": [
{
"fileName": "src/PostgrestBuilder.ts",
"line": 39,
"character": 4
}
],
"type": {
"type": "intrinsic",
"name": "string"
}
},
{
"id": 700,
"name": "shouldThrowOnError",
"kind": 1024,
"kindString": "Property",
"flags": {
"isOptional": true
},
"sources": [
{
"fileName": "src/PostgrestBuilder.ts",
"line": 41,
"character": 4
}
],
"type": {
"type": "intrinsic",
"name": "boolean"
}
},
{
"id": 701,
"name": "signal",
"kind": 1024,
"kindString": "Property",
"flags": {
"isOptional": true
},
"sources": [
{
"fileName": "src/PostgrestBuilder.ts",
"line": 42,
"character": 4
}
],
"type": {
"type": "reference",
"qualifiedName": "AbortSignal",
"package": "typescript",
"name": "AbortSignal"
}
},
{
"id": 696,
"name": "url",
"kind": 1024,
"kindString": "Property",
"flags": {},
"sources": [
{
"fileName": "src/PostgrestBuilder.ts",
"line": 37,
"character": 4
}
],
"type": {
"type": "reference",
"qualifiedName": "URL",
"package": "typescript",
"name": "URL"
}
}
],
"groups": [
{
"title": "Properties",
"kind": 1024,
"children": [699, 702, 697, 707, 695, 698, 700, 701, 696]
}
]
}
}
}
],
"type": {
"type": "reference",
"id": 687,
"typeArguments": [
{
"type": "reference",
"id": 690,
"name": "ClientOptions"
},
{
"type": "reference",
"id": 691,
"name": "Result"
},
{
"type": "reference",
"id": 692,
"name": "ThrowOnError"
}
],
"name": "default"
}
}
]
},
{
"id": 712,
"name": "body",
"kind": 1024,
"kindString": "Property",
"flags": {
"isProtected": true,
"isOptional": true
},
"sources": [
{
"fileName": "src/PostgrestBuilder.ts",
"line": 29,
"character": 12
}
],
"type": {
"type": "intrinsic",
"name": "unknown"
}
},
{
"id": 715,
"name": "fetch",
"kind": 1024,
"kindString": "Property",
"flags": {
"isProtected": true
},
"sources": [
{
"fileName": "src/PostgrestBuilder.ts",
"line": 32,
"character": 12
}
],
"type": {
"type": "reflection",
"declaration": {
"id": 716,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
"flags": {},
"signatures": [
{
"id": 717,
"name": "__type",
"kind": 4096,
"kindString": "Call signature",
"flags": {},
"parameters": [
{
"id": 718,
"name": "input",
"kind": 32768,
"kindString": "Parameter",
"flags": {},
"type": {
"type": "union",
"types": [
{
"type": "reference",
"qualifiedName": "RequestInfo",
"package": "typescript",
"name": "RequestInfo"
},
{
"type": "reference",
"qualifiedName": "URL",
"package": "typescript",
"name": "URL"
}
]
}
},
{
"id": 719,
"name": "init",
"kind": 32768,
"kindString": "Parameter",
"flags": {
"isOptional": true
},
"type": {
"type": "reference",
"qualifiedName": "RequestInit",
"package": "typescript",
"name": "RequestInit"
}
}
],
"type": {
"type": "reference",
"typeArguments": [
{
"type": "reference",
"qualifiedName": "Response",
"package": "typescript",
"name": "Response"
}
],
"qualifiedName": "Promise",
"package": "typescript",
"name": "Promise"
}
}
]
}
}
},
{
"id": 710,
"name": "headers",
"kind": 1024,
"kindString": "Property",
"flags": {
"isProtected": true
},
"sources": [
{
"fileName": "src/PostgrestBuilder.ts",
"line": 27,
"character": 12
}
],
"type": {
"type": "reference",
"qualifiedName": "Headers",
"package": "typescript",
"name": "Headers"
}
},
{
"id": 720,
"name": "isMaybeSingle",
"kind": 1024,
"kindString": "Property",
"flags": {
"isProtected": true
},
"sources": [
{
"fileName": "src/PostgrestBuilder.ts",
"line": 33,
"character": 12
}
],
"type": {
"type": "intrinsic",
"name": "boolean"
}
},
{
"id": 708,
"name": "method",
"kind": 1024,
"kindString": "Property",
"flags": {
"isProtected": true
},
"sources": [
{
"fileName": "src/PostgrestBuilder.ts",
"line": 25,
"character": 12
}
],
"type": {
"type": "union",
"types": [
{
"type": "literal",
"value": "GET"
},
{
"type": "literal",
"value": "HEAD"
},
{
"type": "literal",
"value": "POST"
},
{
"type": "literal",
"value": "PATCH"
},
{
"type": "literal",
"value": "DELETE"
}
]
}
},
{
"id": 711,
"name": "schema",
"kind": 1024,
"kindString": "Property",
"flags": {
"isProtected": true,
"isOptional": true
},
"sources": [
{
"fileName": "src/PostgrestBuilder.ts",
"line": 28,
"character": 12
}
],
"type": {
"type": "intrinsic",
"name": "string"
}
},
{
"id": 713,
"name": "shouldThrowOnError",
"kind": 1024,
"kindString": "Property",
"flags": {
"isProtected": true
},
"sources": [
{
"fileName": "src/PostgrestBuilder.ts",
"line": 30,
"character": 12
}
],
"type": {
"type": "intrinsic",
"name": "boolean"
},
"defaultValue": "false"
},
{
"id": 714,
"name": "signal",
"kind": 1024,
"kindString": "Property",
"flags": {
"isProtected": true,
"isOptional": true
},
"sources": [
{
"fileName": "src/PostgrestBuilder.ts",
"line": 31,
"character": 12
}
],
"type": {
"type": "reference",
"qualifiedName": "AbortSignal",
"package": "typescript",
"name": "AbortSignal"
}
},
{
"id": 709,
"name": "url",
"kind": 1024,
"kindString": "Property",
"flags": {
"isProtected": true
},
"sources": [
{
"fileName": "src/PostgrestBuilder.ts",
"line": 26,
"character": 12
}
],
"type": {
"type": "reference",
"qualifiedName": "URL",
"package": "typescript",
"name": "URL"
}
},
{
"id": 742,
"name": "overrideTypes",
"kind": 2048,
"kindString": "Method",
"flags": {},
"sources": [
{
"fileName": "src/PostgrestBuilder.ts",
"line": 276,
"character": 2
}
],
"signatures": [
{
"id": 743,
"name": "overrideTypes",
"kind": 4096,
"kindString": "Call signature",
"flags": {},
"comment": {
"shortText": "Override the type of the returned `data` field in the response.",
"returns": "A PostgrestBuilder instance with the new type\n",
"tags": [
{
"tag": "example",
"text": "\n```typescript\n// Merge with existing types (default behavior)\nconst query = supabase\n .from('users')\n .select()\n .overrideTypes<{ custom_field: string }>()\n\n// Replace existing types completely\nconst replaceQuery = supabase\n .from('users')\n .select()\n .overrideTypes<{ id: number; name: string }, { merge: false }>()\n```"
}
]
},
"typeParameter": [
{
"id": 744,
"name": "NewResult",
"kind": 131072,
"kindString": "Type parameter",
"flags": {},
"comment": {
"shortText": "The new type to cast the response data to"
}
},
{
"id": 749,
"name": "Options",
"kind": 131072,
"kindString": "Type parameter",
"flags": {},
"comment": {
"shortText": "Optional type configuration (defaults to { merge: true })"
},
"type": {
"type": "reflection",
"declaration": {
"id": 745,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
"flags": {},
"children": [
{
"id": 746,
"name": "merge",
"kind": 1024,
"kindString": "Property",
"flags": {
"isOptional": true
},
"sources": [
{
"fileName": "src/PostgrestBuilder.ts",
"line": 278,
"character": 22
}
],
"type": {
"type": "intrinsic",
"name": "boolean"
}
}
],
"groups": [
{
"title": "Properties",
"kind": 1024,
"children": [746]
}
]
}
},
"default": {
"type": "reflection",
"declaration": {
"id": 747,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
"flags": {},
"children": [
{
"id": 748,
"name": "merge",
"kind": 1024,
"kindString": "Property",
"flags": {},
"sources": [
{
"fileName": "src/PostgrestBuilder.ts",
"line": 278,
"character": 44
}
],
"type": {
"type": "literal",
"value": true
}
}
],
"groups": [
{
"title": "Properties",
"kind": 1024,
"children": [748]
}
]
}
}
}
],
"type": {
"type": "reference",
"id": 687,
"typeArguments": [
{
"type": "reference",
"id": 690,
"name": "ClientOptions"
},
{
"type": "conditional",
"checkType": {
"type": "reference",
"typeArguments": [
{
"type": "reference",
"id": 691,
"name": "Result"
},
{
"type": "reference",
"id": 521,
"name": "NewResult"
},
{
"type": "literal",
"value": false
},
{
"type": "literal",
"value": false
}
],
"name": "IsValidResultOverride"
},
"extendsType": {
"type": "literal",
"value": true
},
"trueType": {
"type": "conditional",
"checkType": {
"type": "reference",
"typeArguments": [
{
"type": "reference",
"id": 691,
"name": "Result"
}
],
"name": "ContainsNull"
},
"extendsType": {
"type": "literal",
"value": true
},
"trueType": {
"type": "union",
"types": [
{
"type": "literal",
"value": null
},
{
"type": "reference",
"typeArguments": [
{
"type": "reference",
"id": 521,
"name": "NewResult"
},
{
"type": "reference",
"typeArguments": [
{
"type": "reference",
"id": 691,
"name": "Result"
}
],
"qualifiedName": "NonNullable",
"package": "typescript",
"name": "NonNullable"
},
{
"type": "reference",
"id": 526,
"name": "Options"
}
],
"name": "MergePartialResult"
}
]
},
"falseType": {
"type": "reference",
"typeArguments": [
{
"type": "reference",
"id": 521,
"name": "NewResult"
},
{
"type": "reference",
"id": 691,
"name": "Result"
},
{
"type": "reference",
"id": 526,
"name": "Options"
}
],
"name": "MergePartialResult"
}
},
"falseType": {
"type": "reference",
"typeArguments": [
{
"type": "reference",
"id": 691,
"name": "Result"
},
{
"type": "reference",
"id": 521,
"name": "NewResult"
}
],
"name": "CheckMatchingArrayTypes"
}
},
{
"type": "reference",
"id": 692,
"name": "ThrowOnError"
}
],
"name": "default"
}
}
]
},
{
"id": 739,
"name": "returns",
"kind": 2048,
"kindString": "Method",
"flags": {},
"sources": [
{
"fileName": "src/PostgrestBuilder.ts",
"line": 241,
"character": 2
}
],
"signatures": [
{
"id": 740,
"name": "returns",
"kind": 4096,
"kindString": "Call signature",
"flags": {},
"comment": {
"shortText": "Override the type of the returned `data`.",
"tags": [
{
"tag": "deprecated",
"text": "Use overrideTypes<yourType, { merge: false }>() method at the end of your call chain instead\n"
}
]
},
"typeParameter": [
{
"id": 741,
"name": "NewResult",
"kind": 131072,
"kindString": "Type parameter",
"flags": {},
"comment": {
"shortText": "The new result type to override with"
}
}
],
"type": {
"type": "reference",
"id": 687,
"typeArguments": [
{
"type": "reference",
"id": 690,
"name": "ClientOptions"
},
{
"type": "reference",
"typeArguments": [
{
"type": "reference",
"id": 691,
"name": "Result"
},
{
"type": "reference",
"id": 741,
"name": "NewResult"
}
],
"name": "CheckMatchingArrayTypes"
},
{
"type": "reference",
"id": 692,
"name": "ThrowOnError"
}
],
"name": "default"
}
}
]
},
{
"id": 723,
"name": "setHeader",
"kind": 2048,
"kindString": "Method",
"flags": {},
"sources": [
{
"fileName": "src/PostgrestBuilder.ts",
"line": 78,
"character": 2
}
],
"signatures": [
{
"id": 724,
"name": "setHeader",
"kind": 4096,
"kindString": "Call signature",
"flags": {},
"comment": {
"shortText": "Set an HTTP header for the request."
},
"parameters": [
{
"id": 725,
"name": "name",
"kind": 32768,
"kindString": "Parameter",
"flags": {},
"type": {
"type": "intrinsic",
"name": "string"
}
},
{
"id": 726,
"name": "value",
"kind": 32768,
"kindString": "Parameter",
"flags": {},
"type": {
"type": "intrinsic",
"name": "string"
}
}
],
"type": {
"type": "reference",
"id": 687,
"typeArguments": [
{
"type": "reference",
"id": 690,
"name": "ClientOptions"
},
{
"type": "reference",
"id": 691,
"name": "Result"
},
{
"type": "reference",
"id": 692,
"name": "ThrowOnError"
}
],
"name": "default"
}
}
]
},
{
"id": 727,
"name": "then",
"kind": 2048,
"kindString": "Method",
"flags": {},
"sources": [
{
"fileName": "src/PostgrestBuilder.ts",
"line": 84,
"character": 2
}
],
"signatures": [
{
"id": 728,
"name": "then",
"kind": 4096,
"kindString": "Call signature",
"flags": {},
"typeParameter": [
{
"id": 729,
"name": "TResult1",
"kind": 131072,
"kindString": "Type parameter",
"flags": {},
"default": {
"type": "conditional",
"checkType": {
"type": "reference",
"id": 692,
"name": "ThrowOnError"
},
"extendsType": {
"type": "literal",
"value": true
},
"trueType": {
"type": "reference",
"id": 773,
"typeArguments": [
{
"type": "reference",
"id": 691,
"name": "Result"
}
],
"name": "PostgrestResponseSuccess"
},
"falseType": {
"type": "reference",
"id": 780,
"typeArguments": [
{
"type": "reference",
"id": 691,
"name": "Result"
}
],
"name": "PostgrestSingleResponse"
}
}
},
{
"id": 730,
"name": "TResult2",
"kind": 131072,
"kindString": "Type parameter",
"flags": {},
"default": {
"type": "intrinsic",
"name": "never"
}
}
],
"parameters": [
{
"id": 731,
"name": "onfulfilled",
"kind": 32768,
"kindString": "Parameter",
"flags": {
"isOptional": true
},
"type": {
"type": "union",
"types": [
{
"type": "literal",
"value": null
},
{
"type": "reflection",
"declaration": {
"id": 732,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
"flags": {},
"signatures": [
{
"id": 733,
"name": "__type",
"kind": 4096,
"kindString": "Call signature",
"flags": {},
"parameters": [
{
"id": 734,
"name": "value",
"kind": 32768,
"kindString": "Parameter",
"flags": {},
"type": {
"type": "conditional",
"checkType": {
"type": "reference",
"id": 692,
"name": "ThrowOnError"
},
"extendsType": {
"type": "literal",
"value": true
},
"trueType": {
"type": "reference",
"id": 773,
"typeArguments": [
{
"type": "reference",
"id": 691,
"name": "Result"
}
],
"name": "PostgrestResponseSuccess"
},
"falseType": {
"type": "reference",
"id": 780,
"typeArguments": [
{
"type": "reference",
"id": 691,
"name": "Result"
}
],
"name": "PostgrestSingleResponse"
}
}
}
],
"type": {
"type": "union",
"types": [
{
"type": "reference",
"id": 509,
"name": "TResult1"
},
{
"type": "reference",
"typeArguments": [
{
"type": "reference",
"id": 509,
"name": "TResult1"
}
],
"qualifiedName": "PromiseLike",
"package": "typescript",
"name": "PromiseLike"
}
]
}
}
]
}
}
]
}
},
{
"id": 735,
"name": "onrejected",
"kind": 32768,
"kindString": "Parameter",
"flags": {
"isOptional": true
},
"type": {
"type": "union",
"types": [
{
"type": "literal",
"value": null
},
{
"type": "reflection",
"declaration": {
"id": 736,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
"flags": {},
"signatures": [
{
"id": 737,
"name": "__type",
"kind": 4096,
"kindString": "Call signature",
"flags": {},
"parameters": [
{
"id": 738,
"name": "reason",
"kind": 32768,
"kindString": "Parameter",
"flags": {},
"type": {
"type": "intrinsic",
"name": "any"
}
}
],
"type": {
"type": "union",
"types": [
{
"type": "reference",
"id": 510,
"name": "TResult2"
},
{
"type": "reference",
"typeArguments": [
{
"type": "reference",
"id": 510,
"name": "TResult2"
}
],
"qualifiedName": "PromiseLike",
"package": "typescript",
"name": "PromiseLike"
}
]
}
}
]
}
}
]
}
}
],
"type": {
"type": "reference",
"typeArguments": [
{
"type": "union",
"types": [
{
"type": "reference",
"id": 509,
"name": "TResult1"
},
{
"type": "reference",
"id": 510,
"name": "TResult2"
}
]
}
],
"qualifiedName": "PromiseLike",
"package": "typescript",
"name": "PromiseLike"
},
"implementationOf": {
"type": "reference",
"name": "PromiseLike.then"
}
}
],
"implementationOf": {
"type": "reference",
"name": "PromiseLike.then"
}
},
{
"id": 721,
"name": "throwOnError",
"kind": 2048,
"kindString": "Method",
"flags": {},
"sources": [
{
"fileName": "src/PostgrestBuilder.ts",
"line": 70,
"character": 2
}
],
"signatures": [
{
"id": 722,
"name": "throwOnError",
"kind": 4096,
"kindString": "Call signature",
"flags": {},
"comment": {
"shortText": "If there's an error with the query, throwOnError will reject the promise by\nthrowing the error instead of returning it as part of a successful response.",
"text": "{@link https://github.com/supabase/supabase-js/issues/92}\n"
},
"type": {
"type": "intersection",
"types": [
{
"type": "reference",
"id": 687,
"typeArguments": [
{
"type": "reference",
"id": 690,
"name": "ClientOptions"
},
{
"type": "reference",
"id": 691,
"name": "Result"
},
{
"type": "reference",
"id": 692,
"name": "ThrowOnError"
}
],
"name": "default"
},
{
"type": "reference",
"id": 687,
"typeArguments": [
{
"type": "reference",
"id": 690,
"name": "ClientOptions"
},
{
"type": "reference",
"id": 691,
"name": "Result"
},
{
"type": "literal",
"value": true
}
],
"name": "default"
}
]
}
}
]
}
],
"groups": [
{
"title": "Constructors",
"kind": 512,
"children": [688]
},
{
"title": "Properties",
"kind": 1024,
"children": [712, 715, 710, 720, 708, 711, 713, 714, 709]
},
{
"title": "Methods",
"kind": 2048,
"children": [742, 739, 723, 727, 721]
}
],
"sources": [
{
"fileName": "src/PostgrestBuilder.ts",
"line": 16,
"character": 30
}
],
"typeParameter": [
{
"id": 750,
"name": "ClientOptions",
"kind": 131072,
"kindString": "Type parameter",
"flags": {},
"type": {
"type": "reference",
"id": 784,
"name": "ClientServerOptions"
}
},
{
"id": 751,
"name": "Result",
"kind": 131072,
"kindString": "Type parameter",
"flags": {}
},
{
"id": 752,
"name": "ThrowOnError",
"kind": 131072,
"kindString": "Type parameter",
"flags": {},
"type": {
"type": "intrinsic",
"name": "boolean"
},
"default": {
"type": "literal",
"value": false
}
}
],
"extendedBy": [
{
"type": "reference",
"id": 534,
"name": "PostgrestTransformBuilder"
}
],
"implementedTypes": [
{
"type": "reference",
"typeArguments": [
{
"type": "conditional",
"checkType": {
"type": "reference",
"id": 692,
"name": "ThrowOnError"
},
"extendsType": {
"type": "literal",
"value": true
},
"trueType": {
"type": "reference",
"id": 773,
"typeArguments": [
{
"type": "reference",
"id": 691,
"name": "Result"
}
],
"name": "PostgrestResponseSuccess"
},
"falseType": {
"type": "reference",
"id": 780,
"typeArguments": [
{
"type": "reference",
"id": 691,
"name": "Result"
}
],
"name": "PostgrestSingleResponse"
}
}
],
"qualifiedName": "PromiseLike",
"package": "typescript",
"name": "PromiseLike"
}
]
},
{
"id": 9,
"name": "PostgrestClient",
"kind": 128,
"kindString": "Class",
"flags": {},
"comment": {
"shortText": "PostgREST client."
},
"children": [
{
"id": 10,
"name": "constructor",
"kind": 512,
"kindString": "Constructor",
"flags": {},
"sources": [
{
"fileName": "src/PostgrestClient.ts",
"line": 44,
"character": 2
}
],
"signatures": [
{
"id": 11,
"name": "new PostgrestClient",
"kind": 16384,
"kindString": "Constructor signature",
"flags": {},
"comment": {
"shortText": "Creates a PostgREST client."
},
"typeParameter": [
{
"id": 12,
"name": "Database",
"kind": 131072,
"kindString": "Type parameter",
"flags": {},
"default": {
"type": "intrinsic",
"name": "any"
}
},
{
"id": 15,
"name": "ClientOptions",
"kind": 131072,
"kindString": "Type parameter",
"flags": {},
"type": {
"type": "reference",
"id": 784,
"name": "ClientServerOptions"
},
"default": {
"type": "indexedAccess",
"indexType": {
"type": "literal",
"value": "options"
},
"objectType": {
"type": "reference",
"id": 787,
"typeArguments": [
{
"type": "reference",
"id": 12,
"name": "Database"
},
{
"type": "reflection",
"declaration": {
"id": 13,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
"flags": {},
"children": [
{
"id": 14,
"name": "PostgrestVersion",
"kind": 1024,
"kindString": "Property",
"flags": {},
"sources": [
{
"fileName": "src/PostgrestClient.ts",
"line": 19,
"character": 6
}
],
"type": {
"type": "literal",
"value": "12"
}
}
],
"groups": [
{
"title": "Properties",
"kind": 1024,
"children": [14]
}
]
}
}
],
"name": "GetGenericDatabaseWithOptions"
}
}
},
{
"id": 20,
"name": "SchemaName",
"kind": 131072,
"kindString": "Type parameter",
"flags": {},
"type": {
"type": "intrinsic",
"name": "string"
},
"default": {
"type": "conditional",
"checkType": {
"type": "literal",
"value": "public"
},
"extendsType": {
"type": "typeOperator",
"operator": "keyof",
"target": {
"type": "indexedAccess",
"indexType": {
"type": "literal",
"value": "db"
},
"objectType": {
"type": "reference",
"id": 787,
"typeArguments": [
{
"type": "reference",
"id": 12,
"name": "Database"
},
{
"type": "reflection",
"declaration": {
"id": 16,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
"flags": {},
"children": [
{
"id": 17,
"name": "PostgrestVersion",
"kind": 1024,
"kindString": "Property",
"flags": {},
"sources": [
{
"fileName": "src/types.ts",
"line": 87,
"character": 39
}
],
"type": {
"type": "literal",
"value": "12"
}
}
],
"groups": [
{
"title": "Properties",
"kind": 1024,
"children": [17]
}
]
}
}
],
"name": "GetGenericDatabaseWithOptions"
}
}
},
"trueType": {
"type": "literal",
"value": "public"
},
"falseType": {
"type": "intersection",
"types": [
{
"type": "intrinsic",
"name": "string"
},
{
"type": "typeOperator",
"operator": "keyof",
"target": {
"type": "indexedAccess",
"indexType": {
"type": "literal",
"value": "db"
},
"objectType": {
"type": "reference",
"id": 787,
"typeArguments": [
{
"type": "reference",
"id": 12,
"name": "Database"
},
{
"type": "reflection",
"declaration": {
"id": 18,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
"flags": {},
"children": [
{
"id": 19,
"name": "PostgrestVersion",
"kind": 1024,
"kindString": "Property",
"flags": {},
"sources": [
{
"fileName": "src/types.ts",
"line": 87,
"character": 39
}
],
"type": {
"type": "literal",
"value": "12"
}
}
],
"groups": [
{
"title": "Properties",
"kind": 1024,
"children": [19]
}
]
}
}
],
"name": "GetGenericDatabaseWithOptions"
}
}
}
]
}
}
},
{
"id": 23,
"name": "Schema",
"kind": 131072,
"kindString": "Type parameter",
"flags": {},
"type": {
"type": "reference",
"name": "GenericSchema"
},
"default": {
"type": "conditional",
"checkType": {
"type": "indexedAccess",
"indexType": {
"type": "reference",
"id": 20,
"name": "SchemaName"
},
"objectType": {
"type": "indexedAccess",
"indexType": {
"type": "literal",
"value": "db"
},
"objectType": {
"type": "reference",
"id": 787,
"typeArguments": [
{
"type": "reference",
"id": 12,
"name": "Database"
},
{
"type": "reflection",
"declaration": {
"id": 21,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
"flags": {},
"children": [
{
"id": 22,
"name": "PostgrestVersion",
"kind": 1024,
"kindString": "Property",
"flags": {},
"sources": [
{
"fileName": "src/types.ts",
"line": 87,
"character": 39
}
],
"type": {
"type": "literal",
"value": "12"
}
}
],
"groups": [
{
"title": "Properties",
"kind": 1024,
"children": [22]
}
]
}
}
],
"name": "GetGenericDatabaseWithOptions"
}
}
},
"extendsType": {
"type": "reference",
"name": "GenericSchema"
},
"trueType": {
"type": "indexedAccess",
"indexType": {
"type": "intrinsic",
"name": "any"
},
"objectType": {
"type": "intrinsic",
"name": "any"
}
},
"falseType": {
"type": "intrinsic",
"name": "any"
}
}
}
],
"parameters": [
{
"id": 24,
"name": "url",
"kind": 32768,
"kindString": "Parameter",
"flags": {},
"comment": {
"shortText": "URL of the PostgREST endpoint"
},
"type": {
"type": "intrinsic",
"name": "string"
}
},
{
"id": 25,
"name": "options",
"kind": 32768,
"kindString": "Parameter",
"flags": {},
"comment": {
"shortText": "Named parameters"
},
"originalName": "__namedParameters",
"type": {
"type": "reflection",
"declaration": {
"id": 26,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
"flags": {},
"children": [
{
"id": 29,
"name": "fetch",
"kind": 1024,
"kindString": "Property",
"flags": {
"isOptional": true
},
"sources": [
{
"fileName": "src/PostgrestClient.ts",
"line": 53,
"character": 6
}
],
"type": {
"type": "reflection",
"declaration": {
"id": 30,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
"flags": {},
"signatures": [
{
"id": 31,
"name": "__type",
"kind": 4096,
"kindString": "Call signature",
"flags": {},
"comment": {
"shortText": "Custom fetch\n"
},
"parameters": [
{
"id": 32,
"name": "input",
"kind": 32768,
"kindString": "Parameter",
"flags": {},
"type": {
"type": "union",
"types": [
{
"type": "reference",
"qualifiedName": "RequestInfo",
"package": "typescript",
"name": "RequestInfo"
},
{
"type": "reference",
"qualifiedName": "URL",
"package": "typescript",
"name": "URL"
}
]
}
},
{
"id": 33,
"name": "init",
"kind": 32768,
"kindString": "Parameter",
"flags": {
"isOptional": true
},
"type": {
"type": "reference",
"qualifiedName": "RequestInit",
"package": "typescript",
"name": "RequestInit"
}
}
],
"type": {
"type": "reference",
"typeArguments": [
{
"type": "reference",
"qualifiedName": "Response",
"package": "typescript",
"name": "Response"
}
],
"qualifiedName": "Promise",
"package": "typescript",
"name": "Promise"
}
}
]
}
}
},
{
"id": 27,
"name": "headers",
"kind": 1024,
"kindString": "Property",
"flags": {
"isOptional": true
},
"comment": {
"shortText": "Custom headers"
},
"sources": [
{
"fileName": "src/PostgrestClient.ts",
"line": 51,
"character": 6
}
],
"type": {
"type": "reference",
"qualifiedName": "HeadersInit",
"package": "typescript",
"name": "HeadersInit"
}
},
{
"id": 28,
"name": "schema",
"kind": 1024,
"kindString": "Property",
"flags": {
"isOptional": true
},
"comment": {
"shortText": "Postgres schema to switch to"
},
"sources": [
{
"fileName": "src/PostgrestClient.ts",
"line": 52,
"character": 6
}
],
"type": {
"type": "reference",
"id": 20,
"name": "SchemaName"
}
}
],
"groups": [
{
"title": "Properties",
"kind": 1024,
"children": [29, 27, 28]
}
]
}
},
"defaultValue": "{}"
}
],
"type": {
"type": "reference",
"id": 9,
"typeArguments": [
{
"type": "reference",
"id": 12,
"name": "Database"
},
{
"type": "reference",
"id": 15,
"name": "ClientOptions"
},
{
"type": "reference",
"id": 20,
"name": "SchemaName"
},
{
"type": "reference",
"id": 23,
"name": "Schema"
}
],
"name": "default"
}
}
]
},
{
"id": 37,
"name": "fetch",
"kind": 1024,
"kindString": "Property",
"flags": {
"isOptional": true
},
"sources": [
{
"fileName": "src/PostgrestClient.ts",
"line": 32,
"character": 2
}
],
"type": {
"type": "reflection",
"declaration": {
"id": 38,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
"flags": {},
"signatures": [
{
"id": 39,
"name": "__type",
"kind": 4096,
"kindString": "Call signature",
"flags": {},
"parameters": [
{
"id": 40,
"name": "input",
"kind": 32768,
"kindString": "Parameter",
"flags": {},
"type": {
"type": "union",
"types": [
{
"type": "reference",
"qualifiedName": "RequestInfo",
"package": "typescript",
"name": "RequestInfo"
},
{
"type": "reference",
"qualifiedName": "URL",
"package": "typescript",
"name": "URL"
}
]
}
},
{
"id": 41,
"name": "init",
"kind": 32768,
"kindString": "Parameter",
"flags": {
"isOptional": true
},
"type": {
"type": "reference",
"qualifiedName": "RequestInit",
"package": "typescript",
"name": "RequestInit"
}
}
],
"type": {
"type": "reference",
"typeArguments": [
{
"type": "reference",
"qualifiedName": "Response",
"package": "typescript",
"name": "Response"
}
],
"qualifiedName": "Promise",
"package": "typescript",
"name": "Promise"
}
}
]
}
}
},
{
"id": 35,
"name": "headers",
"kind": 1024,
"kindString": "Property",
"flags": {},
"sources": [
{
"fileName": "src/PostgrestClient.ts",
"line": 30,
"character": 2
}
],
"type": {
"type": "reference",
"qualifiedName": "Headers",
"package": "typescript",
"name": "Headers"
}
},
{
"id": 36,
"name": "schemaName",
"kind": 1024,
"kindString": "Property",
"flags": {
"isOptional": true
},
"sources": [
{
"fileName": "src/PostgrestClient.ts",
"line": 31,
"character": 2
}
],
"type": {
"type": "reference",
"id": 20,
"name": "SchemaName"
}
},
{
"id": 34,
"name": "url",
"kind": 1024,
"kindString": "Property",
"flags": {},
"sources": [
{
"fileName": "src/PostgrestClient.ts",
"line": 29,
"character": 2
}
],
"type": {
"type": "intrinsic",
"name": "string"
}
},
{
"id": 42,
"name": "from",
"kind": 2048,
"kindString": "Method",
"flags": {},
"sources": [
{
"fileName": "src/PostgrestClient.ts",
"line": 61,
"character": 2
}
],
"signatures": [
{
"id": 43,
"name": "from",
"kind": 4096,
"kindString": "Call signature",
"flags": {},
"comment": {
"shortText": "Perform a query on a table or a view."
},
"typeParameter": [
{
"id": 44,
"name": "TableName",
"kind": 131072,
"kindString": "Type parameter",
"flags": {},
"type": {
"type": "intrinsic",
"name": "string"
}
},
{
"id": 45,
"name": "Table",
"kind": 131072,
"kindString": "Type parameter",
"flags": {},
"type": {
"type": "reference",
"name": "GenericTable"
}
}
],
"parameters": [
{
"id": 46,
"name": "relation",
"kind": 32768,
"kindString": "Parameter",
"flags": {},
"comment": {
"shortText": "The table or view name to query\n"
},
"type": {
"type": "reference",
"id": 44,
"name": "TableName"
}
}
],
"type": {
"type": "reference",
"id": 76,
"typeArguments": [
{
"type": "reference",
"id": 15,
"name": "ClientOptions"
},
{
"type": "reference",
"id": 23,
"name": "Schema"
},
{
"type": "reference",
"id": 45,
"name": "Table"
},
{
"type": "reference",
"id": 44,
"name": "TableName"
},
{
"type": "conditional",
"checkType": {
"type": "reference",
"id": 45,
"name": "Table"
},
"extendsType": {
"type": "reflection",
"declaration": {
"id": 47,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
"flags": {},
"children": [
{
"id": 48,
"name": "Relationships",
"kind": 1024,
"kindString": "Property",
"flags": {},
"sources": [
{
"fileName": "src/PostgrestQueryBuilder.ts",
"line": 10,
"character": 37
}
],
"type": {
"type": "reference",
"name": "R"
}
}
],
"groups": [
{
"title": "Properties",
"kind": 1024,
"children": [48]
}
]
}
},
"trueType": {
"type": "reference",
"name": "R"
},
"falseType": {
"type": "intrinsic",
"name": "unknown"
}
}
],
"name": "default"
}
},
{
"id": 49,
"name": "from",
"kind": 4096,
"kindString": "Call signature",
"flags": {},
"comment": {
"shortText": "Perform a query on a table or a view."
},
"typeParameter": [
{
"id": 50,
"name": "ViewName",
"kind": 131072,
"kindString": "Type parameter",
"flags": {},
"type": {
"type": "intrinsic",
"name": "string"
}
},
{
"id": 51,
"name": "View",
"kind": 131072,
"kindString": "Type parameter",
"flags": {},
"type": {
"type": "reference",
"name": "GenericView"
}
}
],
"parameters": [
{
"id": 52,
"name": "relation",
"kind": 32768,
"kindString": "Parameter",
"flags": {},
"comment": {
"shortText": "The table or view name to query\n"
},
"type": {
"type": "reference",
"id": 50,
"name": "ViewName"
}
}
],
"type": {
"type": "reference",
"id": 76,
"typeArguments": [
{
"type": "reference",
"id": 15,
"name": "ClientOptions"
},
{
"type": "reference",
"id": 23,
"name": "Schema"
},
{
"type": "reference",
"id": 51,
"name": "View"
},
{
"type": "reference",
"id": 50,
"name": "ViewName"
},
{
"type": "conditional",
"checkType": {
"type": "reference",
"id": 51,
"name": "View"
},
"extendsType": {
"type": "reflection",
"declaration": {
"id": 53,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
"flags": {},
"children": [
{
"id": 54,
"name": "Relationships",
"kind": 1024,
"kindString": "Property",
"flags": {},
"sources": [
{
"fileName": "src/PostgrestQueryBuilder.ts",
"line": 10,
"character": 37
}
],
"type": {
"type": "reference",
"name": "R"
}
}
],
"groups": [
{
"title": "Properties",
"kind": 1024,
"children": [54]
}
]
}
},
"trueType": {
"type": "reference",
"name": "R"
},
"falseType": {
"type": "intrinsic",
"name": "unknown"
}
}
],
"name": "default"
}
}
]
},
{
"id": 59,
"name": "rpc",
"kind": 2048,
"kindString": "Method",
"flags": {},
"sources": [
{
"fileName": "src/PostgrestClient.ts",
"line": 127,
"character": 2
}
],
"signatures": [
{
"id": 60,
"name": "rpc",
"kind": 4096,
"kindString": "Call signature",
"flags": {},
"comment": {
"shortText": "Perform a function call."
},
"typeParameter": [
{
"id": 61,
"name": "FnName",
"kind": 131072,
"kindString": "Type parameter",
"flags": {},
"type": {
"type": "intrinsic",
"name": "string"
}
},
{
"id": 62,
"name": "Fn",
"kind": 131072,
"kindString": "Type parameter",
"flags": {},
"type": {
"type": "reference",
"name": "GenericFunction"
}
}
],
"parameters": [
{
"id": 63,
"name": "fn",
"kind": 32768,
"kindString": "Parameter",
"flags": {},
"comment": {
"shortText": "The function name to call"
},
"type": {
"type": "reference",
"id": 61,
"name": "FnName"
}
},
{
"id": 64,
"name": "args",
"kind": 32768,
"kindString": "Parameter",
"flags": {},
"comment": {
"shortText": "The arguments to pass to the function call"
},
"type": {
"type": "indexedAccess",
"indexType": {
"type": "literal",
"value": "Args"
},
"objectType": {
"type": "reference",
"id": 62,
"name": "Fn"
}
},
"defaultValue": "{}"
},
{
"id": 65,
"name": "options",
"kind": 32768,
"kindString": "Parameter",
"flags": {},
"comment": {
"shortText": "Named parameters"
},
"originalName": "__namedParameters",
"type": {
"type": "reflection",
"declaration": {
"id": 66,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
"flags": {},
"children": [
{
"id": 69,
"name": "count",
"kind": 1024,
"kindString": "Property",
"flags": {
"isOptional": true
},
"comment": {
"shortText": "Count algorithm to use to count rows returned by the\nfunction. Only applicable for [set-returning\nfunctions](https://www.postgresql.org/docs/current/functions-srf.html).\n\n`\"exact\"`: Exact but slow count algorithm. Performs a `COUNT(*)` under the\nhood.\n\n`\"planned\"`: Approximated but fast count algorithm. Uses the Postgres\nstatistics under the hood.\n\n`\"estimated\"`: Uses exact count for low numbers and planned count for high\nnumbers.\n"
},
"sources": [
{
"fileName": "src/PostgrestClient.ts",
"line": 137,
"character": 6
}
],
"type": {
"type": "union",
"types": [
{
"type": "literal",
"value": "exact"
},
{
"type": "literal",
"value": "planned"
},
{
"type": "literal",
"value": "estimated"
}
]
}
},
{
"id": 68,
"name": "get",
"kind": 1024,
"kindString": "Property",
"flags": {
"isOptional": true
},
"comment": {
"shortText": "When set to `true`, the function will be called with\nread-only access mode."
},
"sources": [
{
"fileName": "src/PostgrestClient.ts",
"line": 136,
"character": 6
}
],
"type": {
"type": "intrinsic",
"name": "boolean"
}
},
{
"id": 67,
"name": "head",
"kind": 1024,
"kindString": "Property",
"flags": {
"isOptional": true
},
"comment": {
"shortText": "When set to `true`, `data` will not be returned.\nUseful if you only need the count."
},
"sources": [
{
"fileName": "src/PostgrestClient.ts",
"line": 135,
"character": 6
}
],
"type": {
"type": "intrinsic",
"name": "boolean"
}
}
],
"groups": [
{
"title": "Properties",
"kind": 1024,
"children": [69, 68, 67]
}
]
}
},
"defaultValue": "{}"
}
],
"type": {
"type": "reference",
"id": 165,
"typeArguments": [
{
"type": "reference",
"id": 15,
"name": "ClientOptions"
},
{
"type": "reference",
"id": 23,
"name": "Schema"
},
{
"type": "conditional",
"checkType": {
"type": "indexedAccess",
"indexType": {
"type": "literal",
"value": "Returns"
},
"objectType": {
"type": "reference",
"id": 62,
"name": "Fn"
}
},
"extendsType": {
"type": "array",
"elementType": {
"type": "intrinsic",
"name": "any"
}
},
"trueType": {
"type": "conditional",
"checkType": {
"type": "indexedAccess",
"indexType": {
"type": "intrinsic",
"name": "number"
},
"objectType": {
"type": "indexedAccess",
"indexType": {
"type": "intrinsic",
"name": "any"
},
"objectType": {
"type": "intrinsic",
"name": "any"
}
}
},
"extendsType": {
"type": "reference",
"typeArguments": [
{
"type": "intrinsic",
"name": "string"
},
{
"type": "intrinsic",
"name": "unknown"
}
],
"qualifiedName": "Record",
"package": "typescript",
"name": "Record"
},
"trueType": {
"type": "indexedAccess",
"indexType": {
"type": "intrinsic",
"name": "any"
},
"objectType": {
"type": "intrinsic",
"name": "any"
}
},
"falseType": {
"type": "intrinsic",
"name": "never"
}
},
"falseType": {
"type": "intrinsic",
"name": "never"
}
},
{
"type": "indexedAccess",
"indexType": {
"type": "literal",
"value": "Returns"
},
"objectType": {
"type": "reference",
"id": 62,
"name": "Fn"
}
},
{
"type": "reference",
"id": 61,
"name": "FnName"
},
{
"type": "literal",
"value": null
},
{
"type": "literal",
"value": "RPC"
}
],
"name": "default"
}
}
]
},
{
"id": 55,
"name": "schema",
"kind": 2048,
"kindString": "Method",
"flags": {},
"sources": [
{
"fileName": "src/PostgrestClient.ts",
"line": 89,
"character": 2
}
],
"signatures": [
{
"id": 56,
"name": "schema",
"kind": 4096,
"kindString": "Call signature",
"flags": {},
"comment": {
"shortText": "Select a schema to query or perform an function (rpc) call.",
"text": "The schema needs to be on the list of exposed schemas inside Supabase.\n"
},
"typeParameter": [
{
"id": 57,
"name": "DynamicSchema",
"kind": 131072,
"kindString": "Type parameter",
"flags": {},
"type": {
"type": "intrinsic",
"name": "string"
}
}
],
"parameters": [
{
"id": 58,
"name": "schema",
"kind": 32768,
"kindString": "Parameter",
"flags": {},
"comment": {
"shortText": "The schema to query\n"
},
"type": {
"type": "reference",
"id": 57,
"name": "DynamicSchema"
}
}
],
"type": {
"type": "reference",
"id": 9,
"typeArguments": [
{
"type": "reference",
"id": 12,
"name": "Database"
},
{
"type": "reference",
"id": 15,
"name": "ClientOptions"
},
{
"type": "reference",
"id": 57,
"name": "DynamicSchema"
},
{
"type": "conditional",
"checkType": {
"type": "indexedAccess",
"indexType": {
"type": "reference",
"id": 57,
"name": "DynamicSchema"
},
"objectType": {
"type": "reference",
"id": 12,
"name": "Database"
}
},
"extendsType": {
"type": "reference",
"name": "GenericSchema"
},
"trueType": {
"type": "indexedAccess",
"indexType": {
"type": "intrinsic",
"name": "any"
},
"objectType": {
"type": "intrinsic",
"name": "any"
}
},
"falseType": {
"type": "intrinsic",
"name": "any"
}
}
],
"name": "default"
}
}
]
}
],
"groups": [
{
"title": "Constructors",
"kind": 512,
"children": [10]
},
{
"title": "Properties",
"kind": 1024,
"children": [37, 35, 36, 34]
},
{
"title": "Methods",
"kind": 2048,
"children": [42, 59, 55]
}
],
"sources": [
{
"fileName": "src/PostgrestClient.ts",
"line": 15,
"character": 21
}
],
"typeParameter": [
{
"id": 70,
"name": "Database",
"kind": 131072,
"kindString": "Type parameter",
"flags": {},
"comment": {
"shortText": "Types for the schema from the [type\ngenerator](https://supabase.com/docs/reference/javascript/next/typescript-support)\n"
},
"default": {
"type": "intrinsic",
"name": "any"
}
},
{
"id": 73,
"name": "ClientOptions",
"kind": 131072,
"kindString": "Type parameter",
"flags": {},
"type": {
"type": "reference",
"id": 784,
"name": "ClientServerOptions"
},
"default": {
"type": "indexedAccess",
"indexType": {
"type": "literal",
"value": "options"
},
"objectType": {
"type": "reference",
"id": 787,
"typeArguments": [
{
"type": "reference",
"id": 12,
"name": "Database"
},
{
"type": "reflection",
"declaration": {
"id": 71,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
"flags": {},
"children": [
{
"id": 72,
"name": "PostgrestVersion",
"kind": 1024,
"kindString": "Property",
"flags": {},
"sources": [
{
"fileName": "src/PostgrestClient.ts",
"line": 19,
"character": 6
}
],
"type": {
"type": "literal",
"value": "12"
}
}
],
"groups": [
{
"title": "Properties",
"kind": 1024,
"children": [72]
}
],
"sources": [
{
"fileName": "src/PostgrestClient.ts",
"line": 19,
"character": 4
}
]
}
}
],
"name": "GetGenericDatabaseWithOptions"
}
}
},
{
"id": 74,
"name": "SchemaName",
"kind": 131072,
"kindString": "Type parameter",
"flags": {},
"comment": {
"shortText": "Postgres schema to switch to. Must be a string\nliteral, the same one passed to the constructor. If the schema is not\n`\"public\"`, this must be supplied manually.\n"
},
"type": {
"type": "intersection",
"types": [
{
"type": "intrinsic",
"name": "string"
},
{
"type": "typeOperator",
"operator": "keyof",
"target": {
"type": "indexedAccess",
"indexType": {
"type": "literal",
"value": "db"
},
"objectType": {
"type": "reference",
"id": 787,
"typeArguments": [
{
"type": "reference",
"id": 12,
"name": "Database"
}
],
"name": "GetGenericDatabaseWithOptions"
}
}
}
]
},
"default": {
"type": "conditional",
"checkType": {
"type": "literal",
"value": "public"
},
"extendsType": {
"type": "typeOperator",
"operator": "keyof",
"target": {
"type": "indexedAccess",
"indexType": {
"type": "literal",
"value": "db"
},
"objectType": {
"type": "reference",
"id": 787,
"typeArguments": [
{
"type": "reference",
"id": 12,
"name": "Database"
}
],
"name": "GetGenericDatabaseWithOptions"
}
}
},
"trueType": {
"type": "literal",
"value": "public"
},
"falseType": {
"type": "intersection",
"types": [
{
"type": "intrinsic",
"name": "string"
},
{
"type": "typeOperator",
"operator": "keyof",
"target": {
"type": "indexedAccess",
"indexType": {
"type": "literal",
"value": "db"
},
"objectType": {
"type": "reference",
"id": 787,
"typeArguments": [
{
"type": "reference",
"id": 12,
"name": "Database"
}
],
"name": "GetGenericDatabaseWithOptions"
}
}
}
]
}
}
},
{
"id": 75,
"name": "Schema",
"kind": 131072,
"kindString": "Type parameter",
"flags": {},
"type": {
"type": "reference",
"name": "GenericSchema"
},
"default": {
"type": "conditional",
"checkType": {
"type": "indexedAccess",
"indexType": {
"type": "reference",
"id": 20,
"name": "SchemaName"
},
"objectType": {
"type": "indexedAccess",
"indexType": {
"type": "literal",
"value": "db"
},
"objectType": {
"type": "reference",
"id": 787,
"typeArguments": [
{
"type": "reference",
"id": 12,
"name": "Database"
}
],
"name": "GetGenericDatabaseWithOptions"
}
}
},
"extendsType": {
"type": "reference",
"name": "GenericSchema"
},
"trueType": {
"type": "indexedAccess",
"indexType": {
"type": "reference",
"id": 20,
"name": "SchemaName"
},
"objectType": {
"type": "indexedAccess",
"indexType": {
"type": "literal",
"value": "db"
},
"objectType": {
"type": "reference",
"id": 787,
"typeArguments": [
{
"type": "reference",
"id": 12,
"name": "Database"
}
],
"name": "GetGenericDatabaseWithOptions"
}
}
},
"falseType": {
"type": "intrinsic",
"name": "any"
}
}
}
]
},
{
"id": 753,
"name": "PostgrestError",
"kind": 128,
"kindString": "Class",
"flags": {},
"comment": {
"shortText": "Error format",
"text": "{@link https://postgrest.org/en/stable/api.html?highlight=options#errors-and-http-status-codes}\n"
},
"children": [
{
"id": 754,
"name": "constructor",
"kind": 512,
"kindString": "Constructor",
"flags": {},
"sources": [
{
"fileName": "src/PostgrestError.ts",
"line": 11,
"character": 2
}
],
"signatures": [
{
"id": 755,
"name": "new PostgrestError",
"kind": 16384,
"kindString": "Constructor signature",
"flags": {},
"parameters": [
{
"id": 756,
"name": "context",
"kind": 32768,
"kindString": "Parameter",
"flags": {},
"type": {
"type": "reflection",
"declaration": {
"id": 757,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
"flags": {},
"children": [
{
"id": 761,
"name": "code",
"kind": 1024,
"kindString": "Property",
"flags": {},
"sources": [
{
"fileName": "src/PostgrestError.ts",
"line": 11,
"character": 73
}
],
"type": {
"type": "intrinsic",
"name": "string"
}
},
{
"id": 759,
"name": "details",
"kind": 1024,
"kindString": "Property",
"flags": {},
"sources": [
{
"fileName": "src/PostgrestError.ts",
"line": 11,
"character": 42
}
],
"type": {
"type": "intrinsic",
"name": "string"
}
},
{
"id": 760,
"name": "hint",
"kind": 1024,
"kindString": "Property",
"flags": {},
"sources": [
{
"fileName": "src/PostgrestError.ts",
"line": 11,
"character": 59
}
],
"type": {
"type": "intrinsic",
"name": "string"
}
},
{
"id": 758,
"name": "message",
"kind": 1024,
"kindString": "Property",
"flags": {},
"sources": [
{
"fileName": "src/PostgrestError.ts",
"line": 11,
"character": 25
}
],
"type": {
"type": "intrinsic",
"name": "string"
}
}
],
"groups": [
{
"title": "Properties",
"kind": 1024,
"children": [761, 759, 760, 758]
}
]
}
}
}
],
"type": {
"type": "reference",
"id": 753,
"name": "default"
},
"overwrites": {
"type": "reference",
"name": "Error.constructor"
}
}
],
"overwrites": {
"type": "reference",
"name": "Error.constructor"
}
},
{
"id": 764,
"name": "code",
"kind": 1024,
"kindString": "Property",
"flags": {},
"sources": [
{
"fileName": "src/PostgrestError.ts",
"line": 9,
"character": 2
}
],
"type": {
"type": "intrinsic",
"name": "string"
}
},
{
"id": 762,
"name": "details",
"kind": 1024,
"kindString": "Property",
"flags": {},
"sources": [
{
"fileName": "src/PostgrestError.ts",
"line": 7,
"character": 2
}
],
"type": {
"type": "intrinsic",
"name": "string"
}
},
{
"id": 763,
"name": "hint",
"kind": 1024,
"kindString": "Property",
"flags": {},
"sources": [
{
"fileName": "src/PostgrestError.ts",
"line": 8,
"character": 2
}
],
"type": {
"type": "intrinsic",
"name": "string"
}
}
],
"groups": [
{
"title": "Constructors",
"kind": 512,
"children": [754]
},
{
"title": "Properties",
"kind": 1024,
"children": [764, 762, 763]
}
],
"sources": [
{
"fileName": "src/PostgrestError.ts",
"line": 6,
"character": 21
}
],
"extendedTypes": [
{
"type": "reference",
"qualifiedName": "Error",
"package": "typescript",
"name": "Error"
}
]
},
{
"id": 165,
"name": "PostgrestFilterBuilder",
"kind": 128,
"kindString": "Class",
"flags": {},
"children": [
{
"id": 166,
"name": "constructor",
"kind": 512,
"kindString": "Constructor",
"flags": {},
"signatures": [
{
"id": 167,
"name": "new PostgrestFilterBuilder",
"kind": 16384,
"kindString": "Constructor signature",
"flags": {},
"typeParameter": [
{
"id": 168,
"name": "ClientOptions",
"kind": 131072,
"kindString": "Type parameter",
"flags": {},
"type": {
"type": "reference",
"id": 784,
"name": "ClientServerOptions"
}
},
{
"id": 169,
"name": "Schema",
"kind": 131072,
"kindString": "Type parameter",
"flags": {},
"type": {
"type": "reference",
"name": "GenericSchema"
}
},
{
"id": 170,
"name": "Row",
"kind": 131072,
"kindString": "Type parameter",
"flags": {},
"type": {
"type": "reference",
"typeArguments": [
{
"type": "intrinsic",
"name": "string"
},
{
"type": "intrinsic",
"name": "unknown"
}
],
"qualifiedName": "Record",
"package": "typescript",
"name": "Record"
}
},
{
"id": 171,
"name": "Result",
"kind": 131072,
"kindString": "Type parameter",
"flags": {}
},
{
"id": 172,
"name": "RelationName",
"kind": 131072,
"kindString": "Type parameter",
"flags": {},
"default": {
"type": "intrinsic",
"name": "unknown"
}
},
{
"id": 173,
"name": "Relationships",
"kind": 131072,
"kindString": "Type parameter",
"flags": {},
"default": {
"type": "intrinsic",
"name": "unknown"
}
},
{
"id": 174,
"name": "Method",
"kind": 131072,
"kindString": "Type parameter",
"flags": {},
"default": {
"type": "intrinsic",
"name": "unknown"
}
}
],
"parameters": [
{
"id": 175,
"name": "builder",
"kind": 32768,
"kindString": "Parameter",
"flags": {},
"type": {
"type": "reflection",
"declaration": {
"id": 176,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
"flags": {},
"children": [
{
"id": 181,
"name": "body",
"kind": 1024,
"kindString": "Property",
"flags": {
"isOptional": true
},
"sources": [
{
"fileName": "src/PostgrestBuilder.ts",
"line": 40,
"character": 4
}
],
"type": {
"type": "intrinsic",
"name": "unknown"
}
},
{
"id": 184,
"name": "fetch",
"kind": 1024,
"kindString": "Property",
"flags": {
"isOptional": true
},
"sources": [
{
"fileName": "src/PostgrestBuilder.ts",
"line": 43,
"character": 4
}
],
"type": {
"type": "reflection",
"declaration": {
"id": 185,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
"flags": {},
"signatures": [
{
"id": 186,
"name": "__type",
"kind": 4096,
"kindString": "Call signature",
"flags": {},
"parameters": [
{
"id": 187,
"name": "input",
"kind": 32768,
"kindString": "Parameter",
"flags": {},
"type": {
"type": "union",
"types": [
{
"type": "reference",
"qualifiedName": "RequestInfo",
"package": "typescript",
"name": "RequestInfo"
},
{
"type": "reference",
"qualifiedName": "URL",
"package": "typescript",
"name": "URL"
}
]
}
},
{
"id": 188,
"name": "init",
"kind": 32768,
"kindString": "Parameter",
"flags": {
"isOptional": true
},
"type": {
"type": "reference",
"qualifiedName": "RequestInit",
"package": "typescript",
"name": "RequestInit"
}
}
],
"type": {
"type": "reference",
"typeArguments": [
{
"type": "reference",
"qualifiedName": "Response",
"package": "typescript",
"name": "Response"
}
],
"qualifiedName": "Promise",
"package": "typescript",
"name": "Promise"
}
}
]
}
}
},
{
"id": 179,
"name": "headers",
"kind": 1024,
"kindString": "Property",
"flags": {},
"sources": [
{
"fileName": "src/PostgrestBuilder.ts",
"line": 38,
"character": 4
}
],
"type": {
"type": "reference",
"qualifiedName": "HeadersInit",
"package": "typescript",
"name": "HeadersInit"
}
},
{
"id": 189,
"name": "isMaybeSingle",
"kind": 1024,
"kindString": "Property",
"flags": {
"isOptional": true
},
"sources": [
{
"fileName": "src/PostgrestBuilder.ts",
"line": 44,
"character": 4
}
],
"type": {
"type": "intrinsic",
"name": "boolean"
}
},
{
"id": 177,
"name": "method",
"kind": 1024,
"kindString": "Property",
"flags": {},
"sources": [
{
"fileName": "src/PostgrestBuilder.ts",
"line": 36,
"character": 4
}
],
"type": {
"type": "union",
"types": [
{
"type": "literal",
"value": "GET"
},
{
"type": "literal",
"value": "HEAD"
},
{
"type": "literal",
"value": "POST"
},
{
"type": "literal",
"value": "PATCH"
},
{
"type": "literal",
"value": "DELETE"
}
]
}
},
{
"id": 180,
"name": "schema",
"kind": 1024,
"kindString": "Property",
"flags": {
"isOptional": true
},
"sources": [
{
"fileName": "src/PostgrestBuilder.ts",
"line": 39,
"character": 4
}
],
"type": {
"type": "intrinsic",
"name": "string"
}
},
{
"id": 182,
"name": "shouldThrowOnError",
"kind": 1024,
"kindString": "Property",
"flags": {
"isOptional": true
},
"sources": [
{
"fileName": "src/PostgrestBuilder.ts",
"line": 41,
"character": 4
}
],
"type": {
"type": "intrinsic",
"name": "boolean"
}
},
{
"id": 183,
"name": "signal",
"kind": 1024,
"kindString": "Property",
"flags": {
"isOptional": true
},
"sources": [
{
"fileName": "src/PostgrestBuilder.ts",
"line": 42,
"character": 4
}
],
"type": {
"type": "reference",
"qualifiedName": "AbortSignal",
"package": "typescript",
"name": "AbortSignal"
}
},
{
"id": 178,
"name": "url",
"kind": 1024,
"kindString": "Property",
"flags": {},
"sources": [
{
"fileName": "src/PostgrestBuilder.ts",
"line": 37,
"character": 4
}
],
"type": {
"type": "reference",
"qualifiedName": "URL",
"package": "typescript",
"name": "URL"
}
}
],
"groups": [
{
"title": "Properties",
"kind": 1024,
"children": [181, 184, 179, 189, 177, 180, 182, 183, 178]
}
]
}
}
}
],
"type": {
"type": "reference",
"id": 165,
"typeArguments": [
{
"type": "reference",
"id": 168,
"name": "ClientOptions"
},
{
"type": "reference",
"id": 169,
"name": "Schema"
},
{
"type": "reference",
"id": 170,
"name": "Row"
},
{
"type": "reference",
"id": 171,
"name": "Result"
},
{
"type": "reference",
"id": 172,
"name": "RelationName"
},
{
"type": "reference",
"id": 173,
"name": "Relationships"
},
{
"type": "reference",
"id": 174,
"name": "Method"
}
],
"name": "default"
},
"inheritedFrom": {
"type": "reference",
"id": 536,
"name": "default.constructor"
}
}
],
"inheritedFrom": {
"type": "reference",
"id": 535,
"name": "default.constructor"
}
},
{
"id": 492,
"name": "body",
"kind": 1024,
"kindString": "Property",
"flags": {
"isProtected": true,
"isOptional": true
},
"sources": [
{
"fileName": "src/PostgrestBuilder.ts",
"line": 29,
"character": 12
}
],
"type": {
"type": "intrinsic",
"name": "unknown"
},
"inheritedFrom": {
"type": "reference",
"id": 645,
"name": "default.body"
}
},
{
"id": 495,
"name": "fetch",
"kind": 1024,
"kindString": "Property",
"flags": {
"isProtected": true
},
"sources": [
{
"fileName": "src/PostgrestBuilder.ts",
"line": 32,
"character": 12
}
],
"type": {
"type": "reflection",
"declaration": {
"id": 496,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
"flags": {},
"signatures": [
{
"id": 497,
"name": "__type",
"kind": 4096,
"kindString": "Call signature",
"flags": {},
"parameters": [
{
"id": 498,
"name": "input",
"kind": 32768,
"kindString": "Parameter",
"flags": {},
"type": {
"type": "union",
"types": [
{
"type": "reference",
"qualifiedName": "RequestInfo",
"package": "typescript",
"name": "RequestInfo"
},
{
"type": "reference",
"qualifiedName": "URL",
"package": "typescript",
"name": "URL"
}
]
}
},
{
"id": 499,
"name": "init",
"kind": 32768,
"kindString": "Parameter",
"flags": {
"isOptional": true
},
"type": {
"type": "reference",
"qualifiedName": "RequestInit",
"package": "typescript",
"name": "RequestInit"
}
}
],
"type": {
"type": "reference",
"typeArguments": [
{
"type": "reference",
"qualifiedName": "Response",
"package": "typescript",
"name": "Response"
}
],
"qualifiedName": "Promise",
"package": "typescript",
"name": "Promise"
}
}
]
}
},
"inheritedFrom": {
"type": "reference",
"id": 648,
"name": "default.fetch"
}
},
{
"id": 490,
"name": "headers",
"kind": 1024,
"kindString": "Property",
"flags": {
"isProtected": true
},
"sources": [
{
"fileName": "src/PostgrestBuilder.ts",
"line": 27,
"character": 12
}
],
"type": {
"type": "reference",
"qualifiedName": "Headers",
"package": "typescript",
"name": "Headers"
},
"inheritedFrom": {
"type": "reference",
"id": 643,
"name": "default.headers"
}
},
{
"id": 500,
"name": "isMaybeSingle",
"kind": 1024,
"kindString": "Property",
"flags": {
"isProtected": true
},
"sources": [
{
"fileName": "src/PostgrestBuilder.ts",
"line": 33,
"character": 12
}
],
"type": {
"type": "intrinsic",
"name": "boolean"
},
"inheritedFrom": {
"type": "reference",
"id": 653,
"name": "default.isMaybeSingle"
}
},
{
"id": 488,
"name": "method",
"kind": 1024,
"kindString": "Property",
"flags": {
"isProtected": true
},
"sources": [
{
"fileName": "src/PostgrestBuilder.ts",
"line": 25,
"character": 12
}
],
"type": {
"type": "union",
"types": [
{
"type": "literal",
"value": "GET"
},
{
"type": "literal",
"value": "HEAD"
},
{
"type": "literal",
"value": "POST"
},
{
"type": "literal",
"value": "PATCH"
},
{
"type": "literal",
"value": "DELETE"
}
]
},
"inheritedFrom": {
"type": "reference",
"id": 641,
"name": "default.method"
}
},
{
"id": 491,
"name": "schema",
"kind": 1024,
"kindString": "Property",
"flags": {
"isProtected": true,
"isOptional": true
},
"sources": [
{
"fileName": "src/PostgrestBuilder.ts",
"line": 28,
"character": 12
}
],
"type": {
"type": "intrinsic",
"name": "string"
},
"inheritedFrom": {
"type": "reference",
"id": 644,
"name": "default.schema"
}
},
{
"id": 493,
"name": "shouldThrowOnError",
"kind": 1024,
"kindString": "Property",
"flags": {
"isProtected": true
},
"sources": [
{
"fileName": "src/PostgrestBuilder.ts",
"line": 30,
"character": 12
}
],
"type": {
"type": "intrinsic",
"name": "boolean"
},
"defaultValue": "false",
"inheritedFrom": {
"type": "reference",
"id": 646,
"name": "default.shouldThrowOnError"
}
},
{
"id": 494,
"name": "signal",
"kind": 1024,
"kindString": "Property",
"flags": {
"isProtected": true,
"isOptional": true
},
"sources": [
{
"fileName": "src/PostgrestBuilder.ts",
"line": 31,
"character": 12
}
],
"type": {
"type": "reference",
"qualifiedName": "AbortSignal",
"package": "typescript",
"name": "AbortSignal"
},
"inheritedFrom": {
"type": "reference",
"id": 647,
"name": "default.signal"
}
},
{
"id": 489,
"name": "url",
"kind": 1024,
"kindString": "Property",
"flags": {
"isProtected": true
},
"sources": [
{
"fileName": "src/PostgrestBuilder.ts",
"line": 26,
"character": 12
}
],
"type": {
"type": "reference",
"qualifiedName": "URL",
"package": "typescript",
"name": "URL"
},
"inheritedFrom": {
"type": "reference",
"id": 642,
"name": "default.url"
}
},
{
"id": 457,
"name": "abortSignal",
"kind": 2048,
"kindString": "Method",
"flags": {},
"sources": [
{
"fileName": "src/PostgrestTransformBuilder.ts",
"line": 195,
"character": 2
}
],
"signatures": [
{
"id": 458,
"name": "abortSignal",
"kind": 4096,
"kindString": "Call signature",
"flags": {},
"comment": {
"shortText": "Set the AbortSignal for the fetch request."
},
"parameters": [
{
"id": 459,
"name": "signal",
"kind": 32768,
"kindString": "Parameter",
"flags": {},
"comment": {
"shortText": "The AbortSignal to use for the fetch request\n"
},
"type": {
"type": "reference",
"qualifiedName": "AbortSignal",
"package": "typescript",
"name": "AbortSignal"
}
}
],
"type": {
"type": "reference",
"id": 165,
"typeArguments": [
{
"type": "reference",
"id": 168,
"name": "ClientOptions"
},
{
"type": "reference",
"id": 169,
"name": "Schema"
},
{
"type": "reference",
"id": 170,
"name": "Row"
},
{
"type": "reference",
"id": 171,
"name": "Result"
},
{
"type": "reference",
"id": 172,
"name": "RelationName"
},
{
"type": "reference",
"id": 173,
"name": "Relationships"
},
{
"type": "reference",
"id": 174,
"name": "Method"
}
],
"name": "default"
},
"inheritedFrom": {
"type": "reference",
"id": 611,
"name": "default.abortSignal"
}
}
],
"inheritedFrom": {
"type": "reference",
"id": 610,
"name": "default.abortSignal"
}
},
{
"id": 301,
"name": "containedBy",
"kind": 2048,
"kindString": "Method",
"flags": {},
"sources": [
{
"fileName": "src/PostgrestFilterBuilder.ts",
"line": 354,
"character": 2
}
],
"signatures": [
{
"id": 302,
"name": "containedBy",
"kind": 4096,
"kindString": "Call signature",
"flags": {},
"comment": {
"shortText": "Only relevant for jsonb, array, and range columns. Match only rows where\nevery element appearing in `column` is contained by `value`."
},
"typeParameter": [
{
"id": 303,
"name": "ColumnName",
"kind": 131072,
"kindString": "Type parameter",
"flags": {},
"type": {
"type": "intrinsic",
"name": "string"
}
}
],
"parameters": [
{
"id": 304,
"name": "column",
"kind": 32768,
"kindString": "Parameter",
"flags": {},
"comment": {
"shortText": "The jsonb, array, or range column to filter on"
},
"type": {
"type": "reference",
"id": 303,
"name": "ColumnName"
}
},
{
"id": 305,
"name": "value",
"kind": 32768,
"kindString": "Parameter",
"flags": {},
"comment": {
"shortText": "The jsonb, array, or range value to filter with\n"
},
"type": {
"type": "union",
"types": [
{
"type": "intrinsic",
"name": "string"
},
{
"type": "reference",
"typeArguments": [
{
"type": "intrinsic",
"name": "string"
},
{
"type": "intrinsic",
"name": "unknown"
}
],
"qualifiedName": "Record",
"package": "typescript",
"name": "Record"
},
{
"type": "typeOperator",
"operator": "readonly",
"target": {
"type": "array",
"elementType": {
"type": "indexedAccess",
"indexType": {
"type": "reference",
"id": 303,
"name": "ColumnName"
},
"objectType": {
"type": "reference",
"id": 170,
"name": "Row"
}
}
}
}
]
}
}
],
"type": {
"type": "reference",
"id": 165,
"typeArguments": [
{
"type": "reference",
"id": 168,
"name": "ClientOptions"
},
{
"type": "reference",
"id": 169,
"name": "Schema"
},
{
"type": "reference",
"id": 170,
"name": "Row"
},
{
"type": "reference",
"id": 171,
"name": "Result"
},
{
"type": "reference",
"id": 172,
"name": "RelationName"
},
{
"type": "reference",
"id": 173,
"name": "Relationships"
},
{
"type": "reference",
"id": 174,
"name": "Method"
}
],
"name": "default"
}
},
{
"id": 306,
"name": "containedBy",
"kind": 4096,
"kindString": "Call signature",
"flags": {},
"comment": {
"shortText": "Only relevant for jsonb, array, and range columns. Match only rows where\nevery element appearing in `column` is contained by `value`."
},
"parameters": [
{
"id": 307,
"name": "column",
"kind": 32768,
"kindString": "Parameter",
"flags": {},
"comment": {
"shortText": "The jsonb, array, or range column to filter on"
},
"type": {
"type": "intrinsic",
"name": "string"
}
},
{
"id": 308,
"name": "value",
"kind": 32768,
"kindString": "Parameter",
"flags": {},
"comment": {
"shortText": "The jsonb, array, or range value to filter with\n"
},
"type": {
"type": "union",
"types": [
{
"type": "intrinsic",
"name": "string"
},
{
"type": "typeOperator",
"operator": "readonly",
"target": {
"type": "array",
"elementType": {
"type": "intrinsic",
"name": "unknown"
}
}
},
{
"type": "reference",
"typeArguments": [
{
"type": "intrinsic",
"name": "string"
},
{
"type": "intrinsic",
"name": "unknown"
}
],
"qualifiedName": "Record",
"package": "typescript",
"name": "Record"
}
]
}
}
],
"type": {
"type": "reference",
"id": 165,
"typeArguments": [
{
"type": "reference",
"id": 168,
"name": "ClientOptions"
},
{
"type": "reference",
"id": 169,
"name": "Schema"
},
{
"type": "reference",
"id": 170,
"name": "Row"
},
{
"type": "reference",
"id": 171,
"name": "Result"
},
{
"type": "reference",
"id": 172,
"name": "RelationName"
},
{
"type": "reference",
"id": 173,
"name": "Relationships"
},
{
"type": "reference",
"id": 174,
"name": "Method"
}
],
"name": "default"
}
}
]
},
{
"id": 293,
"name": "contains",
"kind": 2048,
"kindString": "Method",
"flags": {},
"sources": [
{
"fileName": "src/PostgrestFilterBuilder.ts",
"line": 327,
"character": 2
}
],
"signatures": [
{
"id": 294,
"name": "contains",
"kind": 4096,
"kindString": "Call signature",
"flags": {},
"comment": {
"shortText": "Only relevant for jsonb, array, and range columns. Match only rows where\n`column` contains every element appearing in `value`."
},
"typeParameter": [
{
"id": 295,
"name": "ColumnName",
"kind": 131072,
"kindString": "Type parameter",
"flags": {},
"type": {
"type": "intrinsic",
"name": "string"
}
}
],
"parameters": [
{
"id": 296,
"name": "column",
"kind": 32768,
"kindString": "Parameter",
"flags": {},
"comment": {
"shortText": "The jsonb, array, or range column to filter on"
},
"type": {
"type": "reference",
"id": 295,
"name": "ColumnName"
}
},
{
"id": 297,
"name": "value",
"kind": 32768,
"kindString": "Parameter",
"flags": {},
"comment": {
"shortText": "The jsonb, array, or range value to filter with\n"
},
"type": {
"type": "union",
"types": [
{
"type": "intrinsic",
"name": "string"
},
{
"type": "reference",
"typeArguments": [
{
"type": "intrinsic",
"name": "string"
},
{
"type": "intrinsic",
"name": "unknown"
}
],
"qualifiedName": "Record",
"package": "typescript",
"name": "Record"
},
{
"type": "typeOperator",
"operator": "readonly",
"target": {
"type": "array",
"elementType": {
"type": "indexedAccess",
"indexType": {
"type": "reference",
"id": 295,
"name": "ColumnName"
},
"objectType": {
"type": "reference",
"id": 170,
"name": "Row"
}
}
}
}
]
}
}
],
"type": {
"type": "reference",
"id": 165,
"typeArguments": [
{
"type": "reference",
"id": 168,
"name": "ClientOptions"
},
{
"type": "reference",
"id": 169,
"name": "Schema"
},
{
"type": "reference",
"id": 170,
"name": "Row"
},
{
"type": "reference",
"id": 171,
"name": "Result"
},
{
"type": "reference",
"id": 172,
"name": "RelationName"
},
{
"type": "reference",
"id": 173,
"name": "Relationships"
},
{
"type": "reference",
"id": 174,
"name": "Method"
}
],
"name": "default"
}
},
{
"id": 298,
"name": "contains",
"kind": 4096,
"kindString": "Call signature",
"flags": {},
"comment": {
"shortText": "Only relevant for jsonb, array, and range columns. Match only rows where\n`column` contains every element appearing in `value`."
},
"parameters": [
{
"id": 299,
"name": "column",
"kind": 32768,
"kindString": "Parameter",
"flags": {},
"comment": {
"shortText": "The jsonb, array, or range column to filter on"
},
"type": {
"type": "intrinsic",
"name": "string"
}
},
{
"id": 300,
"name": "value",
"kind": 32768,
"kindString": "Parameter",
"flags": {},
"comment": {
"shortText": "The jsonb, array, or range value to filter with\n"
},
"type": {
"type": "union",
"types": [
{
"type": "intrinsic",
"name": "string"
},
{
"type": "typeOperator",
"operator": "readonly",
"target": {
"type": "array",
"elementType": {
"type": "intrinsic",
"name": "unknown"
}
}
},
{
"type": "reference",
"typeArguments": [
{
"type": "intrinsic",
"name": "string"
},
{
"type": "intrinsic",
"name": "unknown"
}
],
"qualifiedName": "Record",
"package": "typescript",
"name": "Record"
}
]
}
}
],
"type": {
"type": "reference",
"id": 165,
"typeArguments": [
{
"type": "reference",
"id": 168,
"name": "ClientOptions"
},
{
"type": "reference",
"id": 169,
"name": "Schema"
},
{
"type": "reference",
"id": 170,
"name": "Row"
},
{
"type": "reference",
"id": 171,
"name": "Result"
},
{
"type": "reference",
"id": 172,
"name": "RelationName"
},
{
"type": "reference",
"id": 173,
"name": "Relationships"
},
{
"type": "reference",
"id": 174,
"name": "Method"
}
],
"name": "default"
}
}
]
},
{
"id": 466,
"name": "csv",
"kind": 2048,
"kindString": "Method",
"flags": {},
"sources": [
{
"fileName": "src/PostgrestTransformBuilder.ts",
"line": 237,
"character": 2
}
],
"signatures": [
{
"id": 467,
"name": "csv",
"kind": 4096,
"kindString": "Call signature",
"flags": {},
"comment": {
"shortText": "Return `data` as a string in CSV format."
},
"type": {
"type": "reference",
"id": 687,
"typeArguments": [
{
"type": "reference",
"id": 168,
"name": "ClientOptions"
},
{
"type": "intrinsic",
"name": "string"
},
{
"type": "literal",
"value": false
}
],
"name": "default"
},
"inheritedFrom": {
"type": "reference",
"id": 620,
"name": "default.csv"
}
}
],
"inheritedFrom": {
"type": "reference",
"id": 619,
"name": "default.csv"
}
},
{
"id": 190,
"name": "eq",
"kind": 2048,
"kindString": "Method",
"flags": {},
"sources": [
{
"fileName": "src/PostgrestFilterBuilder.ts",
"line": 99,
"character": 2
}
],
"signatures": [
{
"id": 191,
"name": "eq",
"kind": 4096,
"kindString": "Call signature",
"flags": {},
"comment": {
"shortText": "Match only rows where `column` is equal to `value`.",
"text": "To check if the value of `column` is NULL, you should use `.is()` instead.\n"
},
"typeParameter": [
{
"id": 192,
"name": "ColumnName",
"kind": 131072,
"kindString": "Type parameter",
"flags": {},
"type": {
"type": "intrinsic",
"name": "string"
}
}
],
"parameters": [
{
"id": 193,
"name": "column",
"kind": 32768,
"kindString": "Parameter",
"flags": {},
"comment": {
"shortText": "The column to filter on"
},
"type": {
"type": "reference",
"id": 192,
"name": "ColumnName"
}
},
{
"id": 194,
"name": "value",
"kind": 32768,
"kindString": "Parameter",
"flags": {},
"comment": {
"shortText": "The value to filter with\n"
},
"type": {
"type": "conditional",
"checkType": {
"type": "reference",
"typeArguments": [
{
"type": "reference",
"id": 169,
"name": "Schema"
},
{
"type": "reference",
"id": 170,
"name": "Row"
},
{
"type": "reference",
"id": 192,
"name": "ColumnName"
}
],
"name": "ResolveFilterValue"
},
"extendsType": {
"type": "intrinsic",
"name": "never"
},
"trueType": {
"type": "intrinsic",
"name": "unknown"
},
"falseType": {
"type": "conditional",
"checkType": {
"type": "reference",
"typeArguments": [
{
"type": "reference",
"id": 169,
"name": "Schema"
},
{
"type": "reference",
"id": 170,
"name": "Row"
},
{
"type": "reference",
"id": 192,
"name": "ColumnName"
}
],
"name": "ResolveFilterValue"
},
"extendsType": {
"type": "reference",
"name": "ResolvedFilterValue"
},
"trueType": {
"type": "reference",
"typeArguments": [
{
"type": "reference",
"name": "ResolvedFilterValue"
}
],
"qualifiedName": "NonNullable",
"package": "typescript",
"name": "NonNullable"
},
"falseType": {
"type": "intrinsic",
"name": "never"
}
}
}
}
],
"type": {
"type": "reference",
"id": 165,
"typeArguments": [
{
"type": "reference",
"id": 168,
"name": "ClientOptions"
},
{
"type": "reference",
"id": 169,
"name": "Schema"
},
{
"type": "reference",
"id": 170,
"name": "Row"
},
{
"type": "reference",
"id": 171,
"name": "Result"
},
{
"type": "reference",
"id": 172,
"name": "RelationName"
},
{
"type": "reference",
"id": 173,
"name": "Relationships"
},
{
"type": "reference",
"id": 174,
"name": "Method"
}
],
"name": "default"
}
}
]
},
{
"id": 470,
"name": "explain",
"kind": 2048,
"kindString": "Method",
"flags": {},
"sources": [
{
"fileName": "src/PostgrestTransformBuilder.ts",
"line": 275,
"character": 2
}
],
"signatures": [
{
"id": 471,
"name": "explain",
"kind": 4096,
"kindString": "Call signature",
"flags": {},
"comment": {
"shortText": "Return `data` as the EXPLAIN plan for the query.",
"text": "You need to enable the\n[db_plan_enabled](https://supabase.com/docs/guides/database/debugging-performance#enabling-explain)\nsetting before using this method.\n"
},
"parameters": [
{
"id": 472,
"name": "options",
"kind": 32768,
"kindString": "Parameter",
"flags": {},
"comment": {
"shortText": "Named parameters\n"
},
"originalName": "__namedParameters",
"type": {
"type": "reflection",
"declaration": {
"id": 473,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
"flags": {},
"children": [
{
"id": 474,
"name": "analyze",
"kind": 1024,
"kindString": "Property",
"flags": {
"isOptional": true
},
"comment": {
"shortText": "If `true`, the query will be executed and the\nactual run time will be returned\n"
},
"sources": [
{
"fileName": "src/PostgrestTransformBuilder.ts",
"line": 283,
"character": 4
}
],
"type": {
"type": "intrinsic",
"name": "boolean"
}
},
{
"id": 477,
"name": "buffers",
"kind": 1024,
"kindString": "Property",
"flags": {
"isOptional": true
},
"comment": {
"shortText": "If `true`, include information on buffer usage\n"
},
"sources": [
{
"fileName": "src/PostgrestTransformBuilder.ts",
"line": 286,
"character": 4
}
],
"type": {
"type": "intrinsic",
"name": "boolean"
}
},
{
"id": 479,
"name": "format",
"kind": 1024,
"kindString": "Property",
"flags": {
"isOptional": true
},
"comment": {
"shortText": "The format of the output, can be `\"text\"` (default)\nor `\"json\"`\n"
},
"sources": [
{
"fileName": "src/PostgrestTransformBuilder.ts",
"line": 288,
"character": 4
}
],
"type": {
"type": "union",
"types": [
{
"type": "literal",
"value": "text"
},
{
"type": "literal",
"value": "json"
}
]
}
},
{
"id": 476,
"name": "settings",
"kind": 1024,
"kindString": "Property",
"flags": {
"isOptional": true
},
"comment": {
"shortText": "If `true`, include information on configuration\nparameters that affect query planning\n"
},
"sources": [
{
"fileName": "src/PostgrestTransformBuilder.ts",
"line": 285,
"character": 4
}
],
"type": {
"type": "intrinsic",
"name": "boolean"
}
},
{
"id": 475,
"name": "verbose",
"kind": 1024,
"kindString": "Property",
"flags": {
"isOptional": true
},
"comment": {
"shortText": "If `true`, the query identifier will be returned\nand `data` will include the output columns of the query\n"
},
"sources": [
{
"fileName": "src/PostgrestTransformBuilder.ts",
"line": 284,
"character": 4
}
],
"type": {
"type": "intrinsic",
"name": "boolean"
}
},
{
"id": 478,
"name": "wal",
"kind": 1024,
"kindString": "Property",
"flags": {
"isOptional": true
},
"comment": {
"shortText": "If `true`, include information on WAL record generation\n"
},
"sources": [
{
"fileName": "src/PostgrestTransformBuilder.ts",
"line": 287,
"character": 4
}
],
"type": {
"type": "intrinsic",
"name": "boolean"
}
}
],
"groups": [
{
"title": "Properties",
"kind": 1024,
"children": [474, 477, 479, 476, 475, 478]
}
]
}
},
"defaultValue": "{}"
}
],
"type": {
"type": "union",
"types": [
{
"type": "reference",
"id": 687,
"typeArguments": [
{
"type": "reference",
"id": 168,
"name": "ClientOptions"
},
{
"type": "intrinsic",
"name": "string"
},
{
"type": "literal",
"value": false
}
],
"name": "default"
},
{
"type": "reference",
"id": 687,
"typeArguments": [
{
"type": "reference",
"id": 168,
"name": "ClientOptions"
},
{
"type": "array",
"elementType": {
"type": "reference",
"typeArguments": [
{
"type": "intrinsic",
"name": "string"
},
{
"type": "intrinsic",
"name": "unknown"
}
],
"qualifiedName": "Record",
"package": "typescript",
"name": "Record"
}
},
{
"type": "literal",
"value": false
}
],
"name": "default"
}
]
},
"inheritedFrom": {
"type": "reference",
"id": 624,
"name": "default.explain"
}
}
],
"inheritedFrom": {
"type": "reference",
"id": 623,
"name": "default.explain"
}
},
{
"id": 396,
"name": "filter",
"kind": 2048,
"kindString": "Method",
"flags": {},
"sources": [
{
"fileName": "src/PostgrestFilterBuilder.ts",
"line": 581,
"character": 2
}
],
"signatures": [
{
"id": 397,
"name": "filter",
"kind": 4096,
"kindString": "Call signature",
"flags": {},
"comment": {
"shortText": "Match only rows which satisfy the filter. This is an escape hatch - you\nshould use the specific filter methods wherever possible.",
"text": "Unlike most filters, `opearator` and `value` are used as-is and need to\nfollow [PostgREST\nsyntax](https://postgrest.org/en/stable/api.html#operators). You also need\nto make sure they are properly sanitized.\n"
},
"typeParameter": [
{
"id": 398,
"name": "ColumnName",
"kind": 131072,
"kindString": "Type parameter",
"flags": {},
"type": {
"type": "intrinsic",
"name": "string"
}
}
],
"parameters": [
{
"id": 399,
"name": "column",
"kind": 32768,
"kindString": "Parameter",
"flags": {},
"comment": {
"shortText": "The column to filter on"
},
"type": {
"type": "reference",
"id": 398,
"name": "ColumnName"
}
},
{
"id": 400,
"name": "operator",
"kind": 32768,
"kindString": "Parameter",
"flags": {},
"comment": {
"shortText": "The operator to filter with, following PostgREST syntax"
},
"type": {
"type": "union",
"types": [
{
"type": "reference",
"name": "FilterOperator"
},
{
"type": "literal",
"value": "not.eq"
},
{
"type": "literal",
"value": "not.neq"
},
{
"type": "literal",
"value": "not.gt"
},
{
"type": "literal",
"value": "not.gte"
},
{
"type": "literal",
"value": "not.lt"
},
{
"type": "literal",
"value": "not.lte"
},
{
"type": "literal",
"value": "not.like"
},
{
"type": "literal",
"value": "not.ilike"
},
{
"type": "literal",
"value": "not.is"
},
{
"type": "literal",
"value": "not.in"
},
{
"type": "literal",
"value": "not.cs"
},
{
"type": "literal",
"value": "not.cd"
},
{
"type": "literal",
"value": "not.sl"
},
{
"type": "literal",
"value": "not.sr"
},
{
"type": "literal",
"value": "not.nxl"
},
{
"type": "literal",
"value": "not.nxr"
},
{
"type": "literal",
"value": "not.adj"
},
{
"type": "literal",
"value": "not.ov"
},
{
"type": "literal",
"value": "not.fts"
},
{
"type": "literal",
"value": "not.plfts"
},
{
"type": "literal",
"value": "not.phfts"
},
{
"type": "literal",
"value": "not.wfts"
}
]
}
},
{
"id": 401,
"name": "value",
"kind": 32768,
"kindString": "Parameter",
"flags": {},
"comment": {
"shortText": "The value to filter with, following PostgREST syntax\n"
},
"type": {
"type": "intrinsic",
"name": "unknown"
}
}
],
"type": {
"type": "reference",
"id": 165,
"typeArguments": [
{
"type": "reference",
"id": 168,
"name": "ClientOptions"
},
{
"type": "reference",
"id": 169,
"name": "Schema"
},
{
"type": "reference",
"id": 170,
"name": "Row"
},
{
"type": "reference",
"id": 171,
"name": "Result"
},
{
"type": "reference",
"id": 172,
"name": "RelationName"
},
{
"type": "reference",
"id": 173,
"name": "Relationships"
},
{
"type": "reference",
"id": 174,
"name": "Method"
}
],
"name": "default"
}
},
{
"id": 402,
"name": "filter",
"kind": 4096,
"kindString": "Call signature",
"flags": {},
"comment": {
"shortText": "Match only rows which satisfy the filter. This is an escape hatch - you\nshould use the specific filter methods wherever possible.",
"text": "Unlike most filters, `opearator` and `value` are used as-is and need to\nfollow [PostgREST\nsyntax](https://postgrest.org/en/stable/api.html#operators). You also need\nto make sure they are properly sanitized.\n"
},
"parameters": [
{
"id": 403,
"name": "column",
"kind": 32768,
"kindString": "Parameter",
"flags": {},
"comment": {
"shortText": "The column to filter on"
},
"type": {
"type": "intrinsic",
"name": "string"
}
},
{
"id": 404,
"name": "operator",
"kind": 32768,
"kindString": "Parameter",
"flags": {},
"comment": {
"shortText": "The operator to filter with, following PostgREST syntax"
},
"type": {
"type": "intrinsic",
"name": "string"
}
},
{
"id": 405,
"name": "value",
"kind": 32768,
"kindString": "Parameter",
"flags": {},
"comment": {
"shortText": "The value to filter with, following PostgREST syntax\n"
},
"type": {
"type": "intrinsic",
"name": "unknown"
}
}
],
"type": {
"type": "reference",
"id": 165,
"typeArguments": [
{
"type": "reference",
"id": 168,
"name": "ClientOptions"
},
{
"type": "reference",
"id": 169,
"name": "Schema"
},
{
"type": "reference",
"id": 170,
"name": "Row"
},
{
"type": "reference",
"id": 171,
"name": "Result"
},
{
"type": "reference",
"id": 172,
"name": "RelationName"
},
{
"type": "reference",
"id": 173,
"name": "Relationships"
},
{
"type": "reference",
"id": 174,
"name": "Method"
}
],
"name": "default"
}
}
]
},
{
"id": 468,
"name": "geojson",
"kind": 2048,
"kindString": "Method",
"flags": {},
"sources": [
{
"fileName": "src/PostgrestTransformBuilder.ts",
"line": 245,
"character": 2
}
],
"signatures": [
{
"id": 469,
"name": "geojson",
"kind": 4096,
"kindString": "Call signature",
"flags": {},
"comment": {
"shortText": "Return `data` as an object in [GeoJSON](https://geojson.org) format."
},
"type": {
"type": "reference",
"id": 687,
"typeArguments": [
{
"type": "reference",
"id": 168,
"name": "ClientOptions"
},
{
"type": "reference",
"typeArguments": [
{
"type": "intrinsic",
"name": "string"
},
{
"type": "intrinsic",
"name": "unknown"
}
],
"qualifiedName": "Record",
"package": "typescript",
"name": "Record"
},
{
"type": "literal",
"value": false
}
],
"name": "default"
},
"inheritedFrom": {
"type": "reference",
"id": 622,
"name": "default.geojson"
}
}
],
"inheritedFrom": {
"type": "reference",
"id": 621,
"name": "default.geojson"
}
},
{
"id": 200,
"name": "gt",
"kind": 2048,
"kindString": "Method",
"flags": {},
"sources": [
{
"fileName": "src/PostgrestFilterBuilder.ts",
"line": 132,
"character": 2
}
],
"signatures": [
{
"id": 201,
"name": "gt",
"kind": 4096,
"kindString": "Call signature",
"flags": {},
"comment": {
"shortText": "Match only rows where `column` is greater than `value`."
},
"typeParameter": [
{
"id": 202,
"name": "ColumnName",
"kind": 131072,
"kindString": "Type parameter",
"flags": {},
"type": {
"type": "intrinsic",
"name": "string"
}
}
],
"parameters": [
{
"id": 203,
"name": "column",
"kind": 32768,
"kindString": "Parameter",
"flags": {},
"comment": {
"shortText": "The column to filter on"
},
"type": {
"type": "reference",
"id": 202,
"name": "ColumnName"
}
},
{
"id": 204,
"name": "value",
"kind": 32768,
"kindString": "Parameter",
"flags": {},
"comment": {
"shortText": "The value to filter with\n"
},
"type": {
"type": "indexedAccess",
"indexType": {
"type": "reference",
"id": 202,
"name": "ColumnName"
},
"objectType": {
"type": "reference",
"id": 170,
"name": "Row"
}
}
}
],
"type": {
"type": "reference",
"id": 165,
"typeArguments": [
{
"type": "reference",
"id": 168,
"name": "ClientOptions"
},
{
"type": "reference",
"id": 169,
"name": "Schema"
},
{
"type": "reference",
"id": 170,
"name": "Row"
},
{
"type": "reference",
"id": 171,
"name": "Result"
},
{
"type": "reference",
"id": 172,
"name": "RelationName"
},
{
"type": "reference",
"id": 173,
"name": "Relationships"
},
{
"type": "reference",
"id": 174,
"name": "Method"
}
],
"name": "default"
}
},
{
"id": 205,
"name": "gt",
"kind": 4096,
"kindString": "Call signature",
"flags": {},
"comment": {
"shortText": "Match only rows where `column` is greater than `value`."
},
"parameters": [
{
"id": 206,
"name": "column",
"kind": 32768,
"kindString": "Parameter",
"flags": {},
"comment": {
"shortText": "The column to filter on"
},
"type": {
"type": "intrinsic",
"name": "string"
}
},
{
"id": 207,
"name": "value",
"kind": 32768,
"kindString": "Parameter",
"flags": {},
"comment": {
"shortText": "The value to filter with\n"
},
"type": {
"type": "intrinsic",
"name": "unknown"
}
}
],
"type": {
"type": "reference",
"id": 165,
"typeArguments": [
{
"type": "reference",
"id": 168,
"name": "ClientOptions"
},
{
"type": "reference",
"id": 169,
"name": "Schema"
},
{
"type": "reference",
"id": 170,
"name": "Row"
},
{
"type": "reference",
"id": 171,
"name": "Result"
},
{
"type": "reference",
"id": 172,
"name": "RelationName"
},
{
"type": "reference",
"id": 173,
"name": "Relationships"
},
{
"type": "reference",
"id": 174,
"name": "Method"
}
],
"name": "default"
}
}
]
},
{
"id": 208,
"name": "gte",
"kind": 2048,
"kindString": "Method",
"flags": {},
"sources": [
{
"fileName": "src/PostgrestFilterBuilder.ts",
"line": 145,
"character": 2
}
],
"signatures": [
{
"id": 209,
"name": "gte",
"kind": 4096,
"kindString": "Call signature",
"flags": {},
"comment": {
"shortText": "Match only rows where `column` is greater than or equal to `value`."
},
"typeParameter": [
{
"id": 210,
"name": "ColumnName",
"kind": 131072,
"kindString": "Type parameter",
"flags": {},
"type": {
"type": "intrinsic",
"name": "string"
}
}
],
"parameters": [
{
"id": 211,
"name": "column",
"kind": 32768,
"kindString": "Parameter",
"flags": {},
"comment": {
"shortText": "The column to filter on"
},
"type": {
"type": "reference",
"id": 210,
"name": "ColumnName"
}
},
{
"id": 212,
"name": "value",
"kind": 32768,
"kindString": "Parameter",
"flags": {},
"comment": {
"shortText": "The value to filter with\n"
},
"type": {
"type": "indexedAccess",
"indexType": {
"type": "reference",
"id": 210,
"name": "ColumnName"
},
"objectType": {
"type": "reference",
"id": 170,
"name": "Row"
}
}
}
],
"type": {
"type": "reference",
"id": 165,
"typeArguments": [
{
"type": "reference",
"id": 168,
"name": "ClientOptions"
},
{
"type": "reference",
"id": 169,
"name": "Schema"
},
{
"type": "reference",
"id": 170,
"name": "Row"
},
{
"type": "reference",
"id": 171,
"name": "Result"
},
{
"type": "reference",
"id": 172,
"name": "RelationName"
},
{
"type": "reference",
"id": 173,
"name": "Relationships"
},
{
"type": "reference",
"id": 174,
"name": "Method"
}
],
"name": "default"
}
},
{
"id": 213,
"name": "gte",
"kind": 4096,
"kindString": "Call signature",
"flags": {},
"comment": {
"shortText": "Match only rows where `column` is greater than or equal to `value`."
},
"parameters": [
{
"id": 214,
"name": "column",
"kind": 32768,
"kindString": "Parameter",
"flags": {},
"comment": {
"shortText": "The column to filter on"
},
"type": {
"type": "intrinsic",
"name": "string"
}
},
{
"id": 215,
"name": "value",
"kind": 32768,
"kindString": "Parameter",
"flags": {},
"comment": {
"shortText": "The value to filter with\n"
},
"type": {
"type": "intrinsic",
"name": "unknown"
}
}
],
"type": {
"type": "reference",
"id": 165,
"typeArguments": [
{
"type": "reference",
"id": 168,
"name": "ClientOptions"
},
{
"type": "reference",
"id": 169,
"name": "Schema"
},
{
"type": "reference",
"id": 170,
"name": "Row"
},
{
"type": "reference",
"id": 171,
"name": "Result"
},
{
"type": "reference",
"id": 172,
"name": "RelationName"
},
{
"type": "reference",
"id": 173,
"name": "Relationships"
},
{
"type": "reference",
"id": 174,
"name": "Method"
}
],
"name": "default"
}
}
]
},
{
"id": 256,
"name": "ilike",
"kind": 2048,
"kindString": "Method",
"flags": {},
"sources": [
{
"fileName": "src/PostgrestFilterBuilder.ts",
"line": 229,
"character": 2
}
],
"signatures": [
{
"id": 257,
"name": "ilike",
"kind": 4096,
"kindString": "Call signature",
"flags": {},
"comment": {
"shortText": "Match only rows where `column` matches `pattern` case-insensitively."
},
"typeParameter": [
{
"id": 258,
"name": "ColumnName",
"kind": 131072,
"kindString": "Type parameter",
"flags": {},
"type": {
"type": "intrinsic",
"name": "string"
}
}
],
"parameters": [
{
"id": 259,
"name": "column",
"kind": 32768,
"kindString": "Parameter",
"flags": {},
"comment": {
"shortText": "The column to filter on"
},
"type": {
"type": "reference",
"id": 258,
"name": "ColumnName"
}
},
{
"id": 260,
"name": "pattern",
"kind": 32768,
"kindString": "Parameter",
"flags": {},
"comment": {
"shortText": "The pattern to match with\n"
},
"type": {
"type": "intrinsic",
"name": "string"
}
}
],
"type": {
"type": "reference",
"id": 165,
"typeArguments": [
{
"type": "reference",
"id": 168,
"name": "ClientOptions"
},
{
"type": "reference",
"id": 169,
"name": "Schema"
},
{
"type": "reference",
"id": 170,
"name": "Row"
},
{
"type": "reference",
"id": 171,
"name": "Result"
},
{
"type": "reference",
"id": 172,
"name": "RelationName"
},
{
"type": "reference",
"id": 173,
"name": "Relationships"
},
{
"type": "reference",
"id": 174,
"name": "Method"
}
],
"name": "default"
}
},
{
"id": 261,
"name": "ilike",
"kind": 4096,
"kindString": "Call signature",
"flags": {},
"comment": {
"shortText": "Match only rows where `column` matches `pattern` case-insensitively."
},
"parameters": [
{
"id": 262,
"name": "column",
"kind": 32768,
"kindString": "Parameter",
"flags": {},
"comment": {
"shortText": "The column to filter on"
},
"type": {
"type": "intrinsic",
"name": "string"
}
},
{
"id": 263,
"name": "pattern",
"kind": 32768,
"kindString": "Parameter",
"flags": {},
"comment": {
"shortText": "The pattern to match with\n"
},
"type": {
"type": "intrinsic",
"name": "string"
}
}
],
"type": {
"type": "reference",
"id": 165,
"typeArguments": [
{
"type": "reference",
"id": 168,
"name": "ClientOptions"
},
{
"type": "reference",
"id": 169,
"name": "Schema"
},
{
"type": "reference",
"id": 170,
"name": "Row"
},
{
"type": "reference",
"id": 171,
"name": "Result"
},
{
"type": "reference",
"id": 172,
"name": "RelationName"
},
{
"type": "reference",
"id": 173,
"name": "Relationships"
},
{
"type": "reference",
"id": 174,
"name": "Method"
}
],
"name": "default"
}
}
]
},
{
"id": 264,
"name": "ilikeAllOf",
"kind": 2048,
"kindString": "Method",
"flags": {},
"sources": [
{
"fileName": "src/PostgrestFilterBuilder.ts",
"line": 242,
"character": 2
}
],
"signatures": [
{
"id": 265,
"name": "ilikeAllOf",
"kind": 4096,
"kindString": "Call signature",
"flags": {},
"comment": {
"shortText": "Match only rows where `column` matches all of `patterns` case-insensitively."
},
"typeParameter": [
{
"id": 266,
"name": "ColumnName",
"kind": 131072,
"kindString": "Type parameter",
"flags": {},
"type": {
"type": "intrinsic",
"name": "string"
}
}
],
"parameters": [
{
"id": 267,
"name": "column",
"kind": 32768,
"kindString": "Parameter",
"flags": {},
"comment": {
"shortText": "The column to filter on"
},
"type": {
"type": "reference",
"id": 266,
"name": "ColumnName"
}
},
{
"id": 268,
"name": "patterns",
"kind": 32768,
"kindString": "Parameter",
"flags": {},
"comment": {
"shortText": "The patterns to match with\n"
},
"type": {
"type": "typeOperator",
"operator": "readonly",
"target": {
"type": "array",
"elementType": {
"type": "intrinsic",
"name": "string"
}
}
}
}
],
"type": {
"type": "reference",
"id": 165,
"typeArguments": [
{
"type": "reference",
"id": 168,
"name": "ClientOptions"
},
{
"type": "reference",
"id": 169,
"name": "Schema"
},
{
"type": "reference",
"id": 170,
"name": "Row"
},
{
"type": "reference",
"id": 171,
"name": "Result"
},
{
"type": "reference",
"id": 172,
"name": "RelationName"
},
{
"type": "reference",
"id": 173,
"name": "Relationships"
},
{
"type": "reference",
"id": 174,
"name": "Method"
}
],
"name": "default"
}
},
{
"id": 269,
"name": "ilikeAllOf",
"kind": 4096,
"kindString": "Call signature",
"flags": {},
"comment": {
"shortText": "Match only rows where `column` matches all of `patterns` case-insensitively."
},
"parameters": [
{
"id": 270,
"name": "column",
"kind": 32768,
"kindString": "Parameter",
"flags": {},
"comment": {
"shortText": "The column to filter on"
},
"type": {
"type": "intrinsic",
"name": "string"
}
},
{
"id": 271,
"name": "patterns",
"kind": 32768,
"kindString": "Parameter",
"flags": {},
"comment": {
"shortText": "The patterns to match with\n"
},
"type": {
"type": "typeOperator",
"operator": "readonly",
"target": {
"type": "array",
"elementType": {
"type": "intrinsic",
"name": "string"
}
}
}
}
],
"type": {
"type": "reference",
"id": 165,
"typeArguments": [
{
"type": "reference",
"id": 168,
"name": "ClientOptions"
},
{
"type": "reference",
"id": 169,
"name": "Schema"
},
{
"type": "reference",
"id": 170,
"name": "Row"
},
{
"type": "reference",
"id": 171,
"name": "Result"
},
{
"type": "reference",
"id": 172,
"name": "RelationName"
},
{
"type": "reference",
"id": 173,
"name": "Relationships"
},
{
"type": "reference",
"id": 174,
"name": "Method"
}
],
"name": "default"
}
}
]
},
{
"id": 272,
"name": "ilikeAnyOf",
"kind": 2048,
"kindString": "Method",
"flags": {},
"sources": [
{
"fileName": "src/PostgrestFilterBuilder.ts",
"line": 258,
"character": 2
}
],
"signatures": [
{
"id": 273,
"name": "ilikeAnyOf",
"kind": 4096,
"kindString": "Call signature",
"flags": {},
"comment": {
"shortText": "Match only rows where `column` matches any of `patterns` case-insensitively."
},
"typeParameter": [
{
"id": 274,
"name": "ColumnName",
"kind": 131072,
"kindString": "Type parameter",
"flags": {},
"type": {
"type": "intrinsic",
"name": "string"
}
}
],
"parameters": [
{
"id": 275,
"name": "column",
"kind": 32768,
"kindString": "Parameter",
"flags": {},
"comment": {
"shortText": "The column to filter on"
},
"type": {
"type": "reference",
"id": 274,
"name": "ColumnName"
}
},
{
"id": 276,
"name": "patterns",
"kind": 32768,
"kindString": "Parameter",
"flags": {},
"comment": {
"shortText": "The patterns to match with\n"
},
"type": {
"type": "typeOperator",
"operator": "readonly",
"target": {
"type": "array",
"elementType": {
"type": "intrinsic",
"name": "string"
}
}
}
}
],
"type": {
"type": "reference",
"id": 165,
"typeArguments": [
{
"type": "reference",
"id": 168,
"name": "ClientOptions"
},
{
"type": "reference",
"id": 169,
"name": "Schema"
},
{
"type": "reference",
"id": 170,
"name": "Row"
},
{
"type": "reference",
"id": 171,
"name": "Result"
},
{
"type": "reference",
"id": 172,
"name": "RelationName"
},
{
"type": "reference",
"id": 173,
"name": "Relationships"
},
{
"type": "reference",
"id": 174,
"name": "Method"
}
],
"name": "default"
}
},
{
"id": 277,
"name": "ilikeAnyOf",
"kind": 4096,
"kindString": "Call signature",
"flags": {},
"comment": {
"shortText": "Match only rows where `column` matches any of `patterns` case-insensitively."
},
"parameters": [
{
"id": 278,
"name": "column",
"kind": 32768,
"kindString": "Parameter",
"flags": {},
"comment": {
"shortText": "The column to filter on"
},
"type": {
"type": "intrinsic",
"name": "string"
}
},
{
"id": 279,
"name": "patterns",
"kind": 32768,
"kindString": "Parameter",
"flags": {},
"comment": {
"shortText": "The patterns to match with\n"
},
"type": {
"type": "typeOperator",
"operator": "readonly",
"target": {
"type": "array",
"elementType": {
"type": "intrinsic",
"name": "string"
}
}
}
}
],
"type": {
"type": "reference",
"id": 165,
"typeArguments": [
{
"type": "reference",
"id": 168,
"name": "ClientOptions"
},
{
"type": "reference",
"id": 169,
"name": "Schema"
},
{
"type": "reference",
"id": 170,
"name": "Row"
},
{
"type": "reference",
"id": 171,
"name": "Result"
},
{
"type": "reference",
"id": 172,
"name": "RelationName"
},
{
"type": "reference",
"id": 173,
"name": "Relationships"
},
{
"type": "reference",
"id": 174,
"name": "Method"
}
],
"name": "default"
}
}
]
},
{
"id": 288,
"name": "in",
"kind": 2048,
"kindString": "Method",
"flags": {},
"sources": [
{
"fileName": "src/PostgrestFilterBuilder.ts",
"line": 302,
"character": 2
}
],
"signatures": [
{
"id": 289,
"name": "in",
"kind": 4096,
"kindString": "Call signature",
"flags": {},
"comment": {
"shortText": "Match only rows where `column` is included in the `values` array."
},
"typeParameter": [
{
"id": 290,
"name": "ColumnName",
"kind": 131072,
"kindString": "Type parameter",
"flags": {},
"type": {
"type": "intrinsic",
"name": "string"
}
}
],
"parameters": [
{
"id": 291,
"name": "column",
"kind": 32768,
"kindString": "Parameter",
"flags": {},
"comment": {
"shortText": "The column to filter on"
},
"type": {
"type": "reference",
"id": 290,
"name": "ColumnName"
}
},
{
"id": 292,
"name": "values",
"kind": 32768,
"kindString": "Parameter",
"flags": {},
"comment": {
"shortText": "The values array to filter with\n"
},
"type": {
"type": "typeOperator",
"operator": "readonly",
"target": {
"type": "array",
"elementType": {
"type": "conditional",
"checkType": {
"type": "reference",
"typeArguments": [
{
"type": "reference",
"id": 169,
"name": "Schema"
},
{
"type": "reference",
"id": 170,
"name": "Row"
},
{
"type": "reference",
"id": 290,
"name": "ColumnName"
}
],
"name": "ResolveFilterValue"
},
"extendsType": {
"type": "intrinsic",
"name": "never"
},
"trueType": {
"type": "intrinsic",
"name": "unknown"
},
"falseType": {
"type": "conditional",
"checkType": {
"type": "reference",
"typeArguments": [
{
"type": "reference",
"id": 169,
"name": "Schema"
},
{
"type": "reference",
"id": 170,
"name": "Row"
},
{
"type": "reference",
"id": 290,
"name": "ColumnName"
}
],
"name": "ResolveFilterValue"
},
"extendsType": {
"type": "reference",
"name": "ResolvedFilterValue"
},
"trueType": {
"type": "reference",
"name": "ResolvedFilterValue"
},
"falseType": {
"type": "intrinsic",
"name": "never"
}
}
}
}
}
}
],
"type": {
"type": "reference",
"id": 165,
"typeArguments": [
{
"type": "reference",
"id": 168,
"name": "ClientOptions"
},
{
"type": "reference",
"id": 169,
"name": "Schema"
},
{
"type": "reference",
"id": 170,
"name": "Row"
},
{
"type": "reference",
"id": 171,
"name": "Result"
},
{
"type": "reference",
"id": 172,
"name": "RelationName"
},
{
"type": "reference",
"id": 173,
"name": "Relationships"
},
{
"type": "reference",
"id": 174,
"name": "Method"
}
],
"name": "default"
}
}
]
},
{
"id": 280,
"name": "is",
"kind": 2048,
"kindString": "Method",
"flags": {},
"sources": [
{
"fileName": "src/PostgrestFilterBuilder.ts",
"line": 274,
"character": 2
}
],
"signatures": [
{
"id": 281,
"name": "is",
"kind": 4096,
"kindString": "Call signature",
"flags": {},
"comment": {
"shortText": "Match only rows where `column` IS `value`.",
"text": "For non-boolean columns, this is only relevant for checking if the value of\n`column` is NULL by setting `value` to `null`.\n\nFor boolean columns, you can also set `value` to `true` or `false` and it\nwill behave the same way as `.eq()`.\n"
},
"typeParameter": [
{
"id": 282,
"name": "ColumnName",
"kind": 131072,
"kindString": "Type parameter",
"flags": {},
"type": {
"type": "intrinsic",
"name": "string"
}
}
],
"parameters": [
{
"id": 283,
"name": "column",
"kind": 32768,
"kindString": "Parameter",
"flags": {},
"comment": {
"shortText": "The column to filter on"
},
"type": {
"type": "reference",
"id": 282,
"name": "ColumnName"
}
},
{
"id": 284,
"name": "value",
"kind": 32768,
"kindString": "Parameter",
"flags": {},
"comment": {
"shortText": "The value to filter with\n"
},
"type": {
"type": "intersection",
"types": [
{
"type": "intersection",
"types": [
{
"type": "indexedAccess",
"indexType": {
"type": "reference",
"id": 282,
"name": "ColumnName"
},
"objectType": {
"type": "reference",
"id": 170,
"name": "Row"
}
},
{
"type": "literal",
"value": null
}
]
},
{
"type": "intersection",
"types": [
{
"type": "indexedAccess",
"indexType": {
"type": "reference",
"id": 282,
"name": "ColumnName"
},
"objectType": {
"type": "reference",
"id": 170,
"name": "Row"
}
},
{
"type": "literal",
"value": false
}
]
},
{
"type": "intersection",
"types": [
{
"type": "indexedAccess",
"indexType": {
"type": "reference",
"id": 282,
"name": "ColumnName"
},
"objectType": {
"type": "reference",
"id": 170,
"name": "Row"
}
},
{
"type": "literal",
"value": true
}
]
}
]
}
}
],
"type": {
"type": "reference",
"id": 165,
"typeArguments": [
{
"type": "reference",
"id": 168,
"name": "ClientOptions"
},
{
"type": "reference",
"id": 169,
"name": "Schema"
},
{
"type": "reference",
"id": 170,
"name": "Row"
},
{
"type": "reference",
"id": 171,
"name": "Result"
},
{
"type": "reference",
"id": 172,
"name": "RelationName"
},
{
"type": "reference",
"id": 173,
"name": "Relationships"
},
{
"type": "reference",
"id": 174,
"name": "Method"
}
],
"name": "default"
}
},
{
"id": 285,
"name": "is",
"kind": 4096,
"kindString": "Call signature",
"flags": {},
"comment": {
"shortText": "Match only rows where `column` IS `value`.",
"text": "For non-boolean columns, this is only relevant for checking if the value of\n`column` is NULL by setting `value` to `null`.\n\nFor boolean columns, you can also set `value` to `true` or `false` and it\nwill behave the same way as `.eq()`.\n"
},
"parameters": [
{
"id": 286,
"name": "column",
"kind": 32768,
"kindString": "Parameter",
"flags": {},
"comment": {
"shortText": "The column to filter on"
},
"type": {
"type": "intrinsic",
"name": "string"
}
},
{
"id": 287,
"name": "value",
"kind": 32768,
"kindString": "Parameter",
"flags": {},
"comment": {
"shortText": "The value to filter with\n"
},
"type": {
"type": "union",
"types": [
{
"type": "literal",
"value": null
},
{
"type": "intrinsic",
"name": "boolean"
}
]
}
}
],
"type": {
"type": "reference",
"id": 165,
"typeArguments": [
{
"type": "reference",
"id": 168,
"name": "ClientOptions"
},
{
"type": "reference",
"id": 169,
"name": "Schema"
},
{
"type": "reference",
"id": 170,
"name": "Row"
},
{
"type": "reference",
"id": 171,
"name": "Result"
},
{
"type": "reference",
"id": 172,
"name": "RelationName"
},
{
"type": "reference",
"id": 173,
"name": "Relationships"
},
{
"type": "reference",
"id": 174,
"name": "Method"
}
],
"name": "default"
}
}
]
},
{
"id": 232,
"name": "like",
"kind": 2048,
"kindString": "Method",
"flags": {},
"sources": [
{
"fileName": "src/PostgrestFilterBuilder.ts",
"line": 184,
"character": 2
}
],
"signatures": [
{
"id": 233,
"name": "like",
"kind": 4096,
"kindString": "Call signature",
"flags": {},
"comment": {
"shortText": "Match only rows where `column` matches `pattern` case-sensitively."
},
"typeParameter": [
{
"id": 234,
"name": "ColumnName",
"kind": 131072,
"kindString": "Type parameter",
"flags": {},
"type": {
"type": "intrinsic",
"name": "string"
}
}
],
"parameters": [
{
"id": 235,
"name": "column",
"kind": 32768,
"kindString": "Parameter",
"flags": {},
"comment": {
"shortText": "The column to filter on"
},
"type": {
"type": "reference",
"id": 234,
"name": "ColumnName"
}
},
{
"id": 236,
"name": "pattern",
"kind": 32768,
"kindString": "Parameter",
"flags": {},
"comment": {
"shortText": "The pattern to match with\n"
},
"type": {
"type": "intrinsic",
"name": "string"
}
}
],
"type": {
"type": "reference",
"id": 165,
"typeArguments": [
{
"type": "reference",
"id": 168,
"name": "ClientOptions"
},
{
"type": "reference",
"id": 169,
"name": "Schema"
},
{
"type": "reference",
"id": 170,
"name": "Row"
},
{
"type": "reference",
"id": 171,
"name": "Result"
},
{
"type": "reference",
"id": 172,
"name": "RelationName"
},
{
"type": "reference",
"id": 173,
"name": "Relationships"
},
{
"type": "reference",
"id": 174,
"name": "Method"
}
],
"name": "default"
}
},
{
"id": 237,
"name": "like",
"kind": 4096,
"kindString": "Call signature",
"flags": {},
"comment": {
"shortText": "Match only rows where `column` matches `pattern` case-sensitively."
},
"parameters": [
{
"id": 238,
"name": "column",
"kind": 32768,
"kindString": "Parameter",
"flags": {},
"comment": {
"shortText": "The column to filter on"
},
"type": {
"type": "intrinsic",
"name": "string"
}
},
{
"id": 239,
"name": "pattern",
"kind": 32768,
"kindString": "Parameter",
"flags": {},
"comment": {
"shortText": "The pattern to match with\n"
},
"type": {
"type": "intrinsic",
"name": "string"
}
}
],
"type": {
"type": "reference",
"id": 165,
"typeArguments": [
{
"type": "reference",
"id": 168,
"name": "ClientOptions"
},
{
"type": "reference",
"id": 169,
"name": "Schema"
},
{
"type": "reference",
"id": 170,
"name": "Row"
},
{
"type": "reference",
"id": 171,
"name": "Result"
},
{
"type": "reference",
"id": 172,
"name": "RelationName"
},
{
"type": "reference",
"id": 173,
"name": "Relationships"
},
{
"type": "reference",
"id": 174,
"name": "Method"
}
],
"name": "default"
}
}
]
},
{
"id": 240,
"name": "likeAllOf",
"kind": 2048,
"kindString": "Method",
"flags": {},
"sources": [
{
"fileName": "src/PostgrestFilterBuilder.ts",
"line": 197,
"character": 2
}
],
"signatures": [
{
"id": 241,
"name": "likeAllOf",
"kind": 4096,
"kindString": "Call signature",
"flags": {},
"comment": {
"shortText": "Match only rows where `column` matches all of `patterns` case-sensitively."
},
"typeParameter": [
{
"id": 242,
"name": "ColumnName",
"kind": 131072,
"kindString": "Type parameter",
"flags": {},
"type": {
"type": "intrinsic",
"name": "string"
}
}
],
"parameters": [
{
"id": 243,
"name": "column",
"kind": 32768,
"kindString": "Parameter",
"flags": {},
"comment": {
"shortText": "The column to filter on"
},
"type": {
"type": "reference",
"id": 242,
"name": "ColumnName"
}
},
{
"id": 244,
"name": "patterns",
"kind": 32768,
"kindString": "Parameter",
"flags": {},
"comment": {
"shortText": "The patterns to match with\n"
},
"type": {
"type": "typeOperator",
"operator": "readonly",
"target": {
"type": "array",
"elementType": {
"type": "intrinsic",
"name": "string"
}
}
}
}
],
"type": {
"type": "reference",
"id": 165,
"typeArguments": [
{
"type": "reference",
"id": 168,
"name": "ClientOptions"
},
{
"type": "reference",
"id": 169,
"name": "Schema"
},
{
"type": "reference",
"id": 170,
"name": "Row"
},
{
"type": "reference",
"id": 171,
"name": "Result"
},
{
"type": "reference",
"id": 172,
"name": "RelationName"
},
{
"type": "reference",
"id": 173,
"name": "Relationships"
},
{
"type": "reference",
"id": 174,
"name": "Method"
}
],
"name": "default"
}
},
{
"id": 245,
"name": "likeAllOf",
"kind": 4096,
"kindString": "Call signature",
"flags": {},
"comment": {
"shortText": "Match only rows where `column` matches all of `patterns` case-sensitively."
},
"parameters": [
{
"id": 246,
"name": "column",
"kind": 32768,
"kindString": "Parameter",
"flags": {},
"comment": {
"shortText": "The column to filter on"
},
"type": {
"type": "intrinsic",
"name": "string"
}
},
{
"id": 247,
"name": "patterns",
"kind": 32768,
"kindString": "Parameter",
"flags": {},
"comment": {
"shortText": "The patterns to match with\n"
},
"type": {
"type": "typeOperator",
"operator": "readonly",
"target": {
"type": "array",
"elementType": {
"type": "intrinsic",
"name": "string"
}
}
}
}
],
"type": {
"type": "reference",
"id": 165,
"typeArguments": [
{
"type": "reference",
"id": 168,
"name": "ClientOptions"
},
{
"type": "reference",
"id": 169,
"name": "Schema"
},
{
"type": "reference",
"id": 170,
"name": "Row"
},
{
"type": "reference",
"id": 171,
"name": "Result"
},
{
"type": "reference",
"id": 172,
"name": "RelationName"
},
{
"type": "reference",
"id": 173,
"name": "Relationships"
},
{
"type": "reference",
"id": 174,
"name": "Method"
}
],
"name": "default"
}
}
]
},
{
"id": 248,
"name": "likeAnyOf",
"kind": 2048,
"kindString": "Method",
"flags": {},
"sources": [
{
"fileName": "src/PostgrestFilterBuilder.ts",
"line": 213,
"character": 2
}
],
"signatures": [
{
"id": 249,
"name": "likeAnyOf",
"kind": 4096,
"kindString": "Call signature",
"flags": {},
"comment": {
"shortText": "Match only rows where `column` matches any of `patterns` case-sensitively."
},
"typeParameter": [
{
"id": 250,
"name": "ColumnName",
"kind": 131072,
"kindString": "Type parameter",
"flags": {},
"type": {
"type": "intrinsic",
"name": "string"
}
}
],
"parameters": [
{
"id": 251,
"name": "column",
"kind": 32768,
"kindString": "Parameter",
"flags": {},
"comment": {
"shortText": "The column to filter on"
},
"type": {
"type": "reference",
"id": 250,
"name": "ColumnName"
}
},
{
"id": 252,
"name": "patterns",
"kind": 32768,
"kindString": "Parameter",
"flags": {},
"comment": {
"shortText": "The patterns to match with\n"
},
"type": {
"type": "typeOperator",
"operator": "readonly",
"target": {
"type": "array",
"elementType": {
"type": "intrinsic",
"name": "string"
}
}
}
}
],
"type": {
"type": "reference",
"id": 165,
"typeArguments": [
{
"type": "reference",
"id": 168,
"name": "ClientOptions"
},
{
"type": "reference",
"id": 169,
"name": "Schema"
},
{
"type": "reference",
"id": 170,
"name": "Row"
},
{
"type": "reference",
"id": 171,
"name": "Result"
},
{
"type": "reference",
"id": 172,
"name": "RelationName"
},
{
"type": "reference",
"id": 173,
"name": "Relationships"
},
{
"type": "reference",
"id": 174,
"name": "Method"
}
],
"name": "default"
}
},
{
"id": 253,
"name": "likeAnyOf",
"kind": 4096,
"kindString": "Call signature",
"flags": {},
"comment": {
"shortText": "Match only rows where `column` matches any of `patterns` case-sensitively."
},
"parameters": [
{
"id": 254,
"name": "column",
"kind": 32768,
"kindString": "Parameter",
"flags": {},
"comment": {
"shortText": "The column to filter on"
},
"type": {
"type": "intrinsic",
"name": "string"
}
},
{
"id": 255,
"name": "patterns",
"kind": 32768,
"kindString": "Parameter",
"flags": {},
"comment": {
"shortText": "The patterns to match with\n"
},
"type": {
"type": "typeOperator",
"operator": "readonly",
"target": {
"type": "array",
"elementType": {
"type": "intrinsic",
"name": "string"
}
}
}
}
],
"type": {
"type": "reference",
"id": 165,
"typeArguments": [
{
"type": "reference",
"id": 168,
"name": "ClientOptions"
},
{
"type": "reference",
"id": 169,
"name": "Schema"
},
{
"type": "reference",
"id": 170,
"name": "Row"
},
{
"type": "reference",
"id": 171,
"name": "Result"
},
{
"type": "reference",
"id": 172,
"name": "RelationName"
},
{
"type": "reference",
"id": 173,
"name": "Relationships"
},
{
"type": "reference",
"id": 174,
"name": "Method"
}
],
"name": "default"
}
}
]
},
{
"id": 442,
"name": "limit",
"kind": 2048,
"kindString": "Method",
"flags": {},
"sources": [
{
"fileName": "src/PostgrestTransformBuilder.ts",
"line": 146,
"character": 2
}
],
"signatures": [
{
"id": 443,
"name": "limit",
"kind": 4096,
"kindString": "Call signature",
"flags": {},
"comment": {
"shortText": "Limit the query result by `count`."
},
"parameters": [
{
"id": 444,
"name": "count",
"kind": 32768,
"kindString": "Parameter",
"flags": {},
"comment": {
"shortText": "The maximum number of rows to return"
},
"type": {
"type": "intrinsic",
"name": "number"
}
},
{
"id": 445,
"name": "options",
"kind": 32768,
"kindString": "Parameter",
"flags": {},
"comment": {
"shortText": "Named parameters"
},
"originalName": "__namedParameters",
"type": {
"type": "reflection",
"declaration": {
"id": 446,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
"flags": {},
"children": [
{
"id": 447,
"name": "foreignTable",
"kind": 1024,
"kindString": "Property",
"flags": {
"isOptional": true
},
"comment": {
"shortText": "Deprecated, use `options.referencedTable`\ninstead\n"
},
"sources": [
{
"fileName": "src/PostgrestTransformBuilder.ts",
"line": 151,
"character": 9
}
],
"type": {
"type": "intrinsic",
"name": "string"
}
},
{
"id": 448,
"name": "referencedTable",
"kind": 1024,
"kindString": "Property",
"flags": {
"isOptional": true
},
"comment": {
"shortText": "Set this to limit rows of referenced\ntables instead of the parent table"
},
"sources": [
{
"fileName": "src/PostgrestTransformBuilder.ts",
"line": 151,
"character": 32
}
],
"type": {
"type": "intrinsic",
"name": "string"
}
}
],
"groups": [
{
"title": "Properties",
"kind": 1024,
"children": [447, 448]
}
]
}
},
"defaultValue": "{}"
}
],
"type": {
"type": "reference",
"id": 165,
"typeArguments": [
{
"type": "reference",
"id": 168,
"name": "ClientOptions"
},
{
"type": "reference",
"id": 169,
"name": "Schema"
},
{
"type": "reference",
"id": 170,
"name": "Row"
},
{
"type": "reference",
"id": 171,
"name": "Result"
},
{
"type": "reference",
"id": 172,
"name": "RelationName"
},
{
"type": "reference",
"id": 173,
"name": "Relationships"
},
{
"type": "reference",
"id": 174,
"name": "Method"
}
],
"name": "default"
},
"inheritedFrom": {
"type": "reference",
"id": 596,
"name": "default.limit"
}
}
],
"inheritedFrom": {
"type": "reference",
"id": 595,
"name": "default.limit"
}
},
{
"id": 216,
"name": "lt",
"kind": 2048,
"kindString": "Method",
"flags": {},
"sources": [
{
"fileName": "src/PostgrestFilterBuilder.ts",
"line": 158,
"character": 2
}
],
"signatures": [
{
"id": 217,
"name": "lt",
"kind": 4096,
"kindString": "Call signature",
"flags": {},
"comment": {
"shortText": "Match only rows where `column` is less than `value`."
},
"typeParameter": [
{
"id": 218,
"name": "ColumnName",
"kind": 131072,
"kindString": "Type parameter",
"flags": {},
"type": {
"type": "intrinsic",
"name": "string"
}
}
],
"parameters": [
{
"id": 219,
"name": "column",
"kind": 32768,
"kindString": "Parameter",
"flags": {},
"comment": {
"shortText": "The column to filter on"
},
"type": {
"type": "reference",
"id": 218,
"name": "ColumnName"
}
},
{
"id": 220,
"name": "value",
"kind": 32768,
"kindString": "Parameter",
"flags": {},
"comment": {
"shortText": "The value to filter with\n"
},
"type": {
"type": "indexedAccess",
"indexType": {
"type": "reference",
"id": 218,
"name": "ColumnName"
},
"objectType": {
"type": "reference",
"id": 170,
"name": "Row"
}
}
}
],
"type": {
"type": "reference",
"id": 165,
"typeArguments": [
{
"type": "reference",
"id": 168,
"name": "ClientOptions"
},
{
"type": "reference",
"id": 169,
"name": "Schema"
},
{
"type": "reference",
"id": 170,
"name": "Row"
},
{
"type": "reference",
"id": 171,
"name": "Result"
},
{
"type": "reference",
"id": 172,
"name": "RelationName"
},
{
"type": "reference",
"id": 173,
"name": "Relationships"
},
{
"type": "reference",
"id": 174,
"name": "Method"
}
],
"name": "default"
}
},
{
"id": 221,
"name": "lt",
"kind": 4096,
"kindString": "Call signature",
"flags": {},
"comment": {
"shortText": "Match only rows where `column` is less than `value`."
},
"parameters": [
{
"id": 222,
"name": "column",
"kind": 32768,
"kindString": "Parameter",
"flags": {},
"comment": {
"shortText": "The column to filter on"
},
"type": {
"type": "intrinsic",
"name": "string"
}
},
{
"id": 223,
"name": "value",
"kind": 32768,
"kindString": "Parameter",
"flags": {},
"comment": {
"shortText": "The value to filter with\n"
},
"type": {
"type": "intrinsic",
"name": "unknown"
}
}
],
"type": {
"type": "reference",
"id": 165,
"typeArguments": [
{
"type": "reference",
"id": 168,
"name": "ClientOptions"
},
{
"type": "reference",
"id": 169,
"name": "Schema"
},
{
"type": "reference",
"id": 170,
"name": "Row"
},
{
"type": "reference",
"id": 171,
"name": "Result"
},
{
"type": "reference",
"id": 172,
"name": "RelationName"
},
{
"type": "reference",
"id": 173,
"name": "Relationships"
},
{
"type": "reference",
"id": 174,
"name": "Method"
}
],
"name": "default"
}
}
]
},
{
"id": 224,
"name": "lte",
"kind": 2048,
"kindString": "Method",
"flags": {},
"sources": [
{
"fileName": "src/PostgrestFilterBuilder.ts",
"line": 171,
"character": 2
}
],
"signatures": [
{
"id": 225,
"name": "lte",
"kind": 4096,
"kindString": "Call signature",
"flags": {},
"comment": {
"shortText": "Match only rows where `column` is less than or equal to `value`."
},
"typeParameter": [
{
"id": 226,
"name": "ColumnName",
"kind": 131072,
"kindString": "Type parameter",
"flags": {},
"type": {
"type": "intrinsic",
"name": "string"
}
}
],
"parameters": [
{
"id": 227,
"name": "column",
"kind": 32768,
"kindString": "Parameter",
"flags": {},
"comment": {
"shortText": "The column to filter on"
},
"type": {
"type": "reference",
"id": 226,
"name": "ColumnName"
}
},
{
"id": 228,
"name": "value",
"kind": 32768,
"kindString": "Parameter",
"flags": {},
"comment": {
"shortText": "The value to filter with\n"
},
"type": {
"type": "indexedAccess",
"indexType": {
"type": "reference",
"id": 226,
"name": "ColumnName"
},
"objectType": {
"type": "reference",
"id": 170,
"name": "Row"
}
}
}
],
"type": {
"type": "reference",
"id": 165,
"typeArguments": [
{
"type": "reference",
"id": 168,
"name": "ClientOptions"
},
{
"type": "reference",
"id": 169,
"name": "Schema"
},
{
"type": "reference",
"id": 170,
"name": "Row"
},
{
"type": "reference",
"id": 171,
"name": "Result"
},
{
"type": "reference",
"id": 172,
"name": "RelationName"
},
{
"type": "reference",
"id": 173,
"name": "Relationships"
},
{
"type": "reference",
"id": 174,
"name": "Method"
}
],
"name": "default"
}
},
{
"id": 229,
"name": "lte",
"kind": 4096,
"kindString": "Call signature",
"flags": {},
"comment": {
"shortText": "Match only rows where `column` is less than or equal to `value`."
},
"parameters": [
{
"id": 230,
"name": "column",
"kind": 32768,
"kindString": "Parameter",
"flags": {},
"comment": {
"shortText": "The column to filter on"
},
"type": {
"type": "intrinsic",
"name": "string"
}
},
{
"id": 231,
"name": "value",
"kind": 32768,
"kindString": "Parameter",
"flags": {},
"comment": {
"shortText": "The value to filter with\n"
},
"type": {
"type": "intrinsic",
"name": "unknown"
}
}
],
"type": {
"type": "reference",
"id": 165,
"typeArguments": [
{
"type": "reference",
"id": 168,
"name": "ClientOptions"
},
{
"type": "reference",
"id": 169,
"name": "Schema"
},
{
"type": "reference",
"id": 170,
"name": "Row"
},
{
"type": "reference",
"id": 171,
"name": "Result"
},
{
"type": "reference",
"id": 172,
"name": "RelationName"
},
{
"type": "reference",
"id": 173,
"name": "Relationships"
},
{
"type": "reference",
"id": 174,
"name": "Method"
}
],
"name": "default"
}
}
]
},
{
"id": 373,
"name": "match",
"kind": 2048,
"kindString": "Method",
"flags": {},
"sources": [
{
"fileName": "src/PostgrestFilterBuilder.ts",
"line": 514,
"character": 2
}
],
"signatures": [
{
"id": 374,
"name": "match",
"kind": 4096,
"kindString": "Call signature",
"flags": {},
"comment": {
"shortText": "Match only rows where each column in `query` keys is equal to its\nassociated value. Shorthand for multiple `.eq()`s."
},
"typeParameter": [
{
"id": 375,
"name": "ColumnName",
"kind": 131072,
"kindString": "Type parameter",
"flags": {},
"type": {
"type": "intrinsic",
"name": "string"
}
}
],
"parameters": [
{
"id": 376,
"name": "query",
"kind": 32768,
"kindString": "Parameter",
"flags": {},
"comment": {
"shortText": "The object to filter with, with column names as keys mapped\nto their filter values\n"
},
"type": {
"type": "reference",
"typeArguments": [
{
"type": "reference",
"id": 375,
"name": "ColumnName"
},
{
"type": "indexedAccess",
"indexType": {
"type": "reference",
"id": 375,
"name": "ColumnName"
},
"objectType": {
"type": "reference",
"id": 170,
"name": "Row"
}
}
],
"qualifiedName": "Record",
"package": "typescript",
"name": "Record"
}
}
],
"type": {
"type": "reference",
"id": 165,
"typeArguments": [
{
"type": "reference",
"id": 168,
"name": "ClientOptions"
},
{
"type": "reference",
"id": 169,
"name": "Schema"
},
{
"type": "reference",
"id": 170,
"name": "Row"
},
{
"type": "reference",
"id": 171,
"name": "Result"
},
{
"type": "reference",
"id": 172,
"name": "RelationName"
},
{
"type": "reference",
"id": 173,
"name": "Relationships"
},
{
"type": "reference",
"id": 174,
"name": "Method"
}
],
"name": "default"
}
},
{
"id": 377,
"name": "match",
"kind": 4096,
"kindString": "Call signature",
"flags": {},
"comment": {
"shortText": "Match only rows where each column in `query` keys is equal to its\nassociated value. Shorthand for multiple `.eq()`s."
},
"parameters": [
{
"id": 378,
"name": "query",
"kind": 32768,
"kindString": "Parameter",
"flags": {},
"comment": {
"shortText": "The object to filter with, with column names as keys mapped\nto their filter values\n"
},
"type": {
"type": "reference",
"typeArguments": [
{
"type": "intrinsic",
"name": "string"
},
{
"type": "intrinsic",
"name": "unknown"
}
],
"qualifiedName": "Record",
"package": "typescript",
"name": "Record"
}
}
],
"type": {
"type": "reference",
"id": 165,
"typeArguments": [
{
"type": "reference",
"id": 168,
"name": "ClientOptions"
},
{
"type": "reference",
"id": 169,
"name": "Schema"
},
{
"type": "reference",
"id": 170,
"name": "Row"
},
{
"type": "reference",
"id": 171,
"name": "Result"
},
{
"type": "reference",
"id": 172,
"name": "RelationName"
},
{
"type": "reference",
"id": 173,
"name": "Relationships"
},
{
"type": "reference",
"id": 174,
"name": "Method"
}
],
"name": "default"
}
}
]
},
{
"id": 485,
"name": "maxAffected",
"kind": 2048,
"kindString": "Method",
"flags": {},
"sources": [
{
"fileName": "src/PostgrestTransformBuilder.ts",
"line": 354,
"character": 2
}
],
"signatures": [
{
"id": 486,
"name": "maxAffected",
"kind": 4096,
"kindString": "Call signature",
"flags": {},
"comment": {
"shortText": "Set the maximum number of rows that can be affected by the query.\nOnly available in PostgREST v13+ and only works with PATCH and DELETE methods."
},
"parameters": [
{
"id": 487,
"name": "value",
"kind": 32768,
"kindString": "Parameter",
"flags": {},
"comment": {
"shortText": "The maximum number of rows that can be affected\n"
},
"type": {
"type": "intrinsic",
"name": "number"
}
}
],
"type": {
"type": "conditional",
"checkType": {
"type": "reference",
"typeArguments": [
{
"type": "indexedAccess",
"indexType": {
"type": "literal",
"value": "PostgrestVersion"
},
"objectType": {
"type": "reference",
"id": 168,
"name": "ClientOptions"
}
}
],
"name": "MaxAffectedEnabled"
},
"extendsType": {
"type": "literal",
"value": true
},
"trueType": {
"type": "conditional",
"checkType": {
"type": "reference",
"id": 174,
"name": "Method"
},
"extendsType": {
"type": "union",
"types": [
{
"type": "literal",
"value": "PATCH"
},
{
"type": "literal",
"value": "DELETE"
},
{
"type": "literal",
"value": "RPC"
}
]
},
"trueType": {
"type": "reference",
"id": 165,
"typeArguments": [
{
"type": "reference",
"id": 168,
"name": "ClientOptions"
},
{
"type": "reference",
"id": 169,
"name": "Schema"
},
{
"type": "reference",
"id": 170,
"name": "Row"
},
{
"type": "reference",
"id": 171,
"name": "Result"
},
{
"type": "reference",
"id": 172,
"name": "RelationName"
},
{
"type": "reference",
"id": 173,
"name": "Relationships"
},
{
"type": "reference",
"id": 174,
"name": "Method"
}
],
"name": "default"
},
"falseType": {
"type": "reference",
"typeArguments": [
{
"type": "literal",
"value": "maxAffected method only available on update or delete"
}
],
"name": "InvalidMethodError"
}
},
"falseType": {
"type": "reference",
"typeArguments": [
{
"type": "literal",
"value": "maxAffected method only available on postgrest 13+"
}
],
"name": "InvalidMethodError"
}
},
"inheritedFrom": {
"type": "reference",
"id": 639,
"name": "default.maxAffected"
}
}
],
"inheritedFrom": {
"type": "reference",
"id": 638,
"name": "default.maxAffected"
}
},
{
"id": 463,
"name": "maybeSingle",
"kind": 2048,
"kindString": "Method",
"flags": {},
"sources": [
{
"fileName": "src/PostgrestTransformBuilder.ts",
"line": 220,
"character": 2
}
],
"signatures": [
{
"id": 464,
"name": "maybeSingle",
"kind": 4096,
"kindString": "Call signature",
"flags": {},
"comment": {
"shortText": "Return `data` as a single object instead of an array of objects.",
"text": "Query result must be zero or one row (e.g. using `.limit(1)`), otherwise\nthis returns an error.\n"
},
"typeParameter": [
{
"id": 465,
"name": "ResultOne",
"kind": 131072,
"kindString": "Type parameter",
"flags": {},
"default": {
"type": "conditional",
"checkType": {
"type": "reference",
"id": 171,
"name": "Result"
},
"extendsType": {
"type": "array",
"elementType": {
"type": "reference",
"name": "ResultOne"
}
},
"trueType": {
"type": "reference",
"name": "ResultOne"
},
"falseType": {
"type": "intrinsic",
"name": "never"
}
}
}
],
"type": {
"type": "reference",
"id": 687,
"typeArguments": [
{
"type": "reference",
"id": 168,
"name": "ClientOptions"
},
{
"type": "union",
"types": [
{
"type": "literal",
"value": null
},
{
"type": "reference",
"id": 465,
"name": "ResultOne"
}
]
},
{
"type": "literal",
"value": false
}
],
"name": "default"
},
"inheritedFrom": {
"type": "reference",
"id": 617,
"name": "default.maybeSingle"
}
}
],
"inheritedFrom": {
"type": "reference",
"id": 616,
"name": "default.maybeSingle"
}
},
{
"id": 195,
"name": "neq",
"kind": 2048,
"kindString": "Method",
"flags": {},
"sources": [
{
"fileName": "src/PostgrestFilterBuilder.ts",
"line": 120,
"character": 2
}
],
"signatures": [
{
"id": 196,
"name": "neq",
"kind": 4096,
"kindString": "Call signature",
"flags": {},
"comment": {
"shortText": "Match only rows where `column` is not equal to `value`."
},
"typeParameter": [
{
"id": 197,
"name": "ColumnName",
"kind": 131072,
"kindString": "Type parameter",
"flags": {},
"type": {
"type": "intrinsic",
"name": "string"
}
}
],
"parameters": [
{
"id": 198,
"name": "column",
"kind": 32768,
"kindString": "Parameter",
"flags": {},
"comment": {
"shortText": "The column to filter on"
},
"type": {
"type": "reference",
"id": 197,
"name": "ColumnName"
}
},
{
"id": 199,
"name": "value",
"kind": 32768,
"kindString": "Parameter",
"flags": {},
"comment": {
"shortText": "The value to filter with\n"
},
"type": {
"type": "conditional",
"checkType": {
"type": "reference",
"typeArguments": [
{
"type": "reference",
"id": 169,
"name": "Schema"
},
{
"type": "reference",
"id": 170,
"name": "Row"
},
{
"type": "reference",
"id": 197,
"name": "ColumnName"
}
],
"name": "ResolveFilterValue"
},
"extendsType": {
"type": "intrinsic",
"name": "never"
},
"trueType": {
"type": "intrinsic",
"name": "unknown"
},
"falseType": {
"type": "conditional",
"checkType": {
"type": "reference",
"typeArguments": [
{
"type": "reference",
"id": 169,
"name": "Schema"
},
{
"type": "reference",
"id": 170,
"name": "Row"
},
{
"type": "reference",
"id": 197,
"name": "ColumnName"
}
],
"name": "ResolveFilterValue"
},
"extendsType": {
"type": "reference",
"name": "ResolvedFilterValue"
},
"trueType": {
"type": "reference",
"name": "ResolvedFilterValue"
},
"falseType": {
"type": "intrinsic",
"name": "never"
}
}
}
}
],
"type": {
"type": "reference",
"id": 165,
"typeArguments": [
{
"type": "reference",
"id": 168,
"name": "ClientOptions"
},
{
"type": "reference",
"id": 169,
"name": "Schema"
},
{
"type": "reference",
"id": 170,
"name": "Row"
},
{
"type": "reference",
"id": 171,
"name": "Result"
},
{
"type": "reference",
"id": 172,
"name": "RelationName"
},
{
"type": "reference",
"id": 173,
"name": "Relationships"
},
{
"type": "reference",
"id": 174,
"name": "Method"
}
],
"name": "default"
}
}
]
},
{
"id": 379,
"name": "not",
"kind": 2048,
"kindString": "Method",
"flags": {},
"sources": [
{
"fileName": "src/PostgrestFilterBuilder.ts",
"line": 530,
"character": 2
}
],
"signatures": [
{
"id": 380,
"name": "not",
"kind": 4096,
"kindString": "Call signature",
"flags": {},
"comment": {
"shortText": "Match only rows which doesn't satisfy the filter.",
"text": "Unlike most filters, `opearator` and `value` are used as-is and need to\nfollow [PostgREST\nsyntax](https://postgrest.org/en/stable/api.html#operators). You also need\nto make sure they are properly sanitized.\n"
},
"typeParameter": [
{
"id": 381,
"name": "ColumnName",
"kind": 131072,
"kindString": "Type parameter",
"flags": {},
"type": {
"type": "intrinsic",
"name": "string"
}
}
],
"parameters": [
{
"id": 382,
"name": "column",
"kind": 32768,
"kindString": "Parameter",
"flags": {},
"comment": {
"shortText": "The column to filter on"
},
"type": {
"type": "reference",
"id": 381,
"name": "ColumnName"
}
},
{
"id": 383,
"name": "operator",
"kind": 32768,
"kindString": "Parameter",
"flags": {},
"comment": {
"shortText": "The operator to be negated to filter with, following\nPostgREST syntax"
},
"type": {
"type": "reference",
"name": "FilterOperator"
}
},
{
"id": 384,
"name": "value",
"kind": 32768,
"kindString": "Parameter",
"flags": {},
"comment": {
"shortText": "The value to filter with, following PostgREST syntax\n"
},
"type": {
"type": "indexedAccess",
"indexType": {
"type": "reference",
"id": 381,
"name": "ColumnName"
},
"objectType": {
"type": "reference",
"id": 170,
"name": "Row"
}
}
}
],
"type": {
"type": "reference",
"id": 165,
"typeArguments": [
{
"type": "reference",
"id": 168,
"name": "ClientOptions"
},
{
"type": "reference",
"id": 169,
"name": "Schema"
},
{
"type": "reference",
"id": 170,
"name": "Row"
},
{
"type": "reference",
"id": 171,
"name": "Result"
},
{
"type": "reference",
"id": 172,
"name": "RelationName"
},
{
"type": "reference",
"id": 173,
"name": "Relationships"
},
{
"type": "reference",
"id": 174,
"name": "Method"
}
],
"name": "default"
}
},
{
"id": 385,
"name": "not",
"kind": 4096,
"kindString": "Call signature",
"flags": {},
"comment": {
"shortText": "Match only rows which doesn't satisfy the filter.",
"text": "Unlike most filters, `opearator` and `value` are used as-is and need to\nfollow [PostgREST\nsyntax](https://postgrest.org/en/stable/api.html#operators). You also need\nto make sure they are properly sanitized.\n"
},
"parameters": [
{
"id": 386,
"name": "column",
"kind": 32768,
"kindString": "Parameter",
"flags": {},
"comment": {
"shortText": "The column to filter on"
},
"type": {
"type": "intrinsic",
"name": "string"
}
},
{
"id": 387,
"name": "operator",
"kind": 32768,
"kindString": "Parameter",
"flags": {},
"comment": {
"shortText": "The operator to be negated to filter with, following\nPostgREST syntax"
},
"type": {
"type": "intrinsic",
"name": "string"
}
},
{
"id": 388,
"name": "value",
"kind": 32768,
"kindString": "Parameter",
"flags": {},
"comment": {
"shortText": "The value to filter with, following PostgREST syntax\n"
},
"type": {
"type": "intrinsic",
"name": "unknown"
}
}
],
"type": {
"type": "reference",
"id": 165,
"typeArguments": [
{
"type": "reference",
"id": 168,
"name": "ClientOptions"
},
{
"type": "reference",
"id": 169,
"name": "Schema"
},
{
"type": "reference",
"id": 170,
"name": "Row"
},
{
"type": "reference",
"id": 171,
"name": "Result"
},
{
"type": "reference",
"id": 172,
"name": "RelationName"
},
{
"type": "reference",
"id": 173,
"name": "Relationships"
},
{
"type": "reference",
"id": 174,
"name": "Method"
}
],
"name": "default"
}
}
]
},
{
"id": 389,
"name": "or",
"kind": 2048,
"kindString": "Method",
"flags": {},
"sources": [
{
"fileName": "src/PostgrestFilterBuilder.ts",
"line": 569,
"character": 2
}
],
"signatures": [
{
"id": 390,
"name": "or",
"kind": 4096,
"kindString": "Call signature",
"flags": {},
"comment": {
"shortText": "Match only rows which satisfy at least one of the filters.",
"text": "Unlike most filters, `filters` is used as-is and needs to follow [PostgREST\nsyntax](https://postgrest.org/en/stable/api.html#operators). You also need\nto make sure it's properly sanitized.\n\nIt's currently not possible to do an `.or()` filter across multiple tables.\n"
},
"parameters": [
{
"id": 391,
"name": "filters",
"kind": 32768,
"kindString": "Parameter",
"flags": {},
"comment": {
"shortText": "The filters to use, following PostgREST syntax"
},
"type": {
"type": "intrinsic",
"name": "string"
}
},
{
"id": 392,
"name": "options",
"kind": 32768,
"kindString": "Parameter",
"flags": {},
"comment": {
"shortText": "Named parameters"
},
"originalName": "__namedParameters",
"type": {
"type": "reflection",
"declaration": {
"id": 393,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
"flags": {},
"children": [
{
"id": 394,
"name": "foreignTable",
"kind": 1024,
"kindString": "Property",
"flags": {
"isOptional": true
},
"comment": {
"shortText": "Deprecated, use `referencedTable` instead\n"
},
"sources": [
{
"fileName": "src/PostgrestFilterBuilder.ts",
"line": 574,
"character": 9
}
],
"type": {
"type": "intrinsic",
"name": "string"
}
},
{
"id": 395,
"name": "referencedTable",
"kind": 1024,
"kindString": "Property",
"flags": {
"isOptional": true
},
"comment": {
"shortText": "Set this to filter on referenced tables\ninstead of the parent table"
},
"sources": [
{
"fileName": "src/PostgrestFilterBuilder.ts",
"line": 574,
"character": 32
}
],
"type": {
"type": "intrinsic",
"name": "string"
}
}
],
"groups": [
{
"title": "Properties",
"kind": 1024,
"children": [394, 395]
}
]
}
},
"defaultValue": "{}"
}
],
"type": {
"type": "reference",
"id": 165,
"typeArguments": [
{
"type": "reference",
"id": 168,
"name": "ClientOptions"
},
{
"type": "reference",
"id": 169,
"name": "Schema"
},
{
"type": "reference",
"id": 170,
"name": "Row"
},
{
"type": "reference",
"id": 171,
"name": "Result"
},
{
"type": "reference",
"id": 172,
"name": "RelationName"
},
{
"type": "reference",
"id": 173,
"name": "Relationships"
},
{
"type": "reference",
"id": 174,
"name": "Method"
}
],
"name": "default"
}
}
]
},
{
"id": 411,
"name": "order",
"kind": 2048,
"kindString": "Method",
"flags": {},
"sources": [
{
"fileName": "src/PostgrestTransformBuilder.ts",
"line": 70,
"character": 2
}
],
"signatures": [
{
"id": 412,
"name": "order",
"kind": 4096,
"kindString": "Call signature",
"flags": {},
"comment": {
"shortText": "Order the query result by `column`.",
"text": "You can call this method multiple times to order by multiple columns.\n\nYou can order referenced tables, but it only affects the ordering of the\nparent table if you use `!inner` in the query.\n"
},
"typeParameter": [
{
"id": 413,
"name": "ColumnName",
"kind": 131072,
"kindString": "Type parameter",
"flags": {},
"type": {
"type": "intrinsic",
"name": "string"
}
}
],
"parameters": [
{
"id": 414,
"name": "column",
"kind": 32768,
"kindString": "Parameter",
"flags": {},
"comment": {
"shortText": "The column to order by"
},
"type": {
"type": "reference",
"id": 413,
"name": "ColumnName"
}
},
{
"id": 415,
"name": "options",
"kind": 32768,
"kindString": "Parameter",
"flags": {
"isOptional": true
},
"comment": {
"shortText": "Named parameters"
},
"type": {
"type": "reflection",
"declaration": {
"id": 416,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
"flags": {},
"children": [
{
"id": 417,
"name": "ascending",
"kind": 1024,
"kindString": "Property",
"flags": {
"isOptional": true
},
"comment": {
"shortText": "If `true`, the result will be in ascending order"
},
"sources": [
{
"fileName": "src/PostgrestTransformBuilder.ts",
"line": 72,
"character": 16
}
],
"type": {
"type": "intrinsic",
"name": "boolean"
}
},
{
"id": 418,
"name": "nullsFirst",
"kind": 1024,
"kindString": "Property",
"flags": {
"isOptional": true
},
"comment": {
"shortText": "If `true`, `null`s appear first. If `false`,\n`null`s appear last."
},
"sources": [
{
"fileName": "src/PostgrestTransformBuilder.ts",
"line": 72,
"character": 37
}
],
"type": {
"type": "intrinsic",
"name": "boolean"
}
},
{
"id": 419,
"name": "referencedTable",
"kind": 1024,
"kindString": "Property",
"flags": {
"isOptional": true
},
"comment": {
"shortText": "Set this to order a referenced table by\nits columns"
},
"sources": [
{
"fileName": "src/PostgrestTransformBuilder.ts",
"line": 72,
"character": 59
}
],
"type": {
"type": "intrinsic",
"name": "undefined"
}
}
],
"groups": [
{
"title": "Properties",
"kind": 1024,
"children": [417, 418, 419]
}
]
}
}
}
],
"type": {
"type": "reference",
"id": 165,
"typeArguments": [
{
"type": "reference",
"id": 168,
"name": "ClientOptions"
},
{
"type": "reference",
"id": 169,
"name": "Schema"
},
{
"type": "reference",
"id": 170,
"name": "Row"
},
{
"type": "reference",
"id": 171,
"name": "Result"
},
{
"type": "reference",
"id": 172,
"name": "RelationName"
},
{
"type": "reference",
"id": 173,
"name": "Relationships"
},
{
"type": "reference",
"id": 174,
"name": "Method"
}
],
"name": "default"
},
"inheritedFrom": {
"type": "reference",
"id": 565,
"name": "default.order"
}
},
{
"id": 420,
"name": "order",
"kind": 4096,
"kindString": "Call signature",
"flags": {},
"comment": {
"shortText": "Order the query result by `column`.",
"text": "You can call this method multiple times to order by multiple columns.\n\nYou can order referenced tables, but it only affects the ordering of the\nparent table if you use `!inner` in the query.\n"
},
"parameters": [
{
"id": 421,
"name": "column",
"kind": 32768,
"kindString": "Parameter",
"flags": {},
"comment": {
"shortText": "The column to order by"
},
"type": {
"type": "intrinsic",
"name": "string"
}
},
{
"id": 422,
"name": "options",
"kind": 32768,
"kindString": "Parameter",
"flags": {
"isOptional": true
},
"comment": {
"shortText": "Named parameters"
},
"type": {
"type": "reflection",
"declaration": {
"id": 423,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
"flags": {},
"children": [
{
"id": 424,
"name": "ascending",
"kind": 1024,
"kindString": "Property",
"flags": {
"isOptional": true
},
"comment": {
"shortText": "If `true`, the result will be in ascending order"
},
"sources": [
{
"fileName": "src/PostgrestTransformBuilder.ts",
"line": 76,
"character": 16
}
],
"type": {
"type": "intrinsic",
"name": "boolean"
}
},
{
"id": 425,
"name": "nullsFirst",
"kind": 1024,
"kindString": "Property",
"flags": {
"isOptional": true
},
"comment": {
"shortText": "If `true`, `null`s appear first. If `false`,\n`null`s appear last."
},
"sources": [
{
"fileName": "src/PostgrestTransformBuilder.ts",
"line": 76,
"character": 37
}
],
"type": {
"type": "intrinsic",
"name": "boolean"
}
},
{
"id": 426,
"name": "referencedTable",
"kind": 1024,
"kindString": "Property",
"flags": {
"isOptional": true
},
"comment": {
"shortText": "Set this to order a referenced table by\nits columns"
},
"sources": [
{
"fileName": "src/PostgrestTransformBuilder.ts",
"line": 76,
"character": 59
}
],
"type": {
"type": "intrinsic",
"name": "string"
}
}
],
"groups": [
{
"title": "Properties",
"kind": 1024,
"children": [424, 425, 426]
}
]
}
}
}
],
"type": {
"type": "reference",
"id": 165,
"typeArguments": [
{
"type": "reference",
"id": 168,
"name": "ClientOptions"
},
{
"type": "reference",
"id": 169,
"name": "Schema"
},
{
"type": "reference",
"id": 170,
"name": "Row"
},
{
"type": "reference",
"id": 171,
"name": "Result"
},
{
"type": "reference",
"id": 172,
"name": "RelationName"
},
{
"type": "reference",
"id": 173,
"name": "Relationships"
},
{
"type": "reference",
"id": 174,
"name": "Method"
}
],
"name": "default"
},
"inheritedFrom": {
"type": "reference",
"id": 573,
"name": "default.order"
}
},
{
"id": 427,
"name": "order",
"kind": 4096,
"kindString": "Call signature",
"flags": {},
"comment": {
"shortText": "Order the query result by `column`.",
"text": "You can call this method multiple times to order by multiple columns.\n\nYou can order referenced tables, but it only affects the ordering of the\nparent table if you use `!inner` in the query.\n",
"tags": [
{
"tag": "deprecated",
"text": "Use `options.referencedTable` instead of `options.foreignTable`\n"
}
]
},
"typeParameter": [
{
"id": 428,
"name": "ColumnName",
"kind": 131072,
"kindString": "Type parameter",
"flags": {},
"type": {
"type": "intrinsic",
"name": "string"
}
}
],
"parameters": [
{
"id": 429,
"name": "column",
"kind": 32768,
"kindString": "Parameter",
"flags": {},
"comment": {
"shortText": "The column to order by"
},
"type": {
"type": "reference",
"id": 428,
"name": "ColumnName"
}
},
{
"id": 430,
"name": "options",
"kind": 32768,
"kindString": "Parameter",
"flags": {
"isOptional": true
},
"comment": {
"shortText": "Named parameters"
},
"type": {
"type": "reflection",
"declaration": {
"id": 431,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
"flags": {},
"children": [
{
"id": 432,
"name": "ascending",
"kind": 1024,
"kindString": "Property",
"flags": {
"isOptional": true
},
"sources": [
{
"fileName": "src/PostgrestTransformBuilder.ts",
"line": 83,
"character": 16
}
],
"type": {
"type": "intrinsic",
"name": "boolean"
}
},
{
"id": 434,
"name": "foreignTable",
"kind": 1024,
"kindString": "Property",
"flags": {
"isOptional": true
},
"sources": [
{
"fileName": "src/PostgrestTransformBuilder.ts",
"line": 83,
"character": 59
}
],
"type": {
"type": "intrinsic",
"name": "undefined"
}
},
{
"id": 433,
"name": "nullsFirst",
"kind": 1024,
"kindString": "Property",
"flags": {
"isOptional": true
},
"sources": [
{
"fileName": "src/PostgrestTransformBuilder.ts",
"line": 83,
"character": 37
}
],
"type": {
"type": "intrinsic",
"name": "boolean"
}
}
],
"groups": [
{
"title": "Properties",
"kind": 1024,
"children": [432, 434, 433]
}
]
}
}
}
],
"type": {
"type": "reference",
"id": 165,
"typeArguments": [
{
"type": "reference",
"id": 168,
"name": "ClientOptions"
},
{
"type": "reference",
"id": 169,
"name": "Schema"
},
{
"type": "reference",
"id": 170,
"name": "Row"
},
{
"type": "reference",
"id": 171,
"name": "Result"
},
{
"type": "reference",
"id": 172,
"name": "RelationName"
},
{
"type": "reference",
"id": 173,
"name": "Relationships"
},
{
"type": "reference",
"id": 174,
"name": "Method"
}
],
"name": "default"
},
"inheritedFrom": {
"type": "reference",
"id": 580,
"name": "default.order"
}
},
{
"id": 435,
"name": "order",
"kind": 4096,
"kindString": "Call signature",
"flags": {},
"comment": {
"shortText": "Order the query result by `column`.",
"text": "You can call this method multiple times to order by multiple columns.\n\nYou can order referenced tables, but it only affects the ordering of the\nparent table if you use `!inner` in the query.\n",
"tags": [
{
"tag": "deprecated",
"text": "Use `options.referencedTable` instead of `options.foreignTable`\n"
}
]
},
"parameters": [
{
"id": 436,
"name": "column",
"kind": 32768,
"kindString": "Parameter",
"flags": {},
"comment": {
"shortText": "The column to order by"
},
"type": {
"type": "intrinsic",
"name": "string"
}
},
{
"id": 437,
"name": "options",
"kind": 32768,
"kindString": "Parameter",
"flags": {
"isOptional": true
},
"comment": {
"shortText": "Named parameters"
},
"type": {
"type": "reflection",
"declaration": {
"id": 438,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
"flags": {},
"children": [
{
"id": 439,
"name": "ascending",
"kind": 1024,
"kindString": "Property",
"flags": {
"isOptional": true
},
"sources": [
{
"fileName": "src/PostgrestTransformBuilder.ts",
"line": 90,
"character": 16
}
],
"type": {
"type": "intrinsic",
"name": "boolean"
}
},
{
"id": 441,
"name": "foreignTable",
"kind": 1024,
"kindString": "Property",
"flags": {
"isOptional": true
},
"sources": [
{
"fileName": "src/PostgrestTransformBuilder.ts",
"line": 90,
"character": 59
}
],
"type": {
"type": "intrinsic",
"name": "string"
}
},
{
"id": 440,
"name": "nullsFirst",
"kind": 1024,
"kindString": "Property",
"flags": {
"isOptional": true
},
"sources": [
{
"fileName": "src/PostgrestTransformBuilder.ts",
"line": 90,
"character": 37
}
],
"type": {
"type": "intrinsic",
"name": "boolean"
}
}
],
"groups": [
{
"title": "Properties",
"kind": 1024,
"children": [439, 441, 440]
}
]
}
}
}
],
"type": {
"type": "reference",
"id": 165,
"typeArguments": [
{
"type": "reference",
"id": 168,
"name": "ClientOptions"
},
{
"type": "reference",
"id": 169,
"name": "Schema"
},
{
"type": "reference",
"id": 170,
"name": "Row"
},
{
"type": "reference",
"id": 171,
"name": "Result"
},
{
"type": "reference",
"id": 172,
"name": "RelationName"
},
{
"type": "reference",
"id": 173,
"name": "Relationships"
},
{
"type": "reference",
"id": 174,
"name": "Method"
}
],
"name": "default"
},
"inheritedFrom": {
"type": "reference",
"id": 588,
"name": "default.order"
}
}
],
"inheritedFrom": {
"type": "reference",
"id": 564,
"name": "default.order"
}
},
{
"id": 349,
"name": "overlaps",
"kind": 2048,
"kindString": "Method",
"flags": {},
"sources": [
{
"fileName": "src/PostgrestFilterBuilder.ts",
"line": 453,
"character": 2
}
],
"signatures": [
{
"id": 350,
"name": "overlaps",
"kind": 4096,
"kindString": "Call signature",
"flags": {},
"comment": {
"shortText": "Only relevant for array and range columns. Match only rows where\n`column` and `value` have an element in common."
},
"typeParameter": [
{
"id": 351,
"name": "ColumnName",
"kind": 131072,
"kindString": "Type parameter",
"flags": {},
"type": {
"type": "intrinsic",
"name": "string"
}
}
],
"parameters": [
{
"id": 352,
"name": "column",
"kind": 32768,
"kindString": "Parameter",
"flags": {},
"comment": {
"shortText": "The array or range column to filter on"
},
"type": {
"type": "reference",
"id": 351,
"name": "ColumnName"
}
},
{
"id": 353,
"name": "value",
"kind": 32768,
"kindString": "Parameter",
"flags": {},
"comment": {
"shortText": "The array or range value to filter with\n"
},
"type": {
"type": "union",
"types": [
{
"type": "intrinsic",
"name": "string"
},
{
"type": "typeOperator",
"operator": "readonly",
"target": {
"type": "array",
"elementType": {
"type": "indexedAccess",
"indexType": {
"type": "reference",
"id": 351,
"name": "ColumnName"
},
"objectType": {
"type": "reference",
"id": 170,
"name": "Row"
}
}
}
}
]
}
}
],
"type": {
"type": "reference",
"id": 165,
"typeArguments": [
{
"type": "reference",
"id": 168,
"name": "ClientOptions"
},
{
"type": "reference",
"id": 169,
"name": "Schema"
},
{
"type": "reference",
"id": 170,
"name": "Row"
},
{
"type": "reference",
"id": 171,
"name": "Result"
},
{
"type": "reference",
"id": 172,
"name": "RelationName"
},
{
"type": "reference",
"id": 173,
"name": "Relationships"
},
{
"type": "reference",
"id": 174,
"name": "Method"
}
],
"name": "default"
}
},
{
"id": 354,
"name": "overlaps",
"kind": 4096,
"kindString": "Call signature",
"flags": {},
"comment": {
"shortText": "Only relevant for array and range columns. Match only rows where\n`column` and `value` have an element in common."
},
"parameters": [
{
"id": 355,
"name": "column",
"kind": 32768,
"kindString": "Parameter",
"flags": {},
"comment": {
"shortText": "The array or range column to filter on"
},
"type": {
"type": "intrinsic",
"name": "string"
}
},
{
"id": 356,
"name": "value",
"kind": 32768,
"kindString": "Parameter",
"flags": {},
"comment": {
"shortText": "The array or range value to filter with\n"
},
"type": {
"type": "union",
"types": [
{
"type": "intrinsic",
"name": "string"
},
{
"type": "typeOperator",
"operator": "readonly",
"target": {
"type": "array",
"elementType": {
"type": "intrinsic",
"name": "unknown"
}
}
}
]
}
}
],
"type": {
"type": "reference",
"id": 165,
"typeArguments": [
{
"type": "reference",
"id": 168,
"name": "ClientOptions"
},
{
"type": "reference",
"id": 169,
"name": "Schema"
},
{
"type": "reference",
"id": 170,
"name": "Row"
},
{
"type": "reference",
"id": 171,
"name": "Result"
},
{
"type": "reference",
"id": 172,
"name": "RelationName"
},
{
"type": "reference",
"id": 173,
"name": "Relationships"
},
{
"type": "reference",
"id": 174,
"name": "Method"
}
],
"name": "default"
}
}
]
},
{
"id": 519,
"name": "overrideTypes",
"kind": 2048,
"kindString": "Method",
"flags": {},
"sources": [
{
"fileName": "src/PostgrestBuilder.ts",
"line": 276,
"character": 2
}
],
"signatures": [
{
"id": 520,
"name": "overrideTypes",
"kind": 4096,
"kindString": "Call signature",
"flags": {},
"comment": {
"shortText": "Override the type of the returned `data` field in the response.",
"returns": "A PostgrestBuilder instance with the new type\n",
"tags": [
{
"tag": "example",
"text": "\n```typescript\n// Merge with existing types (default behavior)\nconst query = supabase\n .from('users')\n .select()\n .overrideTypes<{ custom_field: string }>()\n\n// Replace existing types completely\nconst replaceQuery = supabase\n .from('users')\n .select()\n .overrideTypes<{ id: number; name: string }, { merge: false }>()\n```"
}
]
},
"typeParameter": [
{
"id": 521,
"name": "NewResult",
"kind": 131072,
"kindString": "Type parameter",
"flags": {},
"comment": {
"shortText": "The new type to cast the response data to"
}
},
{
"id": 526,
"name": "Options",
"kind": 131072,
"kindString": "Type parameter",
"flags": {},
"comment": {
"shortText": "Optional type configuration (defaults to { merge: true })"
},
"type": {
"type": "reflection",
"declaration": {
"id": 522,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
"flags": {},
"children": [
{
"id": 523,
"name": "merge",
"kind": 1024,
"kindString": "Property",
"flags": {
"isOptional": true
},
"sources": [
{
"fileName": "src/PostgrestBuilder.ts",
"line": 278,
"character": 22
}
],
"type": {
"type": "intrinsic",
"name": "boolean"
}
}
],
"groups": [
{
"title": "Properties",
"kind": 1024,
"children": [523]
}
]
}
},
"default": {
"type": "reflection",
"declaration": {
"id": 524,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
"flags": {},
"children": [
{
"id": 525,
"name": "merge",
"kind": 1024,
"kindString": "Property",
"flags": {},
"sources": [
{
"fileName": "src/PostgrestBuilder.ts",
"line": 278,
"character": 44
}
],
"type": {
"type": "literal",
"value": true
}
}
],
"groups": [
{
"title": "Properties",
"kind": 1024,
"children": [525]
}
]
}
}
}
],
"type": {
"type": "reference",
"id": 687,
"typeArguments": [
{
"type": "reference",
"id": 168,
"name": "ClientOptions"
},
{
"type": "conditional",
"checkType": {
"type": "reference",
"typeArguments": [
{
"type": "reference",
"id": 171,
"name": "Result"
},
{
"type": "reference",
"id": 521,
"name": "NewResult"
},
{
"type": "literal",
"value": false
},
{
"type": "literal",
"value": false
}
],
"name": "IsValidResultOverride"
},
"extendsType": {
"type": "literal",
"value": true
},
"trueType": {
"type": "conditional",
"checkType": {
"type": "reference",
"typeArguments": [
{
"type": "reference",
"id": 171,
"name": "Result"
}
],
"name": "ContainsNull"
},
"extendsType": {
"type": "literal",
"value": true
},
"trueType": {
"type": "union",
"types": [
{
"type": "literal",
"value": null
},
{
"type": "reference",
"typeArguments": [
{
"type": "reference",
"id": 521,
"name": "NewResult"
},
{
"type": "reference",
"typeArguments": [
{
"type": "reference",
"id": 171,
"name": "Result"
}
],
"qualifiedName": "NonNullable",
"package": "typescript",
"name": "NonNullable"
},
{
"type": "reference",
"id": 526,
"name": "Options"
}
],
"name": "MergePartialResult"
}
]
},
"falseType": {
"type": "reference",
"typeArguments": [
{
"type": "reference",
"id": 521,
"name": "NewResult"
},
{
"type": "reference",
"id": 171,
"name": "Result"
},
{
"type": "reference",
"id": 526,
"name": "Options"
}
],
"name": "MergePartialResult"
}
},
"falseType": {
"type": "reference",
"typeArguments": [
{
"type": "reference",
"id": 171,
"name": "Result"
},
{
"type": "reference",
"id": 521,
"name": "NewResult"
}
],
"name": "CheckMatchingArrayTypes"
}
},
{
"type": "literal",
"value": false
}
],
"name": "default"
},
"inheritedFrom": {
"type": "reference",
"id": 673,
"name": "default.overrideTypes"
}
}
],
"inheritedFrom": {
"type": "reference",
"id": 672,
"name": "default.overrideTypes"
}
},
{
"id": 449,
"name": "range",
"kind": 2048,
"kindString": "Method",
"flags": {},
"sources": [
{
"fileName": "src/PostgrestTransformBuilder.ts",
"line": 173,
"character": 2
}
],
"signatures": [
{
"id": 450,
"name": "range",
"kind": 4096,
"kindString": "Call signature",
"flags": {},
"comment": {
"shortText": "Limit the query result by starting at an offset `from` and ending at the offset `to`.\nOnly records within this range are returned.\nThis respects the query order and if there is no order clause the range could behave unexpectedly.\nThe `from` and `to` values are 0-based and inclusive: `range(1, 3)` will include the second, third\nand fourth rows of the query."
},
"parameters": [
{
"id": 451,
"name": "from",
"kind": 32768,
"kindString": "Parameter",
"flags": {},
"comment": {
"shortText": "The starting index from which to limit the result"
},
"type": {
"type": "intrinsic",
"name": "number"
}
},
{
"id": 452,
"name": "to",
"kind": 32768,
"kindString": "Parameter",
"flags": {},
"comment": {
"shortText": "The last index to which to limit the result"
},
"type": {
"type": "intrinsic",
"name": "number"
}
},
{
"id": 453,
"name": "options",
"kind": 32768,
"kindString": "Parameter",
"flags": {},
"comment": {
"shortText": "Named parameters"
},
"originalName": "__namedParameters",
"type": {
"type": "reflection",
"declaration": {
"id": 454,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
"flags": {},
"children": [
{
"id": 455,
"name": "foreignTable",
"kind": 1024,
"kindString": "Property",
"flags": {
"isOptional": true
},
"comment": {
"shortText": "Deprecated, use `options.referencedTable`\ninstead\n"
},
"sources": [
{
"fileName": "src/PostgrestTransformBuilder.ts",
"line": 179,
"character": 9
}
],
"type": {
"type": "intrinsic",
"name": "string"
}
},
{
"id": 456,
"name": "referencedTable",
"kind": 1024,
"kindString": "Property",
"flags": {
"isOptional": true
},
"comment": {
"shortText": "Set this to limit rows of referenced\ntables instead of the parent table"
},
"sources": [
{
"fileName": "src/PostgrestTransformBuilder.ts",
"line": 179,
"character": 32
}
],
"type": {
"type": "intrinsic",
"name": "string"
}
}
],
"groups": [
{
"title": "Properties",
"kind": 1024,
"children": [455, 456]
}
]
}
},
"defaultValue": "{}"
}
],
"type": {
"type": "reference",
"id": 165,
"typeArguments": [
{
"type": "reference",
"id": 168,
"name": "ClientOptions"
},
{
"type": "reference",
"id": 169,
"name": "Schema"
},
{
"type": "reference",
"id": 170,
"name": "Row"
},
{
"type": "reference",
"id": 171,
"name": "Result"
},
{
"type": "reference",
"id": 172,
"name": "RelationName"
},
{
"type": "reference",
"id": 173,
"name": "Relationships"
},
{
"type": "reference",
"id": 174,
"name": "Method"
}
],
"name": "default"
},
"inheritedFrom": {
"type": "reference",
"id": 603,
"name": "default.range"
}
}
],
"inheritedFrom": {
"type": "reference",
"id": 602,
"name": "default.range"
}
},
{
"id": 341,
"name": "rangeAdjacent",
"kind": 2048,
"kindString": "Method",
"flags": {},
"sources": [
{
"fileName": "src/PostgrestFilterBuilder.ts",
"line": 438,
"character": 2
}
],
"signatures": [
{
"id": 342,
"name": "rangeAdjacent",
"kind": 4096,
"kindString": "Call signature",
"flags": {},
"comment": {
"shortText": "Only relevant for range columns. Match only rows where `column` is\nmutually exclusive to `range` and there can be no element between the two\nranges."
},
"typeParameter": [
{
"id": 343,
"name": "ColumnName",
"kind": 131072,
"kindString": "Type parameter",
"flags": {},
"type": {
"type": "intrinsic",
"name": "string"
}
}
],
"parameters": [
{
"id": 344,
"name": "column",
"kind": 32768,
"kindString": "Parameter",
"flags": {},
"comment": {
"shortText": "The range column to filter on"
},
"type": {
"type": "reference",
"id": 343,
"name": "ColumnName"
}
},
{
"id": 345,
"name": "range",
"kind": 32768,
"kindString": "Parameter",
"flags": {},
"comment": {
"shortText": "The range to filter with\n"
},
"type": {
"type": "intrinsic",
"name": "string"
}
}
],
"type": {
"type": "reference",
"id": 165,
"typeArguments": [
{
"type": "reference",
"id": 168,
"name": "ClientOptions"
},
{
"type": "reference",
"id": 169,
"name": "Schema"
},
{
"type": "reference",
"id": 170,
"name": "Row"
},
{
"type": "reference",
"id": 171,
"name": "Result"
},
{
"type": "reference",
"id": 172,
"name": "RelationName"
},
{
"type": "reference",
"id": 173,
"name": "Relationships"
},
{
"type": "reference",
"id": 174,
"name": "Method"
}
],
"name": "default"
}
},
{
"id": 346,
"name": "rangeAdjacent",
"kind": 4096,
"kindString": "Call signature",
"flags": {},
"comment": {
"shortText": "Only relevant for range columns. Match only rows where `column` is\nmutually exclusive to `range` and there can be no element between the two\nranges."
},
"parameters": [
{
"id": 347,
"name": "column",
"kind": 32768,
"kindString": "Parameter",
"flags": {},
"comment": {
"shortText": "The range column to filter on"
},
"type": {
"type": "intrinsic",
"name": "string"
}
},
{
"id": 348,
"name": "range",
"kind": 32768,
"kindString": "Parameter",
"flags": {},
"comment": {
"shortText": "The range to filter with\n"
},
"type": {
"type": "intrinsic",
"name": "string"
}
}
],
"type": {
"type": "reference",
"id": 165,
"typeArguments": [
{
"type": "reference",
"id": 168,
"name": "ClientOptions"
},
{
"type": "reference",
"id": 169,
"name": "Schema"
},
{
"type": "reference",
"id": 170,
"name": "Row"
},
{
"type": "reference",
"id": 171,
"name": "Result"
},
{
"type": "reference",
"id": 172,
"name": "RelationName"
},
{
"type": "reference",
"id": 173,
"name": "Relationships"
},
{
"type": "reference",
"id": 174,
"name": "Method"
}
],
"name": "default"
}
}
]
},
{
"id": 309,
"name": "rangeGt",
"kind": 2048,
"kindString": "Method",
"flags": {},
"sources": [
{
"fileName": "src/PostgrestFilterBuilder.ts",
"line": 380,
"character": 2
}
],
"signatures": [
{
"id": 310,
"name": "rangeGt",
"kind": 4096,
"kindString": "Call signature",
"flags": {},
"comment": {
"shortText": "Only relevant for range columns. Match only rows where every element in\n`column` is greater than any element in `range`."
},
"typeParameter": [
{
"id": 311,
"name": "ColumnName",
"kind": 131072,
"kindString": "Type parameter",
"flags": {},
"type": {
"type": "intrinsic",
"name": "string"
}
}
],
"parameters": [
{
"id": 312,
"name": "column",
"kind": 32768,
"kindString": "Parameter",
"flags": {},
"comment": {
"shortText": "The range column to filter on"
},
"type": {
"type": "reference",
"id": 311,
"name": "ColumnName"
}
},
{
"id": 313,
"name": "range",
"kind": 32768,
"kindString": "Parameter",
"flags": {},
"comment": {
"shortText": "The range to filter with\n"
},
"type": {
"type": "intrinsic",
"name": "string"
}
}
],
"type": {
"type": "reference",
"id": 165,
"typeArguments": [
{
"type": "reference",
"id": 168,
"name": "ClientOptions"
},
{
"type": "reference",
"id": 169,
"name": "Schema"
},
{
"type": "reference",
"id": 170,
"name": "Row"
},
{
"type": "reference",
"id": 171,
"name": "Result"
},
{
"type": "reference",
"id": 172,
"name": "RelationName"
},
{
"type": "reference",
"id": 173,
"name": "Relationships"
},
{
"type": "reference",
"id": 174,
"name": "Method"
}
],
"name": "default"
}
},
{
"id": 314,
"name": "rangeGt",
"kind": 4096,
"kindString": "Call signature",
"flags": {},
"comment": {
"shortText": "Only relevant for range columns. Match only rows where every element in\n`column` is greater than any element in `range`."
},
"parameters": [
{
"id": 315,
"name": "column",
"kind": 32768,
"kindString": "Parameter",
"flags": {},
"comment": {
"shortText": "The range column to filter on"
},
"type": {
"type": "intrinsic",
"name": "string"
}
},
{
"id": 316,
"name": "range",
"kind": 32768,
"kindString": "Parameter",
"flags": {},
"comment": {
"shortText": "The range to filter with\n"
},
"type": {
"type": "intrinsic",
"name": "string"
}
}
],
"type": {
"type": "reference",
"id": 165,
"typeArguments": [
{
"type": "reference",
"id": 168,
"name": "ClientOptions"
},
{
"type": "reference",
"id": 169,
"name": "Schema"
},
{
"type": "reference",
"id": 170,
"name": "Row"
},
{
"type": "reference",
"id": 171,
"name": "Result"
},
{
"type": "reference",
"id": 172,
"name": "RelationName"
},
{
"type": "reference",
"id": 173,
"name": "Relationships"
},
{
"type": "reference",
"id": 174,
"name": "Method"
}
],
"name": "default"
}
}
]
},
{
"id": 317,
"name": "rangeGte",
"kind": 2048,
"kindString": "Method",
"flags": {},
"sources": [
{
"fileName": "src/PostgrestFilterBuilder.ts",
"line": 394,
"character": 2
}
],
"signatures": [
{
"id": 318,
"name": "rangeGte",
"kind": 4096,
"kindString": "Call signature",
"flags": {},
"comment": {
"shortText": "Only relevant for range columns. Match only rows where every element in\n`column` is either contained in `range` or greater than any element in\n`range`."
},
"typeParameter": [
{
"id": 319,
"name": "ColumnName",
"kind": 131072,
"kindString": "Type parameter",
"flags": {},
"type": {
"type": "intrinsic",
"name": "string"
}
}
],
"parameters": [
{
"id": 320,
"name": "column",
"kind": 32768,
"kindString": "Parameter",
"flags": {},
"comment": {
"shortText": "The range column to filter on"
},
"type": {
"type": "reference",
"id": 319,
"name": "ColumnName"
}
},
{
"id": 321,
"name": "range",
"kind": 32768,
"kindString": "Parameter",
"flags": {},
"comment": {
"shortText": "The range to filter with\n"
},
"type": {
"type": "intrinsic",
"name": "string"
}
}
],
"type": {
"type": "reference",
"id": 165,
"typeArguments": [
{
"type": "reference",
"id": 168,
"name": "ClientOptions"
},
{
"type": "reference",
"id": 169,
"name": "Schema"
},
{
"type": "reference",
"id": 170,
"name": "Row"
},
{
"type": "reference",
"id": 171,
"name": "Result"
},
{
"type": "reference",
"id": 172,
"name": "RelationName"
},
{
"type": "reference",
"id": 173,
"name": "Relationships"
},
{
"type": "reference",
"id": 174,
"name": "Method"
}
],
"name": "default"
}
},
{
"id": 322,
"name": "rangeGte",
"kind": 4096,
"kindString": "Call signature",
"flags": {},
"comment": {
"shortText": "Only relevant for range columns. Match only rows where every element in\n`column` is either contained in `range` or greater than any element in\n`range`."
},
"parameters": [
{
"id": 323,
"name": "column",
"kind": 32768,
"kindString": "Parameter",
"flags": {},
"comment": {
"shortText": "The range column to filter on"
},
"type": {
"type": "intrinsic",
"name": "string"
}
},
{
"id": 324,
"name": "range",
"kind": 32768,
"kindString": "Parameter",
"flags": {},
"comment": {
"shortText": "The range to filter with\n"
},
"type": {
"type": "intrinsic",
"name": "string"
}
}
],
"type": {
"type": "reference",
"id": 165,
"typeArguments": [
{
"type": "reference",
"id": 168,
"name": "ClientOptions"
},
{
"type": "reference",
"id": 169,
"name": "Schema"
},
{
"type": "reference",
"id": 170,
"name": "Row"
},
{
"type": "reference",
"id": 171,
"name": "Result"
},
{
"type": "reference",
"id": 172,
"name": "RelationName"
},
{
"type": "reference",
"id": 173,
"name": "Relationships"
},
{
"type": "reference",
"id": 174,
"name": "Method"
}
],
"name": "default"
}
}
]
},
{
"id": 325,
"name": "rangeLt",
"kind": 2048,
"kindString": "Method",
"flags": {},
"sources": [
{
"fileName": "src/PostgrestFilterBuilder.ts",
"line": 409,
"character": 2
}
],
"signatures": [
{
"id": 326,
"name": "rangeLt",
"kind": 4096,
"kindString": "Call signature",
"flags": {},
"comment": {
"shortText": "Only relevant for range columns. Match only rows where every element in\n`column` is less than any element in `range`."
},
"typeParameter": [
{
"id": 327,
"name": "ColumnName",
"kind": 131072,
"kindString": "Type parameter",
"flags": {},
"type": {
"type": "intrinsic",
"name": "string"
}
}
],
"parameters": [
{
"id": 328,
"name": "column",
"kind": 32768,
"kindString": "Parameter",
"flags": {},
"comment": {
"shortText": "The range column to filter on"
},
"type": {
"type": "reference",
"id": 327,
"name": "ColumnName"
}
},
{
"id": 329,
"name": "range",
"kind": 32768,
"kindString": "Parameter",
"flags": {},
"comment": {
"shortText": "The range to filter with\n"
},
"type": {
"type": "intrinsic",
"name": "string"
}
}
],
"type": {
"type": "reference",
"id": 165,
"typeArguments": [
{
"type": "reference",
"id": 168,
"name": "ClientOptions"
},
{
"type": "reference",
"id": 169,
"name": "Schema"
},
{
"type": "reference",
"id": 170,
"name": "Row"
},
{
"type": "reference",
"id": 171,
"name": "Result"
},
{
"type": "reference",
"id": 172,
"name": "RelationName"
},
{
"type": "reference",
"id": 173,
"name": "Relationships"
},
{
"type": "reference",
"id": 174,
"name": "Method"
}
],
"name": "default"
}
},
{
"id": 330,
"name": "rangeLt",
"kind": 4096,
"kindString": "Call signature",
"flags": {},
"comment": {
"shortText": "Only relevant for range columns. Match only rows where every element in\n`column` is less than any element in `range`."
},
"parameters": [
{
"id": 331,
"name": "column",
"kind": 32768,
"kindString": "Parameter",
"flags": {},
"comment": {
"shortText": "The range column to filter on"
},
"type": {
"type": "intrinsic",
"name": "string"
}
},
{
"id": 332,
"name": "range",
"kind": 32768,
"kindString": "Parameter",
"flags": {},
"comment": {
"shortText": "The range to filter with\n"
},
"type": {
"type": "intrinsic",
"name": "string"
}
}
],
"type": {
"type": "reference",
"id": 165,
"typeArguments": [
{
"type": "reference",
"id": 168,
"name": "ClientOptions"
},
{
"type": "reference",
"id": 169,
"name": "Schema"
},
{
"type": "reference",
"id": 170,
"name": "Row"
},
{
"type": "reference",
"id": 171,
"name": "Result"
},
{
"type": "reference",
"id": 172,
"name": "RelationName"
},
{
"type": "reference",
"id": 173,
"name": "Relationships"
},
{
"type": "reference",
"id": 174,
"name": "Method"
}
],
"name": "default"
}
}
]
},
{
"id": 333,
"name": "rangeLte",
"kind": 2048,
"kindString": "Method",
"flags": {},
"sources": [
{
"fileName": "src/PostgrestFilterBuilder.ts",
"line": 423,
"character": 2
}
],
"signatures": [
{
"id": 334,
"name": "rangeLte",
"kind": 4096,
"kindString": "Call signature",
"flags": {},
"comment": {
"shortText": "Only relevant for range columns. Match only rows where every element in\n`column` is either contained in `range` or less than any element in\n`range`."
},
"typeParameter": [
{
"id": 335,
"name": "ColumnName",
"kind": 131072,
"kindString": "Type parameter",
"flags": {},
"type": {
"type": "intrinsic",
"name": "string"
}
}
],
"parameters": [
{
"id": 336,
"name": "column",
"kind": 32768,
"kindString": "Parameter",
"flags": {},
"comment": {
"shortText": "The range column to filter on"
},
"type": {
"type": "reference",
"id": 335,
"name": "ColumnName"
}
},
{
"id": 337,
"name": "range",
"kind": 32768,
"kindString": "Parameter",
"flags": {},
"comment": {
"shortText": "The range to filter with\n"
},
"type": {
"type": "intrinsic",
"name": "string"
}
}
],
"type": {
"type": "reference",
"id": 165,
"typeArguments": [
{
"type": "reference",
"id": 168,
"name": "ClientOptions"
},
{
"type": "reference",
"id": 169,
"name": "Schema"
},
{
"type": "reference",
"id": 170,
"name": "Row"
},
{
"type": "reference",
"id": 171,
"name": "Result"
},
{
"type": "reference",
"id": 172,
"name": "RelationName"
},
{
"type": "reference",
"id": 173,
"name": "Relationships"
},
{
"type": "reference",
"id": 174,
"name": "Method"
}
],
"name": "default"
}
},
{
"id": 338,
"name": "rangeLte",
"kind": 4096,
"kindString": "Call signature",
"flags": {},
"comment": {
"shortText": "Only relevant for range columns. Match only rows where every element in\n`column` is either contained in `range` or less than any element in\n`range`."
},
"parameters": [
{
"id": 339,
"name": "column",
"kind": 32768,
"kindString": "Parameter",
"flags": {},
"comment": {
"shortText": "The range column to filter on"
},
"type": {
"type": "intrinsic",
"name": "string"
}
},
{
"id": 340,
"name": "range",
"kind": 32768,
"kindString": "Parameter",
"flags": {},
"comment": {
"shortText": "The range to filter with\n"
},
"type": {
"type": "intrinsic",
"name": "string"
}
}
],
"type": {
"type": "reference",
"id": 165,
"typeArguments": [
{
"type": "reference",
"id": 168,
"name": "ClientOptions"
},
{
"type": "reference",
"id": 169,
"name": "Schema"
},
{
"type": "reference",
"id": 170,
"name": "Row"
},
{
"type": "reference",
"id": 171,
"name": "Result"
},
{
"type": "reference",
"id": 172,
"name": "RelationName"
},
{
"type": "reference",
"id": 173,
"name": "Relationships"
},
{
"type": "reference",
"id": 174,
"name": "Method"
}
],
"name": "default"
}
}
]
},
{
"id": 482,
"name": "returns",
"kind": 2048,
"kindString": "Method",
"flags": {},
"sources": [
{
"fileName": "src/PostgrestTransformBuilder.ts",
"line": 328,
"character": 2
}
],
"signatures": [
{
"id": 483,
"name": "returns",
"kind": 4096,
"kindString": "Call signature",
"flags": {},
"comment": {
"shortText": "Override the type of the returned `data`.",
"tags": [
{
"tag": "deprecated",
"text": "Use overrideTypes<yourType, { merge: false }>() method at the end of your call chain instead\n"
}
]
},
"typeParameter": [
{
"id": 484,
"name": "NewResult",
"kind": 131072,
"kindString": "Type parameter",
"flags": {},
"comment": {
"shortText": "The new result type to override with"
}
}
],
"type": {
"type": "reference",
"id": 534,
"typeArguments": [
{
"type": "reference",
"id": 168,
"name": "ClientOptions"
},
{
"type": "reference",
"id": 169,
"name": "Schema"
},
{
"type": "reference",
"id": 170,
"name": "Row"
},
{
"type": "reference",
"typeArguments": [
{
"type": "reference",
"id": 171,
"name": "Result"
},
{
"type": "reference",
"id": 484,
"name": "NewResult"
}
],
"name": "CheckMatchingArrayTypes"
},
{
"type": "reference",
"id": 172,
"name": "RelationName"
},
{
"type": "reference",
"id": 173,
"name": "Relationships"
},
{
"type": "reference",
"id": 174,
"name": "Method"
}
],
"name": "default"
},
"inheritedFrom": {
"type": "reference",
"id": 636,
"name": "default.returns"
}
}
],
"inheritedFrom": {
"type": "reference",
"id": 635,
"name": "default.returns"
}
},
{
"id": 480,
"name": "rollback",
"kind": 2048,
"kindString": "Method",
"flags": {},
"sources": [
{
"fileName": "src/PostgrestTransformBuilder.ts",
"line": 317,
"character": 2
}
],
"signatures": [
{
"id": 481,
"name": "rollback",
"kind": 4096,
"kindString": "Call signature",
"flags": {},
"comment": {
"shortText": "Rollback the query.",
"text": "`data` will still be returned, but the query is not committed.\n"
},
"type": {
"type": "reference",
"id": 165,
"typeArguments": [
{
"type": "reference",
"id": 168,
"name": "ClientOptions"
},
{
"type": "reference",
"id": 169,
"name": "Schema"
},
{
"type": "reference",
"id": 170,
"name": "Row"
},
{
"type": "reference",
"id": 171,
"name": "Result"
},
{
"type": "reference",
"id": 172,
"name": "RelationName"
},
{
"type": "reference",
"id": 173,
"name": "Relationships"
},
{
"type": "reference",
"id": 174,
"name": "Method"
}
],
"name": "default"
},
"inheritedFrom": {
"type": "reference",
"id": 634,
"name": "default.rollback"
}
}
],
"inheritedFrom": {
"type": "reference",
"id": 633,
"name": "default.rollback"
}
},
{
"id": 406,
"name": "select",
"kind": 2048,
"kindString": "Method",
"flags": {},
"sources": [
{
"fileName": "src/PostgrestTransformBuilder.ts",
"line": 29,
"character": 2
}
],
"signatures": [
{
"id": 407,
"name": "select",
"kind": 4096,
"kindString": "Call signature",
"flags": {},
"comment": {
"shortText": "Perform a SELECT on the query result.",
"text": "By default, `.insert()`, `.update()`, `.upsert()`, and `.delete()` do not\nreturn modified rows. By calling this method, modified rows are returned in\n`data`.\n"
},
"typeParameter": [
{
"id": 408,
"name": "Query",
"kind": 131072,
"kindString": "Type parameter",
"flags": {},
"type": {
"type": "intrinsic",
"name": "string"
},
"default": {
"type": "literal",
"value": "*"
}
},
{
"id": 409,
"name": "NewResultOne",
"kind": 131072,
"kindString": "Type parameter",
"flags": {},
"default": {
"type": "reference",
"id": 792,
"typeArguments": [
{
"type": "reference",
"id": 169,
"name": "Schema"
},
{
"type": "reference",
"id": 170,
"name": "Row"
},
{
"type": "reference",
"id": 172,
"name": "RelationName"
},
{
"type": "reference",
"id": 173,
"name": "Relationships"
},
{
"type": "reference",
"id": 408,
"name": "Query"
},
{
"type": "reference",
"id": 168,
"name": "ClientOptions"
}
],
"name": "GetResult"
}
}
],
"parameters": [
{
"id": 410,
"name": "columns",
"kind": 32768,
"kindString": "Parameter",
"flags": {
"isOptional": true
},
"comment": {
"shortText": "The columns to retrieve, separated by commas\n"
},
"type": {
"type": "reference",
"id": 408,
"name": "Query"
}
}
],
"type": {
"type": "reference",
"id": 534,
"typeArguments": [
{
"type": "reference",
"id": 168,
"name": "ClientOptions"
},
{
"type": "reference",
"id": 169,
"name": "Schema"
},
{
"type": "reference",
"id": 170,
"name": "Row"
},
{
"type": "array",
"elementType": {
"type": "reference",
"id": 409,
"name": "NewResultOne"
}
},
{
"type": "reference",
"id": 172,
"name": "RelationName"
},
{
"type": "reference",
"id": 173,
"name": "Relationships"
},
{
"type": "reference",
"id": 174,
"name": "Method"
}
],
"name": "default"
},
"inheritedFrom": {
"type": "reference",
"id": 560,
"name": "default.select"
}
}
],
"inheritedFrom": {
"type": "reference",
"id": 559,
"name": "default.select"
}
},
{
"id": 503,
"name": "setHeader",
"kind": 2048,
"kindString": "Method",
"flags": {},
"sources": [
{
"fileName": "src/PostgrestBuilder.ts",
"line": 78,
"character": 2
}
],
"signatures": [
{
"id": 504,
"name": "setHeader",
"kind": 4096,
"kindString": "Call signature",
"flags": {},
"comment": {
"shortText": "Set an HTTP header for the request."
},
"parameters": [
{
"id": 505,
"name": "name",
"kind": 32768,
"kindString": "Parameter",
"flags": {},
"type": {
"type": "intrinsic",
"name": "string"
}
},
{
"id": 506,
"name": "value",
"kind": 32768,
"kindString": "Parameter",
"flags": {},
"type": {
"type": "intrinsic",
"name": "string"
}
}
],
"type": {
"type": "reference",
"id": 165,
"typeArguments": [
{
"type": "reference",
"id": 168,
"name": "ClientOptions"
},
{
"type": "reference",
"id": 169,
"name": "Schema"
},
{
"type": "reference",
"id": 170,
"name": "Row"
},
{
"type": "reference",
"id": 171,
"name": "Result"
},
{
"type": "reference",
"id": 172,
"name": "RelationName"
},
{
"type": "reference",
"id": 173,
"name": "Relationships"
},
{
"type": "reference",
"id": 174,
"name": "Method"
}
],
"name": "default"
},
"inheritedFrom": {
"type": "reference",
"id": 657,
"name": "default.setHeader"
}
}
],
"inheritedFrom": {
"type": "reference",
"id": 656,
"name": "default.setHeader"
}
},
{
"id": 460,
"name": "single",
"kind": 2048,
"kindString": "Method",
"flags": {},
"sources": [
{
"fileName": "src/PostgrestTransformBuilder.ts",
"line": 206,
"character": 2
}
],
"signatures": [
{
"id": 461,
"name": "single",
"kind": 4096,
"kindString": "Call signature",
"flags": {},
"comment": {
"shortText": "Return `data` as a single object instead of an array of objects.",
"text": "Query result must be one row (e.g. using `.limit(1)`), otherwise this\nreturns an error.\n"
},
"typeParameter": [
{
"id": 462,
"name": "ResultOne",
"kind": 131072,
"kindString": "Type parameter",
"flags": {},
"default": {
"type": "conditional",
"checkType": {
"type": "reference",
"id": 171,
"name": "Result"
},
"extendsType": {
"type": "array",
"elementType": {
"type": "reference",
"name": "ResultOne"
}
},
"trueType": {
"type": "reference",
"name": "ResultOne"
},
"falseType": {
"type": "intrinsic",
"name": "never"
}
}
}
],
"type": {
"type": "reference",
"id": 687,
"typeArguments": [
{
"type": "reference",
"id": 168,
"name": "ClientOptions"
},
{
"type": "reference",
"id": 462,
"name": "ResultOne"
},
{
"type": "literal",
"value": false
}
],
"name": "default"
},
"inheritedFrom": {
"type": "reference",
"id": 614,
"name": "default.single"
}
}
],
"inheritedFrom": {
"type": "reference",
"id": 613,
"name": "default.single"
}
},
{
"id": 357,
"name": "textSearch",
"kind": 2048,
"kindString": "Method",
"flags": {},
"sources": [
{
"fileName": "src/PostgrestFilterBuilder.ts",
"line": 476,
"character": 2
}
],
"signatures": [
{
"id": 358,
"name": "textSearch",
"kind": 4096,
"kindString": "Call signature",
"flags": {},
"comment": {
"shortText": "Only relevant for text and tsvector columns. Match only rows where\n`column` matches the query string in `query`."
},
"typeParameter": [
{
"id": 359,
"name": "ColumnName",
"kind": 131072,
"kindString": "Type parameter",
"flags": {},
"type": {
"type": "intrinsic",
"name": "string"
}
}
],
"parameters": [
{
"id": 360,
"name": "column",
"kind": 32768,
"kindString": "Parameter",
"flags": {},
"comment": {
"shortText": "The text or tsvector column to filter on"
},
"type": {
"type": "reference",
"id": 359,
"name": "ColumnName"
}
},
{
"id": 361,
"name": "query",
"kind": 32768,
"kindString": "Parameter",
"flags": {},
"comment": {
"shortText": "The query text to match with"
},
"type": {
"type": "intrinsic",
"name": "string"
}
},
{
"id": 362,
"name": "options",
"kind": 32768,
"kindString": "Parameter",
"flags": {
"isOptional": true
},
"comment": {
"shortText": "Named parameters"
},
"type": {
"type": "reflection",
"declaration": {
"id": 363,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
"flags": {},
"children": [
{
"id": 364,
"name": "config",
"kind": 1024,
"kindString": "Property",
"flags": {
"isOptional": true
},
"comment": {
"shortText": "The text search configuration to use"
},
"sources": [
{
"fileName": "src/PostgrestFilterBuilder.ts",
"line": 479,
"character": 16
}
],
"type": {
"type": "intrinsic",
"name": "string"
}
},
{
"id": 365,
"name": "type",
"kind": 1024,
"kindString": "Property",
"flags": {
"isOptional": true
},
"comment": {
"shortText": "Change how the `query` text is interpreted\n"
},
"sources": [
{
"fileName": "src/PostgrestFilterBuilder.ts",
"line": 479,
"character": 33
}
],
"type": {
"type": "union",
"types": [
{
"type": "literal",
"value": "plain"
},
{
"type": "literal",
"value": "phrase"
},
{
"type": "literal",
"value": "websearch"
}
]
}
}
],
"groups": [
{
"title": "Properties",
"kind": 1024,
"children": [364, 365]
}
]
}
}
}
],
"type": {
"type": "reference",
"id": 165,
"typeArguments": [
{
"type": "reference",
"id": 168,
"name": "ClientOptions"
},
{
"type": "reference",
"id": 169,
"name": "Schema"
},
{
"type": "reference",
"id": 170,
"name": "Row"
},
{
"type": "reference",
"id": 171,
"name": "Result"
},
{
"type": "reference",
"id": 172,
"name": "RelationName"
},
{
"type": "reference",
"id": 173,
"name": "Relationships"
},
{
"type": "reference",
"id": 174,
"name": "Method"
}
],
"name": "default"
}
},
{
"id": 366,
"name": "textSearch",
"kind": 4096,
"kindString": "Call signature",
"flags": {},
"comment": {
"shortText": "Only relevant for text and tsvector columns. Match only rows where\n`column` matches the query string in `query`."
},
"parameters": [
{
"id": 367,
"name": "column",
"kind": 32768,
"kindString": "Parameter",
"flags": {},
"comment": {
"shortText": "The text or tsvector column to filter on"
},
"type": {
"type": "intrinsic",
"name": "string"
}
},
{
"id": 368,
"name": "query",
"kind": 32768,
"kindString": "Parameter",
"flags": {},
"comment": {
"shortText": "The query text to match with"
},
"type": {
"type": "intrinsic",
"name": "string"
}
},
{
"id": 369,
"name": "options",
"kind": 32768,
"kindString": "Parameter",
"flags": {
"isOptional": true
},
"comment": {
"shortText": "Named parameters"
},
"type": {
"type": "reflection",
"declaration": {
"id": 370,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
"flags": {},
"children": [
{
"id": 371,
"name": "config",
"kind": 1024,
"kindString": "Property",
"flags": {
"isOptional": true
},
"comment": {
"shortText": "The text search configuration to use"
},
"sources": [
{
"fileName": "src/PostgrestFilterBuilder.ts",
"line": 484,
"character": 16
}
],
"type": {
"type": "intrinsic",
"name": "string"
}
},
{
"id": 372,
"name": "type",
"kind": 1024,
"kindString": "Property",
"flags": {
"isOptional": true
},
"comment": {
"shortText": "Change how the `query` text is interpreted\n"
},
"sources": [
{
"fileName": "src/PostgrestFilterBuilder.ts",
"line": 484,
"character": 33
}
],
"type": {
"type": "union",
"types": [
{
"type": "literal",
"value": "plain"
},
{
"type": "literal",
"value": "phrase"
},
{
"type": "literal",
"value": "websearch"
}
]
}
}
],
"groups": [
{
"title": "Properties",
"kind": 1024,
"children": [371, 372]
}
]
}
}
}
],
"type": {
"type": "reference",
"id": 165,
"typeArguments": [
{
"type": "reference",
"id": 168,
"name": "ClientOptions"
},
{
"type": "reference",
"id": 169,
"name": "Schema"
},
{
"type": "reference",
"id": 170,
"name": "Row"
},
{
"type": "reference",
"id": 171,
"name": "Result"
},
{
"type": "reference",
"id": 172,
"name": "RelationName"
},
{
"type": "reference",
"id": 173,
"name": "Relationships"
},
{
"type": "reference",
"id": 174,
"name": "Method"
}
],
"name": "default"
}
}
]
},
{
"id": 507,
"name": "then",
"kind": 2048,
"kindString": "Method",
"flags": {},
"sources": [
{
"fileName": "src/PostgrestBuilder.ts",
"line": 84,
"character": 2
}
],
"signatures": [
{
"id": 508,
"name": "then",
"kind": 4096,
"kindString": "Call signature",
"flags": {},
"typeParameter": [
{
"id": 509,
"name": "TResult1",
"kind": 131072,
"kindString": "Type parameter",
"flags": {},
"default": {
"type": "reference",
"id": 780,
"typeArguments": [
{
"type": "reference",
"id": 171,
"name": "Result"
}
],
"name": "PostgrestSingleResponse"
}
},
{
"id": 510,
"name": "TResult2",
"kind": 131072,
"kindString": "Type parameter",
"flags": {},
"default": {
"type": "intrinsic",
"name": "never"
}
}
],
"parameters": [
{
"id": 511,
"name": "onfulfilled",
"kind": 32768,
"kindString": "Parameter",
"flags": {
"isOptional": true
},
"type": {
"type": "union",
"types": [
{
"type": "literal",
"value": null
},
{
"type": "reflection",
"declaration": {
"id": 512,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
"flags": {},
"signatures": [
{
"id": 513,
"name": "__type",
"kind": 4096,
"kindString": "Call signature",
"flags": {},
"parameters": [
{
"id": 514,
"name": "value",
"kind": 32768,
"kindString": "Parameter",
"flags": {},
"type": {
"type": "reference",
"id": 780,
"typeArguments": [
{
"type": "reference",
"id": 171,
"name": "Result"
}
],
"name": "PostgrestSingleResponse"
}
}
],
"type": {
"type": "union",
"types": [
{
"type": "reference",
"id": 509,
"name": "TResult1"
},
{
"type": "reference",
"typeArguments": [
{
"type": "reference",
"id": 509,
"name": "TResult1"
}
],
"qualifiedName": "PromiseLike",
"package": "typescript",
"name": "PromiseLike"
}
]
}
}
]
}
}
]
}
},
{
"id": 515,
"name": "onrejected",
"kind": 32768,
"kindString": "Parameter",
"flags": {
"isOptional": true
},
"type": {
"type": "union",
"types": [
{
"type": "literal",
"value": null
},
{
"type": "reflection",
"declaration": {
"id": 516,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
"flags": {},
"signatures": [
{
"id": 517,
"name": "__type",
"kind": 4096,
"kindString": "Call signature",
"flags": {},
"parameters": [
{
"id": 518,
"name": "reason",
"kind": 32768,
"kindString": "Parameter",
"flags": {},
"type": {
"type": "intrinsic",
"name": "any"
}
}
],
"type": {
"type": "union",
"types": [
{
"type": "reference",
"id": 510,
"name": "TResult2"
},
{
"type": "reference",
"typeArguments": [
{
"type": "reference",
"id": 510,
"name": "TResult2"
}
],
"qualifiedName": "PromiseLike",
"package": "typescript",
"name": "PromiseLike"
}
]
}
}
]
}
}
]
}
}
],
"type": {
"type": "reference",
"typeArguments": [
{
"type": "union",
"types": [
{
"type": "reference",
"id": 509,
"name": "TResult1"
},
{
"type": "reference",
"id": 510,
"name": "TResult2"
}
]
}
],
"qualifiedName": "PromiseLike",
"package": "typescript",
"name": "PromiseLike"
},
"inheritedFrom": {
"type": "reference",
"id": 661,
"name": "default.then"
}
}
],
"inheritedFrom": {
"type": "reference",
"id": 660,
"name": "default.then"
}
},
{
"id": 501,
"name": "throwOnError",
"kind": 2048,
"kindString": "Method",
"flags": {},
"sources": [
{
"fileName": "src/PostgrestBuilder.ts",
"line": 70,
"character": 2
}
],
"signatures": [
{
"id": 502,
"name": "throwOnError",
"kind": 4096,
"kindString": "Call signature",
"flags": {},
"comment": {
"shortText": "If there's an error with the query, throwOnError will reject the promise by\nthrowing the error instead of returning it as part of a successful response.",
"text": "{@link https://github.com/supabase/supabase-js/issues/92}\n"
},
"type": {
"type": "intersection",
"types": [
{
"type": "reference",
"id": 165,
"typeArguments": [
{
"type": "reference",
"id": 168,
"name": "ClientOptions"
},
{
"type": "reference",
"id": 169,
"name": "Schema"
},
{
"type": "reference",
"id": 170,
"name": "Row"
},
{
"type": "reference",
"id": 171,
"name": "Result"
},
{
"type": "reference",
"id": 172,
"name": "RelationName"
},
{
"type": "reference",
"id": 173,
"name": "Relationships"
},
{
"type": "reference",
"id": 174,
"name": "Method"
}
],
"name": "default"
},
{
"type": "reference",
"id": 687,
"typeArguments": [
{
"type": "reference",
"id": 168,
"name": "ClientOptions"
},
{
"type": "reference",
"id": 171,
"name": "Result"
},
{
"type": "literal",
"value": true
}
],
"name": "default"
}
]
},
"inheritedFrom": {
"type": "reference",
"id": 655,
"name": "default.throwOnError"
}
}
],
"inheritedFrom": {
"type": "reference",
"id": 654,
"name": "default.throwOnError"
}
}
],
"groups": [
{
"title": "Constructors",
"kind": 512,
"children": [166]
},
{
"title": "Properties",
"kind": 1024,
"children": [492, 495, 490, 500, 488, 491, 493, 494, 489]
},
{
"title": "Methods",
"kind": 2048,
"children": [
457, 301, 293, 466, 190, 470, 396, 468, 200, 208, 256, 264, 272, 288, 280, 232, 240,
248, 442, 216, 224, 373, 485, 463, 195, 379, 389, 411, 349, 519, 449, 341, 309, 317,
325, 333, 482, 480, 406, 503, 460, 357, 507, 501
]
}
],
"sources": [
{
"fileName": "src/PostgrestFilterBuilder.ts",
"line": 74,
"character": 21
}
],
"typeParameter": [
{
"id": 527,
"name": "ClientOptions",
"kind": 131072,
"kindString": "Type parameter",
"flags": {},
"type": {
"type": "reference",
"id": 784,
"name": "ClientServerOptions"
}
},
{
"id": 528,
"name": "Schema",
"kind": 131072,
"kindString": "Type parameter",
"flags": {},
"type": {
"type": "reference",
"name": "GenericSchema"
}
},
{
"id": 529,
"name": "Row",
"kind": 131072,
"kindString": "Type parameter",
"flags": {},
"type": {
"type": "reference",
"typeArguments": [
{
"type": "intrinsic",
"name": "string"
},
{
"type": "intrinsic",
"name": "unknown"
}
],
"qualifiedName": "Record",
"package": "typescript",
"name": "Record"
}
},
{
"id": 530,
"name": "Result",
"kind": 131072,
"kindString": "Type parameter",
"flags": {}
},
{
"id": 531,
"name": "RelationName",
"kind": 131072,
"kindString": "Type parameter",
"flags": {},
"default": {
"type": "intrinsic",
"name": "unknown"
}
},
{
"id": 532,
"name": "Relationships",
"kind": 131072,
"kindString": "Type parameter",
"flags": {},
"default": {
"type": "intrinsic",
"name": "unknown"
}
},
{
"id": 533,
"name": "Method",
"kind": 131072,
"kindString": "Type parameter",
"flags": {},
"default": {
"type": "intrinsic",
"name": "unknown"
}
}
],
"extendedTypes": [
{
"type": "reference",
"id": 534,
"typeArguments": [
{
"type": "reference",
"id": 168,
"name": "ClientOptions"
},
{
"type": "reference",
"id": 169,
"name": "Schema"
},
{
"type": "reference",
"id": 170,
"name": "Row"
},
{
"type": "reference",
"id": 171,
"name": "Result"
},
{
"type": "reference",
"id": 172,
"name": "RelationName"
},
{
"type": "reference",
"id": 173,
"name": "Relationships"
},
{
"type": "reference",
"id": 174,
"name": "Method"
}
],
"name": "default"
}
]
},
{
"id": 76,
"name": "PostgrestQueryBuilder",
"kind": 128,
"kindString": "Class",
"flags": {},
"children": [
{
"id": 77,
"name": "constructor",
"kind": 512,
"kindString": "Constructor",
"flags": {},
"sources": [
{
"fileName": "src/PostgrestQueryBuilder.ts",
"line": 18,
"character": 2
}
],
"signatures": [
{
"id": 78,
"name": "new PostgrestQueryBuilder",
"kind": 16384,
"kindString": "Constructor signature",
"flags": {},
"typeParameter": [
{
"id": 79,
"name": "ClientOptions",
"kind": 131072,
"kindString": "Type parameter",
"flags": {},
"type": {
"type": "reference",
"id": 784,
"name": "ClientServerOptions"
}
},
{
"id": 80,
"name": "Schema",
"kind": 131072,
"kindString": "Type parameter",
"flags": {},
"type": {
"type": "reference",
"name": "GenericSchema"
}
},
{
"id": 81,
"name": "Relation",
"kind": 131072,
"kindString": "Type parameter",
"flags": {},
"type": {
"type": "union",
"types": [
{
"type": "reference",
"name": "GenericTable"
},
{
"type": "reference",
"name": "GenericView"
}
]
}
},
{
"id": 82,
"name": "RelationName",
"kind": 131072,
"kindString": "Type parameter",
"flags": {},
"default": {
"type": "intrinsic",
"name": "unknown"
}
},
{
"id": 85,
"name": "Relationships",
"kind": 131072,
"kindString": "Type parameter",
"flags": {},
"default": {
"type": "conditional",
"checkType": {
"type": "reference",
"id": 81,
"name": "Relation"
},
"extendsType": {
"type": "reflection",
"declaration": {
"id": 83,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
"flags": {},
"children": [
{
"id": 84,
"name": "Relationships",
"kind": 1024,
"kindString": "Property",
"flags": {},
"sources": [
{
"fileName": "src/PostgrestQueryBuilder.ts",
"line": 10,
"character": 37
}
],
"type": {
"type": "reference",
"name": "R"
}
}
],
"groups": [
{
"title": "Properties",
"kind": 1024,
"children": [84]
}
]
}
},
"trueType": {
"type": "reference",
"name": "R"
},
"falseType": {
"type": "intrinsic",
"name": "unknown"
}
}
}
],
"parameters": [
{
"id": 86,
"name": "url",
"kind": 32768,
"kindString": "Parameter",
"flags": {},
"type": {
"type": "reference",
"qualifiedName": "URL",
"package": "typescript",
"name": "URL"
}
},
{
"id": 87,
"name": "__namedParameters",
"kind": 32768,
"kindString": "Parameter",
"flags": {},
"type": {
"type": "reflection",
"declaration": {
"id": 88,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
"flags": {},
"children": [
{
"id": 91,
"name": "fetch",
"kind": 1024,
"kindString": "Property",
"flags": {
"isOptional": true
},
"sources": [
{
"fileName": "src/PostgrestQueryBuilder.ts",
"line": 27,
"character": 6
}
],
"type": {
"type": "reflection",
"declaration": {
"id": 92,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
"flags": {},
"signatures": [
{
"id": 93,
"name": "__type",
"kind": 4096,
"kindString": "Call signature",
"flags": {},
"parameters": [
{
"id": 94,
"name": "input",
"kind": 32768,
"kindString": "Parameter",
"flags": {},
"type": {
"type": "union",
"types": [
{
"type": "reference",
"qualifiedName": "RequestInfo",
"package": "typescript",
"name": "RequestInfo"
},
{
"type": "reference",
"qualifiedName": "URL",
"package": "typescript",
"name": "URL"
}
]
}
},
{
"id": 95,
"name": "init",
"kind": 32768,
"kindString": "Parameter",
"flags": {
"isOptional": true
},
"type": {
"type": "reference",
"qualifiedName": "RequestInit",
"package": "typescript",
"name": "RequestInit"
}
}
],
"type": {
"type": "reference",
"typeArguments": [
{
"type": "reference",
"qualifiedName": "Response",
"package": "typescript",
"name": "Response"
}
],
"qualifiedName": "Promise",
"package": "typescript",
"name": "Promise"
}
}
]
}
}
},
{
"id": 89,
"name": "headers",
"kind": 1024,
"kindString": "Property",
"flags": {
"isOptional": true
},
"sources": [
{
"fileName": "src/PostgrestQueryBuilder.ts",
"line": 25,
"character": 6
}
],
"type": {
"type": "reference",
"qualifiedName": "HeadersInit",
"package": "typescript",
"name": "HeadersInit"
}
},
{
"id": 90,
"name": "schema",
"kind": 1024,
"kindString": "Property",
"flags": {
"isOptional": true
},
"sources": [
{
"fileName": "src/PostgrestQueryBuilder.ts",
"line": 26,
"character": 6
}
],
"type": {
"type": "intrinsic",
"name": "string"
}
}
],
"groups": [
{
"title": "Properties",
"kind": 1024,
"children": [91, 89, 90]
}
]
}
}
}
],
"type": {
"type": "reference",
"id": 76,
"typeArguments": [
{
"type": "reference",
"id": 79,
"name": "ClientOptions"
},
{
"type": "reference",
"id": 80,
"name": "Schema"
},
{
"type": "reference",
"id": 81,
"name": "Relation"
},
{
"type": "reference",
"id": 82,
"name": "RelationName"
},
{
"type": "reference",
"id": 85,
"name": "Relationships"
}
],
"name": "default"
}
}
]
},
{
"id": 100,
"name": "fetch",
"kind": 1024,
"kindString": "Property",
"flags": {
"isOptional": true
},
"sources": [
{
"fileName": "src/PostgrestQueryBuilder.ts",
"line": 16,
"character": 2
}
],
"type": {
"type": "reflection",
"declaration": {
"id": 101,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
"flags": {},
"signatures": [
{
"id": 102,
"name": "__type",
"kind": 4096,
"kindString": "Call signature",
"flags": {},
"parameters": [
{
"id": 103,
"name": "input",
"kind": 32768,
"kindString": "Parameter",
"flags": {},
"type": {
"type": "union",
"types": [
{
"type": "reference",
"qualifiedName": "RequestInfo",
"package": "typescript",
"name": "RequestInfo"
},
{
"type": "reference",
"qualifiedName": "URL",
"package": "typescript",
"name": "URL"
}
]
}
},
{
"id": 104,
"name": "init",
"kind": 32768,
"kindString": "Parameter",
"flags": {
"isOptional": true
},
"type": {
"type": "reference",
"qualifiedName": "RequestInit",
"package": "typescript",
"name": "RequestInit"
}
}
],
"type": {
"type": "reference",
"typeArguments": [
{
"type": "reference",
"qualifiedName": "Response",
"package": "typescript",
"name": "Response"
}
],
"qualifiedName": "Promise",
"package": "typescript",
"name": "Promise"
}
}
]
}
}
},
{
"id": 97,
"name": "headers",
"kind": 1024,
"kindString": "Property",
"flags": {},
"sources": [
{
"fileName": "src/PostgrestQueryBuilder.ts",
"line": 13,
"character": 2
}
],
"type": {
"type": "reference",
"qualifiedName": "Headers",
"package": "typescript",
"name": "Headers"
}
},
{
"id": 98,
"name": "schema",
"kind": 1024,
"kindString": "Property",
"flags": {
"isOptional": true
},
"sources": [
{
"fileName": "src/PostgrestQueryBuilder.ts",
"line": 14,
"character": 2
}
],
"type": {
"type": "intrinsic",
"name": "string"
}
},
{
"id": 99,
"name": "signal",
"kind": 1024,
"kindString": "Property",
"flags": {
"isOptional": true
},
"sources": [
{
"fileName": "src/PostgrestQueryBuilder.ts",
"line": 15,
"character": 2
}
],
"type": {
"type": "reference",
"qualifiedName": "AbortSignal",
"package": "typescript",
"name": "AbortSignal"
}
},
{
"id": 96,
"name": "url",
"kind": 1024,
"kindString": "Property",
"flags": {},
"sources": [
{
"fileName": "src/PostgrestQueryBuilder.ts",
"line": 12,
"character": 2
}
],
"type": {
"type": "reference",
"qualifiedName": "URL",
"package": "typescript",
"name": "URL"
}
},
{
"id": 153,
"name": "delete",
"kind": 2048,
"kindString": "Method",
"flags": {},
"sources": [
{
"fileName": "src/PostgrestQueryBuilder.ts",
"line": 411,
"character": 2
}
],
"signatures": [
{
"id": 154,
"name": "delete",
"kind": 4096,
"kindString": "Call signature",
"flags": {},
"comment": {
"shortText": "Perform a DELETE on the table or view.",
"text": "By default, deleted rows are not returned. To return it, chain the call\nwith `.select()` after filters.\n"
},
"parameters": [
{
"id": 155,
"name": "options",
"kind": 32768,
"kindString": "Parameter",
"flags": {},
"comment": {
"shortText": "Named parameters\n"
},
"originalName": "__namedParameters",
"type": {
"type": "reflection",
"declaration": {
"id": 156,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
"flags": {},
"children": [
{
"id": 157,
"name": "count",
"kind": 1024,
"kindString": "Property",
"flags": {
"isOptional": true
},
"comment": {
"shortText": "Count algorithm to use to count deleted rows.\n\n`\"exact\"`: Exact but slow count algorithm. Performs a `COUNT(*)` under the\nhood.\n\n`\"planned\"`: Approximated but fast count algorithm. Uses the Postgres\nstatistics under the hood.\n\n`\"estimated\"`: Uses exact count for low numbers and planned count for high\nnumbers.\n"
},
"sources": [
{
"fileName": "src/PostgrestQueryBuilder.ts",
"line": 414,
"character": 4
}
],
"type": {
"type": "union",
"types": [
{
"type": "literal",
"value": "exact"
},
{
"type": "literal",
"value": "planned"
},
{
"type": "literal",
"value": "estimated"
}
]
}
}
],
"groups": [
{
"title": "Properties",
"kind": 1024,
"children": [157]
}
]
}
},
"defaultValue": "{}"
}
],
"type": {
"type": "reference",
"id": 165,
"typeArguments": [
{
"type": "reference",
"id": 79,
"name": "ClientOptions"
},
{
"type": "reference",
"id": 80,
"name": "Schema"
},
{
"type": "indexedAccess",
"indexType": {
"type": "literal",
"value": "Row"
},
"objectType": {
"type": "reference",
"id": 81,
"name": "Relation"
}
},
{
"type": "literal",
"value": null
},
{
"type": "reference",
"id": 82,
"name": "RelationName"
},
{
"type": "reference",
"id": 85,
"name": "Relationships"
},
{
"type": "literal",
"value": "DELETE"
}
],
"name": "default"
}
}
]
},
{
"id": 114,
"name": "insert",
"kind": 2048,
"kindString": "Method",
"flags": {},
"sources": [
{
"fileName": "src/PostgrestQueryBuilder.ts",
"line": 116,
"character": 2
}
],
"signatures": [
{
"id": 115,
"name": "insert",
"kind": 4096,
"kindString": "Call signature",
"flags": {},
"comment": {
"shortText": "Perform an INSERT into the table or view.",
"text": "By default, inserted rows are not returned. To return it, chain the call\nwith `.select()`.\n"
},
"typeParameter": [
{
"id": 116,
"name": "Row",
"kind": 131072,
"kindString": "Type parameter",
"flags": {},
"type": {
"type": "reference",
"typeArguments": [
{
"type": "intrinsic",
"name": "string"
},
{
"type": "intrinsic",
"name": "unknown"
}
],
"qualifiedName": "Record",
"package": "typescript",
"name": "Record"
}
}
],
"parameters": [
{
"id": 117,
"name": "values",
"kind": 32768,
"kindString": "Parameter",
"flags": {},
"comment": {
"shortText": "The values to insert. Pass an object to insert a single row\nor an array to insert multiple rows.\n"
},
"type": {
"type": "reference",
"id": 116,
"name": "Row"
}
},
{
"id": 118,
"name": "options",
"kind": 32768,
"kindString": "Parameter",
"flags": {
"isOptional": true
},
"comment": {
"shortText": "Named parameters\n"
},
"type": {
"type": "reflection",
"declaration": {
"id": 119,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
"flags": {},
"children": [
{
"id": 120,
"name": "count",
"kind": 1024,
"kindString": "Property",
"flags": {
"isOptional": true
},
"comment": {
"shortText": "Count algorithm to use to count inserted rows.\n\n`\"exact\"`: Exact but slow count algorithm. Performs a `COUNT(*)` under the\nhood.\n\n`\"planned\"`: Approximated but fast count algorithm. Uses the Postgres\nstatistics under the hood.\n\n`\"estimated\"`: Uses exact count for low numbers and planned count for high\nnumbers.\n"
},
"sources": [
{
"fileName": "src/PostgrestQueryBuilder.ts",
"line": 119,
"character": 6
}
],
"type": {
"type": "union",
"types": [
{
"type": "literal",
"value": "exact"
},
{
"type": "literal",
"value": "planned"
},
{
"type": "literal",
"value": "estimated"
}
]
}
}
],
"groups": [
{
"title": "Properties",
"kind": 1024,
"children": [120]
}
]
}
}
}
],
"type": {
"type": "reference",
"id": 165,
"typeArguments": [
{
"type": "reference",
"id": 79,
"name": "ClientOptions"
},
{
"type": "reference",
"id": 80,
"name": "Schema"
},
{
"type": "indexedAccess",
"indexType": {
"type": "literal",
"value": "Row"
},
"objectType": {
"type": "reference",
"id": 81,
"name": "Relation"
}
},
{
"type": "literal",
"value": null
},
{
"type": "reference",
"id": 82,
"name": "RelationName"
},
{
"type": "reference",
"id": 85,
"name": "Relationships"
},
{
"type": "literal",
"value": "POST"
}
],
"name": "default"
}
},
{
"id": 121,
"name": "insert",
"kind": 4096,
"kindString": "Call signature",
"flags": {},
"comment": {
"shortText": "Perform an INSERT into the table or view.",
"text": "By default, inserted rows are not returned. To return it, chain the call\nwith `.select()`.\n"
},
"typeParameter": [
{
"id": 122,
"name": "Row",
"kind": 131072,
"kindString": "Type parameter",
"flags": {},
"type": {
"type": "reference",
"typeArguments": [
{
"type": "intrinsic",
"name": "string"
},
{
"type": "intrinsic",
"name": "unknown"
}
],
"qualifiedName": "Record",
"package": "typescript",
"name": "Record"
}
}
],
"parameters": [
{
"id": 123,
"name": "values",
"kind": 32768,
"kindString": "Parameter",
"flags": {},
"comment": {
"shortText": "The values to insert. Pass an object to insert a single row\nor an array to insert multiple rows.\n"
},
"type": {
"type": "array",
"elementType": {
"type": "reference",
"id": 122,
"name": "Row"
}
}
},
{
"id": 124,
"name": "options",
"kind": 32768,
"kindString": "Parameter",
"flags": {
"isOptional": true
},
"comment": {
"shortText": "Named parameters\n"
},
"type": {
"type": "reflection",
"declaration": {
"id": 125,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
"flags": {},
"children": [
{
"id": 126,
"name": "count",
"kind": 1024,
"kindString": "Property",
"flags": {
"isOptional": true
},
"comment": {
"shortText": "Count algorithm to use to count inserted rows.\n\n`\"exact\"`: Exact but slow count algorithm. Performs a `COUNT(*)` under the\nhood.\n\n`\"planned\"`: Approximated but fast count algorithm. Uses the Postgres\nstatistics under the hood.\n\n`\"estimated\"`: Uses exact count for low numbers and planned count for high\nnumbers.\n"
},
"sources": [
{
"fileName": "src/PostgrestQueryBuilder.ts",
"line": 133,
"character": 6
}
],
"type": {
"type": "union",
"types": [
{
"type": "literal",
"value": "exact"
},
{
"type": "literal",
"value": "planned"
},
{
"type": "literal",
"value": "estimated"
}
]
}
},
{
"id": 127,
"name": "defaultToNull",
"kind": 1024,
"kindString": "Property",
"flags": {
"isOptional": true
},
"comment": {
"shortText": "Make missing fields default to `null`.\nOtherwise, use the default value for the column. Only applies for bulk\ninserts.\n"
},
"sources": [
{
"fileName": "src/PostgrestQueryBuilder.ts",
"line": 134,
"character": 6
}
],
"type": {
"type": "intrinsic",
"name": "boolean"
}
}
],
"groups": [
{
"title": "Properties",
"kind": 1024,
"children": [126, 127]
}
]
}
}
}
],
"type": {
"type": "reference",
"id": 165,
"typeArguments": [
{
"type": "reference",
"id": 79,
"name": "ClientOptions"
},
{
"type": "reference",
"id": 80,
"name": "Schema"
},
{
"type": "indexedAccess",
"indexType": {
"type": "literal",
"value": "Row"
},
"objectType": {
"type": "reference",
"id": 81,
"name": "Relation"
}
},
{
"type": "literal",
"value": null
},
{
"type": "reference",
"id": 82,
"name": "RelationName"
},
{
"type": "reference",
"id": 85,
"name": "Relationships"
},
{
"type": "literal",
"value": "POST"
}
],
"name": "default"
}
}
]
},
{
"id": 105,
"name": "select",
"kind": 2048,
"kindString": "Method",
"flags": {},
"sources": [
{
"fileName": "src/PostgrestQueryBuilder.ts",
"line": 57,
"character": 2
}
],
"signatures": [
{
"id": 106,
"name": "select",
"kind": 4096,
"kindString": "Call signature",
"flags": {},
"comment": {
"shortText": "Perform a SELECT query on the table or view."
},
"typeParameter": [
{
"id": 107,
"name": "Query",
"kind": 131072,
"kindString": "Type parameter",
"flags": {},
"type": {
"type": "intrinsic",
"name": "string"
},
"default": {
"type": "literal",
"value": "*"
}
},
{
"id": 108,
"name": "ResultOne",
"kind": 131072,
"kindString": "Type parameter",
"flags": {},
"default": {
"type": "reference",
"id": 792,
"typeArguments": [
{
"type": "reference",
"id": 80,
"name": "Schema"
},
{
"type": "indexedAccess",
"indexType": {
"type": "literal",
"value": "Row"
},
"objectType": {
"type": "reference",
"id": 81,
"name": "Relation"
}
},
{
"type": "reference",
"id": 82,
"name": "RelationName"
},
{
"type": "reference",
"id": 85,
"name": "Relationships"
},
{
"type": "reference",
"id": 107,
"name": "Query"
},
{
"type": "reference",
"id": 79,
"name": "ClientOptions"
}
],
"name": "GetResult"
}
}
],
"parameters": [
{
"id": 109,
"name": "columns",
"kind": 32768,
"kindString": "Parameter",
"flags": {
"isOptional": true
},
"comment": {
"shortText": "The columns to retrieve, separated by commas. Columns can be renamed when returned with `customName:columnName`\n"
},
"type": {
"type": "reference",
"id": 107,
"name": "Query"
}
},
{
"id": 110,
"name": "options",
"kind": 32768,
"kindString": "Parameter",
"flags": {},
"comment": {
"shortText": "Named parameters\n"
},
"originalName": "__namedParameters",
"type": {
"type": "reflection",
"declaration": {
"id": 111,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
"flags": {},
"children": [
{
"id": 113,
"name": "count",
"kind": 1024,
"kindString": "Property",
"flags": {
"isOptional": true
},
"comment": {
"shortText": "Count algorithm to use to count rows in the table or view.\n\n`\"exact\"`: Exact but slow count algorithm. Performs a `COUNT(*)` under the\nhood.\n\n`\"planned\"`: Approximated but fast count algorithm. Uses the Postgres\nstatistics under the hood.\n\n`\"estimated\"`: Uses exact count for low numbers and planned count for high\nnumbers.\n"
},
"sources": [
{
"fileName": "src/PostgrestQueryBuilder.ts",
"line": 74,
"character": 6
}
],
"type": {
"type": "union",
"types": [
{
"type": "literal",
"value": "exact"
},
{
"type": "literal",
"value": "planned"
},
{
"type": "literal",
"value": "estimated"
}
]
}
},
{
"id": 112,
"name": "head",
"kind": 1024,
"kindString": "Property",
"flags": {
"isOptional": true
},
"comment": {
"shortText": "When set to `true`, `data` will not be returned.\nUseful if you only need the count.\n"
},
"sources": [
{
"fileName": "src/PostgrestQueryBuilder.ts",
"line": 73,
"character": 6
}
],
"type": {
"type": "intrinsic",
"name": "boolean"
}
}
],
"groups": [
{
"title": "Properties",
"kind": 1024,
"children": [113, 112]
}
]
}
},
"defaultValue": "{}"
}
],
"type": {
"type": "reference",
"id": 165,
"typeArguments": [
{
"type": "reference",
"id": 79,
"name": "ClientOptions"
},
{
"type": "reference",
"id": 80,
"name": "Schema"
},
{
"type": "indexedAccess",
"indexType": {
"type": "literal",
"value": "Row"
},
"objectType": {
"type": "reference",
"id": 81,
"name": "Relation"
}
},
{
"type": "array",
"elementType": {
"type": "reference",
"id": 108,
"name": "ResultOne"
}
},
{
"type": "reference",
"id": 82,
"name": "RelationName"
},
{
"type": "reference",
"id": 85,
"name": "Relationships"
},
{
"type": "literal",
"value": "GET"
}
],
"name": "default"
}
}
]
},
{
"id": 146,
"name": "update",
"kind": 2048,
"kindString": "Method",
"flags": {},
"sources": [
{
"fileName": "src/PostgrestQueryBuilder.ts",
"line": 361,
"character": 2
}
],
"signatures": [
{
"id": 147,
"name": "update",
"kind": 4096,
"kindString": "Call signature",
"flags": {},
"comment": {
"shortText": "Perform an UPDATE on the table or view.",
"text": "By default, updated rows are not returned. To return it, chain the call\nwith `.select()` after filters.\n"
},
"typeParameter": [
{
"id": 148,
"name": "Row",
"kind": 131072,
"kindString": "Type parameter",
"flags": {},
"type": {
"type": "reference",
"typeArguments": [
{
"type": "intrinsic",
"name": "string"
},
{
"type": "intrinsic",
"name": "unknown"
}
],
"qualifiedName": "Record",
"package": "typescript",
"name": "Record"
}
}
],
"parameters": [
{
"id": 149,
"name": "values",
"kind": 32768,
"kindString": "Parameter",
"flags": {},
"comment": {
"shortText": "The values to update with\n"
},
"type": {
"type": "reference",
"id": 148,
"name": "Row"
}
},
{
"id": 150,
"name": "options",
"kind": 32768,
"kindString": "Parameter",
"flags": {},
"comment": {
"shortText": "Named parameters\n"
},
"originalName": "__namedParameters",
"type": {
"type": "reflection",
"declaration": {
"id": 151,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
"flags": {},
"children": [
{
"id": 152,
"name": "count",
"kind": 1024,
"kindString": "Property",
"flags": {
"isOptional": true
},
"comment": {
"shortText": "Count algorithm to use to count updated rows.\n\n`\"exact\"`: Exact but slow count algorithm. Performs a `COUNT(*)` under the\nhood.\n\n`\"planned\"`: Approximated but fast count algorithm. Uses the Postgres\nstatistics under the hood.\n\n`\"estimated\"`: Uses exact count for low numbers and planned count for high\nnumbers.\n"
},
"sources": [
{
"fileName": "src/PostgrestQueryBuilder.ts",
"line": 366,
"character": 6
}
],
"type": {
"type": "union",
"types": [
{
"type": "literal",
"value": "exact"
},
{
"type": "literal",
"value": "planned"
},
{
"type": "literal",
"value": "estimated"
}
]
}
}
],
"groups": [
{
"title": "Properties",
"kind": 1024,
"children": [152]
}
]
}
},
"defaultValue": "{}"
}
],
"type": {
"type": "reference",
"id": 165,
"typeArguments": [
{
"type": "reference",
"id": 79,
"name": "ClientOptions"
},
{
"type": "reference",
"id": 80,
"name": "Schema"
},
{
"type": "indexedAccess",
"indexType": {
"type": "literal",
"value": "Row"
},
"objectType": {
"type": "reference",
"id": 81,
"name": "Relation"
}
},
{
"type": "literal",
"value": null
},
{
"type": "reference",
"id": 82,
"name": "RelationName"
},
{
"type": "reference",
"id": 85,
"name": "Relationships"
},
{
"type": "literal",
"value": "PATCH"
}
],
"name": "default"
}
}
]
},
{
"id": 128,
"name": "upsert",
"kind": 2048,
"kindString": "Method",
"flags": {},
"sources": [
{
"fileName": "src/PostgrestQueryBuilder.ts",
"line": 217,
"character": 2
}
],
"signatures": [
{
"id": 129,
"name": "upsert",
"kind": 4096,
"kindString": "Call signature",
"flags": {},
"comment": {
"shortText": "Perform an UPSERT on the table or view. Depending on the column(s) passed\nto `onConflict`, `.upsert()` allows you to perform the equivalent of\n`.insert()` if a row with the corresponding `onConflict` columns doesn't\nexist, or if it does exist, perform an alternative action depending on\n`ignoreDuplicates`.",
"text": "By default, upserted rows are not returned. To return it, chain the call\nwith `.select()`.\n"
},
"typeParameter": [
{
"id": 130,
"name": "Row",
"kind": 131072,
"kindString": "Type parameter",
"flags": {},
"type": {
"type": "reference",
"typeArguments": [
{
"type": "intrinsic",
"name": "string"
},
{
"type": "intrinsic",
"name": "unknown"
}
],
"qualifiedName": "Record",
"package": "typescript",
"name": "Record"
}
}
],
"parameters": [
{
"id": 131,
"name": "values",
"kind": 32768,
"kindString": "Parameter",
"flags": {},
"comment": {
"shortText": "The values to upsert with. Pass an object to upsert a\nsingle row or an array to upsert multiple rows.\n"
},
"type": {
"type": "reference",
"id": 130,
"name": "Row"
}
},
{
"id": 132,
"name": "options",
"kind": 32768,
"kindString": "Parameter",
"flags": {
"isOptional": true
},
"comment": {
"shortText": "Named parameters\n"
},
"type": {
"type": "reflection",
"declaration": {
"id": 133,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
"flags": {},
"children": [
{
"id": 136,
"name": "count",
"kind": 1024,
"kindString": "Property",
"flags": {
"isOptional": true
},
"comment": {
"shortText": "Count algorithm to use to count upserted rows.\n\n`\"exact\"`: Exact but slow count algorithm. Performs a `COUNT(*)` under the\nhood.\n\n`\"planned\"`: Approximated but fast count algorithm. Uses the Postgres\nstatistics under the hood.\n\n`\"estimated\"`: Uses exact count for low numbers and planned count for high\nnumbers.\n"
},
"sources": [
{
"fileName": "src/PostgrestQueryBuilder.ts",
"line": 222,
"character": 6
}
],
"type": {
"type": "union",
"types": [
{
"type": "literal",
"value": "exact"
},
{
"type": "literal",
"value": "planned"
},
{
"type": "literal",
"value": "estimated"
}
]
}
},
{
"id": 135,
"name": "ignoreDuplicates",
"kind": 1024,
"kindString": "Property",
"flags": {
"isOptional": true
},
"comment": {
"shortText": "If `true`, duplicate rows are ignored. If\n`false`, duplicate rows are merged with existing rows.\n"
},
"sources": [
{
"fileName": "src/PostgrestQueryBuilder.ts",
"line": 221,
"character": 6
}
],
"type": {
"type": "intrinsic",
"name": "boolean"
}
},
{
"id": 134,
"name": "onConflict",
"kind": 1024,
"kindString": "Property",
"flags": {
"isOptional": true
},
"comment": {
"shortText": "Comma-separated UNIQUE column(s) to specify how\nduplicate rows are determined. Two rows are duplicates if all the\n`onConflict` columns are equal.\n"
},
"sources": [
{
"fileName": "src/PostgrestQueryBuilder.ts",
"line": 220,
"character": 6
}
],
"type": {
"type": "intrinsic",
"name": "string"
}
}
],
"groups": [
{
"title": "Properties",
"kind": 1024,
"children": [136, 135, 134]
}
]
}
}
}
],
"type": {
"type": "reference",
"id": 165,
"typeArguments": [
{
"type": "reference",
"id": 79,
"name": "ClientOptions"
},
{
"type": "reference",
"id": 80,
"name": "Schema"
},
{
"type": "indexedAccess",
"indexType": {
"type": "literal",
"value": "Row"
},
"objectType": {
"type": "reference",
"id": 81,
"name": "Relation"
}
},
{
"type": "literal",
"value": null
},
{
"type": "reference",
"id": 82,
"name": "RelationName"
},
{
"type": "reference",
"id": 85,
"name": "Relationships"
},
{
"type": "literal",
"value": "POST"
}
],
"name": "default"
}
},
{
"id": 137,
"name": "upsert",
"kind": 4096,
"kindString": "Call signature",
"flags": {},
"comment": {
"shortText": "Perform an UPSERT on the table or view. Depending on the column(s) passed\nto `onConflict`, `.upsert()` allows you to perform the equivalent of\n`.insert()` if a row with the corresponding `onConflict` columns doesn't\nexist, or if it does exist, perform an alternative action depending on\n`ignoreDuplicates`.",
"text": "By default, upserted rows are not returned. To return it, chain the call\nwith `.select()`.\n"
},
"typeParameter": [
{
"id": 138,
"name": "Row",
"kind": 131072,
"kindString": "Type parameter",
"flags": {},
"type": {
"type": "reference",
"typeArguments": [
{
"type": "intrinsic",
"name": "string"
},
{
"type": "intrinsic",
"name": "unknown"
}
],
"qualifiedName": "Record",
"package": "typescript",
"name": "Record"
}
}
],
"parameters": [
{
"id": 139,
"name": "values",
"kind": 32768,
"kindString": "Parameter",
"flags": {},
"comment": {
"shortText": "The values to upsert with. Pass an object to upsert a\nsingle row or an array to upsert multiple rows.\n"
},
"type": {
"type": "array",
"elementType": {
"type": "reference",
"id": 138,
"name": "Row"
}
}
},
{
"id": 140,
"name": "options",
"kind": 32768,
"kindString": "Parameter",
"flags": {
"isOptional": true
},
"comment": {
"shortText": "Named parameters\n"
},
"type": {
"type": "reflection",
"declaration": {
"id": 141,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
"flags": {},
"children": [
{
"id": 144,
"name": "count",
"kind": 1024,
"kindString": "Property",
"flags": {
"isOptional": true
},
"comment": {
"shortText": "Count algorithm to use to count upserted rows.\n\n`\"exact\"`: Exact but slow count algorithm. Performs a `COUNT(*)` under the\nhood.\n\n`\"planned\"`: Approximated but fast count algorithm. Uses the Postgres\nstatistics under the hood.\n\n`\"estimated\"`: Uses exact count for low numbers and planned count for high\nnumbers.\n"
},
"sources": [
{
"fileName": "src/PostgrestQueryBuilder.ts",
"line": 238,
"character": 6
}
],
"type": {
"type": "union",
"types": [
{
"type": "literal",
"value": "exact"
},
{
"type": "literal",
"value": "planned"
},
{
"type": "literal",
"value": "estimated"
}
]
}
},
{
"id": 145,
"name": "defaultToNull",
"kind": 1024,
"kindString": "Property",
"flags": {
"isOptional": true
},
"comment": {
"shortText": "Make missing fields default to `null`.\nOtherwise, use the default value for the column. This only applies when\ninserting new rows, not when merging with existing rows under\n`ignoreDuplicates: false`. This also only applies when doing bulk upserts.\n"
},
"sources": [
{
"fileName": "src/PostgrestQueryBuilder.ts",
"line": 239,
"character": 6
}
],
"type": {
"type": "intrinsic",
"name": "boolean"
}
},
{
"id": 143,
"name": "ignoreDuplicates",
"kind": 1024,
"kindString": "Property",
"flags": {
"isOptional": true
},
"comment": {
"shortText": "If `true`, duplicate rows are ignored. If\n`false`, duplicate rows are merged with existing rows.\n"
},
"sources": [
{
"fileName": "src/PostgrestQueryBuilder.ts",
"line": 237,
"character": 6
}
],
"type": {
"type": "intrinsic",
"name": "boolean"
}
},
{
"id": 142,
"name": "onConflict",
"kind": 1024,
"kindString": "Property",
"flags": {
"isOptional": true
},
"comment": {
"shortText": "Comma-separated UNIQUE column(s) to specify how\nduplicate rows are determined. Two rows are duplicates if all the\n`onConflict` columns are equal.\n"
},
"sources": [
{
"fileName": "src/PostgrestQueryBuilder.ts",
"line": 236,
"character": 6
}
],
"type": {
"type": "intrinsic",
"name": "string"
}
}
],
"groups": [
{
"title": "Properties",
"kind": 1024,
"children": [144, 145, 143, 142]
}
]
}
}
}
],
"type": {
"type": "reference",
"id": 165,
"typeArguments": [
{
"type": "reference",
"id": 79,
"name": "ClientOptions"
},
{
"type": "reference",
"id": 80,
"name": "Schema"
},
{
"type": "indexedAccess",
"indexType": {
"type": "literal",
"value": "Row"
},
"objectType": {
"type": "reference",
"id": 81,
"name": "Relation"
}
},
{
"type": "literal",
"value": null
},
{
"type": "reference",
"id": 82,
"name": "RelationName"
},
{
"type": "reference",
"id": 85,
"name": "Relationships"
},
{
"type": "literal",
"value": "POST"
}
],
"name": "default"
}
}
]
}
],
"groups": [
{
"title": "Constructors",
"kind": 512,
"children": [77]
},
{
"title": "Properties",
"kind": 1024,
"children": [100, 97, 98, 99, 96]
},
{
"title": "Methods",
"kind": 2048,
"children": [153, 114, 105, 146, 128]
}
],
"sources": [
{
"fileName": "src/PostgrestQueryBuilder.ts",
"line": 5,
"character": 21
}
],
"typeParameter": [
{
"id": 158,
"name": "ClientOptions",
"kind": 131072,
"kindString": "Type parameter",
"flags": {},
"type": {
"type": "reference",
"id": 784,
"name": "ClientServerOptions"
}
},
{
"id": 159,
"name": "Schema",
"kind": 131072,
"kindString": "Type parameter",
"flags": {},
"type": {
"type": "reference",
"name": "GenericSchema"
}
},
{
"id": 160,
"name": "Relation",
"kind": 131072,
"kindString": "Type parameter",
"flags": {},
"type": {
"type": "union",
"types": [
{
"type": "reference",
"name": "GenericTable"
},
{
"type": "reference",
"name": "GenericView"
}
]
}
},
{
"id": 161,
"name": "RelationName",
"kind": 131072,
"kindString": "Type parameter",
"flags": {},
"default": {
"type": "intrinsic",
"name": "unknown"
}
},
{
"id": 164,
"name": "Relationships",
"kind": 131072,
"kindString": "Type parameter",
"flags": {},
"default": {
"type": "conditional",
"checkType": {
"type": "reference",
"id": 81,
"name": "Relation"
},
"extendsType": {
"type": "reflection",
"declaration": {
"id": 162,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
"flags": {},
"children": [
{
"id": 163,
"name": "Relationships",
"kind": 1024,
"kindString": "Property",
"flags": {},
"sources": [
{
"fileName": "src/PostgrestQueryBuilder.ts",
"line": 10,
"character": 37
}
],
"type": {
"type": "inferred",
"name": "R"
}
}
],
"groups": [
{
"title": "Properties",
"kind": 1024,
"children": [163]
}
],
"sources": [
{
"fileName": "src/PostgrestQueryBuilder.ts",
"line": 10,
"character": 35
}
]
}
},
"trueType": {
"type": "reference",
"name": "R"
},
"falseType": {
"type": "intrinsic",
"name": "unknown"
}
}
}
]
},
{
"id": 534,
"name": "PostgrestTransformBuilder",
"kind": 128,
"kindString": "Class",
"flags": {},
"children": [
{
"id": 535,
"name": "constructor",
"kind": 512,
"kindString": "Constructor",
"flags": {},
"signatures": [
{
"id": 536,
"name": "new PostgrestTransformBuilder",
"kind": 16384,
"kindString": "Constructor signature",
"flags": {},
"typeParameter": [
{
"id": 537,
"name": "ClientOptions",
"kind": 131072,
"kindString": "Type parameter",
"flags": {},
"type": {
"type": "reference",
"id": 784,
"name": "ClientServerOptions"
}
},
{
"id": 538,
"name": "Schema",
"kind": 131072,
"kindString": "Type parameter",
"flags": {},
"type": {
"type": "reference",
"name": "GenericSchema"
}
},
{
"id": 539,
"name": "Row",
"kind": 131072,
"kindString": "Type parameter",
"flags": {},
"type": {
"type": "reference",
"typeArguments": [
{
"type": "intrinsic",
"name": "string"
},
{
"type": "intrinsic",
"name": "unknown"
}
],
"qualifiedName": "Record",
"package": "typescript",
"name": "Record"
}
},
{
"id": 540,
"name": "Result",
"kind": 131072,
"kindString": "Type parameter",
"flags": {}
},
{
"id": 541,
"name": "RelationName",
"kind": 131072,
"kindString": "Type parameter",
"flags": {},
"default": {
"type": "intrinsic",
"name": "unknown"
}
},
{
"id": 542,
"name": "Relationships",
"kind": 131072,
"kindString": "Type parameter",
"flags": {},
"default": {
"type": "intrinsic",
"name": "unknown"
}
},
{
"id": 543,
"name": "Method",
"kind": 131072,
"kindString": "Type parameter",
"flags": {},
"default": {
"type": "intrinsic",
"name": "unknown"
}
}
],
"parameters": [
{
"id": 544,
"name": "builder",
"kind": 32768,
"kindString": "Parameter",
"flags": {},
"type": {
"type": "reflection",
"declaration": {
"id": 545,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
"flags": {},
"children": [
{
"id": 550,
"name": "body",
"kind": 1024,
"kindString": "Property",
"flags": {
"isOptional": true
},
"sources": [
{
"fileName": "src/PostgrestBuilder.ts",
"line": 40,
"character": 4
}
],
"type": {
"type": "intrinsic",
"name": "unknown"
}
},
{
"id": 553,
"name": "fetch",
"kind": 1024,
"kindString": "Property",
"flags": {
"isOptional": true
},
"sources": [
{
"fileName": "src/PostgrestBuilder.ts",
"line": 43,
"character": 4
}
],
"type": {
"type": "reflection",
"declaration": {
"id": 554,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
"flags": {},
"signatures": [
{
"id": 555,
"name": "__type",
"kind": 4096,
"kindString": "Call signature",
"flags": {},
"parameters": [
{
"id": 556,
"name": "input",
"kind": 32768,
"kindString": "Parameter",
"flags": {},
"type": {
"type": "union",
"types": [
{
"type": "reference",
"qualifiedName": "RequestInfo",
"package": "typescript",
"name": "RequestInfo"
},
{
"type": "reference",
"qualifiedName": "URL",
"package": "typescript",
"name": "URL"
}
]
}
},
{
"id": 557,
"name": "init",
"kind": 32768,
"kindString": "Parameter",
"flags": {
"isOptional": true
},
"type": {
"type": "reference",
"qualifiedName": "RequestInit",
"package": "typescript",
"name": "RequestInit"
}
}
],
"type": {
"type": "reference",
"typeArguments": [
{
"type": "reference",
"qualifiedName": "Response",
"package": "typescript",
"name": "Response"
}
],
"qualifiedName": "Promise",
"package": "typescript",
"name": "Promise"
}
}
]
}
}
},
{
"id": 548,
"name": "headers",
"kind": 1024,
"kindString": "Property",
"flags": {},
"sources": [
{
"fileName": "src/PostgrestBuilder.ts",
"line": 38,
"character": 4
}
],
"type": {
"type": "reference",
"qualifiedName": "HeadersInit",
"package": "typescript",
"name": "HeadersInit"
}
},
{
"id": 558,
"name": "isMaybeSingle",
"kind": 1024,
"kindString": "Property",
"flags": {
"isOptional": true
},
"sources": [
{
"fileName": "src/PostgrestBuilder.ts",
"line": 44,
"character": 4
}
],
"type": {
"type": "intrinsic",
"name": "boolean"
}
},
{
"id": 546,
"name": "method",
"kind": 1024,
"kindString": "Property",
"flags": {},
"sources": [
{
"fileName": "src/PostgrestBuilder.ts",
"line": 36,
"character": 4
}
],
"type": {
"type": "union",
"types": [
{
"type": "literal",
"value": "GET"
},
{
"type": "literal",
"value": "HEAD"
},
{
"type": "literal",
"value": "POST"
},
{
"type": "literal",
"value": "PATCH"
},
{
"type": "literal",
"value": "DELETE"
}
]
}
},
{
"id": 549,
"name": "schema",
"kind": 1024,
"kindString": "Property",
"flags": {
"isOptional": true
},
"sources": [
{
"fileName": "src/PostgrestBuilder.ts",
"line": 39,
"character": 4
}
],
"type": {
"type": "intrinsic",
"name": "string"
}
},
{
"id": 551,
"name": "shouldThrowOnError",
"kind": 1024,
"kindString": "Property",
"flags": {
"isOptional": true
},
"sources": [
{
"fileName": "src/PostgrestBuilder.ts",
"line": 41,
"character": 4
}
],
"type": {
"type": "intrinsic",
"name": "boolean"
}
},
{
"id": 552,
"name": "signal",
"kind": 1024,
"kindString": "Property",
"flags": {
"isOptional": true
},
"sources": [
{
"fileName": "src/PostgrestBuilder.ts",
"line": 42,
"character": 4
}
],
"type": {
"type": "reference",
"qualifiedName": "AbortSignal",
"package": "typescript",
"name": "AbortSignal"
}
},
{
"id": 547,
"name": "url",
"kind": 1024,
"kindString": "Property",
"flags": {},
"sources": [
{
"fileName": "src/PostgrestBuilder.ts",
"line": 37,
"character": 4
}
],
"type": {
"type": "reference",
"qualifiedName": "URL",
"package": "typescript",
"name": "URL"
}
}
],
"groups": [
{
"title": "Properties",
"kind": 1024,
"children": [550, 553, 548, 558, 546, 549, 551, 552, 547]
}
]
}
}
}
],
"type": {
"type": "reference",
"id": 534,
"typeArguments": [
{
"type": "reference",
"id": 537,
"name": "ClientOptions"
},
{
"type": "reference",
"id": 538,
"name": "Schema"
},
{
"type": "reference",
"id": 539,
"name": "Row"
},
{
"type": "reference",
"id": 540,
"name": "Result"
},
{
"type": "reference",
"id": 541,
"name": "RelationName"
},
{
"type": "reference",
"id": 542,
"name": "Relationships"
},
{
"type": "reference",
"id": 543,
"name": "Method"
}
],
"name": "default"
},
"inheritedFrom": {
"type": "reference",
"id": 689,
"name": "default.constructor"
}
}
],
"inheritedFrom": {
"type": "reference",
"id": 688,
"name": "default.constructor"
}
},
{
"id": 645,
"name": "body",
"kind": 1024,
"kindString": "Property",
"flags": {
"isProtected": true,
"isOptional": true
},
"sources": [
{
"fileName": "src/PostgrestBuilder.ts",
"line": 29,
"character": 12
}
],
"type": {
"type": "intrinsic",
"name": "unknown"
},
"inheritedFrom": {
"type": "reference",
"id": 712,
"name": "default.body"
}
},
{
"id": 648,
"name": "fetch",
"kind": 1024,
"kindString": "Property",
"flags": {
"isProtected": true
},
"sources": [
{
"fileName": "src/PostgrestBuilder.ts",
"line": 32,
"character": 12
}
],
"type": {
"type": "reflection",
"declaration": {
"id": 649,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
"flags": {},
"signatures": [
{
"id": 650,
"name": "__type",
"kind": 4096,
"kindString": "Call signature",
"flags": {},
"parameters": [
{
"id": 651,
"name": "input",
"kind": 32768,
"kindString": "Parameter",
"flags": {},
"type": {
"type": "union",
"types": [
{
"type": "reference",
"qualifiedName": "RequestInfo",
"package": "typescript",
"name": "RequestInfo"
},
{
"type": "reference",
"qualifiedName": "URL",
"package": "typescript",
"name": "URL"
}
]
}
},
{
"id": 652,
"name": "init",
"kind": 32768,
"kindString": "Parameter",
"flags": {
"isOptional": true
},
"type": {
"type": "reference",
"qualifiedName": "RequestInit",
"package": "typescript",
"name": "RequestInit"
}
}
],
"type": {
"type": "reference",
"typeArguments": [
{
"type": "reference",
"qualifiedName": "Response",
"package": "typescript",
"name": "Response"
}
],
"qualifiedName": "Promise",
"package": "typescript",
"name": "Promise"
}
}
]
}
},
"inheritedFrom": {
"type": "reference",
"id": 715,
"name": "default.fetch"
}
},
{
"id": 643,
"name": "headers",
"kind": 1024,
"kindString": "Property",
"flags": {
"isProtected": true
},
"sources": [
{
"fileName": "src/PostgrestBuilder.ts",
"line": 27,
"character": 12
}
],
"type": {
"type": "reference",
"qualifiedName": "Headers",
"package": "typescript",
"name": "Headers"
},
"inheritedFrom": {
"type": "reference",
"id": 710,
"name": "default.headers"
}
},
{
"id": 653,
"name": "isMaybeSingle",
"kind": 1024,
"kindString": "Property",
"flags": {
"isProtected": true
},
"sources": [
{
"fileName": "src/PostgrestBuilder.ts",
"line": 33,
"character": 12
}
],
"type": {
"type": "intrinsic",
"name": "boolean"
},
"inheritedFrom": {
"type": "reference",
"id": 720,
"name": "default.isMaybeSingle"
}
},
{
"id": 641,
"name": "method",
"kind": 1024,
"kindString": "Property",
"flags": {
"isProtected": true
},
"sources": [
{
"fileName": "src/PostgrestBuilder.ts",
"line": 25,
"character": 12
}
],
"type": {
"type": "union",
"types": [
{
"type": "literal",
"value": "GET"
},
{
"type": "literal",
"value": "HEAD"
},
{
"type": "literal",
"value": "POST"
},
{
"type": "literal",
"value": "PATCH"
},
{
"type": "literal",
"value": "DELETE"
}
]
},
"inheritedFrom": {
"type": "reference",
"id": 708,
"name": "default.method"
}
},
{
"id": 644,
"name": "schema",
"kind": 1024,
"kindString": "Property",
"flags": {
"isProtected": true,
"isOptional": true
},
"sources": [
{
"fileName": "src/PostgrestBuilder.ts",
"line": 28,
"character": 12
}
],
"type": {
"type": "intrinsic",
"name": "string"
},
"inheritedFrom": {
"type": "reference",
"id": 711,
"name": "default.schema"
}
},
{
"id": 646,
"name": "shouldThrowOnError",
"kind": 1024,
"kindString": "Property",
"flags": {
"isProtected": true
},
"sources": [
{
"fileName": "src/PostgrestBuilder.ts",
"line": 30,
"character": 12
}
],
"type": {
"type": "intrinsic",
"name": "boolean"
},
"defaultValue": "false",
"inheritedFrom": {
"type": "reference",
"id": 713,
"name": "default.shouldThrowOnError"
}
},
{
"id": 647,
"name": "signal",
"kind": 1024,
"kindString": "Property",
"flags": {
"isProtected": true,
"isOptional": true
},
"sources": [
{
"fileName": "src/PostgrestBuilder.ts",
"line": 31,
"character": 12
}
],
"type": {
"type": "reference",
"qualifiedName": "AbortSignal",
"package": "typescript",
"name": "AbortSignal"
},
"inheritedFrom": {
"type": "reference",
"id": 714,
"name": "default.signal"
}
},
{
"id": 642,
"name": "url",
"kind": 1024,
"kindString": "Property",
"flags": {
"isProtected": true
},
"sources": [
{
"fileName": "src/PostgrestBuilder.ts",
"line": 26,
"character": 12
}
],
"type": {
"type": "reference",
"qualifiedName": "URL",
"package": "typescript",
"name": "URL"
},
"inheritedFrom": {
"type": "reference",
"id": 709,
"name": "default.url"
}
},
{
"id": 610,
"name": "abortSignal",
"kind": 2048,
"kindString": "Method",
"flags": {},
"sources": [
{
"fileName": "src/PostgrestTransformBuilder.ts",
"line": 195,
"character": 2
}
],
"signatures": [
{
"id": 611,
"name": "abortSignal",
"kind": 4096,
"kindString": "Call signature",
"flags": {},
"comment": {
"shortText": "Set the AbortSignal for the fetch request."
},
"parameters": [
{
"id": 612,
"name": "signal",
"kind": 32768,
"kindString": "Parameter",
"flags": {},
"comment": {
"shortText": "The AbortSignal to use for the fetch request\n"
},
"type": {
"type": "reference",
"qualifiedName": "AbortSignal",
"package": "typescript",
"name": "AbortSignal"
}
}
],
"type": {
"type": "reference",
"id": 534,
"typeArguments": [
{
"type": "reference",
"id": 537,
"name": "ClientOptions"
},
{
"type": "reference",
"id": 538,
"name": "Schema"
},
{
"type": "reference",
"id": 539,
"name": "Row"
},
{
"type": "reference",
"id": 540,
"name": "Result"
},
{
"type": "reference",
"id": 541,
"name": "RelationName"
},
{
"type": "reference",
"id": 542,
"name": "Relationships"
},
{
"type": "reference",
"id": 543,
"name": "Method"
}
],
"name": "default"
}
}
]
},
{
"id": 619,
"name": "csv",
"kind": 2048,
"kindString": "Method",
"flags": {},
"sources": [
{
"fileName": "src/PostgrestTransformBuilder.ts",
"line": 237,
"character": 2
}
],
"signatures": [
{
"id": 620,
"name": "csv",
"kind": 4096,
"kindString": "Call signature",
"flags": {},
"comment": {
"shortText": "Return `data` as a string in CSV format."
},
"type": {
"type": "reference",
"id": 687,
"typeArguments": [
{
"type": "reference",
"id": 537,
"name": "ClientOptions"
},
{
"type": "intrinsic",
"name": "string"
},
{
"type": "literal",
"value": false
}
],
"name": "default"
}
}
]
},
{
"id": 623,
"name": "explain",
"kind": 2048,
"kindString": "Method",
"flags": {},
"sources": [
{
"fileName": "src/PostgrestTransformBuilder.ts",
"line": 275,
"character": 2
}
],
"signatures": [
{
"id": 624,
"name": "explain",
"kind": 4096,
"kindString": "Call signature",
"flags": {},
"comment": {
"shortText": "Return `data` as the EXPLAIN plan for the query.",
"text": "You need to enable the\n[db_plan_enabled](https://supabase.com/docs/guides/database/debugging-performance#enabling-explain)\nsetting before using this method.\n"
},
"parameters": [
{
"id": 625,
"name": "options",
"kind": 32768,
"kindString": "Parameter",
"flags": {},
"comment": {
"shortText": "Named parameters\n"
},
"originalName": "__namedParameters",
"type": {
"type": "reflection",
"declaration": {
"id": 626,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
"flags": {},
"children": [
{
"id": 627,
"name": "analyze",
"kind": 1024,
"kindString": "Property",
"flags": {
"isOptional": true
},
"comment": {
"shortText": "If `true`, the query will be executed and the\nactual run time will be returned\n"
},
"sources": [
{
"fileName": "src/PostgrestTransformBuilder.ts",
"line": 283,
"character": 4
}
],
"type": {
"type": "intrinsic",
"name": "boolean"
}
},
{
"id": 630,
"name": "buffers",
"kind": 1024,
"kindString": "Property",
"flags": {
"isOptional": true
},
"comment": {
"shortText": "If `true`, include information on buffer usage\n"
},
"sources": [
{
"fileName": "src/PostgrestTransformBuilder.ts",
"line": 286,
"character": 4
}
],
"type": {
"type": "intrinsic",
"name": "boolean"
}
},
{
"id": 632,
"name": "format",
"kind": 1024,
"kindString": "Property",
"flags": {
"isOptional": true
},
"comment": {
"shortText": "The format of the output, can be `\"text\"` (default)\nor `\"json\"`\n"
},
"sources": [
{
"fileName": "src/PostgrestTransformBuilder.ts",
"line": 288,
"character": 4
}
],
"type": {
"type": "union",
"types": [
{
"type": "literal",
"value": "text"
},
{
"type": "literal",
"value": "json"
}
]
}
},
{
"id": 629,
"name": "settings",
"kind": 1024,
"kindString": "Property",
"flags": {
"isOptional": true
},
"comment": {
"shortText": "If `true`, include information on configuration\nparameters that affect query planning\n"
},
"sources": [
{
"fileName": "src/PostgrestTransformBuilder.ts",
"line": 285,
"character": 4
}
],
"type": {
"type": "intrinsic",
"name": "boolean"
}
},
{
"id": 628,
"name": "verbose",
"kind": 1024,
"kindString": "Property",
"flags": {
"isOptional": true
},
"comment": {
"shortText": "If `true`, the query identifier will be returned\nand `data` will include the output columns of the query\n"
},
"sources": [
{
"fileName": "src/PostgrestTransformBuilder.ts",
"line": 284,
"character": 4
}
],
"type": {
"type": "intrinsic",
"name": "boolean"
}
},
{
"id": 631,
"name": "wal",
"kind": 1024,
"kindString": "Property",
"flags": {
"isOptional": true
},
"comment": {
"shortText": "If `true`, include information on WAL record generation\n"
},
"sources": [
{
"fileName": "src/PostgrestTransformBuilder.ts",
"line": 287,
"character": 4
}
],
"type": {
"type": "intrinsic",
"name": "boolean"
}
}
],
"groups": [
{
"title": "Properties",
"kind": 1024,
"children": [627, 630, 632, 629, 628, 631]
}
]
}
},
"defaultValue": "{}"
}
],
"type": {
"type": "union",
"types": [
{
"type": "reference",
"id": 687,
"typeArguments": [
{
"type": "reference",
"id": 537,
"name": "ClientOptions"
},
{
"type": "intrinsic",
"name": "string"
},
{
"type": "literal",
"value": false
}
],
"name": "default"
},
{
"type": "reference",
"id": 687,
"typeArguments": [
{
"type": "reference",
"id": 537,
"name": "ClientOptions"
},
{
"type": "array",
"elementType": {
"type": "reference",
"typeArguments": [
{
"type": "intrinsic",
"name": "string"
},
{
"type": "intrinsic",
"name": "unknown"
}
],
"qualifiedName": "Record",
"package": "typescript",
"name": "Record"
}
},
{
"type": "literal",
"value": false
}
],
"name": "default"
}
]
}
}
]
},
{
"id": 621,
"name": "geojson",
"kind": 2048,
"kindString": "Method",
"flags": {},
"sources": [
{
"fileName": "src/PostgrestTransformBuilder.ts",
"line": 245,
"character": 2
}
],
"signatures": [
{
"id": 622,
"name": "geojson",
"kind": 4096,
"kindString": "Call signature",
"flags": {},
"comment": {
"shortText": "Return `data` as an object in [GeoJSON](https://geojson.org) format."
},
"type": {
"type": "reference",
"id": 687,
"typeArguments": [
{
"type": "reference",
"id": 537,
"name": "ClientOptions"
},
{
"type": "reference",
"typeArguments": [
{
"type": "intrinsic",
"name": "string"
},
{
"type": "intrinsic",
"name": "unknown"
}
],
"qualifiedName": "Record",
"package": "typescript",
"name": "Record"
},
{
"type": "literal",
"value": false
}
],
"name": "default"
}
}
]
},
{
"id": 595,
"name": "limit",
"kind": 2048,
"kindString": "Method",
"flags": {},
"sources": [
{
"fileName": "src/PostgrestTransformBuilder.ts",
"line": 146,
"character": 2
}
],
"signatures": [
{
"id": 596,
"name": "limit",
"kind": 4096,
"kindString": "Call signature",
"flags": {},
"comment": {
"shortText": "Limit the query result by `count`."
},
"parameters": [
{
"id": 597,
"name": "count",
"kind": 32768,
"kindString": "Parameter",
"flags": {},
"comment": {
"shortText": "The maximum number of rows to return"
},
"type": {
"type": "intrinsic",
"name": "number"
}
},
{
"id": 598,
"name": "options",
"kind": 32768,
"kindString": "Parameter",
"flags": {},
"comment": {
"shortText": "Named parameters"
},
"originalName": "__namedParameters",
"type": {
"type": "reflection",
"declaration": {
"id": 599,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
"flags": {},
"children": [
{
"id": 600,
"name": "foreignTable",
"kind": 1024,
"kindString": "Property",
"flags": {
"isOptional": true
},
"comment": {
"shortText": "Deprecated, use `options.referencedTable`\ninstead\n"
},
"sources": [
{
"fileName": "src/PostgrestTransformBuilder.ts",
"line": 151,
"character": 9
}
],
"type": {
"type": "intrinsic",
"name": "string"
}
},
{
"id": 601,
"name": "referencedTable",
"kind": 1024,
"kindString": "Property",
"flags": {
"isOptional": true
},
"comment": {
"shortText": "Set this to limit rows of referenced\ntables instead of the parent table"
},
"sources": [
{
"fileName": "src/PostgrestTransformBuilder.ts",
"line": 151,
"character": 32
}
],
"type": {
"type": "intrinsic",
"name": "string"
}
}
],
"groups": [
{
"title": "Properties",
"kind": 1024,
"children": [600, 601]
}
]
}
},
"defaultValue": "{}"
}
],
"type": {
"type": "reference",
"id": 534,
"typeArguments": [
{
"type": "reference",
"id": 537,
"name": "ClientOptions"
},
{
"type": "reference",
"id": 538,
"name": "Schema"
},
{
"type": "reference",
"id": 539,
"name": "Row"
},
{
"type": "reference",
"id": 540,
"name": "Result"
},
{
"type": "reference",
"id": 541,
"name": "RelationName"
},
{
"type": "reference",
"id": 542,
"name": "Relationships"
},
{
"type": "reference",
"id": 543,
"name": "Method"
}
],
"name": "default"
}
}
]
},
{
"id": 638,
"name": "maxAffected",
"kind": 2048,
"kindString": "Method",
"flags": {},
"sources": [
{
"fileName": "src/PostgrestTransformBuilder.ts",
"line": 354,
"character": 2
}
],
"signatures": [
{
"id": 639,
"name": "maxAffected",
"kind": 4096,
"kindString": "Call signature",
"flags": {},
"comment": {
"shortText": "Set the maximum number of rows that can be affected by the query.\nOnly available in PostgREST v13+ and only works with PATCH and DELETE methods."
},
"parameters": [
{
"id": 640,
"name": "value",
"kind": 32768,
"kindString": "Parameter",
"flags": {},
"comment": {
"shortText": "The maximum number of rows that can be affected\n"
},
"type": {
"type": "intrinsic",
"name": "number"
}
}
],
"type": {
"type": "conditional",
"checkType": {
"type": "reference",
"typeArguments": [
{
"type": "indexedAccess",
"indexType": {
"type": "literal",
"value": "PostgrestVersion"
},
"objectType": {
"type": "reference",
"id": 537,
"name": "ClientOptions"
}
}
],
"name": "MaxAffectedEnabled"
},
"extendsType": {
"type": "literal",
"value": true
},
"trueType": {
"type": "conditional",
"checkType": {
"type": "reference",
"id": 543,
"name": "Method"
},
"extendsType": {
"type": "union",
"types": [
{
"type": "literal",
"value": "PATCH"
},
{
"type": "literal",
"value": "DELETE"
},
{
"type": "literal",
"value": "RPC"
}
]
},
"trueType": {
"type": "reference",
"id": 534,
"typeArguments": [
{
"type": "reference",
"id": 537,
"name": "ClientOptions"
},
{
"type": "reference",
"id": 538,
"name": "Schema"
},
{
"type": "reference",
"id": 539,
"name": "Row"
},
{
"type": "reference",
"id": 540,
"name": "Result"
},
{
"type": "reference",
"id": 541,
"name": "RelationName"
},
{
"type": "reference",
"id": 542,
"name": "Relationships"
},
{
"type": "reference",
"id": 543,
"name": "Method"
}
],
"name": "default"
},
"falseType": {
"type": "reference",
"typeArguments": [
{
"type": "literal",
"value": "maxAffected method only available on update or delete"
}
],
"name": "InvalidMethodError"
}
},
"falseType": {
"type": "reference",
"typeArguments": [
{
"type": "literal",
"value": "maxAffected method only available on postgrest 13+"
}
],
"name": "InvalidMethodError"
}
}
}
]
},
{
"id": 616,
"name": "maybeSingle",
"kind": 2048,
"kindString": "Method",
"flags": {},
"sources": [
{
"fileName": "src/PostgrestTransformBuilder.ts",
"line": 220,
"character": 2
}
],
"signatures": [
{
"id": 617,
"name": "maybeSingle",
"kind": 4096,
"kindString": "Call signature",
"flags": {},
"comment": {
"shortText": "Return `data` as a single object instead of an array of objects.",
"text": "Query result must be zero or one row (e.g. using `.limit(1)`), otherwise\nthis returns an error.\n"
},
"typeParameter": [
{
"id": 618,
"name": "ResultOne",
"kind": 131072,
"kindString": "Type parameter",
"flags": {},
"default": {
"type": "conditional",
"checkType": {
"type": "reference",
"id": 540,
"name": "Result"
},
"extendsType": {
"type": "array",
"elementType": {
"type": "reference",
"name": "ResultOne"
}
},
"trueType": {
"type": "reference",
"name": "ResultOne"
},
"falseType": {
"type": "intrinsic",
"name": "never"
}
}
}
],
"type": {
"type": "reference",
"id": 687,
"typeArguments": [
{
"type": "reference",
"id": 537,
"name": "ClientOptions"
},
{
"type": "union",
"types": [
{
"type": "literal",
"value": null
},
{
"type": "reference",
"id": 465,
"name": "ResultOne"
}
]
},
{
"type": "literal",
"value": false
}
],
"name": "default"
}
}
]
},
{
"id": 564,
"name": "order",
"kind": 2048,
"kindString": "Method",
"flags": {},
"sources": [
{
"fileName": "src/PostgrestTransformBuilder.ts",
"line": 70,
"character": 2
}
],
"signatures": [
{
"id": 565,
"name": "order",
"kind": 4096,
"kindString": "Call signature",
"flags": {},
"comment": {
"shortText": "Order the query result by `column`.",
"text": "You can call this method multiple times to order by multiple columns.\n\nYou can order referenced tables, but it only affects the ordering of the\nparent table if you use `!inner` in the query.\n"
},
"typeParameter": [
{
"id": 566,
"name": "ColumnName",
"kind": 131072,
"kindString": "Type parameter",
"flags": {},
"type": {
"type": "intrinsic",
"name": "string"
}
}
],
"parameters": [
{
"id": 567,
"name": "column",
"kind": 32768,
"kindString": "Parameter",
"flags": {},
"comment": {
"shortText": "The column to order by"
},
"type": {
"type": "reference",
"id": 413,
"name": "ColumnName"
}
},
{
"id": 568,
"name": "options",
"kind": 32768,
"kindString": "Parameter",
"flags": {
"isOptional": true
},
"comment": {
"shortText": "Named parameters"
},
"type": {
"type": "reflection",
"declaration": {
"id": 569,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
"flags": {},
"children": [
{
"id": 570,
"name": "ascending",
"kind": 1024,
"kindString": "Property",
"flags": {
"isOptional": true
},
"comment": {
"shortText": "If `true`, the result will be in ascending order"
},
"sources": [
{
"fileName": "src/PostgrestTransformBuilder.ts",
"line": 72,
"character": 16
}
],
"type": {
"type": "intrinsic",
"name": "boolean"
}
},
{
"id": 571,
"name": "nullsFirst",
"kind": 1024,
"kindString": "Property",
"flags": {
"isOptional": true
},
"comment": {
"shortText": "If `true`, `null`s appear first. If `false`,\n`null`s appear last."
},
"sources": [
{
"fileName": "src/PostgrestTransformBuilder.ts",
"line": 72,
"character": 37
}
],
"type": {
"type": "intrinsic",
"name": "boolean"
}
},
{
"id": 572,
"name": "referencedTable",
"kind": 1024,
"kindString": "Property",
"flags": {
"isOptional": true
},
"comment": {
"shortText": "Set this to order a referenced table by\nits columns"
},
"sources": [
{
"fileName": "src/PostgrestTransformBuilder.ts",
"line": 72,
"character": 59
}
],
"type": {
"type": "intrinsic",
"name": "undefined"
}
}
],
"groups": [
{
"title": "Properties",
"kind": 1024,
"children": [570, 571, 572]
}
]
}
}
}
],
"type": {
"type": "reference",
"id": 534,
"typeArguments": [
{
"type": "reference",
"id": 537,
"name": "ClientOptions"
},
{
"type": "reference",
"id": 538,
"name": "Schema"
},
{
"type": "reference",
"id": 539,
"name": "Row"
},
{
"type": "reference",
"id": 540,
"name": "Result"
},
{
"type": "reference",
"id": 541,
"name": "RelationName"
},
{
"type": "reference",
"id": 542,
"name": "Relationships"
},
{
"type": "reference",
"id": 543,
"name": "Method"
}
],
"name": "default"
}
},
{
"id": 573,
"name": "order",
"kind": 4096,
"kindString": "Call signature",
"flags": {},
"comment": {
"shortText": "Order the query result by `column`.",
"text": "You can call this method multiple times to order by multiple columns.\n\nYou can order referenced tables, but it only affects the ordering of the\nparent table if you use `!inner` in the query.\n"
},
"parameters": [
{
"id": 574,
"name": "column",
"kind": 32768,
"kindString": "Parameter",
"flags": {},
"comment": {
"shortText": "The column to order by"
},
"type": {
"type": "intrinsic",
"name": "string"
}
},
{
"id": 575,
"name": "options",
"kind": 32768,
"kindString": "Parameter",
"flags": {
"isOptional": true
},
"comment": {
"shortText": "Named parameters"
},
"type": {
"type": "reflection",
"declaration": {
"id": 576,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
"flags": {},
"children": [
{
"id": 577,
"name": "ascending",
"kind": 1024,
"kindString": "Property",
"flags": {
"isOptional": true
},
"comment": {
"shortText": "If `true`, the result will be in ascending order"
},
"sources": [
{
"fileName": "src/PostgrestTransformBuilder.ts",
"line": 76,
"character": 16
}
],
"type": {
"type": "intrinsic",
"name": "boolean"
}
},
{
"id": 578,
"name": "nullsFirst",
"kind": 1024,
"kindString": "Property",
"flags": {
"isOptional": true
},
"comment": {
"shortText": "If `true`, `null`s appear first. If `false`,\n`null`s appear last."
},
"sources": [
{
"fileName": "src/PostgrestTransformBuilder.ts",
"line": 76,
"character": 37
}
],
"type": {
"type": "intrinsic",
"name": "boolean"
}
},
{
"id": 579,
"name": "referencedTable",
"kind": 1024,
"kindString": "Property",
"flags": {
"isOptional": true
},
"comment": {
"shortText": "Set this to order a referenced table by\nits columns"
},
"sources": [
{
"fileName": "src/PostgrestTransformBuilder.ts",
"line": 76,
"character": 59
}
],
"type": {
"type": "intrinsic",
"name": "string"
}
}
],
"groups": [
{
"title": "Properties",
"kind": 1024,
"children": [577, 578, 579]
}
]
}
}
}
],
"type": {
"type": "reference",
"id": 534,
"typeArguments": [
{
"type": "reference",
"id": 537,
"name": "ClientOptions"
},
{
"type": "reference",
"id": 538,
"name": "Schema"
},
{
"type": "reference",
"id": 539,
"name": "Row"
},
{
"type": "reference",
"id": 540,
"name": "Result"
},
{
"type": "reference",
"id": 541,
"name": "RelationName"
},
{
"type": "reference",
"id": 542,
"name": "Relationships"
},
{
"type": "reference",
"id": 543,
"name": "Method"
}
],
"name": "default"
}
},
{
"id": 580,
"name": "order",
"kind": 4096,
"kindString": "Call signature",
"flags": {},
"comment": {
"shortText": "Order the query result by `column`.",
"text": "You can call this method multiple times to order by multiple columns.\n\nYou can order referenced tables, but it only affects the ordering of the\nparent table if you use `!inner` in the query.\n",
"tags": [
{
"tag": "deprecated",
"text": "Use `options.referencedTable` instead of `options.foreignTable`\n"
}
]
},
"typeParameter": [
{
"id": 581,
"name": "ColumnName",
"kind": 131072,
"kindString": "Type parameter",
"flags": {},
"type": {
"type": "intrinsic",
"name": "string"
}
}
],
"parameters": [
{
"id": 582,
"name": "column",
"kind": 32768,
"kindString": "Parameter",
"flags": {},
"comment": {
"shortText": "The column to order by"
},
"type": {
"type": "reference",
"id": 428,
"name": "ColumnName"
}
},
{
"id": 583,
"name": "options",
"kind": 32768,
"kindString": "Parameter",
"flags": {
"isOptional": true
},
"comment": {
"shortText": "Named parameters"
},
"type": {
"type": "reflection",
"declaration": {
"id": 584,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
"flags": {},
"children": [
{
"id": 585,
"name": "ascending",
"kind": 1024,
"kindString": "Property",
"flags": {
"isOptional": true
},
"sources": [
{
"fileName": "src/PostgrestTransformBuilder.ts",
"line": 83,
"character": 16
}
],
"type": {
"type": "intrinsic",
"name": "boolean"
}
},
{
"id": 587,
"name": "foreignTable",
"kind": 1024,
"kindString": "Property",
"flags": {
"isOptional": true
},
"sources": [
{
"fileName": "src/PostgrestTransformBuilder.ts",
"line": 83,
"character": 59
}
],
"type": {
"type": "intrinsic",
"name": "undefined"
}
},
{
"id": 586,
"name": "nullsFirst",
"kind": 1024,
"kindString": "Property",
"flags": {
"isOptional": true
},
"sources": [
{
"fileName": "src/PostgrestTransformBuilder.ts",
"line": 83,
"character": 37
}
],
"type": {
"type": "intrinsic",
"name": "boolean"
}
}
],
"groups": [
{
"title": "Properties",
"kind": 1024,
"children": [585, 587, 586]
}
]
}
}
}
],
"type": {
"type": "reference",
"id": 534,
"typeArguments": [
{
"type": "reference",
"id": 537,
"name": "ClientOptions"
},
{
"type": "reference",
"id": 538,
"name": "Schema"
},
{
"type": "reference",
"id": 539,
"name": "Row"
},
{
"type": "reference",
"id": 540,
"name": "Result"
},
{
"type": "reference",
"id": 541,
"name": "RelationName"
},
{
"type": "reference",
"id": 542,
"name": "Relationships"
},
{
"type": "reference",
"id": 543,
"name": "Method"
}
],
"name": "default"
}
},
{
"id": 588,
"name": "order",
"kind": 4096,
"kindString": "Call signature",
"flags": {},
"comment": {
"shortText": "Order the query result by `column`.",
"text": "You can call this method multiple times to order by multiple columns.\n\nYou can order referenced tables, but it only affects the ordering of the\nparent table if you use `!inner` in the query.\n",
"tags": [
{
"tag": "deprecated",
"text": "Use `options.referencedTable` instead of `options.foreignTable`\n"
}
]
},
"parameters": [
{
"id": 589,
"name": "column",
"kind": 32768,
"kindString": "Parameter",
"flags": {},
"comment": {
"shortText": "The column to order by"
},
"type": {
"type": "intrinsic",
"name": "string"
}
},
{
"id": 590,
"name": "options",
"kind": 32768,
"kindString": "Parameter",
"flags": {
"isOptional": true
},
"comment": {
"shortText": "Named parameters"
},
"type": {
"type": "reflection",
"declaration": {
"id": 591,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
"flags": {},
"children": [
{
"id": 592,
"name": "ascending",
"kind": 1024,
"kindString": "Property",
"flags": {
"isOptional": true
},
"sources": [
{
"fileName": "src/PostgrestTransformBuilder.ts",
"line": 90,
"character": 16
}
],
"type": {
"type": "intrinsic",
"name": "boolean"
}
},
{
"id": 594,
"name": "foreignTable",
"kind": 1024,
"kindString": "Property",
"flags": {
"isOptional": true
},
"sources": [
{
"fileName": "src/PostgrestTransformBuilder.ts",
"line": 90,
"character": 59
}
],
"type": {
"type": "intrinsic",
"name": "string"
}
},
{
"id": 593,
"name": "nullsFirst",
"kind": 1024,
"kindString": "Property",
"flags": {
"isOptional": true
},
"sources": [
{
"fileName": "src/PostgrestTransformBuilder.ts",
"line": 90,
"character": 37
}
],
"type": {
"type": "intrinsic",
"name": "boolean"
}
}
],
"groups": [
{
"title": "Properties",
"kind": 1024,
"children": [592, 594, 593]
}
]
}
}
}
],
"type": {
"type": "reference",
"id": 534,
"typeArguments": [
{
"type": "reference",
"id": 537,
"name": "ClientOptions"
},
{
"type": "reference",
"id": 538,
"name": "Schema"
},
{
"type": "reference",
"id": 539,
"name": "Row"
},
{
"type": "reference",
"id": 540,
"name": "Result"
},
{
"type": "reference",
"id": 541,
"name": "RelationName"
},
{
"type": "reference",
"id": 542,
"name": "Relationships"
},
{
"type": "reference",
"id": 543,
"name": "Method"
}
],
"name": "default"
}
}
]
},
{
"id": 672,
"name": "overrideTypes",
"kind": 2048,
"kindString": "Method",
"flags": {},
"sources": [
{
"fileName": "src/PostgrestBuilder.ts",
"line": 276,
"character": 2
}
],
"signatures": [
{
"id": 673,
"name": "overrideTypes",
"kind": 4096,
"kindString": "Call signature",
"flags": {},
"comment": {
"shortText": "Override the type of the returned `data` field in the response.",
"returns": "A PostgrestBuilder instance with the new type\n",
"tags": [
{
"tag": "example",
"text": "\n```typescript\n// Merge with existing types (default behavior)\nconst query = supabase\n .from('users')\n .select()\n .overrideTypes<{ custom_field: string }>()\n\n// Replace existing types completely\nconst replaceQuery = supabase\n .from('users')\n .select()\n .overrideTypes<{ id: number; name: string }, { merge: false }>()\n```"
}
]
},
"typeParameter": [
{
"id": 674,
"name": "NewResult",
"kind": 131072,
"kindString": "Type parameter",
"flags": {},
"comment": {
"shortText": "The new type to cast the response data to"
}
},
{
"id": 679,
"name": "Options",
"kind": 131072,
"kindString": "Type parameter",
"flags": {},
"comment": {
"shortText": "Optional type configuration (defaults to { merge: true })"
},
"type": {
"type": "reflection",
"declaration": {
"id": 675,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
"flags": {},
"children": [
{
"id": 676,
"name": "merge",
"kind": 1024,
"kindString": "Property",
"flags": {
"isOptional": true
},
"sources": [
{
"fileName": "src/PostgrestBuilder.ts",
"line": 278,
"character": 22
}
],
"type": {
"type": "intrinsic",
"name": "boolean"
}
}
],
"groups": [
{
"title": "Properties",
"kind": 1024,
"children": [676]
}
]
}
},
"default": {
"type": "reflection",
"declaration": {
"id": 677,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
"flags": {},
"children": [
{
"id": 678,
"name": "merge",
"kind": 1024,
"kindString": "Property",
"flags": {},
"sources": [
{
"fileName": "src/PostgrestBuilder.ts",
"line": 278,
"character": 44
}
],
"type": {
"type": "literal",
"value": true
}
}
],
"groups": [
{
"title": "Properties",
"kind": 1024,
"children": [678]
}
]
}
}
}
],
"type": {
"type": "reference",
"id": 687,
"typeArguments": [
{
"type": "reference",
"id": 537,
"name": "ClientOptions"
},
{
"type": "conditional",
"checkType": {
"type": "reference",
"typeArguments": [
{
"type": "reference",
"id": 540,
"name": "Result"
},
{
"type": "reference",
"id": 521,
"name": "NewResult"
},
{
"type": "literal",
"value": false
},
{
"type": "literal",
"value": false
}
],
"name": "IsValidResultOverride"
},
"extendsType": {
"type": "literal",
"value": true
},
"trueType": {
"type": "conditional",
"checkType": {
"type": "reference",
"typeArguments": [
{
"type": "reference",
"id": 540,
"name": "Result"
}
],
"name": "ContainsNull"
},
"extendsType": {
"type": "literal",
"value": true
},
"trueType": {
"type": "union",
"types": [
{
"type": "literal",
"value": null
},
{
"type": "reference",
"typeArguments": [
{
"type": "reference",
"id": 521,
"name": "NewResult"
},
{
"type": "reference",
"typeArguments": [
{
"type": "reference",
"id": 540,
"name": "Result"
}
],
"qualifiedName": "NonNullable",
"package": "typescript",
"name": "NonNullable"
},
{
"type": "reference",
"id": 526,
"name": "Options"
}
],
"name": "MergePartialResult"
}
]
},
"falseType": {
"type": "reference",
"typeArguments": [
{
"type": "reference",
"id": 521,
"name": "NewResult"
},
{
"type": "reference",
"id": 540,
"name": "Result"
},
{
"type": "reference",
"id": 526,
"name": "Options"
}
],
"name": "MergePartialResult"
}
},
"falseType": {
"type": "reference",
"typeArguments": [
{
"type": "reference",
"id": 540,
"name": "Result"
},
{
"type": "reference",
"id": 521,
"name": "NewResult"
}
],
"name": "CheckMatchingArrayTypes"
}
},
{
"type": "literal",
"value": false
}
],
"name": "default"
},
"inheritedFrom": {
"type": "reference",
"id": 743,
"name": "default.overrideTypes"
}
}
],
"inheritedFrom": {
"type": "reference",
"id": 742,
"name": "default.overrideTypes"
}
},
{
"id": 602,
"name": "range",
"kind": 2048,
"kindString": "Method",
"flags": {},
"sources": [
{
"fileName": "src/PostgrestTransformBuilder.ts",
"line": 173,
"character": 2
}
],
"signatures": [
{
"id": 603,
"name": "range",
"kind": 4096,
"kindString": "Call signature",
"flags": {},
"comment": {
"shortText": "Limit the query result by starting at an offset `from` and ending at the offset `to`.\nOnly records within this range are returned.\nThis respects the query order and if there is no order clause the range could behave unexpectedly.\nThe `from` and `to` values are 0-based and inclusive: `range(1, 3)` will include the second, third\nand fourth rows of the query."
},
"parameters": [
{
"id": 604,
"name": "from",
"kind": 32768,
"kindString": "Parameter",
"flags": {},
"comment": {
"shortText": "The starting index from which to limit the result"
},
"type": {
"type": "intrinsic",
"name": "number"
}
},
{
"id": 605,
"name": "to",
"kind": 32768,
"kindString": "Parameter",
"flags": {},
"comment": {
"shortText": "The last index to which to limit the result"
},
"type": {
"type": "intrinsic",
"name": "number"
}
},
{
"id": 606,
"name": "options",
"kind": 32768,
"kindString": "Parameter",
"flags": {},
"comment": {
"shortText": "Named parameters"
},
"originalName": "__namedParameters",
"type": {
"type": "reflection",
"declaration": {
"id": 607,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
"flags": {},
"children": [
{
"id": 608,
"name": "foreignTable",
"kind": 1024,
"kindString": "Property",
"flags": {
"isOptional": true
},
"comment": {
"shortText": "Deprecated, use `options.referencedTable`\ninstead\n"
},
"sources": [
{
"fileName": "src/PostgrestTransformBuilder.ts",
"line": 179,
"character": 9
}
],
"type": {
"type": "intrinsic",
"name": "string"
}
},
{
"id": 609,
"name": "referencedTable",
"kind": 1024,
"kindString": "Property",
"flags": {
"isOptional": true
},
"comment": {
"shortText": "Set this to limit rows of referenced\ntables instead of the parent table"
},
"sources": [
{
"fileName": "src/PostgrestTransformBuilder.ts",
"line": 179,
"character": 32
}
],
"type": {
"type": "intrinsic",
"name": "string"
}
}
],
"groups": [
{
"title": "Properties",
"kind": 1024,
"children": [608, 609]
}
]
}
},
"defaultValue": "{}"
}
],
"type": {
"type": "reference",
"id": 534,
"typeArguments": [
{
"type": "reference",
"id": 537,
"name": "ClientOptions"
},
{
"type": "reference",
"id": 538,
"name": "Schema"
},
{
"type": "reference",
"id": 539,
"name": "Row"
},
{
"type": "reference",
"id": 540,
"name": "Result"
},
{
"type": "reference",
"id": 541,
"name": "RelationName"
},
{
"type": "reference",
"id": 542,
"name": "Relationships"
},
{
"type": "reference",
"id": 543,
"name": "Method"
}
],
"name": "default"
}
}
]
},
{
"id": 635,
"name": "returns",
"kind": 2048,
"kindString": "Method",
"flags": {},
"sources": [
{
"fileName": "src/PostgrestTransformBuilder.ts",
"line": 328,
"character": 2
}
],
"signatures": [
{
"id": 636,
"name": "returns",
"kind": 4096,
"kindString": "Call signature",
"flags": {},
"comment": {
"shortText": "Override the type of the returned `data`.",
"tags": [
{
"tag": "deprecated",
"text": "Use overrideTypes<yourType, { merge: false }>() method at the end of your call chain instead\n"
}
]
},
"typeParameter": [
{
"id": 637,
"name": "NewResult",
"kind": 131072,
"kindString": "Type parameter",
"flags": {},
"comment": {
"shortText": "The new result type to override with"
}
}
],
"type": {
"type": "reference",
"id": 534,
"typeArguments": [
{
"type": "reference",
"id": 537,
"name": "ClientOptions"
},
{
"type": "reference",
"id": 538,
"name": "Schema"
},
{
"type": "reference",
"id": 539,
"name": "Row"
},
{
"type": "reference",
"typeArguments": [
{
"type": "reference",
"id": 540,
"name": "Result"
},
{
"type": "reference",
"id": 484,
"name": "NewResult"
}
],
"name": "CheckMatchingArrayTypes"
},
{
"type": "reference",
"id": 541,
"name": "RelationName"
},
{
"type": "reference",
"id": 542,
"name": "Relationships"
},
{
"type": "reference",
"id": 543,
"name": "Method"
}
],
"name": "default"
},
"overwrites": {
"type": "reference",
"id": 740,
"name": "default.returns"
}
}
],
"overwrites": {
"type": "reference",
"id": 739,
"name": "default.returns"
}
},
{
"id": 633,
"name": "rollback",
"kind": 2048,
"kindString": "Method",
"flags": {},
"sources": [
{
"fileName": "src/PostgrestTransformBuilder.ts",
"line": 317,
"character": 2
}
],
"signatures": [
{
"id": 634,
"name": "rollback",
"kind": 4096,
"kindString": "Call signature",
"flags": {},
"comment": {
"shortText": "Rollback the query.",
"text": "`data` will still be returned, but the query is not committed.\n"
},
"type": {
"type": "reference",
"id": 534,
"typeArguments": [
{
"type": "reference",
"id": 537,
"name": "ClientOptions"
},
{
"type": "reference",
"id": 538,
"name": "Schema"
},
{
"type": "reference",
"id": 539,
"name": "Row"
},
{
"type": "reference",
"id": 540,
"name": "Result"
},
{
"type": "reference",
"id": 541,
"name": "RelationName"
},
{
"type": "reference",
"id": 542,
"name": "Relationships"
},
{
"type": "reference",
"id": 543,
"name": "Method"
}
],
"name": "default"
}
}
]
},
{
"id": 559,
"name": "select",
"kind": 2048,
"kindString": "Method",
"flags": {},
"sources": [
{
"fileName": "src/PostgrestTransformBuilder.ts",
"line": 29,
"character": 2
}
],
"signatures": [
{
"id": 560,
"name": "select",
"kind": 4096,
"kindString": "Call signature",
"flags": {},
"comment": {
"shortText": "Perform a SELECT on the query result.",
"text": "By default, `.insert()`, `.update()`, `.upsert()`, and `.delete()` do not\nreturn modified rows. By calling this method, modified rows are returned in\n`data`.\n"
},
"typeParameter": [
{
"id": 561,
"name": "Query",
"kind": 131072,
"kindString": "Type parameter",
"flags": {},
"type": {
"type": "intrinsic",
"name": "string"
},
"default": {
"type": "literal",
"value": "*"
}
},
{
"id": 562,
"name": "NewResultOne",
"kind": 131072,
"kindString": "Type parameter",
"flags": {},
"default": {
"type": "reference",
"id": 792,
"typeArguments": [
{
"type": "reference",
"id": 538,
"name": "Schema"
},
{
"type": "reference",
"id": 539,
"name": "Row"
},
{
"type": "reference",
"id": 541,
"name": "RelationName"
},
{
"type": "reference",
"id": 542,
"name": "Relationships"
},
{
"type": "reference",
"id": 408,
"name": "Query"
},
{
"type": "reference",
"id": 537,
"name": "ClientOptions"
}
],
"name": "GetResult"
}
}
],
"parameters": [
{
"id": 563,
"name": "columns",
"kind": 32768,
"kindString": "Parameter",
"flags": {
"isOptional": true
},
"comment": {
"shortText": "The columns to retrieve, separated by commas\n"
},
"type": {
"type": "reference",
"id": 408,
"name": "Query"
}
}
],
"type": {
"type": "reference",
"id": 534,
"typeArguments": [
{
"type": "reference",
"id": 537,
"name": "ClientOptions"
},
{
"type": "reference",
"id": 538,
"name": "Schema"
},
{
"type": "reference",
"id": 539,
"name": "Row"
},
{
"type": "array",
"elementType": {
"type": "reference",
"id": 409,
"name": "NewResultOne"
}
},
{
"type": "reference",
"id": 541,
"name": "RelationName"
},
{
"type": "reference",
"id": 542,
"name": "Relationships"
},
{
"type": "reference",
"id": 543,
"name": "Method"
}
],
"name": "default"
}
}
]
},
{
"id": 656,
"name": "setHeader",
"kind": 2048,
"kindString": "Method",
"flags": {},
"sources": [
{
"fileName": "src/PostgrestBuilder.ts",
"line": 78,
"character": 2
}
],
"signatures": [
{
"id": 657,
"name": "setHeader",
"kind": 4096,
"kindString": "Call signature",
"flags": {},
"comment": {
"shortText": "Set an HTTP header for the request."
},
"parameters": [
{
"id": 658,
"name": "name",
"kind": 32768,
"kindString": "Parameter",
"flags": {},
"type": {
"type": "intrinsic",
"name": "string"
}
},
{
"id": 659,
"name": "value",
"kind": 32768,
"kindString": "Parameter",
"flags": {},
"type": {
"type": "intrinsic",
"name": "string"
}
}
],
"type": {
"type": "reference",
"id": 534,
"typeArguments": [
{
"type": "reference",
"id": 537,
"name": "ClientOptions"
},
{
"type": "reference",
"id": 538,
"name": "Schema"
},
{
"type": "reference",
"id": 539,
"name": "Row"
},
{
"type": "reference",
"id": 540,
"name": "Result"
},
{
"type": "reference",
"id": 541,
"name": "RelationName"
},
{
"type": "reference",
"id": 542,
"name": "Relationships"
},
{
"type": "reference",
"id": 543,
"name": "Method"
}
],
"name": "default"
},
"inheritedFrom": {
"type": "reference",
"id": 724,
"name": "default.setHeader"
}
}
],
"inheritedFrom": {
"type": "reference",
"id": 723,
"name": "default.setHeader"
}
},
{
"id": 613,
"name": "single",
"kind": 2048,
"kindString": "Method",
"flags": {},
"sources": [
{
"fileName": "src/PostgrestTransformBuilder.ts",
"line": 206,
"character": 2
}
],
"signatures": [
{
"id": 614,
"name": "single",
"kind": 4096,
"kindString": "Call signature",
"flags": {},
"comment": {
"shortText": "Return `data` as a single object instead of an array of objects.",
"text": "Query result must be one row (e.g. using `.limit(1)`), otherwise this\nreturns an error.\n"
},
"typeParameter": [
{
"id": 615,
"name": "ResultOne",
"kind": 131072,
"kindString": "Type parameter",
"flags": {},
"default": {
"type": "conditional",
"checkType": {
"type": "reference",
"id": 540,
"name": "Result"
},
"extendsType": {
"type": "array",
"elementType": {
"type": "reference",
"name": "ResultOne"
}
},
"trueType": {
"type": "reference",
"name": "ResultOne"
},
"falseType": {
"type": "intrinsic",
"name": "never"
}
}
}
],
"type": {
"type": "reference",
"id": 687,
"typeArguments": [
{
"type": "reference",
"id": 537,
"name": "ClientOptions"
},
{
"type": "reference",
"id": 462,
"name": "ResultOne"
},
{
"type": "literal",
"value": false
}
],
"name": "default"
}
}
]
},
{
"id": 660,
"name": "then",
"kind": 2048,
"kindString": "Method",
"flags": {},
"sources": [
{
"fileName": "src/PostgrestBuilder.ts",
"line": 84,
"character": 2
}
],
"signatures": [
{
"id": 661,
"name": "then",
"kind": 4096,
"kindString": "Call signature",
"flags": {},
"typeParameter": [
{
"id": 662,
"name": "TResult1",
"kind": 131072,
"kindString": "Type parameter",
"flags": {},
"default": {
"type": "reference",
"id": 780,
"typeArguments": [
{
"type": "reference",
"id": 540,
"name": "Result"
}
],
"name": "PostgrestSingleResponse"
}
},
{
"id": 663,
"name": "TResult2",
"kind": 131072,
"kindString": "Type parameter",
"flags": {},
"default": {
"type": "intrinsic",
"name": "never"
}
}
],
"parameters": [
{
"id": 664,
"name": "onfulfilled",
"kind": 32768,
"kindString": "Parameter",
"flags": {
"isOptional": true
},
"type": {
"type": "union",
"types": [
{
"type": "literal",
"value": null
},
{
"type": "reflection",
"declaration": {
"id": 665,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
"flags": {},
"signatures": [
{
"id": 666,
"name": "__type",
"kind": 4096,
"kindString": "Call signature",
"flags": {},
"parameters": [
{
"id": 667,
"name": "value",
"kind": 32768,
"kindString": "Parameter",
"flags": {},
"type": {
"type": "reference",
"id": 780,
"typeArguments": [
{
"type": "reference",
"id": 540,
"name": "Result"
}
],
"name": "PostgrestSingleResponse"
}
}
],
"type": {
"type": "union",
"types": [
{
"type": "reference",
"id": 509,
"name": "TResult1"
},
{
"type": "reference",
"typeArguments": [
{
"type": "reference",
"id": 509,
"name": "TResult1"
}
],
"qualifiedName": "PromiseLike",
"package": "typescript",
"name": "PromiseLike"
}
]
}
}
]
}
}
]
}
},
{
"id": 668,
"name": "onrejected",
"kind": 32768,
"kindString": "Parameter",
"flags": {
"isOptional": true
},
"type": {
"type": "union",
"types": [
{
"type": "literal",
"value": null
},
{
"type": "reflection",
"declaration": {
"id": 669,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
"flags": {},
"signatures": [
{
"id": 670,
"name": "__type",
"kind": 4096,
"kindString": "Call signature",
"flags": {},
"parameters": [
{
"id": 671,
"name": "reason",
"kind": 32768,
"kindString": "Parameter",
"flags": {},
"type": {
"type": "intrinsic",
"name": "any"
}
}
],
"type": {
"type": "union",
"types": [
{
"type": "reference",
"id": 510,
"name": "TResult2"
},
{
"type": "reference",
"typeArguments": [
{
"type": "reference",
"id": 510,
"name": "TResult2"
}
],
"qualifiedName": "PromiseLike",
"package": "typescript",
"name": "PromiseLike"
}
]
}
}
]
}
}
]
}
}
],
"type": {
"type": "reference",
"typeArguments": [
{
"type": "union",
"types": [
{
"type": "reference",
"id": 509,
"name": "TResult1"
},
{
"type": "reference",
"id": 510,
"name": "TResult2"
}
]
}
],
"qualifiedName": "PromiseLike",
"package": "typescript",
"name": "PromiseLike"
},
"inheritedFrom": {
"type": "reference",
"id": 728,
"name": "default.then"
}
}
],
"inheritedFrom": {
"type": "reference",
"id": 727,
"name": "default.then"
}
},
{
"id": 654,
"name": "throwOnError",
"kind": 2048,
"kindString": "Method",
"flags": {},
"sources": [
{
"fileName": "src/PostgrestBuilder.ts",
"line": 70,
"character": 2
}
],
"signatures": [
{
"id": 655,
"name": "throwOnError",
"kind": 4096,
"kindString": "Call signature",
"flags": {},
"comment": {
"shortText": "If there's an error with the query, throwOnError will reject the promise by\nthrowing the error instead of returning it as part of a successful response.",
"text": "{@link https://github.com/supabase/supabase-js/issues/92}\n"
},
"type": {
"type": "intersection",
"types": [
{
"type": "reference",
"id": 534,
"typeArguments": [
{
"type": "reference",
"id": 537,
"name": "ClientOptions"
},
{
"type": "reference",
"id": 538,
"name": "Schema"
},
{
"type": "reference",
"id": 539,
"name": "Row"
},
{
"type": "reference",
"id": 540,
"name": "Result"
},
{
"type": "reference",
"id": 541,
"name": "RelationName"
},
{
"type": "reference",
"id": 542,
"name": "Relationships"
},
{
"type": "reference",
"id": 543,
"name": "Method"
}
],
"name": "default"
},
{
"type": "reference",
"id": 687,
"typeArguments": [
{
"type": "reference",
"id": 537,
"name": "ClientOptions"
},
{
"type": "reference",
"id": 540,
"name": "Result"
},
{
"type": "literal",
"value": true
}
],
"name": "default"
}
]
},
"inheritedFrom": {
"type": "reference",
"id": 722,
"name": "default.throwOnError"
}
}
],
"inheritedFrom": {
"type": "reference",
"id": 721,
"name": "default.throwOnError"
}
}
],
"groups": [
{
"title": "Constructors",
"kind": 512,
"children": [535]
},
{
"title": "Properties",
"kind": 1024,
"children": [645, 648, 643, 653, 641, 644, 646, 647, 642]
},
{
"title": "Methods",
"kind": 2048,
"children": [
610, 619, 623, 621, 595, 638, 616, 564, 672, 602, 635, 633, 559, 656, 613, 660, 654
]
}
],
"sources": [
{
"fileName": "src/PostgrestTransformBuilder.ts",
"line": 11,
"character": 21
}
],
"typeParameter": [
{
"id": 680,
"name": "ClientOptions",
"kind": 131072,
"kindString": "Type parameter",
"flags": {},
"type": {
"type": "reference",
"id": 784,
"name": "ClientServerOptions"
}
},
{
"id": 681,
"name": "Schema",
"kind": 131072,
"kindString": "Type parameter",
"flags": {},
"type": {
"type": "reference",
"name": "GenericSchema"
}
},
{
"id": 682,
"name": "Row",
"kind": 131072,
"kindString": "Type parameter",
"flags": {},
"type": {
"type": "reference",
"typeArguments": [
{
"type": "intrinsic",
"name": "string"
},
{
"type": "intrinsic",
"name": "unknown"
}
],
"qualifiedName": "Record",
"package": "typescript",
"name": "Record"
}
},
{
"id": 683,
"name": "Result",
"kind": 131072,
"kindString": "Type parameter",
"flags": {}
},
{
"id": 684,
"name": "RelationName",
"kind": 131072,
"kindString": "Type parameter",
"flags": {},
"default": {
"type": "intrinsic",
"name": "unknown"
}
},
{
"id": 685,
"name": "Relationships",
"kind": 131072,
"kindString": "Type parameter",
"flags": {},
"default": {
"type": "intrinsic",
"name": "unknown"
}
},
{
"id": 686,
"name": "Method",
"kind": 131072,
"kindString": "Type parameter",
"flags": {},
"default": {
"type": "intrinsic",
"name": "unknown"
}
}
],
"extendedTypes": [
{
"type": "reference",
"id": 687,
"typeArguments": [
{
"type": "reference",
"id": 537,
"name": "ClientOptions"
},
{
"type": "reference",
"id": 540,
"name": "Result"
}
],
"name": "default"
}
],
"extendedBy": [
{
"type": "reference",
"id": 165,
"name": "PostgrestFilterBuilder"
}
]
},
{
"id": 767,
"name": "PostgrestResponseFailure",
"kind": 256,
"kindString": "Interface",
"flags": {},
"children": [
{
"id": 770,
"name": "count",
"kind": 1024,
"kindString": "Property",
"flags": {},
"sources": [
{
"fileName": "src/types.ts",
"line": 24,
"character": 2
}
],
"type": {
"type": "literal",
"value": null
}
},
{
"id": 769,
"name": "data",
"kind": 1024,
"kindString": "Property",
"flags": {},
"sources": [
{
"fileName": "src/types.ts",
"line": 23,
"character": 2
}
],
"type": {
"type": "literal",
"value": null
}
},
{
"id": 768,
"name": "error",
"kind": 1024,
"kindString": "Property",
"flags": {},
"sources": [
{
"fileName": "src/types.ts",
"line": 22,
"character": 2
}
],
"type": {
"type": "reference",
"id": 753,
"name": "default"
}
},
{
"id": 771,
"name": "status",
"kind": 1024,
"kindString": "Property",
"flags": {},
"sources": [
{
"fileName": "src/types.ts",
"line": 13,
"character": 2
}
],
"type": {
"type": "intrinsic",
"name": "number"
},
"inheritedFrom": {
"type": "reference",
"name": "PostgrestResponseBase.status"
}
},
{
"id": 772,
"name": "statusText",
"kind": 1024,
"kindString": "Property",
"flags": {},
"sources": [
{
"fileName": "src/types.ts",
"line": 14,
"character": 2
}
],
"type": {
"type": "intrinsic",
"name": "string"
},
"inheritedFrom": {
"type": "reference",
"name": "PostgrestResponseBase.statusText"
}
}
],
"groups": [
{
"title": "Properties",
"kind": 1024,
"children": [770, 769, 768, 771, 772]
}
],
"sources": [
{
"fileName": "src/types.ts",
"line": 21,
"character": 17
}
],
"extendedTypes": [
{
"type": "reference",
"name": "PostgrestResponseBase"
}
]
},
{
"id": 773,
"name": "PostgrestResponseSuccess",
"kind": 256,
"kindString": "Interface",
"flags": {},
"children": [
{
"id": 776,
"name": "count",
"kind": 1024,
"kindString": "Property",
"flags": {},
"sources": [
{
"fileName": "src/types.ts",
"line": 19,
"character": 2
}
],
"type": {
"type": "union",
"types": [
{
"type": "literal",
"value": null
},
{
"type": "intrinsic",
"name": "number"
}
]
}
},
{
"id": 775,
"name": "data",
"kind": 1024,
"kindString": "Property",
"flags": {},
"sources": [
{
"fileName": "src/types.ts",
"line": 18,
"character": 2
}
],
"type": {
"type": "reference",
"id": 779,
"name": "T"
}
},
{
"id": 774,
"name": "error",
"kind": 1024,
"kindString": "Property",
"flags": {},
"sources": [
{
"fileName": "src/types.ts",
"line": 17,
"character": 2
}
],
"type": {
"type": "literal",
"value": null
}
},
{
"id": 777,
"name": "status",
"kind": 1024,
"kindString": "Property",
"flags": {},
"sources": [
{
"fileName": "src/types.ts",
"line": 13,
"character": 2
}
],
"type": {
"type": "intrinsic",
"name": "number"
},
"inheritedFrom": {
"type": "reference",
"name": "PostgrestResponseBase.status"
}
},
{
"id": 778,
"name": "statusText",
"kind": 1024,
"kindString": "Property",
"flags": {},
"sources": [
{
"fileName": "src/types.ts",
"line": 14,
"character": 2
}
],
"type": {
"type": "intrinsic",
"name": "string"
},
"inheritedFrom": {
"type": "reference",
"name": "PostgrestResponseBase.statusText"
}
}
],
"groups": [
{
"title": "Properties",
"kind": 1024,
"children": [776, 775, 774, 777, 778]
}
],
"sources": [
{
"fileName": "src/types.ts",
"line": 16,
"character": 17
}
],
"typeParameter": [
{
"id": 779,
"name": "T",
"kind": 131072,
"kindString": "Type parameter",
"flags": {}
}
],
"extendedTypes": [
{
"type": "reference",
"name": "PostgrestResponseBase"
}
]
},
{
"id": 784,
"name": "ClientServerOptions",
"kind": 4194304,
"kindString": "Type alias",
"flags": {},
"sources": [
{
"fileName": "src/types.ts",
"line": 74,
"character": 12
}
],
"type": {
"type": "reflection",
"declaration": {
"id": 785,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
"flags": {},
"children": [
{
"id": 786,
"name": "PostgrestVersion",
"kind": 1024,
"kindString": "Property",
"flags": {
"isOptional": true
},
"sources": [
{
"fileName": "src/types.ts",
"line": 75,
"character": 2
}
],
"type": {
"type": "intrinsic",
"name": "string"
}
}
],
"groups": [
{
"title": "Properties",
"kind": 1024,
"children": [786]
}
],
"sources": [
{
"fileName": "src/types.ts",
"line": 74,
"character": 34
}
]
}
}
},
{
"id": 787,
"name": "GetGenericDatabaseWithOptions",
"kind": 4194304,
"kindString": "Type alias",
"flags": {},
"sources": [
{
"fileName": "src/types.ts",
"line": 85,
"character": 12
}
],
"typeParameter": [
{
"id": 788,
"name": "Database",
"kind": 131072,
"kindString": "Type parameter",
"flags": {}
},
{
"id": 791,
"name": "Opts",
"kind": 131072,
"kindString": "Type parameter",
"flags": {},
"type": {
"type": "reference",
"id": 784,
"name": "ClientServerOptions"
},
"default": {
"type": "reflection",
"declaration": {
"id": 789,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
"flags": {},
"children": [
{
"id": 790,
"name": "PostgrestVersion",
"kind": 1024,
"kindString": "Property",
"flags": {},
"sources": [
{
"fileName": "src/types.ts",
"line": 87,
"character": 39
}
],
"type": {
"type": "literal",
"value": "12"
}
}
],
"groups": [
{
"title": "Properties",
"kind": 1024,
"children": [790]
}
],
"sources": [
{
"fileName": "src/types.ts",
"line": 87,
"character": 37
}
]
}
}
}
],
"type": {
"type": "conditional",
"checkType": {
"type": "reference",
"typeArguments": [
{
"type": "reference",
"id": 788,
"name": "Database"
}
],
"name": "IsAny"
},
"extendsType": {
"type": "literal",
"value": true
},
"trueType": {
"type": "reference",
"typeArguments": [
{
"type": "reference",
"id": 788,
"name": "Database"
},
{
"type": "reference",
"id": 791,
"name": "Opts"
}
],
"name": "DatabaseWithOptions"
},
"falseType": {
"type": "conditional",
"checkType": {
"type": "query",
"queryType": {
"type": "reference",
"name": "INTERNAL_SUPABASE_OPTIONS"
}
},
"extendsType": {
"type": "typeOperator",
"operator": "keyof",
"target": {
"type": "reference",
"id": 788,
"name": "Database"
}
},
"trueType": {
"type": "conditional",
"checkType": {
"type": "indexedAccess",
"indexType": {
"type": "query",
"queryType": {
"type": "reference",
"name": "INTERNAL_SUPABASE_OPTIONS"
}
},
"objectType": {
"type": "reference",
"id": 788,
"name": "Database"
}
},
"extendsType": {
"type": "reference",
"id": 784,
"name": "ClientServerOptions"
},
"trueType": {
"type": "reference",
"typeArguments": [
{
"type": "reference",
"typeArguments": [
{
"type": "reference",
"id": 788,
"name": "Database"
},
{
"type": "query",
"queryType": {
"type": "reference",
"name": "INTERNAL_SUPABASE_OPTIONS"
}
}
],
"qualifiedName": "Omit",
"package": "typescript",
"name": "Omit"
},
{
"type": "indexedAccess",
"indexType": {
"type": "query",
"queryType": {
"type": "reference",
"name": "INTERNAL_SUPABASE_OPTIONS"
}
},
"objectType": {
"type": "reference",
"id": 788,
"name": "Database"
}
}
],
"name": "DatabaseWithOptions"
},
"falseType": {
"type": "reference",
"typeArguments": [
{
"type": "reference",
"typeArguments": [
{
"type": "reference",
"id": 788,
"name": "Database"
},
{
"type": "query",
"queryType": {
"type": "reference",
"name": "INTERNAL_SUPABASE_OPTIONS"
}
}
],
"qualifiedName": "Omit",
"package": "typescript",
"name": "Omit"
},
{
"type": "reference",
"id": 791,
"name": "Opts"
}
],
"name": "DatabaseWithOptions"
}
},
"falseType": {
"type": "reference",
"typeArguments": [
{
"type": "reference",
"id": 788,
"name": "Database"
},
{
"type": "reference",
"id": 791,
"name": "Opts"
}
],
"name": "DatabaseWithOptions"
}
}
}
},
{
"id": 782,
"name": "PostgrestMaybeSingleResponse",
"kind": 4194304,
"kindString": "Type alias",
"flags": {},
"sources": [
{
"fileName": "src/types.ts",
"line": 31,
"character": 12
}
],
"typeParameter": [
{
"id": 783,
"name": "T",
"kind": 131072,
"kindString": "Type parameter",
"flags": {}
}
],
"type": {
"type": "reference",
"id": 780,
"typeArguments": [
{
"type": "union",
"types": [
{
"type": "reference",
"id": 783,
"name": "T"
},
{
"type": "literal",
"value": null
}
]
}
],
"name": "PostgrestSingleResponse"
}
},
{
"id": 765,
"name": "PostgrestResponse",
"kind": 4194304,
"kindString": "Type alias",
"flags": {},
"sources": [
{
"fileName": "src/types.ts",
"line": 32,
"character": 12
}
],
"typeParameter": [
{
"id": 766,
"name": "T",
"kind": 131072,
"kindString": "Type parameter",
"flags": {}
}
],
"type": {
"type": "reference",
"id": 780,
"typeArguments": [
{
"type": "array",
"elementType": {
"type": "reference",
"id": 766,
"name": "T"
}
}
],
"name": "PostgrestSingleResponse"
}
},
{
"id": 780,
"name": "PostgrestSingleResponse",
"kind": 4194304,
"kindString": "Type alias",
"flags": {},
"sources": [
{
"fileName": "src/types.ts",
"line": 30,
"character": 12
}
],
"typeParameter": [
{
"id": 781,
"name": "T",
"kind": 131072,
"kindString": "Type parameter",
"flags": {}
}
],
"type": {
"type": "union",
"types": [
{
"type": "reference",
"id": 773,
"typeArguments": [
{
"type": "reference",
"id": 781,
"name": "T"
}
],
"name": "PostgrestResponseSuccess"
},
{
"type": "reference",
"id": 767,
"name": "PostgrestResponseFailure"
}
]
}
},
{
"id": 792,
"name": "UnstableGetResult",
"kind": 4194304,
"kindString": "Type alias",
"flags": {},
"comment": {
"shortText": "Main entry point for constructing the result type of a PostgREST query."
},
"sources": [
{
"fileName": "src/select-query-parser/result.ts",
"line": 37,
"character": 12
}
],
"typeParameter": [
{
"id": 793,
"name": "Schema",
"kind": 131072,
"kindString": "Type parameter",
"flags": {},
"comment": {
"shortText": "Database schema."
},
"type": {
"type": "reference",
"name": "GenericSchema"
}
},
{
"id": 794,
"name": "Row",
"kind": 131072,
"kindString": "Type parameter",
"flags": {},
"comment": {
"shortText": "The type of a row in the current table."
},
"type": {
"type": "reference",
"typeArguments": [
{
"type": "intrinsic",
"name": "string"
},
{
"type": "intrinsic",
"name": "unknown"
}
],
"qualifiedName": "Record",
"package": "typescript",
"name": "Record"
}
},
{
"id": 795,
"name": "RelationName",
"kind": 131072,
"kindString": "Type parameter",
"flags": {},
"comment": {
"shortText": "The name of the current table or view."
}
},
{
"id": 796,
"name": "Relationships",
"kind": 131072,
"kindString": "Type parameter",
"flags": {},
"comment": {
"shortText": "Relationships of the current table."
}
},
{
"id": 797,
"name": "Query",
"kind": 131072,
"kindString": "Type parameter",
"flags": {},
"comment": {
"shortText": "The select query string literal to parse.\n"
},
"type": {
"type": "intrinsic",
"name": "string"
}
},
{
"id": 798,
"name": "ClientOptions",
"kind": 131072,
"kindString": "Type parameter",
"flags": {},
"type": {
"type": "reference",
"id": 784,
"name": "ClientServerOptions"
}
}
],
"type": {
"type": "conditional",
"checkType": {
"type": "reference",
"typeArguments": [
{
"type": "reference",
"id": 793,
"name": "Schema"
}
],
"name": "IsAny"
},
"extendsType": {
"type": "literal",
"value": true
},
"trueType": {
"type": "conditional",
"checkType": {
"type": "reference",
"typeArguments": [
{
"type": "reference",
"id": 797,
"name": "Query"
}
],
"name": "ParseQuery"
},
"extendsType": {
"type": "inferred",
"name": "ParsedQuery"
},
"trueType": {
"type": "conditional",
"checkType": {
"type": "reference",
"name": "ParsedQuery"
},
"extendsType": {
"type": "array",
"elementType": {
"type": "reference",
"name": "Ast.Node"
}
},
"trueType": {
"type": "conditional",
"checkType": {
"type": "reference",
"id": 795,
"name": "RelationName"
},
"extendsType": {
"type": "intrinsic",
"name": "string"
},
"trueType": {
"type": "reference",
"typeArguments": [
{
"type": "reference",
"name": "ParsedQuery"
}
],
"name": "ProcessNodesWithoutSchema"
},
"falseType": {
"type": "intrinsic",
"name": "any"
}
},
"falseType": {
"type": "reference",
"name": "ParsedQuery"
}
},
"falseType": {
"type": "intrinsic",
"name": "any"
}
},
"falseType": {
"type": "conditional",
"checkType": {
"type": "reference",
"id": 796,
"name": "Relationships"
},
"extendsType": {
"type": "literal",
"value": null
},
"trueType": {
"type": "conditional",
"checkType": {
"type": "reference",
"typeArguments": [
{
"type": "reference",
"id": 797,
"name": "Query"
}
],
"name": "ParseQuery"
},
"extendsType": {
"type": "inferred",
"name": "ParsedQuery"
},
"trueType": {
"type": "conditional",
"checkType": {
"type": "reference",
"name": "ParsedQuery"
},
"extendsType": {
"type": "array",
"elementType": {
"type": "reference",
"name": "Ast.Node"
}
},
"trueType": {
"type": "reference",
"typeArguments": [
{
"type": "reference",
"name": "ParsedQuery"
},
{
"type": "conditional",
"checkType": {
"type": "reference",
"id": 795,
"name": "RelationName"
},
"extendsType": {
"type": "intrinsic",
"name": "string"
},
"trueType": {
"type": "reference",
"id": 795,
"name": "RelationName"
},
"falseType": {
"type": "literal",
"value": "rpc_call"
}
},
{
"type": "reference",
"id": 794,
"name": "Row"
}
],
"name": "RPCCallNodes"
},
"falseType": {
"type": "reference",
"name": "ParsedQuery"
}
},
"falseType": {
"type": "reference",
"id": 794,
"name": "Row"
}
},
"falseType": {
"type": "conditional",
"checkType": {
"type": "reference",
"typeArguments": [
{
"type": "reference",
"id": 797,
"name": "Query"
}
],
"name": "ParseQuery"
},
"extendsType": {
"type": "inferred",
"name": "ParsedQuery"
},
"trueType": {
"type": "conditional",
"checkType": {
"type": "reference",
"name": "ParsedQuery"
},
"extendsType": {
"type": "array",
"elementType": {
"type": "reference",
"name": "Ast.Node"
}
},
"trueType": {
"type": "conditional",
"checkType": {
"type": "reference",
"id": 795,
"name": "RelationName"
},
"extendsType": {
"type": "intrinsic",
"name": "string"
},
"trueType": {
"type": "conditional",
"checkType": {
"type": "reference",
"id": 796,
"name": "Relationships"
},
"extendsType": {
"type": "array",
"elementType": {
"type": "reference",
"name": "GenericRelationship"
}
},
"trueType": {
"type": "reference",
"typeArguments": [
{
"type": "reference",
"id": 798,
"name": "ClientOptions"
},
{
"type": "reference",
"id": 793,
"name": "Schema"
},
{
"type": "reference",
"id": 794,
"name": "Row"
},
{
"type": "reference",
"id": 795,
"name": "RelationName"
},
{
"type": "reference",
"id": 796,
"name": "Relationships"
},
{
"type": "reference",
"name": "ParsedQuery"
}
],
"name": "ProcessNodes"
},
"falseType": {
"type": "reference",
"typeArguments": [
{
"type": "literal",
"value": "Invalid Relationships cannot infer result type"
}
],
"name": "SelectQueryError"
}
},
"falseType": {
"type": "reference",
"typeArguments": [
{
"type": "literal",
"value": "Invalid RelationName cannot infer result type"
}
],
"name": "SelectQueryError"
}
},
"falseType": {
"type": "reference",
"name": "ParsedQuery"
}
},
"falseType": {
"type": "intrinsic",
"name": "never"
}
}
}
}
},
{
"id": 1,
"name": "default",
"kind": 32,
"kindString": "Variable",
"flags": {},
"sources": [
{
"fileName": "src/index.ts",
"line": 17,
"character": 0
}
],
"type": {
"type": "reflection",
"declaration": {
"id": 2,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
"flags": {},
"children": [
{
"id": 7,
"name": "PostgrestBuilder",
"kind": 1024,
"kindString": "Property",
"flags": {},
"type": {
"type": "query",
"queryType": {
"type": "reference",
"id": 687,
"name": "default"
}
}
},
{
"id": 3,
"name": "PostgrestClient",
"kind": 1024,
"kindString": "Property",
"flags": {},
"type": {
"type": "query",
"queryType": {
"type": "reference",
"id": 9,
"name": "default"
}
}
},
{
"id": 8,
"name": "PostgrestError",
"kind": 1024,
"kindString": "Property",
"flags": {},
"type": {
"type": "query",
"queryType": {
"type": "reference",
"id": 753,
"name": "default"
}
}
},
{
"id": 5,
"name": "PostgrestFilterBuilder",
"kind": 1024,
"kindString": "Property",
"flags": {},
"type": {
"type": "query",
"queryType": {
"type": "reference",
"id": 165,
"name": "default"
}
}
},
{
"id": 4,
"name": "PostgrestQueryBuilder",
"kind": 1024,
"kindString": "Property",
"flags": {},
"type": {
"type": "query",
"queryType": {
"type": "reference",
"id": 76,
"name": "default"
}
}
},
{
"id": 6,
"name": "PostgrestTransformBuilder",
"kind": 1024,
"kindString": "Property",
"flags": {},
"type": {
"type": "query",
"queryType": {
"type": "reference",
"id": 534,
"name": "default"
}
}
}
],
"groups": [
{
"title": "Properties",
"kind": 1024,
"children": [7, 3, 8, 5, 4, 6]
}
]
}
}
}
],
"groups": [
{
"title": "Classes",
"kind": 128,
"children": [687, 9, 753, 165, 76, 534]
},
{
"title": "Interfaces",
"kind": 256,
"children": [767, 773]
},
{
"title": "Type Aliases",
"kind": 4194304,
"children": [784, 787, 782, 765, 780, 792]
},
{
"title": "Variables",
"kind": 32,
"children": [1]
}
],
"sources": [
{
"fileName": "src/index.ts",
"line": 2,
"character": 0
}
]
}