Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

Added documentation about count option for select

dshukertjr753731532200
diff --git a/web/spec/combined.json b/web/spec/combined.json
index 6503e332cb2..17633c97881 100644
--- a/web/spec/combined.json
+++ b/web/spec/combined.json
@@ -5807,7 +5807,7 @@
"originalName": "",
"children": [
{
- "id": 68,
+ "id": 131,
"name": "\"GoTrueApi\"",
"kind": 1,
"kindString": "Module",
@@ -5817,7 +5817,7 @@
"originalName": "/home/runner/work/gotrue-js/gotrue-js/src/GoTrueApi.ts",
"children": [
{
- "id": 69,
+ "id": 132,
"name": "GoTrueApi",
"kind": 128,
"kindString": "Class",
@@ -5826,7 +5826,7 @@
},
"children": [
{
- "id": 75,
+ "id": 139,
"name": "constructor",
"kind": 512,
"kindString": "Constructor",
@@ -5835,7 +5835,7 @@
},
"signatures": [
{
- "id": 76,
+ "id": 140,
"name": "new GoTrueApi",
"kind": 16384,
"kindString": "Constructor signature",
@@ -5844,7 +5844,7 @@
},
"parameters": [
{
- "id": 77,
+ "id": 141,
"name": "__namedParameters",
"kind": 32768,
"kindString": "Parameter",
@@ -5855,7 +5855,7 @@
"type": {
"type": "reflection",
"declaration": {
- "id": 78,
+ "id": 142,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -5864,7 +5864,37 @@
},
"children": [
{
- "id": 80,
+ "id": 148,
+ "name": "cookieOptions",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "GoTrueApi.ts",
+ "line": 16,
+ "character": 17
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "intrinsic",
+ "name": "undefined"
+ },
+ {
+ "type": "reference",
+ "id": 66,
+ "name": "CookieOptions"
+ }
+ ]
+ }
+ },
+ {
+ "id": 144,
"name": "headers",
"kind": 32,
"kindString": "Variable",
@@ -5874,14 +5904,14 @@
"sources": [
{
"fileName": "GoTrueApi.ts",
- "line": 12,
+ "line": 15,
"character": 11
}
],
"type": {
"type": "reflection",
"declaration": {
- "id": 81,
+ "id": 145,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -5890,7 +5920,7 @@
},
"indexSignature": [
{
- "id": 82,
+ "id": 146,
"name": "__index",
"kind": 8192,
"kindString": "Index signature",
@@ -5899,7 +5929,7 @@
},
"parameters": [
{
- "id": 83,
+ "id": 147,
"name": "key",
"kind": 32768,
"kindString": "Parameter",
@@ -5922,7 +5952,7 @@
}
},
{
- "id": 79,
+ "id": 143,
"name": "url",
"kind": 32,
"kindString": "Variable",
@@ -5932,7 +5962,7 @@
"sources": [
{
"fileName": "GoTrueApi.ts",
- "line": 11,
+ "line": 14,
"character": 7
}
],
@@ -5948,15 +5978,16 @@
"title": "Variables",
"kind": 32,
"children": [
- 80,
- 79
+ 148,
+ 144,
+ 143
]
}
],
"sources": [
{
"fileName": "GoTrueApi.ts",
- "line": 10,
+ "line": 13,
"character": 14
}
]
@@ -5966,7 +5997,7 @@
],
"type": {
"type": "reference",
- "id": 69,
+ "id": 132,
"name": "GoTrueApi"
}
}
@@ -5974,13 +6005,35 @@
"sources": [
{
"fileName": "GoTrueApi.ts",
- "line": 8,
- "character": 3
+ "line": 11,
+ "character": 40
}
]
},
{
- "id": 71,
+ "id": 138,
+ "name": "cookieOptions",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isProtected": true,
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "GoTrueApi.ts",
+ "line": 11,
+ "character": 25
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "id": 66,
+ "name": "CookieOptions"
+ }
+ },
+ {
+ "id": 134,
"name": "headers",
"kind": 1024,
"kindString": "Property",
@@ -5991,14 +6044,14 @@
"sources": [
{
"fileName": "GoTrueApi.ts",
- "line": 6,
+ "line": 8,
"character": 19
}
],
"type": {
"type": "reflection",
"declaration": {
- "id": 72,
+ "id": 135,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -6007,7 +6060,7 @@
},
"indexSignature": [
{
- "id": 73,
+ "id": 136,
"name": "__index",
"kind": 8192,
"kindString": "Index signature",
@@ -6016,7 +6069,7 @@
},
"parameters": [
{
- "id": 74,
+ "id": 137,
"name": "key",
"kind": 32768,
"kindString": "Parameter",
@@ -6038,7 +6091,7 @@
"sources": [
{
"fileName": "GoTrueApi.ts",
- "line": 6,
+ "line": 8,
"character": 20
}
]
@@ -6046,7 +6099,7 @@
}
},
{
- "id": 70,
+ "id": 133,
"name": "url",
"kind": 1024,
"kindString": "Property",
@@ -6057,7 +6110,7 @@
"sources": [
{
"fileName": "GoTrueApi.ts",
- "line": 5,
+ "line": 7,
"character": 15
}
],
@@ -6067,7 +6120,7 @@
}
},
{
- "id": 124,
+ "id": 189,
"name": "getUrlForProvider",
"kind": 2048,
"kindString": "Method",
@@ -6076,7 +6129,7 @@
},
"signatures": [
{
- "id": 125,
+ "id": 190,
"name": "getUrlForProvider",
"kind": 4096,
"kindString": "Call signature",
@@ -6088,7 +6141,7 @@
},
"parameters": [
{
- "id": 126,
+ "id": 191,
"name": "provider",
"kind": 32768,
"kindString": "Parameter",
@@ -6100,7 +6153,7 @@
},
"type": {
"type": "reference",
- "id": 66,
+ "id": 72,
"name": "Provider"
}
}
@@ -6114,13 +6167,13 @@
"sources": [
{
"fileName": "GoTrueApi.ts",
- "line": 119,
+ "line": 125,
"character": 19
}
]
},
{
- "id": 127,
+ "id": 192,
"name": "getUser",
"kind": 2048,
"kindString": "Method",
@@ -6129,7 +6182,7 @@
},
"signatures": [
{
- "id": 128,
+ "id": 193,
"name": "getUser",
"kind": 4096,
"kindString": "Call signature",
@@ -6141,7 +6194,7 @@
},
"parameters": [
{
- "id": 129,
+ "id": 194,
"name": "jwt",
"kind": 32768,
"kindString": "Parameter",
@@ -6161,139 +6214,125 @@
"type": "reference",
"typeArguments": [
{
- "type": "union",
- "types": [
- {
- "type": "reflection",
- "declaration": {
- "id": 130,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
+ "type": "reflection",
+ "declaration": {
+ "id": 195,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {
+ "isExported": true
+ },
+ "children": [
+ {
+ "id": 197,
+ "name": "data",
+ "kind": 32,
+ "kindString": "Variable",
"flags": {
"isExported": true
},
- "children": [
+ "sources": [
{
- "id": 131,
- "name": "data",
- "kind": 32,
- "kindString": "Variable",
- "flags": {
- "isExported": true
+ "fileName": "GoTrueApi.ts",
+ "line": 135,
+ "character": 38
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "reference",
+ "id": 33,
+ "name": "User"
},
- "sources": [
- {
- "fileName": "GoTrueApi.ts",
- "line": 132,
- "character": 19
- }
- ],
- "type": {
+ {
"type": "intrinsic",
- "name": "any"
+ "name": "null"
}
- },
+ ]
+ }
+ },
+ {
+ "id": 198,
+ "name": "error",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {
+ "isExported": true
+ },
+ "sources": [
{
- "id": 132,
- "name": "error",
- "kind": 32,
- "kindString": "Variable",
- "flags": {
- "isExported": true
+ "fileName": "GoTrueApi.ts",
+ "line": 135,
+ "character": 58
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "reference",
+ "name": "Error"
},
- "sources": [
- {
- "fileName": "GoTrueApi.ts",
- "line": 132,
- "character": 26
- }
- ],
- "type": {
+ {
"type": "intrinsic",
"name": "null"
- },
- "defaultValue": "null"
- }
- ],
- "groups": [
- {
- "title": "Variables",
- "kind": 32,
- "children": [
- 131,
- 132
- ]
- }
- ]
- }
- },
- {
- "type": "reflection",
- "declaration": {
- "id": 133,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
+ }
+ ]
+ }
+ },
+ {
+ "id": 196,
+ "name": "user",
+ "kind": 32,
+ "kindString": "Variable",
"flags": {
"isExported": true
},
- "children": [
+ "sources": [
{
- "id": 134,
- "name": "data",
- "kind": 32,
- "kindString": "Variable",
- "flags": {
- "isExported": true
+ "fileName": "GoTrueApi.ts",
+ "line": 135,
+ "character": 19
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "reference",
+ "id": 33,
+ "name": "User"
},
- "sources": [
- {
- "fileName": "GoTrueApi.ts",
- "line": 134,
- "character": 19
- }
- ],
- "type": {
+ {
"type": "intrinsic",
"name": "null"
- },
- "defaultValue": "null"
- },
- {
- "id": 135,
- "name": "error",
- "kind": 32,
- "kindString": "Variable",
- "flags": {
- "isExported": true
- },
- "sources": [
- {
- "fileName": "GoTrueApi.ts",
- "line": 134,
- "character": 32
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "any"
}
- }
- ],
- "groups": [
- {
- "title": "Variables",
- "kind": 32,
- "children": [
- 134,
- 135
- ]
- }
+ ]
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Variables",
+ "kind": 32,
+ "children": [
+ 197,
+ 198,
+ 196
]
}
- }
- ]
+ ],
+ "sources": [
+ {
+ "fileName": "GoTrueApi.ts",
+ "line": 135,
+ "character": 13
+ }
+ ]
+ }
}
],
"name": "Promise"
@@ -6303,13 +6342,185 @@
"sources": [
{
"fileName": "GoTrueApi.ts",
- "line": 127,
+ "line": 133,
"character": 15
}
]
},
{
- "id": 105,
+ "id": 217,
+ "name": "getUserByCookie",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {
+ "isExported": true
+ },
+ "signatures": [
+ {
+ "id": 218,
+ "name": "getUserByCookie",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {
+ "isExported": true
+ },
+ "comment": {
+ "shortText": "Get user by reading the cookie from the request.\nWorks for Next.js & Express (requires cookie-parser middleware)."
+ },
+ "parameters": [
+ {
+ "id": 219,
+ "name": "req",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "any"
+ }
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "reflection",
+ "declaration": {
+ "id": 220,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {
+ "isExported": true
+ },
+ "children": [
+ {
+ "id": 222,
+ "name": "data",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "GoTrueApi.ts",
+ "line": 217,
+ "character": 38
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "reference",
+ "id": 33,
+ "name": "User"
+ },
+ {
+ "type": "intrinsic",
+ "name": "null"
+ }
+ ]
+ }
+ },
+ {
+ "id": 223,
+ "name": "error",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "GoTrueApi.ts",
+ "line": 217,
+ "character": 58
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "reference",
+ "name": "Error"
+ },
+ {
+ "type": "intrinsic",
+ "name": "null"
+ }
+ ]
+ }
+ },
+ {
+ "id": 221,
+ "name": "user",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "GoTrueApi.ts",
+ "line": 217,
+ "character": 19
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "reference",
+ "id": 33,
+ "name": "User"
+ },
+ {
+ "type": "intrinsic",
+ "name": "null"
+ }
+ ]
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Variables",
+ "kind": 32,
+ "children": [
+ 222,
+ 223,
+ 221
+ ]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "GoTrueApi.ts",
+ "line": 217,
+ "character": 13
+ }
+ ]
+ }
+ }
+ ],
+ "name": "Promise"
+ }
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "GoTrueApi.ts",
+ "line": 215,
+ "character": 23
+ }
+ ]
+ },
+ {
+ "id": 170,
"name": "inviteUserByEmail",
"kind": 2048,
"kindString": "Method",
@@ -6318,7 +6529,7 @@
},
"signatures": [
{
- "id": 106,
+ "id": 171,
"name": "inviteUserByEmail",
"kind": 4096,
"kindString": "Call signature",
@@ -6330,7 +6541,7 @@
},
"parameters": [
{
- "id": 107,
+ "id": 172,
"name": "email",
"kind": 32768,
"kindString": "Parameter",
@@ -6352,7 +6563,7 @@
{
"type": "reflection",
"declaration": {
- "id": 108,
+ "id": 173,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -6361,7 +6572,7 @@
},
"children": [
{
- "id": 109,
+ "id": 174,
"name": "data",
"kind": 32,
"kindString": "Variable",
@@ -6371,7 +6582,7 @@
"sources": [
{
"fileName": "GoTrueApi.ts",
- "line": 78,
+ "line": 84,
"character": 56
}
],
@@ -6381,7 +6592,7 @@
{
"type": "reflection",
"declaration": {
- "id": 110,
+ "id": 175,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -6391,7 +6602,7 @@
"sources": [
{
"fileName": "GoTrueApi.ts",
- "line": 78,
+ "line": 84,
"character": 57
}
]
@@ -6405,7 +6616,7 @@
}
},
{
- "id": 111,
+ "id": 176,
"name": "error",
"kind": 32,
"kindString": "Variable",
@@ -6415,7 +6626,7 @@
"sources": [
{
"fileName": "GoTrueApi.ts",
- "line": 78,
+ "line": 84,
"character": 74
}
],
@@ -6439,15 +6650,15 @@
"title": "Variables",
"kind": 32,
"children": [
- 109,
- 111
+ 174,
+ 176
]
}
],
"sources": [
{
"fileName": "GoTrueApi.ts",
- "line": 78,
+ "line": 84,
"character": 50
}
]
@@ -6461,13 +6672,13 @@
"sources": [
{
"fileName": "GoTrueApi.ts",
- "line": 78,
+ "line": 84,
"character": 25
}
]
},
{
- "id": 146,
+ "id": 207,
"name": "refreshAccessToken",
"kind": 2048,
"kindString": "Method",
@@ -6476,7 +6687,7 @@
},
"signatures": [
{
- "id": 147,
+ "id": 208,
"name": "refreshAccessToken",
"kind": 4096,
"kindString": "Call signature",
@@ -6488,7 +6699,7 @@
},
"parameters": [
{
- "id": 148,
+ "id": 209,
"name": "refreshToken",
"kind": 32768,
"kindString": "Parameter",
@@ -6508,139 +6719,94 @@
"type": "reference",
"typeArguments": [
{
- "type": "union",
- "types": [
- {
- "type": "reflection",
- "declaration": {
- "id": 149,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
+ "type": "reflection",
+ "declaration": {
+ "id": 210,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {
+ "isExported": true
+ },
+ "children": [
+ {
+ "id": 211,
+ "name": "data",
+ "kind": 32,
+ "kindString": "Variable",
"flags": {
"isExported": true
},
- "children": [
+ "sources": [
{
- "id": 150,
- "name": "data",
- "kind": 32,
- "kindString": "Variable",
- "flags": {
- "isExported": true
+ "fileName": "GoTrueApi.ts",
+ "line": 171,
+ "character": 19
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "reference",
+ "id": 27,
+ "name": "Session"
},
- "sources": [
- {
- "fileName": "GoTrueApi.ts",
- "line": 165,
- "character": 19
- }
- ],
- "type": {
+ {
"type": "intrinsic",
- "name": "any"
+ "name": "null"
}
- },
+ ]
+ }
+ },
+ {
+ "id": 212,
+ "name": "error",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {
+ "isExported": true
+ },
+ "sources": [
{
- "id": 151,
- "name": "error",
- "kind": 32,
- "kindString": "Variable",
- "flags": {
- "isExported": true
- },
- "sources": [
- {
- "fileName": "GoTrueApi.ts",
- "line": 165,
- "character": 26
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "null"
- },
- "defaultValue": "null"
+ "fileName": "GoTrueApi.ts",
+ "line": 171,
+ "character": 42
}
],
- "groups": [
- {
- "title": "Variables",
- "kind": 32,
- "children": [
- 150,
- 151
- ]
- }
- ]
- }
- },
- {
- "type": "reflection",
- "declaration": {
- "id": 152,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
- "flags": {
- "isExported": true
- },
- "children": [
- {
- "id": 153,
- "name": "data",
- "kind": 32,
- "kindString": "Variable",
- "flags": {
- "isExported": true
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "reference",
+ "name": "Error"
},
- "sources": [
- {
- "fileName": "GoTrueApi.ts",
- "line": 167,
- "character": 19
- }
- ],
- "type": {
+ {
"type": "intrinsic",
"name": "null"
- },
- "defaultValue": "null"
- },
- {
- "id": 154,
- "name": "error",
- "kind": 32,
- "kindString": "Variable",
- "flags": {
- "isExported": true
- },
- "sources": [
- {
- "fileName": "GoTrueApi.ts",
- "line": 167,
- "character": 32
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "any"
}
- }
- ],
- "groups": [
- {
- "title": "Variables",
- "kind": 32,
- "children": [
- 153,
- 154
- ]
- }
+ ]
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Variables",
+ "kind": 32,
+ "children": [
+ 211,
+ 212
]
}
- }
- ]
+ ],
+ "sources": [
+ {
+ "fileName": "GoTrueApi.ts",
+ "line": 171,
+ "character": 13
+ }
+ ]
+ }
}
],
"name": "Promise"
@@ -6650,13 +6816,13 @@
"sources": [
{
"fileName": "GoTrueApi.ts",
- "line": 158,
+ "line": 169,
"character": 26
}
]
},
{
- "id": 112,
+ "id": 177,
"name": "resetPasswordForEmail",
"kind": 2048,
"kindString": "Method",
@@ -6665,7 +6831,7 @@
},
"signatures": [
{
- "id": 113,
+ "id": 178,
"name": "resetPasswordForEmail",
"kind": 4096,
"kindString": "Call signature",
@@ -6677,7 +6843,7 @@
},
"parameters": [
{
- "id": 114,
+ "id": 179,
"name": "email",
"kind": 32768,
"kindString": "Parameter",
@@ -6699,7 +6865,7 @@
{
"type": "reflection",
"declaration": {
- "id": 115,
+ "id": 180,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -6708,7 +6874,7 @@
},
"children": [
{
- "id": 116,
+ "id": 181,
"name": "data",
"kind": 32,
"kindString": "Variable",
@@ -6718,7 +6884,7 @@
"sources": [
{
"fileName": "GoTrueApi.ts",
- "line": 91,
+ "line": 97,
"character": 60
}
],
@@ -6728,7 +6894,7 @@
{
"type": "reflection",
"declaration": {
- "id": 117,
+ "id": 182,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -6738,7 +6904,7 @@
"sources": [
{
"fileName": "GoTrueApi.ts",
- "line": 91,
+ "line": 97,
"character": 61
}
]
@@ -6752,7 +6918,7 @@
}
},
{
- "id": 118,
+ "id": 183,
"name": "error",
"kind": 32,
"kindString": "Variable",
@@ -6762,7 +6928,7 @@
"sources": [
{
"fileName": "GoTrueApi.ts",
- "line": 91,
+ "line": 97,
"character": 78
}
],
@@ -6786,15 +6952,15 @@
"title": "Variables",
"kind": 32,
"children": [
- 116,
- 118
+ 181,
+ 183
]
}
],
"sources": [
{
"fileName": "GoTrueApi.ts",
- "line": 91,
+ "line": 97,
"character": 54
}
]
@@ -6808,13 +6974,13 @@
"sources": [
{
"fileName": "GoTrueApi.ts",
- "line": 91,
+ "line": 97,
"character": 29
}
]
},
{
- "id": 98,
+ "id": 163,
"name": "sendMagicLinkEmail",
"kind": 2048,
"kindString": "Method",
@@ -6823,7 +6989,7 @@
},
"signatures": [
{
- "id": 99,
+ "id": 164,
"name": "sendMagicLinkEmail",
"kind": 4096,
"kindString": "Call signature",
@@ -6835,7 +7001,7 @@
},
"parameters": [
{
- "id": 100,
+ "id": 165,
"name": "email",
"kind": 32768,
"kindString": "Parameter",
@@ -6857,7 +7023,7 @@
{
"type": "reflection",
"declaration": {
- "id": 101,
+ "id": 166,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -6866,7 +7032,7 @@
},
"children": [
{
- "id": 102,
+ "id": 167,
"name": "data",
"kind": 32,
"kindString": "Variable",
@@ -6876,7 +7042,7 @@
"sources": [
{
"fileName": "GoTrueApi.ts",
- "line": 65,
+ "line": 71,
"character": 57
}
],
@@ -6886,7 +7052,7 @@
{
"type": "reflection",
"declaration": {
- "id": 103,
+ "id": 168,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -6896,7 +7062,7 @@
"sources": [
{
"fileName": "GoTrueApi.ts",
- "line": 65,
+ "line": 71,
"character": 58
}
]
@@ -6910,7 +7076,7 @@
}
},
{
- "id": 104,
+ "id": 169,
"name": "error",
"kind": 32,
"kindString": "Variable",
@@ -6920,7 +7086,7 @@
"sources": [
{
"fileName": "GoTrueApi.ts",
- "line": 65,
+ "line": 71,
"character": 75
}
],
@@ -6944,15 +7110,15 @@
"title": "Variables",
"kind": 32,
"children": [
- 102,
- 104
+ 167,
+ 169
]
}
],
"sources": [
{
"fileName": "GoTrueApi.ts",
- "line": 65,
+ "line": 71,
"character": 51
}
]
@@ -6966,13 +7132,75 @@
"sources": [
{
"fileName": "GoTrueApi.ts",
- "line": 65,
+ "line": 71,
"character": 26
}
]
},
{
- "id": 91,
+ "id": 213,
+ "name": "setAuthCookie",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {
+ "isExported": true
+ },
+ "signatures": [
+ {
+ "id": 214,
+ "name": "setAuthCookie",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {
+ "isExported": true
+ },
+ "comment": {
+ "shortText": "Set/delete the auth cookie based on the AuthChangeEvent.\nWorks for Next.js & Express (requires cookie-parser middleware)."
+ },
+ "parameters": [
+ {
+ "id": 215,
+ "name": "req",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "any"
+ }
+ },
+ {
+ "id": 216,
+ "name": "res",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "any"
+ }
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "void"
+ }
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "GoTrueApi.ts",
+ "line": 188,
+ "character": 15
+ }
+ ]
+ },
+ {
+ "id": 156,
"name": "signInWithEmail",
"kind": 2048,
"kindString": "Method",
@@ -6981,7 +7209,7 @@
},
"signatures": [
{
- "id": 92,
+ "id": 157,
"name": "signInWithEmail",
"kind": 4096,
"kindString": "Call signature",
@@ -6993,7 +7221,7 @@
},
"parameters": [
{
- "id": 93,
+ "id": 158,
"name": "email",
"kind": 32768,
"kindString": "Parameter",
@@ -7009,7 +7237,7 @@
}
},
{
- "id": 94,
+ "id": 159,
"name": "password",
"kind": 32768,
"kindString": "Parameter",
@@ -7031,7 +7259,7 @@
{
"type": "reflection",
"declaration": {
- "id": 95,
+ "id": 160,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -7040,7 +7268,7 @@
},
"children": [
{
- "id": 96,
+ "id": 161,
"name": "data",
"kind": 32,
"kindString": "Variable",
@@ -7050,7 +7278,7 @@
"sources": [
{
"fileName": "GoTrueApi.ts",
- "line": 48,
+ "line": 54,
"character": 19
}
],
@@ -7070,7 +7298,7 @@
}
},
{
- "id": 97,
+ "id": 162,
"name": "error",
"kind": 32,
"kindString": "Variable",
@@ -7080,7 +7308,7 @@
"sources": [
{
"fileName": "GoTrueApi.ts",
- "line": 48,
+ "line": 54,
"character": 42
}
],
@@ -7104,15 +7332,15 @@
"title": "Variables",
"kind": 32,
"children": [
- 96,
- 97
+ 161,
+ 162
]
}
],
"sources": [
{
"fileName": "GoTrueApi.ts",
- "line": 48,
+ "line": 54,
"character": 13
}
]
@@ -7126,13 +7354,13 @@
"sources": [
{
"fileName": "GoTrueApi.ts",
- "line": 45,
+ "line": 51,
"character": 23
}
]
},
{
- "id": 119,
+ "id": 184,
"name": "signOut",
"kind": 2048,
"kindString": "Method",
@@ -7141,7 +7369,7 @@
},
"signatures": [
{
- "id": 120,
+ "id": 185,
"name": "signOut",
"kind": 4096,
"kindString": "Call signature",
@@ -7153,7 +7381,7 @@
},
"parameters": [
{
- "id": 121,
+ "id": 186,
"name": "jwt",
"kind": 32768,
"kindString": "Parameter",
@@ -7175,7 +7403,7 @@
{
"type": "reflection",
"declaration": {
- "id": 122,
+ "id": 187,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -7184,7 +7412,7 @@
},
"children": [
{
- "id": 123,
+ "id": 188,
"name": "error",
"kind": 32,
"kindString": "Variable",
@@ -7194,7 +7422,7 @@
"sources": [
{
"fileName": "GoTrueApi.ts",
- "line": 104,
+ "line": 110,
"character": 45
}
],
@@ -7218,14 +7446,14 @@
"title": "Variables",
"kind": 32,
"children": [
- 123
+ 188
]
}
],
"sources": [
{
"fileName": "GoTrueApi.ts",
- "line": 104,
+ "line": 110,
"character": 38
}
]
@@ -7239,13 +7467,13 @@
"sources": [
{
"fileName": "GoTrueApi.ts",
- "line": 104,
+ "line": 110,
"character": 15
}
]
},
{
- "id": 84,
+ "id": 149,
"name": "signUpWithEmail",
"kind": 2048,
"kindString": "Method",
@@ -7254,7 +7482,7 @@
},
"signatures": [
{
- "id": 85,
+ "id": 150,
"name": "signUpWithEmail",
"kind": 4096,
"kindString": "Call signature",
@@ -7266,7 +7494,7 @@
},
"parameters": [
{
- "id": 86,
+ "id": 151,
"name": "email",
"kind": 32768,
"kindString": "Parameter",
@@ -7282,7 +7510,7 @@
}
},
{
- "id": 87,
+ "id": 152,
"name": "password",
"kind": 32768,
"kindString": "Parameter",
@@ -7304,7 +7532,7 @@
{
"type": "reflection",
"declaration": {
- "id": 88,
+ "id": 153,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -7313,7 +7541,7 @@
},
"children": [
{
- "id": 89,
+ "id": 154,
"name": "data",
"kind": 32,
"kindString": "Variable",
@@ -7323,7 +7551,7 @@
"sources": [
{
"fileName": "GoTrueApi.ts",
- "line": 31,
+ "line": 37,
"character": 19
}
],
@@ -7343,7 +7571,7 @@
}
},
{
- "id": 90,
+ "id": 155,
"name": "error",
"kind": 32,
"kindString": "Variable",
@@ -7353,7 +7581,7 @@
"sources": [
{
"fileName": "GoTrueApi.ts",
- "line": 31,
+ "line": 37,
"character": 42
}
],
@@ -7377,15 +7605,15 @@
"title": "Variables",
"kind": 32,
"children": [
- 89,
- 90
+ 154,
+ 155
]
}
],
"sources": [
{
"fileName": "GoTrueApi.ts",
- "line": 31,
+ "line": 37,
"character": 13
}
]
@@ -7399,13 +7627,13 @@
"sources": [
{
"fileName": "GoTrueApi.ts",
- "line": 28,
+ "line": 34,
"character": 23
}
]
},
{
- "id": 136,
+ "id": 199,
"name": "updateUser",
"kind": 2048,
"kindString": "Method",
@@ -7414,7 +7642,7 @@
},
"signatures": [
{
- "id": 137,
+ "id": 200,
"name": "updateUser",
"kind": 4096,
"kindString": "Call signature",
@@ -7426,7 +7654,7 @@
},
"parameters": [
{
- "id": 138,
+ "id": 201,
"name": "jwt",
"kind": 32768,
"kindString": "Parameter",
@@ -7442,7 +7670,7 @@
}
},
{
- "id": 139,
+ "id": 202,
"name": "attributes",
"kind": 32768,
"kindString": "Parameter",
@@ -7463,139 +7691,125 @@
"type": "reference",
"typeArguments": [
{
- "type": "union",
- "types": [
- {
- "type": "reflection",
- "declaration": {
- "id": 140,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
+ "type": "reflection",
+ "declaration": {
+ "id": 203,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {
+ "isExported": true
+ },
+ "children": [
+ {
+ "id": 205,
+ "name": "data",
+ "kind": 32,
+ "kindString": "Variable",
"flags": {
"isExported": true
},
- "children": [
+ "sources": [
{
- "id": 141,
- "name": "data",
- "kind": 32,
- "kindString": "Variable",
- "flags": {
- "isExported": true
+ "fileName": "GoTrueApi.ts",
+ "line": 154,
+ "character": 38
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "reference",
+ "id": 33,
+ "name": "User"
},
- "sources": [
- {
- "fileName": "GoTrueApi.ts",
- "line": 148,
- "character": 19
- }
- ],
- "type": {
+ {
"type": "intrinsic",
- "name": "any"
+ "name": "null"
}
- },
+ ]
+ }
+ },
+ {
+ "id": 206,
+ "name": "error",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {
+ "isExported": true
+ },
+ "sources": [
{
- "id": 142,
- "name": "error",
- "kind": 32,
- "kindString": "Variable",
- "flags": {
- "isExported": true
+ "fileName": "GoTrueApi.ts",
+ "line": 154,
+ "character": 58
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "reference",
+ "name": "Error"
},
- "sources": [
- {
- "fileName": "GoTrueApi.ts",
- "line": 148,
- "character": 26
- }
- ],
- "type": {
+ {
"type": "intrinsic",
"name": "null"
- },
- "defaultValue": "null"
- }
- ],
- "groups": [
- {
- "title": "Variables",
- "kind": 32,
- "children": [
- 141,
- 142
- ]
- }
- ]
- }
- },
- {
- "type": "reflection",
- "declaration": {
- "id": 143,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
+ }
+ ]
+ }
+ },
+ {
+ "id": 204,
+ "name": "user",
+ "kind": 32,
+ "kindString": "Variable",
"flags": {
"isExported": true
},
- "children": [
+ "sources": [
{
- "id": 144,
- "name": "data",
- "kind": 32,
- "kindString": "Variable",
- "flags": {
- "isExported": true
+ "fileName": "GoTrueApi.ts",
+ "line": 154,
+ "character": 19
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "reference",
+ "id": 33,
+ "name": "User"
},
- "sources": [
- {
- "fileName": "GoTrueApi.ts",
- "line": 150,
- "character": 19
- }
- ],
- "type": {
+ {
"type": "intrinsic",
"name": "null"
- },
- "defaultValue": "null"
- },
- {
- "id": 145,
- "name": "error",
- "kind": 32,
- "kindString": "Variable",
- "flags": {
- "isExported": true
- },
- "sources": [
- {
- "fileName": "GoTrueApi.ts",
- "line": 150,
- "character": 32
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "any"
}
- }
- ],
- "groups": [
- {
- "title": "Variables",
- "kind": 32,
- "children": [
- 144,
- 145
- ]
- }
+ ]
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Variables",
+ "kind": 32,
+ "children": [
+ 205,
+ 206,
+ 204
]
}
- }
- ]
+ ],
+ "sources": [
+ {
+ "fileName": "GoTrueApi.ts",
+ "line": 154,
+ "character": 13
+ }
+ ]
+ }
}
],
"name": "Promise"
@@ -7605,7 +7819,7 @@
"sources": [
{
"fileName": "GoTrueApi.ts",
- "line": 143,
+ "line": 151,
"character": 18
}
]
@@ -7616,38 +7830,41 @@
"title": "Constructors",
"kind": 512,
"children": [
- 75
+ 139
]
},
{
"title": "Properties",
"kind": 1024,
"children": [
- 71,
- 70
+ 138,
+ 134,
+ 133
]
},
{
"title": "Methods",
"kind": 2048,
"children": [
- 124,
- 127,
- 105,
- 146,
- 112,
- 98,
- 91,
- 119,
- 84,
- 136
+ 189,
+ 192,
+ 217,
+ 170,
+ 207,
+ 177,
+ 163,
+ 213,
+ 156,
+ 184,
+ 149,
+ 199
]
}
],
"sources": [
{
"fileName": "GoTrueApi.ts",
- "line": 4,
+ "line": 6,
"character": 30
}
]
@@ -7658,7 +7875,7 @@
"title": "Classes",
"kind": 128,
"children": [
- 69
+ 132
]
}
],
@@ -7671,7 +7888,7 @@
]
},
{
- "id": 194,
+ "id": 256,
"name": "\"GoTrueClient\"",
"kind": 1,
"kindString": "Module",
@@ -7681,7 +7898,7 @@
"originalName": "/home/runner/work/gotrue-js/gotrue-js/src/GoTrueClient.ts",
"children": [
{
- "id": 195,
+ "id": 257,
"name": "GoTrueClient",
"kind": 128,
"kindString": "Class",
@@ -7690,7 +7907,7 @@
},
"children": [
{
- "id": 203,
+ "id": 265,
"name": "constructor",
"kind": 512,
"kindString": "Constructor",
@@ -7702,7 +7919,7 @@
},
"signatures": [
{
- "id": 204,
+ "id": 266,
"name": "new GoTrueClient",
"kind": 16384,
"kindString": "Constructor signature",
@@ -7714,7 +7931,7 @@
},
"parameters": [
{
- "id": 205,
+ "id": 267,
"name": "options",
"kind": 32768,
"kindString": "Parameter",
@@ -7724,7 +7941,7 @@
"type": {
"type": "reflection",
"declaration": {
- "id": 206,
+ "id": 268,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -7733,7 +7950,7 @@
},
"children": [
{
- "id": 213,
+ "id": 275,
"name": "autoRefreshToken",
"kind": 32,
"kindString": "Variable",
@@ -7747,7 +7964,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 46,
+ "line": 54,
"character": 20
}
],
@@ -7770,7 +7987,29 @@
}
},
{
- "id": 212,
+ "id": 278,
+ "name": "cookieOptions",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {
+ "isExported": true,
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "GoTrueClient.ts",
+ "line": 57,
+ "character": 17
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "id": 66,
+ "name": "CookieOptions"
+ }
+ },
+ {
+ "id": 274,
"name": "detectSessionInUrl",
"kind": 32,
"kindString": "Variable",
@@ -7784,7 +8023,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 45,
+ "line": 53,
"character": 22
}
],
@@ -7807,7 +8046,7 @@
}
},
{
- "id": 208,
+ "id": 270,
"name": "headers",
"kind": 32,
"kindString": "Variable",
@@ -7821,7 +8060,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 44,
+ "line": 52,
"character": 11
}
],
@@ -7835,7 +8074,7 @@
{
"type": "reflection",
"declaration": {
- "id": 209,
+ "id": 271,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -7844,7 +8083,7 @@
},
"indexSignature": [
{
- "id": 210,
+ "id": 272,
"name": "__index",
"kind": 8192,
"kindString": "Index signature",
@@ -7853,7 +8092,7 @@
},
"parameters": [
{
- "id": 211,
+ "id": 273,
"name": "key",
"kind": 32768,
"kindString": "Parameter",
@@ -7878,7 +8117,7 @@
}
},
{
- "id": 215,
+ "id": 277,
"name": "localStorage",
"kind": 32,
"kindString": "Variable",
@@ -7892,7 +8131,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 48,
+ "line": 56,
"character": 16
}
],
@@ -7902,7 +8141,7 @@
}
},
{
- "id": 214,
+ "id": 276,
"name": "persistSession",
"kind": 32,
"kindString": "Variable",
@@ -7916,7 +8155,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 47,
+ "line": 55,
"character": 18
}
],
@@ -7939,7 +8178,7 @@
}
},
{
- "id": 207,
+ "id": 269,
"name": "url",
"kind": 32,
"kindString": "Variable",
@@ -7953,7 +8192,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 43,
+ "line": 51,
"character": 7
}
],
@@ -7977,19 +8216,20 @@
"title": "Variables",
"kind": 32,
"children": [
- 213,
- 212,
- 208,
- 215,
- 214,
- 207
+ 275,
+ 278,
+ 274,
+ 270,
+ 277,
+ 276,
+ 269
]
}
],
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 42,
+ "line": 50,
"character": 22
}
]
@@ -7999,7 +8239,7 @@
],
"type": {
"type": "reference",
- "id": 195,
+ "id": 257,
"name": "GoTrueClient"
}
}
@@ -8007,13 +8247,13 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 31,
+ "line": 39,
"character": 70
}
]
},
{
- "id": 196,
+ "id": 258,
"name": "api",
"kind": 1024,
"kindString": "Property",
@@ -8026,18 +8266,18 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 19,
+ "line": 27,
"character": 5
}
],
"type": {
"type": "reference",
- "id": 69,
+ "id": 132,
"name": "GoTrueApi"
}
},
{
- "id": 199,
+ "id": 261,
"name": "autoRefreshToken",
"kind": 1024,
"kindString": "Property",
@@ -8048,7 +8288,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 28,
+ "line": 36,
"character": 28
}
],
@@ -8058,7 +8298,7 @@
}
},
{
- "id": 198,
+ "id": 260,
"name": "currentSession",
"kind": 1024,
"kindString": "Property",
@@ -8072,7 +8312,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 27,
+ "line": 35,
"character": 26
}
],
@@ -8092,7 +8332,7 @@
}
},
{
- "id": 197,
+ "id": 259,
"name": "currentUser",
"kind": 1024,
"kindString": "Property",
@@ -8106,7 +8346,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 23,
+ "line": 31,
"character": 23
}
],
@@ -8126,7 +8366,7 @@
}
},
{
- "id": 201,
+ "id": 263,
"name": "localStorage",
"kind": 1024,
"kindString": "Property",
@@ -8137,7 +8377,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 30,
+ "line": 38,
"character": 24
}
],
@@ -8147,7 +8387,7 @@
}
},
{
- "id": 200,
+ "id": 262,
"name": "persistSession",
"kind": 1024,
"kindString": "Property",
@@ -8158,7 +8398,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 29,
+ "line": 37,
"character": 26
}
],
@@ -8168,7 +8408,7 @@
}
},
{
- "id": 202,
+ "id": 264,
"name": "stateChangeEmitters",
"kind": 1024,
"kindString": "Property",
@@ -8179,7 +8419,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 31,
+ "line": 39,
"character": 31
}
],
@@ -8201,7 +8441,7 @@
"defaultValue": "new Map()"
},
{
- "id": 314,
+ "id": 377,
"name": "_callRefreshToken",
"kind": 2048,
"kindString": "Method",
@@ -8211,7 +8451,7 @@
},
"signatures": [
{
- "id": 315,
+ "id": 378,
"name": "_callRefreshToken",
"kind": 4096,
"kindString": "Call signature",
@@ -8220,7 +8460,7 @@
},
"parameters": [
{
- "id": 316,
+ "id": 379,
"name": "refresh_token",
"kind": 32768,
"kindString": "Parameter",
@@ -8252,7 +8492,7 @@
{
"type": "reflection",
"declaration": {
- "id": 317,
+ "id": 380,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -8261,7 +8501,7 @@
},
"children": [
{
- "id": 318,
+ "id": 381,
"name": "data",
"kind": 32,
"kindString": "Variable",
@@ -8271,17 +8511,18 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 387,
+ "line": 402,
"character": 21
}
],
"type": {
- "type": "intrinsic",
- "name": "any"
+ "type": "reference",
+ "id": 27,
+ "name": "Session"
}
},
{
- "id": 319,
+ "id": 382,
"name": "error",
"kind": 32,
"kindString": "Variable",
@@ -8291,7 +8532,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 387,
+ "line": 402,
"character": 28
}
],
@@ -8307,8 +8548,8 @@
"title": "Variables",
"kind": 32,
"children": [
- 318,
- 319
+ 381,
+ 382
]
}
]
@@ -8317,7 +8558,7 @@
{
"type": "reflection",
"declaration": {
- "id": 320,
+ "id": 383,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -8326,7 +8567,7 @@
},
"children": [
{
- "id": 321,
+ "id": 384,
"name": "data",
"kind": 32,
"kindString": "Variable",
@@ -8336,7 +8577,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 392,
+ "line": 407,
"character": 19
}
],
@@ -8347,7 +8588,7 @@
"defaultValue": "null"
},
{
- "id": 322,
+ "id": 385,
"name": "error",
"kind": 32,
"kindString": "Variable",
@@ -8357,7 +8598,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 392,
+ "line": 407,
"character": 32
}
],
@@ -8372,8 +8613,8 @@
"title": "Variables",
"kind": 32,
"children": [
- 321,
- 322
+ 384,
+ 385
]
}
]
@@ -8389,13 +8630,13 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 367,
+ "line": 381,
"character": 33
}
]
},
{
- "id": 278,
+ "id": 341,
"name": "_handleEmailSignIn",
"kind": 2048,
"kindString": "Method",
@@ -8405,7 +8646,7 @@
},
"signatures": [
{
- "id": 279,
+ "id": 342,
"name": "_handleEmailSignIn",
"kind": 4096,
"kindString": "Call signature",
@@ -8414,7 +8655,7 @@
},
"parameters": [
{
- "id": 280,
+ "id": 343,
"name": "email",
"kind": 32768,
"kindString": "Parameter",
@@ -8427,7 +8668,7 @@
}
},
{
- "id": 281,
+ "id": 344,
"name": "password",
"kind": 32768,
"kindString": "Parameter",
@@ -8449,7 +8690,7 @@
{
"type": "reflection",
"declaration": {
- "id": 282,
+ "id": 345,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -8458,7 +8699,7 @@
},
"children": [
{
- "id": 283,
+ "id": 346,
"name": "data",
"kind": 32,
"kindString": "Variable",
@@ -8468,7 +8709,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 279,
+ "line": 295,
"character": 19
}
],
@@ -8479,7 +8720,7 @@
}
},
{
- "id": 285,
+ "id": 348,
"name": "error",
"kind": 32,
"kindString": "Variable",
@@ -8489,7 +8730,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 279,
+ "line": 295,
"character": 43
}
],
@@ -8500,7 +8741,7 @@
"defaultValue": "null"
},
{
- "id": 284,
+ "id": 347,
"name": "user",
"kind": 32,
"kindString": "Variable",
@@ -8510,7 +8751,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 279,
+ "line": 295,
"character": 25
}
],
@@ -8527,9 +8768,9 @@
"title": "Variables",
"kind": 32,
"children": [
- 283,
- 285,
- 284
+ 346,
+ 348,
+ 347
]
}
]
@@ -8538,7 +8779,7 @@
{
"type": "reflection",
"declaration": {
- "id": 286,
+ "id": 349,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -8547,7 +8788,7 @@
},
"children": [
{
- "id": 287,
+ "id": 350,
"name": "data",
"kind": 32,
"kindString": "Variable",
@@ -8557,7 +8798,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 281,
+ "line": 297,
"character": 19
}
],
@@ -8568,7 +8809,7 @@
"defaultValue": "null"
},
{
- "id": 289,
+ "id": 352,
"name": "error",
"kind": 32,
"kindString": "Variable",
@@ -8578,7 +8819,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 281,
+ "line": 297,
"character": 44
}
],
@@ -8588,7 +8829,7 @@
}
},
{
- "id": 288,
+ "id": 351,
"name": "user",
"kind": 32,
"kindString": "Variable",
@@ -8598,7 +8839,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 281,
+ "line": 297,
"character": 31
}
],
@@ -8614,9 +8855,9 @@
"title": "Variables",
"kind": 32,
"children": [
- 287,
- 289,
- 288
+ 350,
+ 352,
+ 351
]
}
]
@@ -8632,13 +8873,13 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 269,
+ "line": 285,
"character": 34
}
]
},
{
- "id": 290,
+ "id": 353,
"name": "_handleProviderSignIn",
"kind": 2048,
"kindString": "Method",
@@ -8648,7 +8889,7 @@
},
"signatures": [
{
- "id": 291,
+ "id": 354,
"name": "_handleProviderSignIn",
"kind": 4096,
"kindString": "Call signature",
@@ -8657,7 +8898,7 @@
},
"parameters": [
{
- "id": 292,
+ "id": 355,
"name": "provider",
"kind": 32768,
"kindString": "Parameter",
@@ -8666,7 +8907,7 @@
},
"type": {
"type": "reference",
- "id": 66,
+ "id": 72,
"name": "Provider"
}
}
@@ -8677,7 +8918,7 @@
{
"type": "reflection",
"declaration": {
- "id": 293,
+ "id": 356,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -8686,7 +8927,7 @@
},
"children": [
{
- "id": 296,
+ "id": 359,
"name": "data",
"kind": 32,
"kindString": "Variable",
@@ -8696,7 +8937,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 293,
+ "line": 309,
"character": 34
}
],
@@ -8707,7 +8948,7 @@
"defaultValue": "null"
},
{
- "id": 298,
+ "id": 361,
"name": "error",
"kind": 32,
"kindString": "Variable",
@@ -8717,7 +8958,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 293,
+ "line": 309,
"character": 59
}
],
@@ -8728,7 +8969,7 @@
"defaultValue": "null"
},
{
- "id": 294,
+ "id": 357,
"name": "provider",
"kind": 32,
"kindString": "Variable",
@@ -8738,18 +8979,18 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 293,
+ "line": 309,
"character": 23
}
],
"type": {
"type": "reference",
- "id": 66,
+ "id": 72,
"name": "Provider"
}
},
{
- "id": 295,
+ "id": 358,
"name": "url",
"kind": 32,
"kindString": "Variable",
@@ -8759,7 +9000,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 293,
+ "line": 309,
"character": 28
}
],
@@ -8769,7 +9010,7 @@
}
},
{
- "id": 297,
+ "id": 360,
"name": "user",
"kind": 32,
"kindString": "Variable",
@@ -8779,7 +9020,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 293,
+ "line": 309,
"character": 46
}
],
@@ -8795,11 +9036,11 @@
"title": "Variables",
"kind": 32,
"children": [
- 296,
- 298,
- 294,
- 295,
- 297
+ 359,
+ 361,
+ 357,
+ 358,
+ 360
]
}
]
@@ -8808,7 +9049,7 @@
{
"type": "reflection",
"declaration": {
- "id": 299,
+ "id": 362,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -8817,7 +9058,7 @@
},
"children": [
{
- "id": 300,
+ "id": 363,
"name": "data",
"kind": 32,
"kindString": "Variable",
@@ -8827,7 +9068,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 297,
+ "line": 313,
"character": 24
}
],
@@ -8838,7 +9079,7 @@
"defaultValue": "null"
},
{
- "id": 302,
+ "id": 365,
"name": "error",
"kind": 32,
"kindString": "Variable",
@@ -8848,7 +9089,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 297,
+ "line": 313,
"character": 49
}
],
@@ -8858,7 +9099,7 @@
}
},
{
- "id": 301,
+ "id": 364,
"name": "user",
"kind": 32,
"kindString": "Variable",
@@ -8868,7 +9109,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 297,
+ "line": 313,
"character": 36
}
],
@@ -8884,9 +9125,9 @@
"title": "Variables",
"kind": 32,
"children": [
- 300,
- 302,
- 301
+ 363,
+ 365,
+ 364
]
}
]
@@ -8899,13 +9140,13 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 285,
+ "line": 301,
"character": 31
}
]
},
{
- "id": 323,
+ "id": 386,
"name": "_notifyAllSubscribers",
"kind": 2048,
"kindString": "Method",
@@ -8915,7 +9156,7 @@
},
"signatures": [
{
- "id": 324,
+ "id": 387,
"name": "_notifyAllSubscribers",
"kind": 4096,
"kindString": "Call signature",
@@ -8924,7 +9165,7 @@
},
"parameters": [
{
- "id": 325,
+ "id": 388,
"name": "event",
"kind": 32768,
"kindString": "Parameter",
@@ -8933,7 +9174,7 @@
},
"type": {
"type": "reference",
- "id": 67,
+ "id": 73,
"name": "AuthChangeEvent"
}
}
@@ -8947,13 +9188,13 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 396,
+ "line": 411,
"character": 31
}
]
},
{
- "id": 306,
+ "id": 369,
"name": "_persistSession",
"kind": 2048,
"kindString": "Method",
@@ -8963,7 +9204,7 @@
},
"signatures": [
{
- "id": 307,
+ "id": 370,
"name": "_persistSession",
"kind": 4096,
"kindString": "Call signature",
@@ -8972,7 +9213,7 @@
},
"parameters": [
{
- "id": 308,
+ "id": 371,
"name": "currentSession",
"kind": 32768,
"kindString": "Parameter",
@@ -8986,7 +9227,7 @@
}
},
{
- "id": 309,
+ "id": 372,
"name": "secondsToExpiry",
"kind": 32768,
"kindString": "Parameter",
@@ -9008,13 +9249,13 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 315,
+ "line": 331,
"character": 25
}
]
},
{
- "id": 312,
+ "id": 375,
"name": "_recoverSession",
"kind": 2048,
"kindString": "Method",
@@ -9024,7 +9265,7 @@
},
"signatures": [
{
- "id": 313,
+ "id": 376,
"name": "_recoverSession",
"kind": 4096,
"kindString": "Call signature",
@@ -9046,13 +9287,13 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 328,
+ "line": 344,
"character": 31
}
]
},
{
- "id": 310,
+ "id": 373,
"name": "_removeSession",
"kind": 2048,
"kindString": "Method",
@@ -9062,7 +9303,7 @@
},
"signatures": [
{
- "id": 311,
+ "id": 374,
"name": "_removeSession",
"kind": 4096,
"kindString": "Call signature",
@@ -9084,13 +9325,13 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 322,
+ "line": 338,
"character": 30
}
]
},
{
- "id": 303,
+ "id": 366,
"name": "_saveSession",
"kind": 2048,
"kindString": "Method",
@@ -9100,7 +9341,7 @@
},
"signatures": [
{
- "id": 304,
+ "id": 367,
"name": "_saveSession",
"kind": 4096,
"kindString": "Call signature",
@@ -9109,7 +9350,7 @@
},
"parameters": [
{
- "id": 305,
+ "id": 368,
"name": "session",
"kind": 32768,
"kindString": "Parameter",
@@ -9132,13 +9373,13 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 301,
+ "line": 317,
"character": 22
}
]
},
{
- "id": 256,
+ "id": 319,
"name": "getSessionFromUrl",
"kind": 2048,
"kindString": "Method",
@@ -9147,7 +9388,7 @@
},
"signatures": [
{
- "id": 257,
+ "id": 320,
"name": "getSessionFromUrl",
"kind": 4096,
"kindString": "Call signature",
@@ -9159,7 +9400,7 @@
},
"parameters": [
{
- "id": 258,
+ "id": 321,
"name": "options",
"kind": 32768,
"kindString": "Parameter",
@@ -9177,7 +9418,7 @@
{
"type": "reflection",
"declaration": {
- "id": 259,
+ "id": 322,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -9186,7 +9427,7 @@
},
"children": [
{
- "id": 260,
+ "id": 323,
"name": "storeSession",
"kind": 32,
"kindString": "Variable",
@@ -9200,7 +9441,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 192,
+ "line": 205,
"character": 16
}
],
@@ -9228,7 +9469,7 @@
"title": "Variables",
"kind": 32,
"children": [
- 260
+ 323
]
}
]
@@ -9244,7 +9485,7 @@
{
"type": "reflection",
"declaration": {
- "id": 261,
+ "id": 324,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -9253,7 +9494,7 @@
},
"children": [
{
- "id": 262,
+ "id": 325,
"name": "data",
"kind": 32,
"kindString": "Variable",
@@ -9263,7 +9504,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 193,
+ "line": 206,
"character": 20
}
],
@@ -9283,7 +9524,7 @@
}
},
{
- "id": 263,
+ "id": 326,
"name": "error",
"kind": 32,
"kindString": "Variable",
@@ -9293,7 +9534,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 193,
+ "line": 206,
"character": 43
}
],
@@ -9317,15 +9558,15 @@
"title": "Variables",
"kind": 32,
"children": [
- 262,
- 263
+ 325,
+ 326
]
}
],
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 193,
+ "line": 206,
"character": 14
}
]
@@ -9339,13 +9580,13 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 191,
+ "line": 204,
"character": 25
}
]
},
{
- "id": 268,
+ "id": 331,
"name": "onAuthStateChange",
"kind": 2048,
"kindString": "Method",
@@ -9354,7 +9595,7 @@
},
"signatures": [
{
- "id": 269,
+ "id": 332,
"name": "onAuthStateChange",
"kind": 4096,
"kindString": "Call signature",
@@ -9367,7 +9608,7 @@
},
"parameters": [
{
- "id": 270,
+ "id": 333,
"name": "callback",
"kind": 32768,
"kindString": "Parameter",
@@ -9377,7 +9618,7 @@
"type": {
"type": "reflection",
"declaration": {
- "id": 271,
+ "id": 334,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -9386,7 +9627,7 @@
},
"signatures": [
{
- "id": 272,
+ "id": 335,
"name": "__call",
"kind": 4096,
"kindString": "Call signature",
@@ -9395,7 +9636,7 @@
},
"parameters": [
{
- "id": 273,
+ "id": 336,
"name": "event",
"kind": 32768,
"kindString": "Parameter",
@@ -9404,12 +9645,12 @@
},
"type": {
"type": "reference",
- "id": 67,
+ "id": 73,
"name": "AuthChangeEvent"
}
},
{
- "id": 274,
+ "id": 337,
"name": "session",
"kind": 32768,
"kindString": "Parameter",
@@ -9441,7 +9682,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 250,
+ "line": 266,
"character": 13
}
]
@@ -9452,7 +9693,7 @@
"type": {
"type": "reflection",
"declaration": {
- "id": 275,
+ "id": 338,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -9461,7 +9702,7 @@
},
"children": [
{
- "id": 276,
+ "id": 339,
"name": "data",
"kind": 32,
"kindString": "Variable",
@@ -9471,7 +9712,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 251,
+ "line": 267,
"character": 11
}
],
@@ -9491,7 +9732,7 @@
}
},
{
- "id": 277,
+ "id": 340,
"name": "error",
"kind": 32,
"kindString": "Variable",
@@ -9501,7 +9742,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 251,
+ "line": 267,
"character": 39
}
],
@@ -9525,15 +9766,15 @@
"title": "Variables",
"kind": 32,
"children": [
- 276,
- 277
+ 339,
+ 340
]
}
],
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 251,
+ "line": 267,
"character": 4
}
]
@@ -9544,13 +9785,13 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 249,
+ "line": 265,
"character": 19
}
]
},
{
- "id": 243,
+ "id": 306,
"name": "refreshSession",
"kind": 2048,
"kindString": "Method",
@@ -9559,7 +9800,7 @@
},
"signatures": [
{
- "id": 244,
+ "id": 307,
"name": "refreshSession",
"kind": 4096,
"kindString": "Call signature",
@@ -9575,7 +9816,7 @@
{
"type": "reflection",
"declaration": {
- "id": 245,
+ "id": 308,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -9584,7 +9825,7 @@
},
"children": [
{
- "id": 246,
+ "id": 309,
"name": "data",
"kind": 32,
"kindString": "Variable",
@@ -9594,7 +9835,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 147,
+ "line": 160,
"character": 8
}
],
@@ -9614,7 +9855,7 @@
}
},
{
- "id": 248,
+ "id": 311,
"name": "error",
"kind": 32,
"kindString": "Variable",
@@ -9624,7 +9865,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 149,
+ "line": 162,
"character": 9
}
],
@@ -9643,7 +9884,7 @@
}
},
{
- "id": 247,
+ "id": 310,
"name": "user",
"kind": 32,
"kindString": "Variable",
@@ -9653,7 +9894,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 148,
+ "line": 161,
"character": 8
}
],
@@ -9678,16 +9919,16 @@
"title": "Variables",
"kind": 32,
"children": [
- 246,
- 248,
- 247
+ 309,
+ 311,
+ 310
]
}
],
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 146,
+ "line": 159,
"character": 34
}
]
@@ -9701,13 +9942,13 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 146,
+ "line": 159,
"character": 22
}
]
},
{
- "id": 241,
+ "id": 304,
"name": "session",
"kind": 2048,
"kindString": "Method",
@@ -9716,7 +9957,7 @@
},
"signatures": [
{
- "id": 242,
+ "id": 305,
"name": "session",
"kind": 4096,
"kindString": "Call signature",
@@ -9745,13 +9986,13 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 139,
+ "line": 152,
"character": 9
}
]
},
{
- "id": 226,
+ "id": 289,
"name": "signIn",
"kind": 2048,
"kindString": "Method",
@@ -9760,7 +10001,7 @@
},
"signatures": [
{
- "id": 227,
+ "id": 290,
"name": "signIn",
"kind": 4096,
"kindString": "Call signature",
@@ -9772,7 +10013,7 @@
},
"parameters": [
{
- "id": 228,
+ "id": 291,
"name": "credentials",
"kind": 32768,
"kindString": "Parameter",
@@ -9785,7 +10026,7 @@
"type": {
"type": "reflection",
"declaration": {
- "id": 229,
+ "id": 292,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -9794,7 +10035,7 @@
},
"children": [
{
- "id": 230,
+ "id": 293,
"name": "email",
"kind": 32,
"kindString": "Variable",
@@ -9808,7 +10049,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 104,
+ "line": 117,
"character": 9
}
],
@@ -9827,7 +10068,7 @@
}
},
{
- "id": 231,
+ "id": 294,
"name": "password",
"kind": 32,
"kindString": "Variable",
@@ -9841,7 +10082,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 105,
+ "line": 118,
"character": 12
}
],
@@ -9860,7 +10101,7 @@
}
},
{
- "id": 232,
+ "id": 295,
"name": "provider",
"kind": 32,
"kindString": "Variable",
@@ -9874,13 +10115,13 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 106,
+ "line": 119,
"character": 12
}
],
"type": {
"type": "reference",
- "id": 66,
+ "id": 72,
"name": "Provider"
}
}
@@ -9890,16 +10131,16 @@
"title": "Variables",
"kind": 32,
"children": [
- 230,
- 231,
- 232
+ 293,
+ 294,
+ 295
]
}
],
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 103,
+ "line": 116,
"character": 27
}
]
@@ -9913,7 +10154,7 @@
{
"type": "reflection",
"declaration": {
- "id": 233,
+ "id": 296,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -9922,7 +10163,7 @@
},
"children": [
{
- "id": 234,
+ "id": 297,
"name": "data",
"kind": 32,
"kindString": "Variable",
@@ -9932,7 +10173,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 108,
+ "line": 121,
"character": 8
}
],
@@ -9952,7 +10193,7 @@
}
},
{
- "id": 238,
+ "id": 301,
"name": "error",
"kind": 32,
"kindString": "Variable",
@@ -9962,7 +10203,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 112,
+ "line": 125,
"character": 9
}
],
@@ -9981,7 +10222,7 @@
}
},
{
- "id": 236,
+ "id": 299,
"name": "provider",
"kind": 32,
"kindString": "Variable",
@@ -9992,18 +10233,18 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 110,
+ "line": 123,
"character": 12
}
],
"type": {
"type": "reference",
- "id": 66,
+ "id": 72,
"name": "Provider"
}
},
{
- "id": 237,
+ "id": 300,
"name": "url",
"kind": 32,
"kindString": "Variable",
@@ -10014,7 +10255,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 111,
+ "line": 124,
"character": 7
}
],
@@ -10033,7 +10274,7 @@
}
},
{
- "id": 235,
+ "id": 298,
"name": "user",
"kind": 32,
"kindString": "Variable",
@@ -10043,7 +10284,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 109,
+ "line": 122,
"character": 8
}
],
@@ -10068,18 +10309,18 @@
"title": "Variables",
"kind": 32,
"children": [
- 234,
- 238,
- 236,
- 237,
- 235
+ 297,
+ 301,
+ 299,
+ 300,
+ 298
]
}
],
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 107,
+ "line": 120,
"character": 14
}
]
@@ -10093,13 +10334,13 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 103,
+ "line": 116,
"character": 14
}
]
},
{
- "id": 264,
+ "id": 327,
"name": "signOut",
"kind": 2048,
"kindString": "Method",
@@ -10108,7 +10349,7 @@
},
"signatures": [
{
- "id": 265,
+ "id": 328,
"name": "signOut",
"kind": 4096,
"kindString": "Call signature",
@@ -10124,7 +10365,7 @@
{
"type": "reflection",
"declaration": {
- "id": 266,
+ "id": 329,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -10133,7 +10374,7 @@
},
"children": [
{
- "id": 267,
+ "id": 330,
"name": "error",
"kind": 32,
"kindString": "Variable",
@@ -10143,7 +10384,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 235,
+ "line": 251,
"character": 34
}
],
@@ -10167,14 +10408,14 @@
"title": "Variables",
"kind": 32,
"children": [
- 267
+ 330
]
}
],
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 235,
+ "line": 251,
"character": 27
}
]
@@ -10188,13 +10429,13 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 235,
+ "line": 251,
"character": 15
}
]
},
{
- "id": 216,
+ "id": 279,
"name": "signUp",
"kind": 2048,
"kindString": "Method",
@@ -10203,7 +10444,7 @@
},
"signatures": [
{
- "id": 217,
+ "id": 280,
"name": "signUp",
"kind": 4096,
"kindString": "Call signature",
@@ -10215,7 +10456,7 @@
},
"parameters": [
{
- "id": 218,
+ "id": 281,
"name": "credentials",
"kind": 32768,
"kindString": "Parameter",
@@ -10228,7 +10469,7 @@
"type": {
"type": "reflection",
"declaration": {
- "id": 219,
+ "id": 282,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -10237,7 +10478,7 @@
},
"children": [
{
- "id": 220,
+ "id": 283,
"name": "email",
"kind": 32,
"kindString": "Variable",
@@ -10250,7 +10491,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 76,
+ "line": 89,
"character": 9
}
],
@@ -10260,7 +10501,7 @@
}
},
{
- "id": 221,
+ "id": 284,
"name": "password",
"kind": 32,
"kindString": "Variable",
@@ -10273,7 +10514,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 77,
+ "line": 90,
"character": 12
}
],
@@ -10288,15 +10529,15 @@
"title": "Variables",
"kind": 32,
"children": [
- 220,
- 221
+ 283,
+ 284
]
}
],
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 75,
+ "line": 88,
"character": 27
}
]
@@ -10310,7 +10551,7 @@
{
"type": "reflection",
"declaration": {
- "id": 222,
+ "id": 285,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -10319,7 +10560,7 @@
},
"children": [
{
- "id": 223,
+ "id": 286,
"name": "data",
"kind": 32,
"kindString": "Variable",
@@ -10329,7 +10570,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 78,
+ "line": 91,
"character": 20
}
],
@@ -10349,7 +10590,7 @@
}
},
{
- "id": 225,
+ "id": 288,
"name": "error",
"kind": 32,
"kindString": "Variable",
@@ -10359,7 +10600,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 78,
+ "line": 91,
"character": 62
}
],
@@ -10378,7 +10619,7 @@
}
},
{
- "id": 224,
+ "id": 287,
"name": "user",
"kind": 32,
"kindString": "Variable",
@@ -10388,7 +10629,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 78,
+ "line": 91,
"character": 42
}
],
@@ -10413,16 +10654,16 @@
"title": "Variables",
"kind": 32,
"children": [
- 223,
- 225,
- 224
+ 286,
+ 288,
+ 287
]
}
],
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 78,
+ "line": 91,
"character": 14
}
]
@@ -10436,13 +10677,13 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 75,
+ "line": 88,
"character": 14
}
]
},
{
- "id": 249,
+ "id": 312,
"name": "update",
"kind": 2048,
"kindString": "Method",
@@ -10451,7 +10692,7 @@
},
"signatures": [
{
- "id": 250,
+ "id": 313,
"name": "update",
"kind": 4096,
"kindString": "Call signature",
@@ -10463,7 +10704,7 @@
},
"parameters": [
{
- "id": 251,
+ "id": 314,
"name": "attributes",
"kind": 32768,
"kindString": "Parameter",
@@ -10483,7 +10724,7 @@
{
"type": "reflection",
"declaration": {
- "id": 252,
+ "id": 315,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -10492,7 +10733,7 @@
},
"children": [
{
- "id": 253,
+ "id": 316,
"name": "data",
"kind": 32,
"kindString": "Variable",
@@ -10502,7 +10743,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 171,
+ "line": 184,
"character": 19
}
],
@@ -10522,7 +10763,7 @@
}
},
{
- "id": 255,
+ "id": 318,
"name": "error",
"kind": 32,
"kindString": "Variable",
@@ -10532,7 +10773,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 171,
+ "line": 184,
"character": 58
}
],
@@ -10551,7 +10792,7 @@
}
},
{
- "id": 254,
+ "id": 317,
"name": "user",
"kind": 32,
"kindString": "Variable",
@@ -10561,7 +10802,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 171,
+ "line": 184,
"character": 38
}
],
@@ -10586,16 +10827,16 @@
"title": "Variables",
"kind": 32,
"children": [
- 253,
- 255,
- 254
+ 316,
+ 318,
+ 317
]
}
],
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 171,
+ "line": 184,
"character": 13
}
]
@@ -10609,13 +10850,13 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 169,
+ "line": 182,
"character": 14
}
]
},
{
- "id": 239,
+ "id": 302,
"name": "user",
"kind": 2048,
"kindString": "Method",
@@ -10624,7 +10865,7 @@
},
"signatures": [
{
- "id": 240,
+ "id": 303,
"name": "user",
"kind": 4096,
"kindString": "Call signature",
@@ -10653,7 +10894,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 132,
+ "line": 145,
"character": 6
}
]
@@ -10664,56 +10905,56 @@
"title": "Constructors",
"kind": 512,
"children": [
- 203
+ 265
]
},
{
"title": "Properties",
"kind": 1024,
"children": [
- 196,
- 199,
- 198,
- 197,
- 201,
- 200,
- 202
+ 258,
+ 261,
+ 260,
+ 259,
+ 263,
+ 262,
+ 264
]
},
{
"title": "Methods",
"kind": 2048,
"children": [
- 314,
- 278,
- 290,
- 323,
+ 377,
+ 341,
+ 353,
+ 386,
+ 369,
+ 375,
+ 373,
+ 366,
+ 319,
+ 331,
306,
+ 304,
+ 289,
+ 327,
+ 279,
312,
- 310,
- 303,
- 256,
- 268,
- 243,
- 241,
- 226,
- 264,
- 216,
- 249,
- 239
+ 302
]
}
],
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 14,
+ "line": 22,
"character": 33
}
]
},
{
- "id": 326,
+ "id": 389,
"name": "DEFAULT_OPTIONS",
"kind": 2097152,
"kindString": "Object literal",
@@ -10722,7 +10963,7 @@
},
"children": [
{
- "id": 328,
+ "id": 391,
"name": "autoRefreshToken",
"kind": 32,
"kindString": "Variable",
@@ -10730,7 +10971,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 8,
+ "line": 16,
"character": 18
}
],
@@ -10741,7 +10982,7 @@
"defaultValue": "true"
},
{
- "id": 331,
+ "id": 394,
"name": "detectSessionInUrl",
"kind": 32,
"kindString": "Variable",
@@ -10749,7 +10990,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 11,
+ "line": 19,
"character": 20
}
],
@@ -10760,7 +11001,7 @@
"defaultValue": "true"
},
{
- "id": 332,
+ "id": 395,
"name": "headers",
"kind": 32,
"kindString": "Variable",
@@ -10768,14 +11009,14 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 12,
+ "line": 20,
"character": 9
}
],
"type": {
"type": "reflection",
"declaration": {
- "id": 333,
+ "id": 396,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -10785,7 +11026,7 @@
"defaultValue": "DEFAULT_HEADERS"
},
{
- "id": 330,
+ "id": 393,
"name": "localStorage",
"kind": 32,
"kindString": "Variable",
@@ -10793,7 +11034,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 10,
+ "line": 18,
"character": 14
}
],
@@ -10804,7 +11045,7 @@
"defaultValue": "globalThis.localStorage"
},
{
- "id": 329,
+ "id": 392,
"name": "persistSession",
"kind": 32,
"kindString": "Variable",
@@ -10812,7 +11053,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 9,
+ "line": 17,
"character": 16
}
],
@@ -10823,7 +11064,7 @@
"defaultValue": "true"
},
{
- "id": 327,
+ "id": 390,
"name": "url",
"kind": 32,
"kindString": "Variable",
@@ -10831,7 +11072,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 7,
+ "line": 15,
"character": 5
}
],
@@ -10847,19 +11088,19 @@
"title": "Variables",
"kind": 32,
"children": [
- 328,
- 331,
- 332,
- 330,
- 329,
- 327
+ 391,
+ 394,
+ 395,
+ 393,
+ 392,
+ 390
]
}
],
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 6,
+ "line": 14,
"character": 21
}
],
@@ -10874,14 +11115,14 @@
"title": "Classes",
"kind": 128,
"children": [
- 195
+ 257
]
},
{
"title": "Object literals",
"kind": 2097152,
"children": [
- 326
+ 389
]
}
],
@@ -10894,7 +11135,7 @@
]
},
{
- "id": 334,
+ "id": 397,
"name": "\"index\"",
"kind": 1,
"kindString": "Module",
@@ -10904,18 +11145,18 @@
"originalName": "/home/runner/work/gotrue-js/gotrue-js/src/index.ts",
"children": [
{
- "id": 336,
+ "id": 399,
"name": "AuthChangeEvent",
"kind": 16777216,
"kindString": "Reference",
"flags": {
"isExported": true
},
- "target": 67
+ "target": 73
},
{
- "id": 335,
- "name": "Provider",
+ "id": 404,
+ "name": "CookieOptions",
"kind": 16777216,
"kindString": "Reference",
"flags": {
@@ -10924,7 +11165,17 @@
"target": 66
},
{
- "id": 337,
+ "id": 398,
+ "name": "Provider",
+ "kind": 16777216,
+ "kindString": "Reference",
+ "flags": {
+ "isExported": true
+ },
+ "target": 72
+ },
+ {
+ "id": 400,
"name": "Session",
"kind": 16777216,
"kindString": "Reference",
@@ -10934,7 +11185,7 @@
"target": 27
},
{
- "id": 340,
+ "id": 403,
"name": "Subscription",
"kind": 16777216,
"kindString": "Reference",
@@ -10944,7 +11195,7 @@
"target": 56
},
{
- "id": 338,
+ "id": 401,
"name": "User",
"kind": 16777216,
"kindString": "Reference",
@@ -10954,7 +11205,7 @@
"target": 33
},
{
- "id": 339,
+ "id": 402,
"name": "UserAttributes",
"kind": 16777216,
"kindString": "Reference",
@@ -10969,12 +11220,13 @@
"title": "References",
"kind": 16777216,
"children": [
- 336,
- 335,
- 337,
- 340,
- 338,
- 339
+ 399,
+ 404,
+ 398,
+ 400,
+ 403,
+ 401,
+ 402
]
}
],
@@ -10987,7 +11239,7 @@
]
},
{
- "id": 187,
+ "id": 74,
"name": "\"lib/constants\"",
"kind": 1,
"kindString": "Module",
@@ -10997,7 +11249,7 @@
"originalName": "/home/runner/work/gotrue-js/gotrue-js/src/lib/constants.ts",
"children": [
{
- "id": 189,
+ "id": 76,
"name": "AUDIENCE",
"kind": 32,
"kindString": "Variable",
@@ -11011,134 +11263,1059 @@
"line": 2,
"character": 21
}
- ],
- "type": {
- "type": "intrinsic",
- "name": "string"
- },
- "defaultValue": "process?.env?.AUDIENCE || ''"
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "defaultValue": "process?.env?.AUDIENCE || ''"
+ },
+ {
+ "id": 77,
+ "name": "DEFAULT_HEADERS",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {
+ "isExported": true,
+ "isConst": true
+ },
+ "sources": [
+ {
+ "fileName": "lib/constants.ts",
+ "line": 3,
+ "character": 28
+ }
+ ],
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 78,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {
+ "isExported": true
+ }
+ }
+ }
+ },
+ {
+ "id": 79,
+ "name": "EXPIRY_MARGIN",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {
+ "isExported": true,
+ "isConst": true
+ },
+ "sources": [
+ {
+ "fileName": "lib/constants.ts",
+ "line": 4,
+ "character": 26
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ {
+ "type": "intrinsic",
+ "name": "number"
+ }
+ ]
+ },
+ "defaultValue": "process?.env?.EXPIRY_MARGIN || 60 * 1000"
+ },
+ {
+ "id": 75,
+ "name": "GOTRUE_URL",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {
+ "isExported": true,
+ "isConst": true
+ },
+ "sources": [
+ {
+ "fileName": "lib/constants.ts",
+ "line": 1,
+ "character": 23
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "defaultValue": "process?.env?.GOTRUE_URL || 'http://localhost:9999'"
+ },
+ {
+ "id": 80,
+ "name": "STORAGE_KEY",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {
+ "isExported": true,
+ "isConst": true
+ },
+ "sources": [
+ {
+ "fileName": "lib/constants.ts",
+ "line": 5,
+ "character": 24
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "defaultValue": "process?.env?.STORAGE_KEY || 'supabase.auth.token'"
+ },
+ {
+ "id": 81,
+ "name": "COOKIE_OPTIONS",
+ "kind": 2097152,
+ "kindString": "Object literal",
+ "flags": {
+ "isExported": true,
+ "isConst": true
+ },
+ "children": [
+ {
+ "id": 84,
+ "name": "domain",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "lib/constants.ts",
+ "line": 9,
+ "character": 8
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "defaultValue": "\"\""
+ },
+ {
+ "id": 83,
+ "name": "lifetime",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "lib/constants.ts",
+ "line": 8,
+ "character": 10
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "number"
+ },
+ "defaultValue": "60 * 60 * 8"
+ },
+ {
+ "id": 82,
+ "name": "name",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "lib/constants.ts",
+ "line": 7,
+ "character": 6
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "defaultValue": "\"sb:token\""
+ },
+ {
+ "id": 85,
+ "name": "path",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "lib/constants.ts",
+ "line": 10,
+ "character": 6
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "defaultValue": "\"/\""
+ },
+ {
+ "id": 86,
+ "name": "sameSite",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "lib/constants.ts",
+ "line": 11,
+ "character": 10
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "defaultValue": "\"lax\""
+ }
+ ],
+ "groups": [
+ {
+ "title": "Variables",
+ "kind": 32,
+ "children": [
+ 84,
+ 83,
+ 82,
+ 85,
+ 86
+ ]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "lib/constants.ts",
+ "line": 6,
+ "character": 27
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "object"
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Variables",
+ "kind": 32,
+ "children": [
+ 76,
+ 77,
+ 79,
+ 75,
+ 80
+ ]
+ },
+ {
+ "title": "Object literals",
+ "kind": 2097152,
+ "children": [
+ 81
+ ]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "lib/constants.ts",
+ "line": 1,
+ "character": 0
+ }
+ ]
+ },
+ {
+ "id": 87,
+ "name": "\"lib/cookies\"",
+ "kind": 1,
+ "kindString": "Module",
+ "flags": {
+ "isExported": true
+ },
+ "originalName": "/home/runner/work/gotrue-js/gotrue-js/src/lib/cookies.ts",
+ "children": [
+ {
+ "id": 88,
+ "name": "Cookie",
+ "kind": 4194304,
+ "kindString": "Type alias",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "lib/cookies.ts",
+ "line": 1,
+ "character": 11
+ }
+ ],
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 89,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "children": [
+ {
+ "id": 93,
+ "name": "domain",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "lib/cookies.ts",
+ "line": 5,
+ "character": 8
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "intrinsic",
+ "name": "undefined"
+ },
+ {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ ]
+ }
+ },
+ {
+ "id": 92,
+ "name": "maxAge",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "lib/cookies.ts",
+ "line": 4,
+ "character": 8
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "number"
+ }
+ },
+ {
+ "id": 90,
+ "name": "name",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "lib/cookies.ts",
+ "line": 2,
+ "character": 6
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 94,
+ "name": "path",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "lib/cookies.ts",
+ "line": 6,
+ "character": 6
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "intrinsic",
+ "name": "undefined"
+ },
+ {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ ]
+ }
+ },
+ {
+ "id": 95,
+ "name": "sameSite",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "lib/cookies.ts",
+ "line": 7,
+ "character": 10
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "intrinsic",
+ "name": "undefined"
+ },
+ {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ ]
+ }
+ },
+ {
+ "id": 91,
+ "name": "value",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "lib/cookies.ts",
+ "line": 3,
+ "character": 7
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Variables",
+ "kind": 32,
+ "children": [
+ 93,
+ 92,
+ 90,
+ 94,
+ 95,
+ 91
+ ]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "lib/cookies.ts",
+ "line": 1,
+ "character": 13
+ }
+ ]
+ }
+ }
+ },
+ {
+ "id": 126,
+ "name": "deleteCookie",
+ "kind": 64,
+ "kindString": "Function",
+ "flags": {
+ "isExported": true
+ },
+ "signatures": [
+ {
+ "id": 127,
+ "name": "deleteCookie",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {
+ "isExported": true
+ },
+ "parameters": [
+ {
+ "id": 128,
+ "name": "req",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "any"
+ }
+ },
+ {
+ "id": 129,
+ "name": "res",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "any"
+ }
+ },
+ {
+ "id": 130,
+ "name": "name",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "void"
+ }
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "lib/cookies.ts",
+ "line": 164,
+ "character": 28
+ }
+ ]
+ },
+ {
+ "id": 109,
+ "name": "isSecureEnvironment",
+ "kind": 64,
+ "kindString": "Function",
+ "flags": {},
+ "signatures": [
+ {
+ "id": 110,
+ "name": "isSecureEnvironment",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {},
+ "comment": {
+ "shortText": "Based on the environment and the request we know if a secure cookie can be set."
+ },
+ "parameters": [
+ {
+ "id": 111,
+ "name": "req",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "type": {
+ "type": "intrinsic",
+ "name": "any"
+ }
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "boolean"
+ }
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "lib/cookies.ts",
+ "line": 112,
+ "character": 28
+ }
+ ]
+ },
+ {
+ "id": 96,
+ "name": "serialize",
+ "kind": 64,
+ "kindString": "Function",
+ "flags": {},
+ "signatures": [
+ {
+ "id": 97,
+ "name": "serialize",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {},
+ "comment": {
+ "shortText": "Serialize data into a cookie header."
+ },
+ "parameters": [
+ {
+ "id": 98,
+ "name": "name",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 99,
+ "name": "val",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 100,
+ "name": "options",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 101,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "children": [
+ {
+ "id": 103,
+ "name": "domain",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "lib/cookies.ts",
+ "line": 18,
+ "character": 10
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 105,
+ "name": "expires",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "lib/cookies.ts",
+ "line": 20,
+ "character": 11
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "name": "Date"
+ }
+ },
+ {
+ "id": 106,
+ "name": "httpOnly",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "lib/cookies.ts",
+ "line": 21,
+ "character": 12
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "boolean"
+ }
+ },
+ {
+ "id": 102,
+ "name": "maxAge",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "lib/cookies.ts",
+ "line": 17,
+ "character": 10
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "number"
+ }
+ },
+ {
+ "id": 104,
+ "name": "path",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "lib/cookies.ts",
+ "line": 19,
+ "character": 8
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 108,
+ "name": "sameSite",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "lib/cookies.ts",
+ "line": 23,
+ "character": 12
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 107,
+ "name": "secure",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "lib/cookies.ts",
+ "line": 22,
+ "character": 10
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "boolean"
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Variables",
+ "kind": 32,
+ "children": [
+ 103,
+ 105,
+ 106,
+ 102,
+ 104,
+ 108,
+ 107
+ ]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "lib/cookies.ts",
+ "line": 16,
+ "character": 10
+ }
+ ]
+ }
+ }
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "lib/cookies.ts",
+ "line": 13,
+ "character": 18
+ }
+ ]
},
{
- "id": 190,
- "name": "DEFAULT_HEADERS",
- "kind": 32,
- "kindString": "Variable",
- "flags": {
- "isExported": true,
- "isConst": true
- },
- "sources": [
+ "id": 112,
+ "name": "serializeCookie",
+ "kind": 64,
+ "kindString": "Function",
+ "flags": {},
+ "signatures": [
{
- "fileName": "lib/constants.ts",
- "line": 3,
- "character": 28
+ "id": 113,
+ "name": "serializeCookie",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {},
+ "comment": {
+ "shortText": "Serialize a cookie to a string."
+ },
+ "parameters": [
+ {
+ "id": 114,
+ "name": "cookie",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "type": {
+ "type": "reference",
+ "id": 88,
+ "name": "Cookie"
+ }
+ },
+ {
+ "id": 115,
+ "name": "secure",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "type": {
+ "type": "intrinsic",
+ "name": "boolean"
+ }
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
}
],
- "type": {
- "type": "reflection",
- "declaration": {
- "id": 191,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
- "flags": {
- "isExported": true
- }
+ "sources": [
+ {
+ "fileName": "lib/cookies.ts",
+ "line": 129,
+ "character": 24
}
- }
+ ]
},
{
- "id": 192,
- "name": "EXPIRY_MARGIN",
- "kind": 32,
- "kindString": "Variable",
+ "id": 121,
+ "name": "setCookie",
+ "kind": 64,
+ "kindString": "Function",
"flags": {
- "isExported": true,
- "isConst": true
+ "isExported": true
},
- "sources": [
+ "signatures": [
{
- "fileName": "lib/constants.ts",
- "line": 4,
- "character": 26
- }
- ],
- "type": {
- "type": "union",
- "types": [
- {
- "type": "intrinsic",
- "name": "string"
+ "id": 122,
+ "name": "setCookie",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {
+ "isExported": true
},
- {
+ "comment": {
+ "shortText": "Set one or more cookies."
+ },
+ "parameters": [
+ {
+ "id": 123,
+ "name": "req",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "any"
+ }
+ },
+ {
+ "id": 124,
+ "name": "res",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "any"
+ }
+ },
+ {
+ "id": 125,
+ "name": "cookie",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true
+ },
+ "type": {
+ "type": "reference",
+ "id": 88,
+ "name": "Cookie"
+ }
+ }
+ ],
+ "type": {
"type": "intrinsic",
- "name": "number"
+ "name": "void"
}
- ]
- },
- "defaultValue": "process?.env?.EXPIRY_MARGIN || 60 * 1000"
- },
- {
- "id": 188,
- "name": "GOTRUE_URL",
- "kind": 32,
- "kindString": "Variable",
- "flags": {
- "isExported": true,
- "isConst": true
- },
+ }
+ ],
"sources": [
{
- "fileName": "lib/constants.ts",
- "line": 1,
- "character": 23
+ "fileName": "lib/cookies.ts",
+ "line": 160,
+ "character": 25
}
- ],
- "type": {
- "type": "intrinsic",
- "name": "string"
- },
- "defaultValue": "process?.env?.GOTRUE_URL || 'http://localhost:9999'"
+ ]
},
{
- "id": 193,
- "name": "STORAGE_KEY",
- "kind": 32,
- "kindString": "Variable",
+ "id": 116,
+ "name": "setCookies",
+ "kind": 64,
+ "kindString": "Function",
"flags": {
- "isExported": true,
- "isConst": true
+ "isExported": true
},
- "sources": [
+ "signatures": [
{
- "fileName": "lib/constants.ts",
- "line": 5,
- "character": 24
+ "id": 117,
+ "name": "setCookies",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {
+ "isExported": true
+ },
+ "comment": {
+ "shortText": "Set one or more cookies."
+ },
+ "parameters": [
+ {
+ "id": 118,
+ "name": "req",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "any"
+ }
+ },
+ {
+ "id": 119,
+ "name": "res",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "any"
+ }
+ },
+ {
+ "id": 120,
+ "name": "cookies",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true
+ },
+ "type": {
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "reference",
+ "id": 88,
+ "name": "Cookie"
+ }
+ ],
+ "name": "Array"
+ }
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "void"
+ }
}
],
- "type": {
- "type": "intrinsic",
- "name": "string"
- },
- "defaultValue": "process?.env?.STORAGE_KEY || 'supabase.auth.token'"
+ "sources": [
+ {
+ "fileName": "lib/cookies.ts",
+ "line": 144,
+ "character": 26
+ }
+ ]
}
],
"groups": [
{
- "title": "Variables",
- "kind": 32,
+ "title": "Type aliases",
+ "kind": 4194304,
+ "children": [
+ 88
+ ]
+ },
+ {
+ "title": "Functions",
+ "kind": 64,
"children": [
- 189,
- 190,
- 192,
- 188,
- 193
+ 126,
+ 109,
+ 96,
+ 112,
+ 121,
+ 116
]
}
],
"sources": [
{
- "fileName": "lib/constants.ts",
+ "fileName": "lib/cookies.ts",
"line": 1,
"character": 0
}
@@ -11593,7 +12770,7 @@
]
},
{
- "id": 155,
+ "id": 224,
"name": "\"lib/helpers\"",
"kind": 1,
"kindString": "Module",
@@ -11603,7 +12780,7 @@
"originalName": "/home/runner/work/gotrue-js/gotrue-js/src/lib/helpers.ts",
"children": [
{
- "id": 156,
+ "id": 225,
"name": "LocalStorage",
"kind": 128,
"kindString": "Class",
@@ -11612,7 +12789,7 @@
},
"indexSignature": [
{
- "id": 158,
+ "id": 227,
"name": "__index",
"kind": 8192,
"kindString": "Index signature",
@@ -11621,7 +12798,7 @@
},
"parameters": [
{
- "id": 159,
+ "id": 228,
"name": "name",
"kind": 32768,
"kindString": "Parameter",
@@ -11642,7 +12819,7 @@
],
"children": [
{
- "id": 161,
+ "id": 230,
"name": "constructor",
"kind": 512,
"kindString": "Constructor",
@@ -11651,7 +12828,7 @@
},
"signatures": [
{
- "id": 162,
+ "id": 231,
"name": "new LocalStorage",
"kind": 16384,
"kindString": "Constructor signature",
@@ -11660,7 +12837,7 @@
},
"parameters": [
{
- "id": 163,
+ "id": 232,
"name": "localStorage",
"kind": 32768,
"kindString": "Parameter",
@@ -11675,7 +12852,7 @@
],
"type": {
"type": "reference",
- "id": 156,
+ "id": 225,
"name": "LocalStorage"
}
}
@@ -11689,7 +12866,7 @@
]
},
{
- "id": 160,
+ "id": 229,
"name": "length",
"kind": 1024,
"kindString": "Property",
@@ -11709,7 +12886,7 @@
}
},
{
- "id": 157,
+ "id": 226,
"name": "localStorage",
"kind": 1024,
"kindString": "Property",
@@ -11729,7 +12906,7 @@
}
},
{
- "id": 164,
+ "id": 233,
"name": "clear",
"kind": 2048,
"kindString": "Method",
@@ -11738,7 +12915,7 @@
},
"signatures": [
{
- "id": 165,
+ "id": 234,
"name": "clear",
"kind": 4096,
"kindString": "Call signature",
@@ -11760,7 +12937,7 @@
]
},
{
- "id": 173,
+ "id": 242,
"name": "getItem",
"kind": 2048,
"kindString": "Method",
@@ -11769,7 +12946,7 @@
},
"signatures": [
{
- "id": 174,
+ "id": 243,
"name": "getItem",
"kind": 4096,
"kindString": "Call signature",
@@ -11778,7 +12955,7 @@
},
"parameters": [
{
- "id": 175,
+ "id": 244,
"name": "key",
"kind": 32768,
"kindString": "Parameter",
@@ -11815,7 +12992,7 @@
]
},
{
- "id": 166,
+ "id": 235,
"name": "key",
"kind": 2048,
"kindString": "Method",
@@ -11824,7 +13001,7 @@
},
"signatures": [
{
- "id": 167,
+ "id": 236,
"name": "key",
"kind": 4096,
"kindString": "Call signature",
@@ -11833,7 +13010,7 @@
},
"parameters": [
{
- "id": 168,
+ "id": 237,
"name": "index",
"kind": 32768,
"kindString": "Parameter",
@@ -11870,7 +13047,7 @@
]
},
{
- "id": 176,
+ "id": 245,
"name": "removeItem",
"kind": 2048,
"kindString": "Method",
@@ -11879,7 +13056,7 @@
},
"signatures": [
{
- "id": 177,
+ "id": 246,
"name": "removeItem",
"kind": 4096,
"kindString": "Call signature",
@@ -11888,7 +13065,7 @@
},
"parameters": [
{
- "id": 178,
+ "id": 247,
"name": "key",
"kind": 32768,
"kindString": "Parameter",
@@ -11916,7 +13093,7 @@
]
},
{
- "id": 169,
+ "id": 238,
"name": "setItem",
"kind": 2048,
"kindString": "Method",
@@ -11925,7 +13102,7 @@
},
"signatures": [
{
- "id": 170,
+ "id": 239,
"name": "setItem",
"kind": 4096,
"kindString": "Call signature",
@@ -11934,7 +13111,7 @@
},
"parameters": [
{
- "id": 171,
+ "id": 240,
"name": "key",
"kind": 32768,
"kindString": "Parameter",
@@ -11947,7 +13124,7 @@
}
},
{
- "id": 172,
+ "id": 241,
"name": "value",
"kind": 32768,
"kindString": "Parameter",
@@ -11980,26 +13157,26 @@
"title": "Constructors",
"kind": 512,
"children": [
- 161
+ 230
]
},
{
"title": "Properties",
"kind": 1024,
"children": [
- 160,
- 157
+ 229,
+ 226
]
},
{
"title": "Methods",
"kind": 2048,
"children": [
- 164,
- 173,
- 166,
- 176,
- 169
+ 233,
+ 242,
+ 235,
+ 245,
+ 238
]
}
],
@@ -12018,7 +13195,7 @@
]
},
{
- "id": 183,
+ "id": 252,
"name": "getParameterByName",
"kind": 64,
"kindString": "Function",
@@ -12027,7 +13204,7 @@
},
"signatures": [
{
- "id": 184,
+ "id": 253,
"name": "getParameterByName",
"kind": 4096,
"kindString": "Call signature",
@@ -12036,7 +13213,7 @@
},
"parameters": [
{
- "id": 185,
+ "id": 254,
"name": "name",
"kind": 32768,
"kindString": "Parameter",
@@ -12049,7 +13226,7 @@
}
},
{
- "id": 186,
+ "id": 255,
"name": "url",
"kind": 32768,
"kindString": "Parameter",
@@ -12077,7 +13254,245 @@
"types": [
{
"type": "intrinsic",
- "name": "null"
+ "name": "null"
+ },
+ {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ ]
+ }
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "lib/helpers.ts",
+ "line": 11,
+ "character": 34
+ }
+ ]
+ },
+ {
+ "id": 250,
+ "name": "isBrowser",
+ "kind": 64,
+ "kindString": "Function",
+ "flags": {
+ "isExported": true,
+ "isConst": true
+ },
+ "signatures": [
+ {
+ "id": 251,
+ "name": "isBrowser",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {
+ "isExported": true
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "boolean"
+ }
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "lib/helpers.ts",
+ "line": 9,
+ "character": 22
+ }
+ ]
+ },
+ {
+ "id": 248,
+ "name": "uuid",
+ "kind": 64,
+ "kindString": "Function",
+ "flags": {
+ "isExported": true
+ },
+ "signatures": [
+ {
+ "id": 249,
+ "name": "uuid",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {
+ "isExported": true
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "lib/helpers.ts",
+ "line": 1,
+ "character": 20
+ }
+ ]
+ }
+ ],
+ "groups": [
+ {
+ "title": "Classes",
+ "kind": 128,
+ "children": [
+ 225
+ ]
+ },
+ {
+ "title": "Functions",
+ "kind": 64,
+ "children": [
+ 252,
+ 250,
+ 248
+ ]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "lib/helpers.ts",
+ "line": 1,
+ "character": 0
+ }
+ ]
+ },
+ {
+ "id": 26,
+ "name": "\"lib/types\"",
+ "kind": 1,
+ "kindString": "Module",
+ "flags": {
+ "isExported": true
+ },
+ "originalName": "/home/runner/work/gotrue-js/gotrue-js/src/lib/types.ts",
+ "children": [
+ {
+ "id": 66,
+ "name": "CookieOptions",
+ "kind": 256,
+ "kindString": "Interface",
+ "flags": {
+ "isExported": true
+ },
+ "children": [
+ {
+ "id": 69,
+ "name": "domain",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExported": true,
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "lib/types.ts",
+ "line": 71,
+ "character": 8
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "intrinsic",
+ "name": "undefined"
+ },
+ {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ ]
+ }
+ },
+ {
+ "id": 68,
+ "name": "lifetime",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExported": true,
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "lib/types.ts",
+ "line": 69,
+ "character": 10
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "intrinsic",
+ "name": "undefined"
+ },
+ {
+ "type": "intrinsic",
+ "name": "number"
+ }
+ ]
+ }
+ },
+ {
+ "id": 67,
+ "name": "name",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExported": true,
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "lib/types.ts",
+ "line": 67,
+ "character": 6
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "intrinsic",
+ "name": "undefined"
+ },
+ {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ ]
+ }
+ },
+ {
+ "id": 70,
+ "name": "path",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExported": true,
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "lib/types.ts",
+ "line": 72,
+ "character": 6
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "intrinsic",
+ "name": "undefined"
},
{
"type": "intrinsic",
@@ -12085,116 +13500,59 @@
}
]
}
- }
- ],
- "sources": [
- {
- "fileName": "lib/helpers.ts",
- "line": 11,
- "character": 34
- }
- ]
- },
- {
- "id": 181,
- "name": "isBrowser",
- "kind": 64,
- "kindString": "Function",
- "flags": {
- "isExported": true,
- "isConst": true
- },
- "signatures": [
+ },
{
- "id": 182,
- "name": "isBrowser",
- "kind": 4096,
- "kindString": "Call signature",
+ "id": 71,
+ "name": "sameSite",
+ "kind": 1024,
+ "kindString": "Property",
"flags": {
- "isExported": true
+ "isExported": true,
+ "isOptional": true
},
+ "sources": [
+ {
+ "fileName": "lib/types.ts",
+ "line": 74,
+ "character": 10
+ }
+ ],
"type": {
- "type": "intrinsic",
- "name": "boolean"
+ "type": "union",
+ "types": [
+ {
+ "type": "intrinsic",
+ "name": "undefined"
+ },
+ {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ ]
}
}
],
- "sources": [
- {
- "fileName": "lib/helpers.ts",
- "line": 9,
- "character": 22
- }
- ]
- },
- {
- "id": 179,
- "name": "uuid",
- "kind": 64,
- "kindString": "Function",
- "flags": {
- "isExported": true
- },
- "signatures": [
+ "groups": [
{
- "id": 180,
- "name": "uuid",
- "kind": 4096,
- "kindString": "Call signature",
- "flags": {
- "isExported": true
- },
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
+ "title": "Properties",
+ "kind": 1024,
+ "children": [
+ 69,
+ 68,
+ 67,
+ 70,
+ 71
+ ]
}
],
"sources": [
{
- "fileName": "lib/helpers.ts",
- "line": 1,
- "character": 20
+ "fileName": "lib/types.ts",
+ "line": 65,
+ "character": 30
}
]
- }
- ],
- "groups": [
- {
- "title": "Classes",
- "kind": 128,
- "children": [
- 156
- ]
},
- {
- "title": "Functions",
- "kind": 64,
- "children": [
- 183,
- 181,
- 179
- ]
- }
- ],
- "sources": [
- {
- "fileName": "lib/helpers.ts",
- "line": 1,
- "character": 0
- }
- ]
- },
- {
- "id": 26,
- "name": "\"lib/types\"",
- "kind": 1,
- "kindString": "Module",
- "flags": {
- "isExported": true
- },
- "originalName": "/home/runner/work/gotrue-js/gotrue-js/src/lib/types.ts",
- "children": [
{
"id": 27,
"name": "Session",
@@ -12384,7 +13742,7 @@
},
"type": {
"type": "reference",
- "id": 67,
+ "id": 73,
"name": "AuthChangeEvent"
}
},
@@ -13104,7 +14462,7 @@
]
},
{
- "id": 67,
+ "id": 73,
"name": "AuthChangeEvent",
"kind": 4194304,
"kindString": "Type alias",
@@ -13132,12 +14490,16 @@
{
"type": "stringLiteral",
"value": "USER_UPDATED"
+ },
+ {
+ "type": "stringLiteral",
+ "value": "PASSWORD_RECOVERY"
}
]
}
},
{
- "id": 66,
+ "id": 72,
"name": "Provider",
"kind": 4194304,
"kindString": "Type alias",
@@ -13179,6 +14541,7 @@
"title": "Interfaces",
"kind": 256,
"children": [
+ 66,
27,
56,
33,
@@ -13189,8 +14552,8 @@
"title": "Type aliases",
"kind": 4194304,
"children": [
- 67,
- 66
+ 73,
+ 72
]
}
],
@@ -13208,12 +14571,13 @@
"title": "Modules",
"kind": 1,
"children": [
- 68,
- 194,
- 334,
- 187,
+ 131,
+ 256,
+ 397,
+ 74,
+ 87,
1,
- 155,
+ 224,
26
]
}
@@ -13227,7 +14591,7 @@
"originalName": "",
"children": [
{
- "id": 344,
+ "id": 358,
"name": "\"PostgrestClient\"",
"kind": 1,
"kindString": "Module",
@@ -13237,7 +14601,7 @@
"originalName": "/home/runner/work/postgrest-js/postgrest-js/src/PostgrestClient.ts",
"children": [
{
- "id": 345,
+ "id": 359,
"name": "PostgrestClient",
"kind": 128,
"kindString": "Class",
@@ -13246,7 +14610,7 @@
},
"children": [
{
- "id": 352,
+ "id": 366,
"name": "constructor",
"kind": 512,
"kindString": "Constructor",
@@ -13258,7 +14622,7 @@
},
"signatures": [
{
- "id": 353,
+ "id": 367,
"name": "new PostgrestClient",
"kind": 16384,
"kindString": "Constructor signature",
@@ -13270,7 +14634,7 @@
},
"parameters": [
{
- "id": 354,
+ "id": 368,
"name": "url",
"kind": 32768,
"kindString": "Parameter",
@@ -13286,7 +14650,7 @@
}
},
{
- "id": 355,
+ "id": 369,
"name": "__namedParameters",
"kind": 32768,
"kindString": "Parameter",
@@ -13297,7 +14661,7 @@
"type": {
"type": "reflection",
"declaration": {
- "id": 356,
+ "id": 370,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -13306,7 +14670,7 @@
},
"children": [
{
- "id": 357,
+ "id": 371,
"name": "headers",
"kind": 32,
"kindString": "Variable",
@@ -13319,14 +14683,14 @@
"sources": [
{
"fileName": "PostgrestClient.ts",
- "line": 19,
+ "line": 18,
"character": 13
}
],
"type": {
"type": "reflection",
"declaration": {
- "id": 358,
+ "id": 372,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -13335,7 +14699,7 @@
},
"indexSignature": [
{
- "id": 359,
+ "id": 373,
"name": "__index",
"kind": 8192,
"kindString": "Index signature",
@@ -13344,7 +14708,7 @@
},
"parameters": [
{
- "id": 360,
+ "id": 374,
"name": "key",
"kind": 32768,
"kindString": "Parameter",
@@ -13367,7 +14731,7 @@
}
},
{
- "id": 361,
+ "id": 375,
"name": "schema",
"kind": 32,
"kindString": "Variable",
@@ -13380,7 +14744,7 @@
"sources": [
{
"fileName": "PostgrestClient.ts",
- "line": 19,
+ "line": 18,
"character": 26
}
],
@@ -13404,15 +14768,15 @@
"title": "Variables",
"kind": 32,
"children": [
- 357,
- 361
+ 371,
+ 375
]
}
],
"sources": [
{
"fileName": "PostgrestClient.ts",
- "line": 18,
+ "line": 17,
"character": 16
}
]
@@ -13423,7 +14787,7 @@
],
"type": {
"type": "reference",
- "id": 345,
+ "id": 359,
"name": "PostgrestClient"
}
}
@@ -13431,13 +14795,13 @@
"sources": [
{
"fileName": "PostgrestClient.ts",
- "line": 8,
+ "line": 7,
"character": 17
}
]
},
{
- "id": 347,
+ "id": 361,
"name": "headers",
"kind": 1024,
"kindString": "Property",
@@ -13447,14 +14811,14 @@
"sources": [
{
"fileName": "PostgrestClient.ts",
- "line": 7,
+ "line": 6,
"character": 9
}
],
"type": {
"type": "reflection",
"declaration": {
- "id": 348,
+ "id": 362,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -13463,7 +14827,7 @@
},
"indexSignature": [
{
- "id": 349,
+ "id": 363,
"name": "__index",
"kind": 8192,
"kindString": "Index signature",
@@ -13472,7 +14836,7 @@
},
"parameters": [
{
- "id": 350,
+ "id": 364,
"name": "key",
"kind": 32768,
"kindString": "Parameter",
@@ -13494,7 +14858,7 @@
"sources": [
{
"fileName": "PostgrestClient.ts",
- "line": 7,
+ "line": 6,
"character": 10
}
]
@@ -13502,7 +14866,7 @@
}
},
{
- "id": 351,
+ "id": 365,
"name": "schema",
"kind": 1024,
"kindString": "Property",
@@ -13513,7 +14877,7 @@
"sources": [
{
"fileName": "PostgrestClient.ts",
- "line": 8,
+ "line": 7,
"character": 8
}
],
@@ -13532,7 +14896,7 @@
}
},
{
- "id": 346,
+ "id": 360,
"name": "url",
"kind": 1024,
"kindString": "Property",
@@ -13542,7 +14906,7 @@
"sources": [
{
"fileName": "PostgrestClient.ts",
- "line": 6,
+ "line": 5,
"character": 5
}
],
@@ -13552,7 +14916,7 @@
}
},
{
- "id": 362,
+ "id": 376,
"name": "auth",
"kind": 2048,
"kindString": "Method",
@@ -13561,7 +14925,7 @@
},
"signatures": [
{
- "id": 363,
+ "id": 377,
"name": "auth",
"kind": 4096,
"kindString": "Call signature",
@@ -13573,7 +14937,7 @@
},
"parameters": [
{
- "id": 364,
+ "id": 378,
"name": "token",
"kind": 32768,
"kindString": "Parameter",
@@ -13598,13 +14962,13 @@
"sources": [
{
"fileName": "PostgrestClient.ts",
- "line": 31,
+ "line": 30,
"character": 6
}
]
},
{
- "id": 365,
+ "id": 379,
"name": "from",
"kind": 2048,
"kindString": "Method",
@@ -13613,7 +14977,7 @@
},
"signatures": [
{
- "id": 366,
+ "id": 380,
"name": "from",
"kind": 4096,
"kindString": "Call signature",
@@ -13625,7 +14989,7 @@
},
"typeParameter": [
{
- "id": 367,
+ "id": 381,
"name": "T",
"kind": 131072,
"kindString": "Type parameter",
@@ -13636,7 +15000,7 @@
],
"parameters": [
{
- "id": 368,
+ "id": 382,
"name": "table",
"kind": 32768,
"kindString": "Parameter",
@@ -13654,7 +15018,7 @@
],
"type": {
"type": "reference",
- "id": 287,
+ "id": 290,
"typeArguments": [
{
"type": "typeParameter",
@@ -13672,13 +15036,13 @@
"sources": [
{
"fileName": "PostgrestClient.ts",
- "line": 41,
+ "line": 40,
"character": 6
}
]
},
{
- "id": 369,
+ "id": 383,
"name": "rpc",
"kind": 2048,
"kindString": "Method",
@@ -13687,7 +15051,7 @@
},
"signatures": [
{
- "id": 370,
+ "id": 384,
"name": "rpc",
"kind": 4096,
"kindString": "Call signature",
@@ -13699,7 +15063,7 @@
},
"typeParameter": [
{
- "id": 371,
+ "id": 385,
"name": "T",
"kind": 131072,
"kindString": "Type parameter",
@@ -13710,7 +15074,7 @@
],
"parameters": [
{
- "id": 372,
+ "id": 386,
"name": "fn",
"kind": 32768,
"kindString": "Parameter",
@@ -13726,7 +15090,7 @@
}
},
{
- "id": 373,
+ "id": 387,
"name": "params",
"kind": 32768,
"kindString": "Parameter",
@@ -13754,7 +15118,7 @@
],
"type": {
"type": "reference",
- "id": 59,
+ "id": 62,
"typeArguments": [
{
"type": "typeParameter",
@@ -13772,7 +15136,7 @@
"sources": [
{
"fileName": "PostgrestClient.ts",
- "line": 52,
+ "line": 51,
"character": 5
}
]
@@ -13783,32 +15147,32 @@
"title": "Constructors",
"kind": 512,
"children": [
- 352
+ 366
]
},
{
"title": "Properties",
"kind": 1024,
"children": [
- 347,
- 351,
- 346
+ 361,
+ 365,
+ 360
]
},
{
"title": "Methods",
"kind": 2048,
"children": [
- 362,
- 365,
- 369
+ 376,
+ 379,
+ 383
]
}
],
"sources": [
{
"fileName": "PostgrestClient.ts",
- "line": 5,
+ "line": 4,
"character": 36
}
]
@@ -13819,7 +15183,7 @@
"title": "Classes",
"kind": 128,
"children": [
- 345
+ 359
]
}
],
@@ -13832,7 +15196,7 @@
]
},
{
- "id": 374,
+ "id": 388,
"name": "\"index\"",
"kind": 1,
"kindString": "Module",
@@ -13849,7 +15213,7 @@
]
},
{
- "id": 110,
+ "id": 113,
"name": "\"lib/PostgrestFilterBuilder\"",
"kind": 1,
"kindString": "Module",
@@ -13859,7 +15223,7 @@
"originalName": "/home/runner/work/postgrest-js/postgrest-js/src/lib/PostgrestFilterBuilder.ts",
"children": [
{
- "id": 111,
+ "id": 114,
"name": "PostgrestFilterBuilder",
"kind": 128,
"kindString": "Class",
@@ -13868,7 +15232,7 @@
},
"typeParameter": [
{
- "id": 112,
+ "id": 115,
"name": "T",
"kind": 131072,
"kindString": "Type parameter",
@@ -13879,7 +15243,7 @@
],
"children": [
{
- "id": 266,
+ "id": 269,
"name": "constructor",
"kind": 512,
"kindString": "Constructor",
@@ -13888,7 +15252,7 @@
},
"signatures": [
{
- "id": 267,
+ "id": 270,
"name": "new PostgrestFilterBuilder",
"kind": 16384,
"kindString": "Constructor signature",
@@ -13897,7 +15261,7 @@
},
"parameters": [
{
- "id": 268,
+ "id": 271,
"name": "builder",
"kind": 32768,
"kindString": "Parameter",
@@ -13906,7 +15270,7 @@
},
"type": {
"type": "reference",
- "id": 29,
+ "id": 32,
"typeArguments": [
{
"type": "typeParameter",
@@ -13919,12 +15283,12 @@
],
"type": {
"type": "reference",
- "id": 111,
+ "id": 114,
"name": "PostgrestFilterBuilder"
},
"inheritedFrom": {
"type": "reference",
- "id": 39,
+ "id": 42,
"name": "PostgrestBuilder.__constructor"
}
}
@@ -13932,18 +15296,18 @@
"sources": [
{
"fileName": "lib/types.ts",
- "line": 52,
+ "line": 55,
"character": 44
}
],
"inheritedFrom": {
"type": "reference",
- "id": 39,
+ "id": 42,
"name": "PostgrestBuilder.__constructor"
}
},
{
- "id": 265,
+ "id": 268,
"name": "body",
"kind": 1024,
"kindString": "Property",
@@ -13955,7 +15319,7 @@
"sources": [
{
"fileName": "lib/types.ts",
- "line": 52,
+ "line": 55,
"character": 16
}
],
@@ -13989,12 +15353,12 @@
},
"inheritedFrom": {
"type": "reference",
- "id": 38,
+ "id": 41,
"name": "PostgrestBuilder.body"
}
},
{
- "id": 260,
+ "id": 263,
"name": "headers",
"kind": 1024,
"kindString": "Property",
@@ -14005,14 +15369,14 @@
"sources": [
{
"fileName": "lib/types.ts",
- "line": 50,
+ "line": 53,
"character": 19
}
],
"type": {
"type": "reflection",
"declaration": {
- "id": 261,
+ "id": 264,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -14021,7 +15385,7 @@
},
"indexSignature": [
{
- "id": 262,
+ "id": 265,
"name": "__index",
"kind": 8192,
"kindString": "Index signature",
@@ -14030,7 +15394,7 @@
},
"parameters": [
{
- "id": 263,
+ "id": 266,
"name": "key",
"kind": 32768,
"kindString": "Parameter",
@@ -14052,7 +15416,7 @@
"sources": [
{
"fileName": "lib/types.ts",
- "line": 50,
+ "line": 53,
"character": 21
}
]
@@ -14060,12 +15424,12 @@
},
"inheritedFrom": {
"type": "reference",
- "id": 33,
+ "id": 36,
"name": "PostgrestBuilder.headers"
}
},
{
- "id": 258,
+ "id": 261,
"name": "method",
"kind": 1024,
"kindString": "Property",
@@ -14076,7 +15440,7 @@
"sources": [
{
"fileName": "lib/types.ts",
- "line": 48,
+ "line": 51,
"character": 18
}
],
@@ -14107,12 +15471,12 @@
},
"inheritedFrom": {
"type": "reference",
- "id": 31,
+ "id": 34,
"name": "PostgrestBuilder.method"
}
},
{
- "id": 264,
+ "id": 267,
"name": "schema",
"kind": 1024,
"kindString": "Property",
@@ -14124,7 +15488,7 @@
"sources": [
{
"fileName": "lib/types.ts",
- "line": 51,
+ "line": 54,
"character": 18
}
],
@@ -14143,12 +15507,12 @@
},
"inheritedFrom": {
"type": "reference",
- "id": 37,
+ "id": 40,
"name": "PostgrestBuilder.schema"
}
},
{
- "id": 259,
+ "id": 262,
"name": "url",
"kind": 1024,
"kindString": "Property",
@@ -14159,7 +15523,7 @@
"sources": [
{
"fileName": "lib/types.ts",
- "line": 49,
+ "line": 52,
"character": 15
}
],
@@ -14169,12 +15533,12 @@
},
"inheritedFrom": {
"type": "reference",
- "id": 32,
+ "id": 35,
"name": "PostgrestBuilder.url"
}
},
{
- "id": 185,
+ "id": 188,
"name": "adj",
"kind": 2048,
"kindString": "Method",
@@ -14183,7 +15547,7 @@
},
"signatures": [
{
- "id": 186,
+ "id": 189,
"name": "adj",
"kind": 4096,
"kindString": "Call signature",
@@ -14195,7 +15559,7 @@
},
"parameters": [
{
- "id": 187,
+ "id": 190,
"name": "column",
"kind": 32768,
"kindString": "Parameter",
@@ -14215,7 +15579,7 @@
}
},
{
- "id": 188,
+ "id": 191,
"name": "range",
"kind": 32768,
"kindString": "Parameter",
@@ -14246,7 +15610,7 @@
]
},
{
- "id": 165,
+ "id": 168,
"name": "cd",
"kind": 2048,
"kindString": "Method",
@@ -14255,7 +15619,7 @@
},
"signatures": [
{
- "id": 166,
+ "id": 169,
"name": "cd",
"kind": 4096,
"kindString": "Call signature",
@@ -14267,7 +15631,7 @@
},
"parameters": [
{
- "id": 167,
+ "id": 170,
"name": "column",
"kind": 32768,
"kindString": "Parameter",
@@ -14287,7 +15651,7 @@
}
},
{
- "id": 168,
+ "id": 171,
"name": "value",
"kind": 32768,
"kindString": "Parameter",
@@ -14345,7 +15709,7 @@
]
},
{
- "id": 161,
+ "id": 164,
"name": "cs",
"kind": 2048,
"kindString": "Method",
@@ -14354,7 +15718,7 @@
},
"signatures": [
{
- "id": 162,
+ "id": 165,
"name": "cs",
"kind": 4096,
"kindString": "Call signature",
@@ -14366,7 +15730,7 @@
},
"parameters": [
{
- "id": 163,
+ "id": 166,
"name": "column",
"kind": 32768,
"kindString": "Parameter",
@@ -14386,7 +15750,7 @@
}
},
{
- "id": 164,
+ "id": 167,
"name": "value",
"kind": 32768,
"kindString": "Parameter",
@@ -14444,7 +15808,7 @@
]
},
{
- "id": 121,
+ "id": 124,
"name": "eq",
"kind": 2048,
"kindString": "Method",
@@ -14453,7 +15817,7 @@
},
"signatures": [
{
- "id": 122,
+ "id": 125,
"name": "eq",
"kind": 4096,
"kindString": "Call signature",
@@ -14465,7 +15829,7 @@
},
"parameters": [
{
- "id": 123,
+ "id": 126,
"name": "column",
"kind": 32768,
"kindString": "Parameter",
@@ -14485,7 +15849,7 @@
}
},
{
- "id": 124,
+ "id": 127,
"name": "value",
"kind": 32768,
"kindString": "Parameter",
@@ -14527,7 +15891,7 @@
]
},
{
- "id": 221,
+ "id": 224,
"name": "filter",
"kind": 2048,
"kindString": "Method",
@@ -14536,7 +15900,7 @@
},
"signatures": [
{
- "id": 222,
+ "id": 225,
"name": "filter",
"kind": 4096,
"kindString": "Call signature",
@@ -14548,7 +15912,7 @@
},
"parameters": [
{
- "id": 223,
+ "id": 226,
"name": "column",
"kind": 32768,
"kindString": "Parameter",
@@ -14568,7 +15932,7 @@
}
},
{
- "id": 224,
+ "id": 227,
"name": "operator",
"kind": 32768,
"kindString": "Parameter",
@@ -14580,12 +15944,12 @@
},
"type": {
"type": "reference",
- "id": 285,
+ "id": 288,
"name": "FilterOperator"
}
},
{
- "id": 225,
+ "id": 228,
"name": "value",
"kind": 32768,
"kindString": "Parameter",
@@ -14616,7 +15980,7 @@
]
},
{
- "id": 193,
+ "id": 196,
"name": "fts",
"kind": 2048,
"kindString": "Method",
@@ -14625,7 +15989,7 @@
},
"signatures": [
{
- "id": 194,
+ "id": 197,
"name": "fts",
"kind": 4096,
"kindString": "Call signature",
@@ -14637,7 +16001,7 @@
},
"parameters": [
{
- "id": 195,
+ "id": 198,
"name": "column",
"kind": 32768,
"kindString": "Parameter",
@@ -14657,7 +16021,7 @@
}
},
{
- "id": 196,
+ "id": 199,
"name": "query",
"kind": 32768,
"kindString": "Parameter",
@@ -14673,7 +16037,7 @@
}
},
{
- "id": 197,
+ "id": 200,
"name": "__namedParameters",
"kind": 32768,
"kindString": "Parameter",
@@ -14684,7 +16048,7 @@
"type": {
"type": "reflection",
"declaration": {
- "id": 198,
+ "id": 201,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -14693,7 +16057,7 @@
},
"children": [
{
- "id": 199,
+ "id": 202,
"name": "config",
"kind": 32,
"kindString": "Variable",
@@ -14730,7 +16094,7 @@
"title": "Variables",
"kind": 32,
"children": [
- 199
+ 202
]
}
],
@@ -14761,7 +16125,7 @@
]
},
{
- "id": 129,
+ "id": 132,
"name": "gt",
"kind": 2048,
"kindString": "Method",
@@ -14770,7 +16134,7 @@
},
"signatures": [
{
- "id": 130,
+ "id": 133,
"name": "gt",
"kind": 4096,
"kindString": "Call signature",
@@ -14782,7 +16146,7 @@
},
"parameters": [
{
- "id": 131,
+ "id": 134,
"name": "column",
"kind": 32768,
"kindString": "Parameter",
@@ -14802,7 +16166,7 @@
}
},
{
- "id": 132,
+ "id": 135,
"name": "value",
"kind": 32768,
"kindString": "Parameter",
@@ -14844,7 +16208,7 @@
]
},
{
- "id": 133,
+ "id": 136,
"name": "gte",
"kind": 2048,
"kindString": "Method",
@@ -14853,7 +16217,7 @@
},
"signatures": [
{
- "id": 134,
+ "id": 137,
"name": "gte",
"kind": 4096,
"kindString": "Call signature",
@@ -14865,7 +16229,7 @@
},
"parameters": [
{
- "id": 135,
+ "id": 138,
"name": "column",
"kind": 32768,
"kindString": "Parameter",
@@ -14885,7 +16249,7 @@
}
},
{
- "id": 136,
+ "id": 139,
"name": "value",
"kind": 32768,
"kindString": "Parameter",
@@ -14927,7 +16291,7 @@
]
},
{
- "id": 149,
+ "id": 152,
"name": "ilike",
"kind": 2048,
"kindString": "Method",
@@ -14936,7 +16300,7 @@
},
"signatures": [
{
- "id": 150,
+ "id": 153,
"name": "ilike",
"kind": 4096,
"kindString": "Call signature",
@@ -14948,7 +16312,7 @@
},
"parameters": [
{
- "id": 151,
+ "id": 154,
"name": "column",
"kind": 32768,
"kindString": "Parameter",
@@ -14968,7 +16332,7 @@
}
},
{
- "id": 152,
+ "id": 155,
"name": "pattern",
"kind": 32768,
"kindString": "Parameter",
@@ -14999,7 +16363,7 @@
]
},
{
- "id": 157,
+ "id": 160,
"name": "in",
"kind": 2048,
"kindString": "Method",
@@ -15008,7 +16372,7 @@
},
"signatures": [
{
- "id": 158,
+ "id": 161,
"name": "in",
"kind": 4096,
"kindString": "Call signature",
@@ -15020,7 +16384,7 @@
},
"parameters": [
{
- "id": 159,
+ "id": 162,
"name": "column",
"kind": 32768,
"kindString": "Parameter",
@@ -15040,7 +16404,7 @@
}
},
{
- "id": 160,
+ "id": 163,
"name": "values",
"kind": 32768,
"kindString": "Parameter",
@@ -15085,7 +16449,7 @@
]
},
{
- "id": 153,
+ "id": 156,
"name": "is",
"kind": 2048,
"kindString": "Method",
@@ -15094,7 +16458,7 @@
},
"signatures": [
{
- "id": 154,
+ "id": 157,
"name": "is",
"kind": 4096,
"kindString": "Call signature",
@@ -15106,7 +16470,7 @@
},
"parameters": [
{
- "id": 155,
+ "id": 158,
"name": "column",
"kind": 32768,
"kindString": "Parameter",
@@ -15126,7 +16490,7 @@
}
},
{
- "id": 156,
+ "id": 159,
"name": "value",
"kind": 32768,
"kindString": "Parameter",
@@ -15166,7 +16530,7 @@
]
},
{
- "id": 145,
+ "id": 148,
"name": "like",
"kind": 2048,
"kindString": "Method",
@@ -15175,7 +16539,7 @@
},
"signatures": [
{
- "id": 146,
+ "id": 149,
"name": "like",
"kind": 4096,
"kindString": "Call signature",
@@ -15187,7 +16551,7 @@
},
"parameters": [
{
- "id": 147,
+ "id": 150,
"name": "column",
"kind": 32768,
"kindString": "Parameter",
@@ -15207,7 +16571,7 @@
}
},
{
- "id": 148,
+ "id": 151,
"name": "pattern",
"kind": 32768,
"kindString": "Parameter",
@@ -15238,7 +16602,7 @@
]
},
{
- "id": 243,
+ "id": 246,
"name": "limit",
"kind": 2048,
"kindString": "Method",
@@ -15247,7 +16611,7 @@
},
"signatures": [
{
- "id": 244,
+ "id": 247,
"name": "limit",
"kind": 4096,
"kindString": "Call signature",
@@ -15259,7 +16623,7 @@
},
"parameters": [
{
- "id": 245,
+ "id": 248,
"name": "count",
"kind": 32768,
"kindString": "Parameter",
@@ -15275,7 +16639,7 @@
}
},
{
- "id": 246,
+ "id": 249,
"name": "__namedParameters",
"kind": 32768,
"kindString": "Parameter",
@@ -15286,7 +16650,7 @@
"type": {
"type": "reflection",
"declaration": {
- "id": 247,
+ "id": 250,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -15295,7 +16659,7 @@
},
"children": [
{
- "id": 248,
+ "id": 251,
"name": "foreignTable",
"kind": 32,
"kindString": "Variable",
@@ -15308,8 +16672,8 @@
"sources": [
{
"fileName": "lib/PostgrestTransformBuilder.ts",
- "line": 64,
- "character": 18
+ "line": 62,
+ "character": 37
}
],
"type": {
@@ -15332,15 +16696,15 @@
"title": "Variables",
"kind": 32,
"children": [
- 248
+ 251
]
}
],
"sources": [
{
"fileName": "lib/PostgrestTransformBuilder.ts",
- "line": 63,
- "character": 18
+ "line": 62,
+ "character": 22
}
]
}
@@ -15354,7 +16718,7 @@
},
"inheritedFrom": {
"type": "reference",
- "id": 72,
+ "id": 75,
"name": "PostgrestTransformBuilder.limit"
}
}
@@ -15368,12 +16732,12 @@
],
"inheritedFrom": {
"type": "reference",
- "id": 72,
+ "id": 75,
"name": "PostgrestTransformBuilder.limit"
}
},
{
- "id": 137,
+ "id": 140,
"name": "lt",
"kind": 2048,
"kindString": "Method",
@@ -15382,7 +16746,7 @@
},
"signatures": [
{
- "id": 138,
+ "id": 141,
"name": "lt",
"kind": 4096,
"kindString": "Call signature",
@@ -15394,7 +16758,7 @@
},
"parameters": [
{
- "id": 139,
+ "id": 142,
"name": "column",
"kind": 32768,
"kindString": "Parameter",
@@ -15414,7 +16778,7 @@
}
},
{
- "id": 140,
+ "id": 143,
"name": "value",
"kind": 32768,
"kindString": "Parameter",
@@ -15456,7 +16820,7 @@
]
},
{
- "id": 141,
+ "id": 144,
"name": "lte",
"kind": 2048,
"kindString": "Method",
@@ -15465,7 +16829,7 @@
},
"signatures": [
{
- "id": 142,
+ "id": 145,
"name": "lte",
"kind": 4096,
"kindString": "Call signature",
@@ -15477,7 +16841,7 @@
},
"parameters": [
{
- "id": 143,
+ "id": 146,
"name": "column",
"kind": 32768,
"kindString": "Parameter",
@@ -15497,7 +16861,7 @@
}
},
{
- "id": 144,
+ "id": 147,
"name": "value",
"kind": 32768,
"kindString": "Parameter",
@@ -15539,7 +16903,7 @@
]
},
{
- "id": 226,
+ "id": 229,
"name": "match",
"kind": 2048,
"kindString": "Method",
@@ -15548,7 +16912,7 @@
},
"signatures": [
{
- "id": 227,
+ "id": 230,
"name": "match",
"kind": 4096,
"kindString": "Call signature",
@@ -15560,7 +16924,7 @@
},
"parameters": [
{
- "id": 228,
+ "id": 231,
"name": "query",
"kind": 32768,
"kindString": "Parameter",
@@ -15573,7 +16937,7 @@
"type": {
"type": "reflection",
"declaration": {
- "id": 229,
+ "id": 232,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -15582,7 +16946,7 @@
},
"indexSignature": [
{
- "id": 230,
+ "id": 233,
"name": "__index",
"kind": 8192,
"kindString": "Index signature",
@@ -15591,7 +16955,7 @@
},
"parameters": [
{
- "id": 231,
+ "id": 234,
"name": "key",
"kind": 32768,
"kindString": "Parameter",
@@ -15636,7 +17000,7 @@
]
},
{
- "id": 125,
+ "id": 128,
"name": "neq",
"kind": 2048,
"kindString": "Method",
@@ -15645,7 +17009,7 @@
},
"signatures": [
{
- "id": 126,
+ "id": 129,
"name": "neq",
"kind": 4096,
"kindString": "Call signature",
@@ -15657,7 +17021,7 @@
},
"parameters": [
{
- "id": 127,
+ "id": 130,
"name": "column",
"kind": 32768,
"kindString": "Parameter",
@@ -15677,7 +17041,7 @@
}
},
{
- "id": 128,
+ "id": 131,
"name": "value",
"kind": 32768,
"kindString": "Parameter",
@@ -15719,7 +17083,7 @@
]
},
{
- "id": 113,
+ "id": 116,
"name": "not",
"kind": 2048,
"kindString": "Method",
@@ -15728,7 +17092,7 @@
},
"signatures": [
{
- "id": 114,
+ "id": 117,
"name": "not",
"kind": 4096,
"kindString": "Call signature",
@@ -15740,7 +17104,7 @@
},
"parameters": [
{
- "id": 115,
+ "id": 118,
"name": "column",
"kind": 32768,
"kindString": "Parameter",
@@ -15760,7 +17124,7 @@
}
},
{
- "id": 116,
+ "id": 119,
"name": "operator",
"kind": 32768,
"kindString": "Parameter",
@@ -15772,12 +17136,12 @@
},
"type": {
"type": "reference",
- "id": 285,
+ "id": 288,
"name": "FilterOperator"
}
},
{
- "id": 117,
+ "id": 120,
"name": "value",
"kind": 32768,
"kindString": "Parameter",
@@ -15808,7 +17172,7 @@
]
},
{
- "id": 177,
+ "id": 180,
"name": "nxl",
"kind": 2048,
"kindString": "Method",
@@ -15817,7 +17181,7 @@
},
"signatures": [
{
- "id": 178,
+ "id": 181,
"name": "nxl",
"kind": 4096,
"kindString": "Call signature",
@@ -15829,7 +17193,7 @@
},
"parameters": [
{
- "id": 179,
+ "id": 182,
"name": "column",
"kind": 32768,
"kindString": "Parameter",
@@ -15849,7 +17213,7 @@
}
},
{
- "id": 180,
+ "id": 183,
"name": "range",
"kind": 32768,
"kindString": "Parameter",
@@ -15880,7 +17244,7 @@
]
},
{
- "id": 181,
+ "id": 184,
"name": "nxr",
"kind": 2048,
"kindString": "Method",
@@ -15889,7 +17253,7 @@
},
"signatures": [
{
- "id": 182,
+ "id": 185,
"name": "nxr",
"kind": 4096,
"kindString": "Call signature",
@@ -15901,7 +17265,7 @@
},
"parameters": [
{
- "id": 183,
+ "id": 186,
"name": "column",
"kind": 32768,
"kindString": "Parameter",
@@ -15921,7 +17285,7 @@
}
},
{
- "id": 184,
+ "id": 187,
"name": "range",
"kind": 32768,
"kindString": "Parameter",
@@ -15952,7 +17316,7 @@
]
},
{
- "id": 118,
+ "id": 121,
"name": "or",
"kind": 2048,
"kindString": "Method",
@@ -15961,7 +17325,7 @@
},
"signatures": [
{
- "id": 119,
+ "id": 122,
"name": "or",
"kind": 4096,
"kindString": "Call signature",
@@ -15973,7 +17337,7 @@
},
"parameters": [
{
- "id": 120,
+ "id": 123,
"name": "filters",
"kind": 32768,
"kindString": "Parameter",
@@ -16004,7 +17368,7 @@
]
},
{
- "id": 235,
+ "id": 238,
"name": "order",
"kind": 2048,
"kindString": "Method",
@@ -16013,7 +17377,7 @@
},
"signatures": [
{
- "id": 236,
+ "id": 239,
"name": "order",
"kind": 4096,
"kindString": "Call signature",
@@ -16025,7 +17389,7 @@
},
"parameters": [
{
- "id": 237,
+ "id": 240,
"name": "column",
"kind": 32768,
"kindString": "Parameter",
@@ -16045,7 +17409,7 @@
}
},
{
- "id": 238,
+ "id": 241,
"name": "__namedParameters",
"kind": 32768,
"kindString": "Parameter",
@@ -16056,7 +17420,7 @@
"type": {
"type": "reflection",
"declaration": {
- "id": 239,
+ "id": 242,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -16065,7 +17429,7 @@
},
"children": [
{
- "id": 240,
+ "id": 243,
"name": "ascending",
"kind": 32,
"kindString": "Variable",
@@ -16089,7 +17453,7 @@
"defaultValue": "true"
},
{
- "id": 242,
+ "id": 245,
"name": "foreignTable",
"kind": 32,
"kindString": "Variable",
@@ -16121,7 +17485,7 @@
}
},
{
- "id": 241,
+ "id": 244,
"name": "nullsFirst",
"kind": 32,
"kindString": "Variable",
@@ -16150,9 +17514,9 @@
"title": "Variables",
"kind": 32,
"children": [
- 240,
- 242,
- 241
+ 243,
+ 245,
+ 244
]
}
],
@@ -16174,7 +17538,7 @@
},
"inheritedFrom": {
"type": "reference",
- "id": 64,
+ "id": 67,
"name": "PostgrestTransformBuilder.order"
}
}
@@ -16188,12 +17552,12 @@
],
"inheritedFrom": {
"type": "reference",
- "id": 64,
+ "id": 67,
"name": "PostgrestTransformBuilder.order"
}
},
{
- "id": 189,
+ "id": 192,
"name": "ov",
"kind": 2048,
"kindString": "Method",
@@ -16202,7 +17566,7 @@
},
"signatures": [
{
- "id": 190,
+ "id": 193,
"name": "ov",
"kind": 4096,
"kindString": "Call signature",
@@ -16214,7 +17578,7 @@
},
"parameters": [
{
- "id": 191,
+ "id": 194,
"name": "column",
"kind": 32768,
"kindString": "Parameter",
@@ -16234,7 +17598,7 @@
}
},
{
- "id": 192,
+ "id": 195,
"name": "value",
"kind": 32768,
"kindString": "Parameter",
@@ -16288,7 +17652,7 @@
]
},
{
- "id": 207,
+ "id": 210,
"name": "phfts",
"kind": 2048,
"kindString": "Method",
@@ -16297,7 +17661,7 @@
},
"signatures": [
{
- "id": 208,
+ "id": 211,
"name": "phfts",
"kind": 4096,
"kindString": "Call signature",
@@ -16309,7 +17673,7 @@
},
"parameters": [
{
- "id": 209,
+ "id": 212,
"name": "column",
"kind": 32768,
"kindString": "Parameter",
@@ -16329,7 +17693,7 @@
}
},
{
- "id": 210,
+ "id": 213,
"name": "query",
"kind": 32768,
"kindString": "Parameter",
@@ -16345,7 +17709,7 @@
}
},
{
- "id": 211,
+ "id": 214,
"name": "__namedParameters",
"kind": 32768,
"kindString": "Parameter",
@@ -16356,7 +17720,7 @@
"type": {
"type": "reflection",
"declaration": {
- "id": 212,
+ "id": 215,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -16365,7 +17729,7 @@
},
"children": [
{
- "id": 213,
+ "id": 216,
"name": "config",
"kind": 32,
"kindString": "Variable",
@@ -16402,7 +17766,7 @@
"title": "Variables",
"kind": 32,
"children": [
- 213
+ 216
]
}
],
@@ -16433,7 +17797,7 @@
]
},
{
- "id": 200,
+ "id": 203,
"name": "plfts",
"kind": 2048,
"kindString": "Method",
@@ -16442,7 +17806,7 @@
},
"signatures": [
{
- "id": 201,
+ "id": 204,
"name": "plfts",
"kind": 4096,
"kindString": "Call signature",
@@ -16454,7 +17818,7 @@
},
"parameters": [
{
- "id": 202,
+ "id": 205,
"name": "column",
"kind": 32768,
"kindString": "Parameter",
@@ -16474,7 +17838,7 @@
}
},
{
- "id": 203,
+ "id": 206,
"name": "query",
"kind": 32768,
"kindString": "Parameter",
@@ -16490,7 +17854,7 @@
}
},
{
- "id": 204,
+ "id": 207,
"name": "__namedParameters",
"kind": 32768,
"kindString": "Parameter",
@@ -16501,7 +17865,7 @@
"type": {
"type": "reflection",
"declaration": {
- "id": 205,
+ "id": 208,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -16510,7 +17874,7 @@
},
"children": [
{
- "id": 206,
+ "id": 209,
"name": "config",
"kind": 32,
"kindString": "Variable",
@@ -16547,7 +17911,7 @@
"title": "Variables",
"kind": 32,
"children": [
- 206
+ 209
]
}
],
@@ -16578,7 +17942,7 @@
]
},
{
- "id": 249,
+ "id": 252,
"name": "range",
"kind": 2048,
"kindString": "Method",
@@ -16587,7 +17951,7 @@
},
"signatures": [
{
- "id": 250,
+ "id": 253,
"name": "range",
"kind": 4096,
"kindString": "Call signature",
@@ -16599,7 +17963,7 @@
},
"parameters": [
{
- "id": 251,
+ "id": 254,
"name": "from",
"kind": 32768,
"kindString": "Parameter",
@@ -16615,7 +17979,7 @@
}
},
{
- "id": 252,
+ "id": 255,
"name": "to",
"kind": 32768,
"kindString": "Parameter",
@@ -16631,7 +17995,7 @@
}
},
{
- "id": 253,
+ "id": 256,
"name": "__namedParameters",
"kind": 32768,
"kindString": "Parameter",
@@ -16642,7 +18006,7 @@
"type": {
"type": "reflection",
"declaration": {
- "id": 254,
+ "id": 257,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -16651,7 +18015,7 @@
},
"children": [
{
- "id": 255,
+ "id": 258,
"name": "foreignTable",
"kind": 32,
"kindString": "Variable",
@@ -16664,8 +18028,8 @@
"sources": [
{
"fileName": "lib/PostgrestTransformBuilder.ts",
- "line": 81,
- "character": 18
+ "line": 75,
+ "character": 48
}
],
"type": {
@@ -16688,15 +18052,15 @@
"title": "Variables",
"kind": 32,
"children": [
- 255
+ 258
]
}
],
"sources": [
{
"fileName": "lib/PostgrestTransformBuilder.ts",
- "line": 80,
- "character": 15
+ "line": 75,
+ "character": 33
}
]
}
@@ -16710,7 +18074,7 @@
},
"inheritedFrom": {
"type": "reference",
- "id": 78,
+ "id": 81,
"name": "PostgrestTransformBuilder.range"
}
}
@@ -16718,18 +18082,18 @@
"sources": [
{
"fileName": "lib/PostgrestTransformBuilder.ts",
- "line": 78,
+ "line": 75,
"character": 7
}
],
"inheritedFrom": {
"type": "reference",
- "id": 78,
+ "id": 81,
"name": "PostgrestTransformBuilder.range"
}
},
{
- "id": 232,
+ "id": 235,
"name": "select",
"kind": 2048,
"kindString": "Method",
@@ -16738,7 +18102,7 @@
},
"signatures": [
{
- "id": 233,
+ "id": 236,
"name": "select",
"kind": 4096,
"kindString": "Call signature",
@@ -16750,7 +18114,7 @@
},
"parameters": [
{
- "id": 234,
+ "id": 237,
"name": "columns",
"kind": 32768,
"kindString": "Parameter",
@@ -16773,7 +18137,7 @@
},
"inheritedFrom": {
"type": "reference",
- "id": 61,
+ "id": 64,
"name": "PostgrestTransformBuilder.select"
}
}
@@ -16787,12 +18151,12 @@
],
"inheritedFrom": {
"type": "reference",
- "id": 61,
+ "id": 64,
"name": "PostgrestTransformBuilder.select"
}
},
{
- "id": 256,
+ "id": 259,
"name": "single",
"kind": 2048,
"kindString": "Method",
@@ -16801,7 +18165,7 @@
},
"signatures": [
{
- "id": 257,
+ "id": 260,
"name": "single",
"kind": 4096,
"kindString": "Call signature",
@@ -16816,7 +18180,7 @@
"typeArguments": [
{
"type": "reference",
- "id": 56,
+ "id": 59,
"typeArguments": [
{
"type": "typeParameter",
@@ -16830,7 +18194,7 @@
},
"inheritedFrom": {
"type": "reference",
- "id": 85,
+ "id": 88,
"name": "PostgrestTransformBuilder.single"
}
}
@@ -16838,18 +18202,18 @@
"sources": [
{
"fileName": "lib/PostgrestTransformBuilder.ts",
- "line": 95,
+ "line": 88,
"character": 8
}
],
"inheritedFrom": {
"type": "reference",
- "id": 85,
+ "id": 88,
"name": "PostgrestTransformBuilder.single"
}
},
{
- "id": 169,
+ "id": 172,
"name": "sl",
"kind": 2048,
"kindString": "Method",
@@ -16858,7 +18222,7 @@
},
"signatures": [
{
- "id": 170,
+ "id": 173,
"name": "sl",
"kind": 4096,
"kindString": "Call signature",
@@ -16870,7 +18234,7 @@
},
"parameters": [
{
- "id": 171,
+ "id": 174,
"name": "column",
"kind": 32768,
"kindString": "Parameter",
@@ -16890,7 +18254,7 @@
}
},
{
- "id": 172,
+ "id": 175,
"name": "range",
"kind": 32768,
"kindString": "Parameter",
@@ -16921,7 +18285,7 @@
]
},
{
- "id": 173,
+ "id": 176,
"name": "sr",
"kind": 2048,
"kindString": "Method",
@@ -16930,7 +18294,7 @@
},
"signatures": [
{
- "id": 174,
+ "id": 177,
"name": "sr",
"kind": 4096,
"kindString": "Call signature",
@@ -16942,7 +18306,7 @@
},
"parameters": [
{
- "id": 175,
+ "id": 178,
"name": "column",
"kind": 32768,
"kindString": "Parameter",
@@ -16962,7 +18326,7 @@
}
},
{
- "id": 176,
+ "id": 179,
"name": "range",
"kind": 32768,
"kindString": "Parameter",
@@ -16993,7 +18357,7 @@
]
},
{
- "id": 269,
+ "id": 272,
"name": "then",
"kind": 2048,
"kindString": "Method",
@@ -17002,7 +18366,7 @@
},
"signatures": [
{
- "id": 270,
+ "id": 273,
"name": "then",
"kind": 4096,
"kindString": "Call signature",
@@ -17011,7 +18375,7 @@
},
"typeParameter": [
{
- "id": 271,
+ "id": 274,
"name": "TResult1",
"kind": 131072,
"kindString": "Type parameter",
@@ -17020,7 +18384,7 @@
}
},
{
- "id": 272,
+ "id": 275,
"name": "TResult2",
"kind": 131072,
"kindString": "Type parameter",
@@ -17031,7 +18395,7 @@
],
"parameters": [
{
- "id": 273,
+ "id": 276,
"name": "onfulfilled",
"kind": 32768,
"kindString": "Parameter",
@@ -17045,7 +18409,7 @@
{
"type": "reflection",
"declaration": {
- "id": 274,
+ "id": 277,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -17054,7 +18418,7 @@
},
"signatures": [
{
- "id": 275,
+ "id": 278,
"name": "__call",
"kind": 4096,
"kindString": "Call signature",
@@ -17063,7 +18427,7 @@
},
"parameters": [
{
- "id": 276,
+ "id": 279,
"name": "value",
"kind": 32768,
"kindString": "Parameter",
@@ -17072,7 +18436,7 @@
},
"type": {
"type": "reference",
- "id": 54,
+ "id": 57,
"typeArguments": [
{
"type": "typeParameter",
@@ -17127,7 +18491,7 @@
"sources": [
{
"fileName": "lib/types.ts",
- "line": 60,
+ "line": 63,
"character": 9
}
]
@@ -17145,7 +18509,7 @@
}
},
{
- "id": 277,
+ "id": 280,
"name": "onrejected",
"kind": 32768,
"kindString": "Parameter",
@@ -17159,7 +18523,7 @@
{
"type": "reflection",
"declaration": {
- "id": 278,
+ "id": 281,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -17168,7 +18532,7 @@
},
"signatures": [
{
- "id": 279,
+ "id": 282,
"name": "__call",
"kind": 4096,
"kindString": "Call signature",
@@ -17177,7 +18541,7 @@
},
"parameters": [
{
- "id": 280,
+ "id": 283,
"name": "reason",
"kind": 32768,
"kindString": "Parameter",
@@ -17222,7 +18586,7 @@
"sources": [
{
"fileName": "lib/types.ts",
- "line": 63,
+ "line": 66,
"character": 18
}
]
@@ -17275,7 +18639,7 @@
},
"inheritedFrom": {
"type": "reference",
- "id": 42,
+ "id": 45,
"name": "PostgrestBuilder.then"
}
}
@@ -17283,18 +18647,18 @@
"sources": [
{
"fileName": "lib/types.ts",
- "line": 58,
+ "line": 61,
"character": 6
}
],
"inheritedFrom": {
"type": "reference",
- "id": 42,
+ "id": 45,
"name": "PostgrestBuilder.then"
}
},
{
- "id": 214,
+ "id": 217,
"name": "wfts",
"kind": 2048,
"kindString": "Method",
@@ -17303,7 +18667,7 @@
},
"signatures": [
{
- "id": 215,
+ "id": 218,
"name": "wfts",
"kind": 4096,
"kindString": "Call signature",
@@ -17315,7 +18679,7 @@
},
"parameters": [
{
- "id": 216,
+ "id": 219,
"name": "column",
"kind": 32768,
"kindString": "Parameter",
@@ -17335,7 +18699,7 @@
}
},
{
- "id": 217,
+ "id": 220,
"name": "query",
"kind": 32768,
"kindString": "Parameter",
@@ -17351,7 +18715,7 @@
}
},
{
- "id": 218,
+ "id": 221,
"name": "__namedParameters",
"kind": 32768,
"kindString": "Parameter",
@@ -17362,7 +18726,7 @@
"type": {
"type": "reflection",
"declaration": {
- "id": 219,
+ "id": 222,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -17371,7 +18735,7 @@
},
"children": [
{
- "id": 220,
+ "id": 223,
"name": "config",
"kind": 32,
"kindString": "Variable",
@@ -17408,7 +18772,7 @@
"title": "Variables",
"kind": 32,
"children": [
- 220
+ 223
]
}
],
@@ -17444,56 +18808,56 @@
"title": "Constructors",
"kind": 512,
"children": [
- 266
+ 269
]
},
{
"title": "Properties",
"kind": 1024,
"children": [
- 265,
- 260,
- 258,
- 264,
- 259
+ 268,
+ 263,
+ 261,
+ 267,
+ 262
]
},
{
"title": "Methods",
"kind": 2048,
"children": [
- 185,
- 165,
- 161,
+ 188,
+ 168,
+ 164,
+ 124,
+ 224,
+ 196,
+ 132,
+ 136,
+ 152,
+ 160,
+ 156,
+ 148,
+ 246,
+ 140,
+ 144,
+ 229,
+ 128,
+ 116,
+ 180,
+ 184,
121,
- 221,
- 193,
- 129,
- 133,
- 149,
- 157,
- 153,
- 145,
- 243,
- 137,
- 141,
- 226,
- 125,
- 113,
- 177,
- 181,
- 118,
+ 238,
+ 192,
+ 210,
+ 203,
+ 252,
235,
- 189,
- 207,
- 200,
- 249,
- 232,
- 256,
- 169,
- 173,
- 269,
- 214
+ 259,
+ 172,
+ 176,
+ 272,
+ 217
]
}
],
@@ -17507,7 +18871,7 @@
"extendedTypes": [
{
"type": "reference",
- "id": 59,
+ "id": 62,
"typeArguments": [
{
"type": "typeParameter",
@@ -17523,7 +18887,7 @@
"typeArguments": [
{
"type": "reference",
- "id": 54,
+ "id": 57,
"typeArguments": [
{
"type": "typeParameter",
@@ -17538,7 +18902,7 @@
]
},
{
- "id": 285,
+ "id": 288,
"name": "FilterOperator",
"kind": 4194304,
"kindString": "Type alias",
@@ -17645,7 +19009,7 @@
}
},
{
- "id": 281,
+ "id": 284,
"name": "cleanFilterArray",
"kind": 64,
"kindString": "Function",
@@ -17657,7 +19021,7 @@
},
"signatures": [
{
- "id": 282,
+ "id": 285,
"name": "cleanFilterArray",
"kind": 4096,
"kindString": "Call signature",
@@ -17667,7 +19031,7 @@
},
"typeParameter": [
{
- "id": 283,
+ "id": 286,
"name": "T",
"kind": 131072,
"kindString": "Type parameter",
@@ -17676,7 +19040,7 @@
],
"parameters": [
{
- "id": 284,
+ "id": 287,
"name": "filter",
"kind": 32768,
"kindString": "Parameter",
@@ -17721,21 +19085,21 @@
"title": "Classes",
"kind": 128,
"children": [
- 111
+ 114
]
},
{
"title": "Type aliases",
"kind": 4194304,
"children": [
- 285
+ 288
]
},
{
"title": "Functions",
"kind": 64,
"children": [
- 281
+ 284
]
}
],
@@ -17748,7 +19112,7 @@
]
},
{
- "id": 286,
+ "id": 289,
"name": "\"lib/PostgrestQueryBuilder\"",
"kind": 1,
"kindString": "Module",
@@ -17758,7 +19122,7 @@
"originalName": "/home/runner/work/postgrest-js/postgrest-js/src/lib/PostgrestQueryBuilder.ts",
"children": [
{
- "id": 287,
+ "id": 290,
"name": "PostgrestQueryBuilder",
"kind": 128,
"kindString": "Class",
@@ -17767,7 +19131,7 @@
},
"typeParameter": [
{
- "id": 288,
+ "id": 291,
"name": "T",
"kind": 131072,
"kindString": "Type parameter",
@@ -17778,7 +19142,7 @@
],
"children": [
{
- "id": 289,
+ "id": 292,
"name": "constructor",
"kind": 512,
"kindString": "Constructor",
@@ -17787,7 +19151,7 @@
},
"signatures": [
{
- "id": 290,
+ "id": 293,
"name": "new PostgrestQueryBuilder",
"kind": 16384,
"kindString": "Constructor signature",
@@ -17796,7 +19160,7 @@
},
"parameters": [
{
- "id": 291,
+ "id": 294,
"name": "url",
"kind": 32768,
"kindString": "Parameter",
@@ -17809,7 +19173,7 @@
}
},
{
- "id": 292,
+ "id": 295,
"name": "__namedParameters",
"kind": 32768,
"kindString": "Parameter",
@@ -17820,7 +19184,7 @@
"type": {
"type": "reflection",
"declaration": {
- "id": 293,
+ "id": 296,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -17829,7 +19193,7 @@
},
"children": [
{
- "id": 294,
+ "id": 297,
"name": "headers",
"kind": 32,
"kindString": "Variable",
@@ -17846,7 +19210,7 @@
"type": {
"type": "reflection",
"declaration": {
- "id": 295,
+ "id": 298,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -17855,7 +19219,7 @@
},
"indexSignature": [
{
- "id": 296,
+ "id": 299,
"name": "__index",
"kind": 8192,
"kindString": "Index signature",
@@ -17864,7 +19228,7 @@
},
"parameters": [
{
- "id": 297,
+ "id": 300,
"name": "key",
"kind": 32768,
"kindString": "Parameter",
@@ -17887,7 +19251,7 @@
}
},
{
- "id": 298,
+ "id": 301,
"name": "schema",
"kind": 32,
"kindString": "Variable",
@@ -17921,8 +19285,8 @@
"title": "Variables",
"kind": 32,
"children": [
- 294,
- 298
+ 297,
+ 301
]
}
],
@@ -17940,12 +19304,12 @@
],
"type": {
"type": "reference",
- "id": 287,
+ "id": 290,
"name": "PostgrestQueryBuilder"
},
"overwrites": {
"type": "reference",
- "id": 39,
+ "id": 42,
"name": "PostgrestBuilder.__constructor"
}
}
@@ -17959,12 +19323,12 @@
],
"overwrites": {
"type": "reference",
- "id": 39,
+ "id": 42,
"name": "PostgrestBuilder.__constructor"
}
},
{
- "id": 331,
+ "id": 345,
"name": "body",
"kind": 1024,
"kindString": "Property",
@@ -17976,7 +19340,7 @@
"sources": [
{
"fileName": "lib/types.ts",
- "line": 52,
+ "line": 55,
"character": 16
}
],
@@ -18010,12 +19374,12 @@
},
"inheritedFrom": {
"type": "reference",
- "id": 38,
+ "id": 41,
"name": "PostgrestBuilder.body"
}
},
{
- "id": 326,
+ "id": 340,
"name": "headers",
"kind": 1024,
"kindString": "Property",
@@ -18026,14 +19390,14 @@
"sources": [
{
"fileName": "lib/types.ts",
- "line": 50,
+ "line": 53,
"character": 19
}
],
"type": {
"type": "reflection",
"declaration": {
- "id": 327,
+ "id": 341,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -18042,7 +19406,7 @@
},
"indexSignature": [
{
- "id": 328,
+ "id": 342,
"name": "__index",
"kind": 8192,
"kindString": "Index signature",
@@ -18051,7 +19415,7 @@
},
"parameters": [
{
- "id": 329,
+ "id": 343,
"name": "key",
"kind": 32768,
"kindString": "Parameter",
@@ -18073,7 +19437,7 @@
"sources": [
{
"fileName": "lib/types.ts",
- "line": 50,
+ "line": 53,
"character": 21
}
]
@@ -18081,12 +19445,12 @@
},
"inheritedFrom": {
"type": "reference",
- "id": 33,
+ "id": 36,
"name": "PostgrestBuilder.headers"
}
},
{
- "id": 324,
+ "id": 338,
"name": "method",
"kind": 1024,
"kindString": "Property",
@@ -18097,7 +19461,7 @@
"sources": [
{
"fileName": "lib/types.ts",
- "line": 48,
+ "line": 51,
"character": 18
}
],
@@ -18128,12 +19492,12 @@
},
"inheritedFrom": {
"type": "reference",
- "id": 31,
+ "id": 34,
"name": "PostgrestBuilder.method"
}
},
{
- "id": 330,
+ "id": 344,
"name": "schema",
"kind": 1024,
"kindString": "Property",
@@ -18145,7 +19509,7 @@
"sources": [
{
"fileName": "lib/types.ts",
- "line": 51,
+ "line": 54,
"character": 18
}
],
@@ -18164,12 +19528,12 @@
},
"inheritedFrom": {
"type": "reference",
- "id": 37,
+ "id": 40,
"name": "PostgrestBuilder.schema"
}
},
{
- "id": 325,
+ "id": 339,
"name": "url",
"kind": 1024,
"kindString": "Property",
@@ -18180,7 +19544,7 @@
"sources": [
{
"fileName": "lib/types.ts",
- "line": 49,
+ "line": 52,
"character": 15
}
],
@@ -18190,12 +19554,12 @@
},
"inheritedFrom": {
"type": "reference",
- "id": 32,
+ "id": 35,
"name": "PostgrestBuilder.url"
}
},
{
- "id": 316,
+ "id": 325,
"name": "delete",
"kind": 2048,
"kindString": "Method",
@@ -18204,7 +19568,7 @@
},
"signatures": [
{
- "id": 317,
+ "id": 326,
"name": "delete",
"kind": 4096,
"kindString": "Call signature",
@@ -18216,7 +19580,7 @@
},
"parameters": [
{
- "id": 318,
+ "id": 327,
"name": "__namedParameters",
"kind": 32768,
"kindString": "Parameter",
@@ -18227,7 +19591,7 @@
"type": {
"type": "reflection",
"declaration": {
- "id": 319,
+ "id": 328,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -18236,7 +19600,45 @@
},
"children": [
{
- "id": 320,
+ "id": 330,
+ "name": "count",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "lib/PostgrestQueryBuilder.ts",
+ "line": 131,
+ "character": 9
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "intrinsic",
+ "name": "null"
+ },
+ {
+ "type": "stringLiteral",
+ "value": "exact"
+ },
+ {
+ "type": "stringLiteral",
+ "value": "planned"
+ },
+ {
+ "type": "stringLiteral",
+ "value": "estimated"
+ }
+ ]
+ },
+ "defaultValue": "null"
+ },
+ {
+ "id": 329,
"name": "returning",
"kind": 32,
"kindString": "Variable",
@@ -18249,7 +19651,7 @@
"sources": [
{
"fileName": "lib/PostgrestQueryBuilder.ts",
- "line": 95,
+ "line": 130,
"character": 13
}
],
@@ -18274,14 +19676,15 @@
"title": "Variables",
"kind": 32,
"children": [
- 320
+ 330,
+ 329
]
}
],
"sources": [
{
"fileName": "lib/PostgrestQueryBuilder.ts",
- "line": 94,
+ "line": 129,
"character": 9
}
]
@@ -18292,7 +19695,7 @@
],
"type": {
"type": "reference",
- "id": 111,
+ "id": 114,
"typeArguments": [
{
"type": "typeParameter",
@@ -18306,13 +19709,13 @@
"sources": [
{
"fileName": "lib/PostgrestQueryBuilder.ts",
- "line": 94,
+ "line": 129,
"character": 8
}
]
},
{
- "id": 302,
+ "id": 309,
"name": "insert",
"kind": 2048,
"kindString": "Method",
@@ -18321,7 +19724,7 @@
},
"signatures": [
{
- "id": 303,
+ "id": 310,
"name": "insert",
"kind": 4096,
"kindString": "Call signature",
@@ -18333,7 +19736,7 @@
},
"parameters": [
{
- "id": 304,
+ "id": 311,
"name": "values",
"kind": 32768,
"kindString": "Parameter",
@@ -18373,7 +19776,7 @@
}
},
{
- "id": 305,
+ "id": 312,
"name": "__namedParameters",
"kind": 32768,
"kindString": "Parameter",
@@ -18384,7 +19787,7 @@
"type": {
"type": "reflection",
"declaration": {
- "id": 306,
+ "id": 313,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -18393,7 +19796,45 @@
},
"children": [
{
- "id": 308,
+ "id": 317,
+ "name": "count",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "lib/PostgrestQueryBuilder.ts",
+ "line": 72,
+ "character": 11
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "intrinsic",
+ "name": "null"
+ },
+ {
+ "type": "stringLiteral",
+ "value": "exact"
+ },
+ {
+ "type": "stringLiteral",
+ "value": "planned"
+ },
+ {
+ "type": "stringLiteral",
+ "value": "estimated"
+ }
+ ]
+ },
+ "defaultValue": "null"
+ },
+ {
+ "id": 315,
"name": "onConflict",
"kind": 32,
"kindString": "Variable",
@@ -18406,7 +19847,7 @@
"sources": [
{
"fileName": "lib/PostgrestQueryBuilder.ts",
- "line": 53,
+ "line": 70,
"character": 16
}
],
@@ -18425,7 +19866,7 @@
}
},
{
- "id": 309,
+ "id": 316,
"name": "returning",
"kind": 32,
"kindString": "Variable",
@@ -18438,7 +19879,7 @@
"sources": [
{
"fileName": "lib/PostgrestQueryBuilder.ts",
- "line": 54,
+ "line": 71,
"character": 15
}
],
@@ -18458,7 +19899,7 @@
"defaultValue": "\"representation\""
},
{
- "id": 307,
+ "id": 314,
"name": "upsert",
"kind": 32,
"kindString": "Variable",
@@ -18471,7 +19912,7 @@
"sources": [
{
"fileName": "lib/PostgrestQueryBuilder.ts",
- "line": 52,
+ "line": 69,
"character": 12
}
],
@@ -18487,16 +19928,17 @@
"title": "Variables",
"kind": 32,
"children": [
- 308,
- 309,
- 307
+ 317,
+ 315,
+ 316,
+ 314
]
}
],
"sources": [
{
"fileName": "lib/PostgrestQueryBuilder.ts",
- "line": 50,
+ "line": 67,
"character": 38
}
]
@@ -18507,7 +19949,7 @@
],
"type": {
"type": "reference",
- "id": 111,
+ "id": 114,
"typeArguments": [
{
"type": "typeParameter",
@@ -18521,13 +19963,13 @@
"sources": [
{
"fileName": "lib/PostgrestQueryBuilder.ts",
- "line": 49,
+ "line": 66,
"character": 8
}
]
},
{
- "id": 299,
+ "id": 302,
"name": "select",
"kind": 2048,
"kindString": "Method",
@@ -18536,7 +19978,7 @@
},
"signatures": [
{
- "id": 300,
+ "id": 303,
"name": "select",
"kind": 4096,
"kindString": "Call signature",
@@ -18548,7 +19990,7 @@
},
"parameters": [
{
- "id": 301,
+ "id": 304,
"name": "columns",
"kind": 32768,
"kindString": "Parameter",
@@ -18556,18 +19998,125 @@
"isExported": true
},
"comment": {
- "text": "The columns to retrieve, separated by commas.\n"
+ "text": "The columns to retrieve, separated by commas."
},
"type": {
"type": "intrinsic",
"name": "string"
},
"defaultValue": "\"*\""
+ },
+ {
+ "id": 305,
+ "name": "__namedParameters",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true
+ },
+ "originalName": "__1",
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 306,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {
+ "isExported": true
+ },
+ "children": [
+ {
+ "id": 308,
+ "name": "count",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {
+ "isExported": true
+ },
+ "comment": {
+ "text": "Count algorithm to use to count rows in a table.\n"
+ },
+ "sources": [
+ {
+ "fileName": "lib/PostgrestQueryBuilder.ts",
+ "line": 27,
+ "character": 11
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "intrinsic",
+ "name": "null"
+ },
+ {
+ "type": "stringLiteral",
+ "value": "exact"
+ },
+ {
+ "type": "stringLiteral",
+ "value": "planned"
+ },
+ {
+ "type": "stringLiteral",
+ "value": "estimated"
+ }
+ ]
+ },
+ "defaultValue": "null"
+ },
+ {
+ "id": 307,
+ "name": "head",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {
+ "isExported": true
+ },
+ "comment": {
+ "text": "When set to true, select will void data."
+ },
+ "sources": [
+ {
+ "fileName": "lib/PostgrestQueryBuilder.ts",
+ "line": 26,
+ "character": 10
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "boolean"
+ },
+ "defaultValue": "false"
+ }
+ ],
+ "groups": [
+ {
+ "title": "Variables",
+ "kind": 32,
+ "children": [
+ 308,
+ 307
+ ]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "lib/PostgrestQueryBuilder.ts",
+ "line": 24,
+ "character": 18
+ }
+ ]
+ }
+ },
+ "defaultValue": "{}"
}
],
"type": {
"type": "reference",
- "id": 111,
+ "id": 114,
"typeArguments": [
{
"type": "typeParameter",
@@ -18581,13 +20130,13 @@
"sources": [
{
"fileName": "lib/PostgrestQueryBuilder.ts",
- "line": 21,
+ "line": 23,
"character": 8
}
]
},
{
- "id": 332,
+ "id": 346,
"name": "then",
"kind": 2048,
"kindString": "Method",
@@ -18596,7 +20145,7 @@
},
"signatures": [
{
- "id": 333,
+ "id": 347,
"name": "then",
"kind": 4096,
"kindString": "Call signature",
@@ -18605,7 +20154,7 @@
},
"typeParameter": [
{
- "id": 334,
+ "id": 348,
"name": "TResult1",
"kind": 131072,
"kindString": "Type parameter",
@@ -18614,7 +20163,7 @@
}
},
{
- "id": 335,
+ "id": 349,
"name": "TResult2",
"kind": 131072,
"kindString": "Type parameter",
@@ -18625,7 +20174,7 @@
],
"parameters": [
{
- "id": 336,
+ "id": 350,
"name": "onfulfilled",
"kind": 32768,
"kindString": "Parameter",
@@ -18639,7 +20188,7 @@
{
"type": "reflection",
"declaration": {
- "id": 337,
+ "id": 351,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -18648,7 +20197,7 @@
},
"signatures": [
{
- "id": 338,
+ "id": 352,
"name": "__call",
"kind": 4096,
"kindString": "Call signature",
@@ -18657,7 +20206,7 @@
},
"parameters": [
{
- "id": 339,
+ "id": 353,
"name": "value",
"kind": 32768,
"kindString": "Parameter",
@@ -18666,7 +20215,7 @@
},
"type": {
"type": "reference",
- "id": 54,
+ "id": 57,
"typeArguments": [
{
"type": "typeParameter",
@@ -18721,7 +20270,7 @@
"sources": [
{
"fileName": "lib/types.ts",
- "line": 60,
+ "line": 63,
"character": 9
}
]
@@ -18739,7 +20288,7 @@
}
},
{
- "id": 340,
+ "id": 354,
"name": "onrejected",
"kind": 32768,
"kindString": "Parameter",
@@ -18753,7 +20302,7 @@
{
"type": "reflection",
"declaration": {
- "id": 341,
+ "id": 355,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -18762,7 +20311,7 @@
},
"signatures": [
{
- "id": 342,
+ "id": 356,
"name": "__call",
"kind": 4096,
"kindString": "Call signature",
@@ -18771,7 +20320,7 @@
},
"parameters": [
{
- "id": 343,
+ "id": 357,
"name": "reason",
"kind": 32768,
"kindString": "Parameter",
@@ -18816,7 +20365,7 @@
"sources": [
{
"fileName": "lib/types.ts",
- "line": 63,
+ "line": 66,
"character": 18
}
]
@@ -18869,7 +20418,7 @@
},
"inheritedFrom": {
"type": "reference",
- "id": 42,
+ "id": 45,
"name": "PostgrestBuilder.then"
}
}
@@ -18877,18 +20426,18 @@
"sources": [
{
"fileName": "lib/types.ts",
- "line": 58,
+ "line": 61,
"character": 6
}
],
"inheritedFrom": {
"type": "reference",
- "id": 42,
+ "id": 45,
"name": "PostgrestBuilder.then"
}
},
{
- "id": 310,
+ "id": 318,
"name": "update",
"kind": 2048,
"kindString": "Method",
@@ -18897,7 +20446,7 @@
},
"signatures": [
{
- "id": 311,
+ "id": 319,
"name": "update",
"kind": 4096,
"kindString": "Call signature",
@@ -18909,7 +20458,7 @@
},
"parameters": [
{
- "id": 312,
+ "id": 320,
"name": "values",
"kind": 32768,
"kindString": "Parameter",
@@ -18931,7 +20480,7 @@
}
},
{
- "id": 313,
+ "id": 321,
"name": "__namedParameters",
"kind": 32768,
"kindString": "Parameter",
@@ -18942,7 +20491,7 @@
"type": {
"type": "reflection",
"declaration": {
- "id": 314,
+ "id": 322,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -18951,7 +20500,45 @@
},
"children": [
{
- "id": 315,
+ "id": 324,
+ "name": "count",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "lib/PostgrestQueryBuilder.ts",
+ "line": 106,
+ "character": 11
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "intrinsic",
+ "name": "null"
+ },
+ {
+ "type": "stringLiteral",
+ "value": "exact"
+ },
+ {
+ "type": "stringLiteral",
+ "value": "planned"
+ },
+ {
+ "type": "stringLiteral",
+ "value": "estimated"
+ }
+ ]
+ },
+ "defaultValue": "null"
+ },
+ {
+ "id": 323,
"name": "returning",
"kind": 32,
"kindString": "Variable",
@@ -18964,7 +20551,7 @@
"sources": [
{
"fileName": "lib/PostgrestQueryBuilder.ts",
- "line": 81,
+ "line": 105,
"character": 15
}
],
@@ -18989,14 +20576,15 @@
"title": "Variables",
"kind": 32,
"children": [
- 315
+ 324,
+ 323
]
}
],
"sources": [
{
"fileName": "lib/PostgrestQueryBuilder.ts",
- "line": 80,
+ "line": 103,
"character": 23
}
]
@@ -19007,7 +20595,7 @@
],
"type": {
"type": "reference",
- "id": 111,
+ "id": 114,
"typeArguments": [
{
"type": "typeParameter",
@@ -19021,7 +20609,7 @@
"sources": [
{
"fileName": "lib/PostgrestQueryBuilder.ts",
- "line": 79,
+ "line": 102,
"character": 8
}
]
@@ -19032,29 +20620,29 @@
"title": "Constructors",
"kind": 512,
"children": [
- 289
+ 292
]
},
{
"title": "Properties",
"kind": 1024,
"children": [
- 331,
- 326,
- 324,
- 330,
- 325
+ 345,
+ 340,
+ 338,
+ 344,
+ 339
]
},
{
"title": "Methods",
"kind": 2048,
"children": [
- 316,
+ 325,
+ 309,
302,
- 299,
- 332,
- 310
+ 346,
+ 318
]
}
],
@@ -19068,7 +20656,7 @@
"extendedTypes": [
{
"type": "reference",
- "id": 29,
+ "id": 32,
"typeArguments": [
{
"type": "typeParameter",
@@ -19084,7 +20672,7 @@
"typeArguments": [
{
"type": "reference",
- "id": 54,
+ "id": 57,
"typeArguments": [
{
"type": "typeParameter",
@@ -19104,7 +20692,7 @@
"title": "Classes",
"kind": 128,
"children": [
- 287
+ 290
]
}
],
@@ -19117,7 +20705,7 @@
]
},
{
- "id": 58,
+ "id": 61,
"name": "\"lib/PostgrestTransformBuilder\"",
"kind": 1,
"kindString": "Module",
@@ -19127,7 +20715,7 @@
"originalName": "/home/runner/work/postgrest-js/postgrest-js/src/lib/PostgrestTransformBuilder.ts",
"children": [
{
- "id": 59,
+ "id": 62,
"name": "PostgrestTransformBuilder",
"kind": 128,
"kindString": "Class",
@@ -19139,7 +20727,7 @@
},
"typeParameter": [
{
- "id": 60,
+ "id": 63,
"name": "T",
"kind": 131072,
"kindString": "Type parameter",
@@ -19150,7 +20738,7 @@
],
"children": [
{
- "id": 95,
+ "id": 98,
"name": "constructor",
"kind": 512,
"kindString": "Constructor",
@@ -19159,7 +20747,7 @@
},
"signatures": [
{
- "id": 96,
+ "id": 99,
"name": "new PostgrestTransformBuilder",
"kind": 16384,
"kindString": "Constructor signature",
@@ -19168,7 +20756,7 @@
},
"parameters": [
{
- "id": 97,
+ "id": 100,
"name": "builder",
"kind": 32768,
"kindString": "Parameter",
@@ -19177,7 +20765,7 @@
},
"type": {
"type": "reference",
- "id": 29,
+ "id": 32,
"typeArguments": [
{
"type": "typeParameter",
@@ -19190,12 +20778,12 @@
],
"type": {
"type": "reference",
- "id": 59,
+ "id": 62,
"name": "PostgrestTransformBuilder"
},
"inheritedFrom": {
"type": "reference",
- "id": 39,
+ "id": 42,
"name": "PostgrestBuilder.__constructor"
}
}
@@ -19203,18 +20791,18 @@
"sources": [
{
"fileName": "lib/types.ts",
- "line": 52,
+ "line": 55,
"character": 44
}
],
"inheritedFrom": {
"type": "reference",
- "id": 39,
+ "id": 42,
"name": "PostgrestBuilder.__constructor"
}
},
{
- "id": 94,
+ "id": 97,
"name": "body",
"kind": 1024,
"kindString": "Property",
@@ -19226,7 +20814,7 @@
"sources": [
{
"fileName": "lib/types.ts",
- "line": 52,
+ "line": 55,
"character": 16
}
],
@@ -19260,12 +20848,12 @@
},
"inheritedFrom": {
"type": "reference",
- "id": 38,
+ "id": 41,
"name": "PostgrestBuilder.body"
}
},
{
- "id": 89,
+ "id": 92,
"name": "headers",
"kind": 1024,
"kindString": "Property",
@@ -19276,14 +20864,14 @@
"sources": [
{
"fileName": "lib/types.ts",
- "line": 50,
+ "line": 53,
"character": 19
}
],
"type": {
"type": "reflection",
"declaration": {
- "id": 90,
+ "id": 93,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -19292,7 +20880,7 @@
},
"indexSignature": [
{
- "id": 91,
+ "id": 94,
"name": "__index",
"kind": 8192,
"kindString": "Index signature",
@@ -19301,7 +20889,7 @@
},
"parameters": [
{
- "id": 92,
+ "id": 95,
"name": "key",
"kind": 32768,
"kindString": "Parameter",
@@ -19323,7 +20911,7 @@
"sources": [
{
"fileName": "lib/types.ts",
- "line": 50,
+ "line": 53,
"character": 21
}
]
@@ -19331,12 +20919,12 @@
},
"inheritedFrom": {
"type": "reference",
- "id": 33,
+ "id": 36,
"name": "PostgrestBuilder.headers"
}
},
{
- "id": 87,
+ "id": 90,
"name": "method",
"kind": 1024,
"kindString": "Property",
@@ -19347,7 +20935,7 @@
"sources": [
{
"fileName": "lib/types.ts",
- "line": 48,
+ "line": 51,
"character": 18
}
],
@@ -19378,12 +20966,12 @@
},
"inheritedFrom": {
"type": "reference",
- "id": 31,
+ "id": 34,
"name": "PostgrestBuilder.method"
}
},
{
- "id": 93,
+ "id": 96,
"name": "schema",
"kind": 1024,
"kindString": "Property",
@@ -19395,7 +20983,7 @@
"sources": [
{
"fileName": "lib/types.ts",
- "line": 51,
+ "line": 54,
"character": 18
}
],
@@ -19414,12 +21002,12 @@
},
"inheritedFrom": {
"type": "reference",
- "id": 37,
+ "id": 40,
"name": "PostgrestBuilder.schema"
}
},
{
- "id": 88,
+ "id": 91,
"name": "url",
"kind": 1024,
"kindString": "Property",
@@ -19430,7 +21018,7 @@
"sources": [
{
"fileName": "lib/types.ts",
- "line": 49,
+ "line": 52,
"character": 15
}
],
@@ -19440,12 +21028,12 @@
},
"inheritedFrom": {
"type": "reference",
- "id": 32,
+ "id": 35,
"name": "PostgrestBuilder.url"
}
},
{
- "id": 72,
+ "id": 75,
"name": "limit",
"kind": 2048,
"kindString": "Method",
@@ -19454,7 +21042,7 @@
},
"signatures": [
{
- "id": 73,
+ "id": 76,
"name": "limit",
"kind": 4096,
"kindString": "Call signature",
@@ -19466,7 +21054,7 @@
},
"parameters": [
{
- "id": 74,
+ "id": 77,
"name": "count",
"kind": 32768,
"kindString": "Parameter",
@@ -19482,7 +21070,7 @@
}
},
{
- "id": 75,
+ "id": 78,
"name": "__namedParameters",
"kind": 32768,
"kindString": "Parameter",
@@ -19493,7 +21081,7 @@
"type": {
"type": "reflection",
"declaration": {
- "id": 76,
+ "id": 79,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -19502,7 +21090,7 @@
},
"children": [
{
- "id": 77,
+ "id": 80,
"name": "foreignTable",
"kind": 32,
"kindString": "Variable",
@@ -19515,8 +21103,8 @@
"sources": [
{
"fileName": "lib/PostgrestTransformBuilder.ts",
- "line": 64,
- "character": 18
+ "line": 62,
+ "character": 37
}
],
"type": {
@@ -19539,15 +21127,15 @@
"title": "Variables",
"kind": 32,
"children": [
- 77
+ 80
]
}
],
"sources": [
{
"fileName": "lib/PostgrestTransformBuilder.ts",
- "line": 63,
- "character": 18
+ "line": 62,
+ "character": 22
}
]
}
@@ -19570,7 +21158,7 @@
]
},
{
- "id": 64,
+ "id": 67,
"name": "order",
"kind": 2048,
"kindString": "Method",
@@ -19579,7 +21167,7 @@
},
"signatures": [
{
- "id": 65,
+ "id": 68,
"name": "order",
"kind": 4096,
"kindString": "Call signature",
@@ -19591,7 +21179,7 @@
},
"parameters": [
{
- "id": 66,
+ "id": 69,
"name": "column",
"kind": 32768,
"kindString": "Parameter",
@@ -19611,7 +21199,7 @@
}
},
{
- "id": 67,
+ "id": 70,
"name": "__namedParameters",
"kind": 32768,
"kindString": "Parameter",
@@ -19622,7 +21210,7 @@
"type": {
"type": "reflection",
"declaration": {
- "id": 68,
+ "id": 71,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -19631,7 +21219,7 @@
},
"children": [
{
- "id": 69,
+ "id": 72,
"name": "ascending",
"kind": 32,
"kindString": "Variable",
@@ -19655,7 +21243,7 @@
"defaultValue": "true"
},
{
- "id": 71,
+ "id": 74,
"name": "foreignTable",
"kind": 32,
"kindString": "Variable",
@@ -19687,7 +21275,7 @@
}
},
{
- "id": 70,
+ "id": 73,
"name": "nullsFirst",
"kind": 32,
"kindString": "Variable",
@@ -19716,9 +21304,9 @@
"title": "Variables",
"kind": 32,
"children": [
- 69,
- 71,
- 70
+ 72,
+ 74,
+ 73
]
}
],
@@ -19749,7 +21337,7 @@
]
},
{
- "id": 78,
+ "id": 81,
"name": "range",
"kind": 2048,
"kindString": "Method",
@@ -19758,7 +21346,7 @@
},
"signatures": [
{
- "id": 79,
+ "id": 82,
"name": "range",
"kind": 4096,
"kindString": "Call signature",
@@ -19770,7 +21358,7 @@
},
"parameters": [
{
- "id": 80,
+ "id": 83,
"name": "from",
"kind": 32768,
"kindString": "Parameter",
@@ -19786,7 +21374,7 @@
}
},
{
- "id": 81,
+ "id": 84,
"name": "to",
"kind": 32768,
"kindString": "Parameter",
@@ -19802,7 +21390,7 @@
}
},
{
- "id": 82,
+ "id": 85,
"name": "__namedParameters",
"kind": 32768,
"kindString": "Parameter",
@@ -19813,7 +21401,7 @@
"type": {
"type": "reflection",
"declaration": {
- "id": 83,
+ "id": 86,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -19822,7 +21410,7 @@
},
"children": [
{
- "id": 84,
+ "id": 87,
"name": "foreignTable",
"kind": 32,
"kindString": "Variable",
@@ -19835,8 +21423,8 @@
"sources": [
{
"fileName": "lib/PostgrestTransformBuilder.ts",
- "line": 81,
- "character": 18
+ "line": 75,
+ "character": 48
}
],
"type": {
@@ -19859,15 +21447,15 @@
"title": "Variables",
"kind": 32,
"children": [
- 84
+ 87
]
}
],
"sources": [
{
"fileName": "lib/PostgrestTransformBuilder.ts",
- "line": 80,
- "character": 15
+ "line": 75,
+ "character": 33
}
]
}
@@ -19884,13 +21472,13 @@
"sources": [
{
"fileName": "lib/PostgrestTransformBuilder.ts",
- "line": 78,
+ "line": 75,
"character": 7
}
]
},
{
- "id": 61,
+ "id": 64,
"name": "select",
"kind": 2048,
"kindString": "Method",
@@ -19899,7 +21487,7 @@
},
"signatures": [
{
- "id": 62,
+ "id": 65,
"name": "select",
"kind": 4096,
"kindString": "Call signature",
@@ -19911,7 +21499,7 @@
},
"parameters": [
{
- "id": 63,
+ "id": 66,
"name": "columns",
"kind": 32768,
"kindString": "Parameter",
@@ -19943,7 +21531,7 @@
]
},
{
- "id": 85,
+ "id": 88,
"name": "single",
"kind": 2048,
"kindString": "Method",
@@ -19952,7 +21540,7 @@
},
"signatures": [
{
- "id": 86,
+ "id": 89,
"name": "single",
"kind": 4096,
"kindString": "Call signature",
@@ -19967,7 +21555,7 @@
"typeArguments": [
{
"type": "reference",
- "id": 56,
+ "id": 59,
"typeArguments": [
{
"type": "typeParameter",
@@ -19984,13 +21572,13 @@
"sources": [
{
"fileName": "lib/PostgrestTransformBuilder.ts",
- "line": 95,
+ "line": 88,
"character": 8
}
]
},
{
- "id": 98,
+ "id": 101,
"name": "then",
"kind": 2048,
"kindString": "Method",
@@ -19999,7 +21587,7 @@
},
"signatures": [
{
- "id": 99,
+ "id": 102,
"name": "then",
"kind": 4096,
"kindString": "Call signature",
@@ -20008,7 +21596,7 @@
},
"typeParameter": [
{
- "id": 100,
+ "id": 103,
"name": "TResult1",
"kind": 131072,
"kindString": "Type parameter",
@@ -20017,7 +21605,7 @@
}
},
{
- "id": 101,
+ "id": 104,
"name": "TResult2",
"kind": 131072,
"kindString": "Type parameter",
@@ -20028,7 +21616,7 @@
],
"parameters": [
{
- "id": 102,
+ "id": 105,
"name": "onfulfilled",
"kind": 32768,
"kindString": "Parameter",
@@ -20042,7 +21630,7 @@
{
"type": "reflection",
"declaration": {
- "id": 103,
+ "id": 106,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -20051,7 +21639,7 @@
},
"signatures": [
{
- "id": 104,
+ "id": 107,
"name": "__call",
"kind": 4096,
"kindString": "Call signature",
@@ -20060,7 +21648,7 @@
},
"parameters": [
{
- "id": 105,
+ "id": 108,
"name": "value",
"kind": 32768,
"kindString": "Parameter",
@@ -20069,7 +21657,7 @@
},
"type": {
"type": "reference",
- "id": 54,
+ "id": 57,
"typeArguments": [
{
"type": "typeParameter",
@@ -20124,7 +21712,7 @@
"sources": [
{
"fileName": "lib/types.ts",
- "line": 60,
+ "line": 63,
"character": 9
}
]
@@ -20142,7 +21730,7 @@
}
},
{
- "id": 106,
+ "id": 109,
"name": "onrejected",
"kind": 32768,
"kindString": "Parameter",
@@ -20156,7 +21744,7 @@
{
"type": "reflection",
"declaration": {
- "id": 107,
+ "id": 110,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -20165,7 +21753,7 @@
},
"signatures": [
{
- "id": 108,
+ "id": 111,
"name": "__call",
"kind": 4096,
"kindString": "Call signature",
@@ -20174,7 +21762,7 @@
},
"parameters": [
{
- "id": 109,
+ "id": 112,
"name": "reason",
"kind": 32768,
"kindString": "Parameter",
@@ -20219,7 +21807,7 @@
"sources": [
{
"fileName": "lib/types.ts",
- "line": 63,
+ "line": 66,
"character": 18
}
]
@@ -20272,7 +21860,7 @@
},
"inheritedFrom": {
"type": "reference",
- "id": 42,
+ "id": 45,
"name": "PostgrestBuilder.then"
}
}
@@ -20280,13 +21868,13 @@
"sources": [
{
"fileName": "lib/types.ts",
- "line": 58,
+ "line": 61,
"character": 6
}
],
"inheritedFrom": {
"type": "reference",
- "id": 42,
+ "id": 45,
"name": "PostgrestBuilder.then"
}
}
@@ -20296,30 +21884,30 @@
"title": "Constructors",
"kind": 512,
"children": [
- 95
+ 98
]
},
{
"title": "Properties",
"kind": 1024,
"children": [
- 94,
- 89,
- 87,
- 93,
- 88
+ 97,
+ 92,
+ 90,
+ 96,
+ 91
]
},
{
"title": "Methods",
"kind": 2048,
"children": [
- 72,
+ 75,
+ 67,
+ 81,
64,
- 78,
- 61,
- 85,
- 98
+ 88,
+ 101
]
}
],
@@ -20333,7 +21921,7 @@
"extendedTypes": [
{
"type": "reference",
- "id": 29,
+ "id": 32,
"typeArguments": [
{
"type": "typeParameter",
@@ -20346,7 +21934,7 @@
"extendedBy": [
{
"type": "reference",
- "id": 111,
+ "id": 114,
"name": "PostgrestFilterBuilder"
}
],
@@ -20356,7 +21944,7 @@
"typeArguments": [
{
"type": "reference",
- "id": 54,
+ "id": 57,
"typeArguments": [
{
"type": "typeParameter",
@@ -20376,7 +21964,7 @@
"title": "Classes",
"kind": 128,
"children": [
- 59
+ 62
]
}
],
@@ -20399,7 +21987,7 @@
"originalName": "/home/runner/work/postgrest-js/postgrest-js/src/lib/types.ts",
"children": [
{
- "id": 29,
+ "id": 32,
"name": "PostgrestBuilder",
"kind": 128,
"kindString": "Class",
@@ -20409,7 +21997,7 @@
},
"typeParameter": [
{
- "id": 30,
+ "id": 33,
"name": "T",
"kind": 131072,
"kindString": "Type parameter",
@@ -20420,7 +22008,7 @@
],
"children": [
{
- "id": 39,
+ "id": 42,
"name": "constructor",
"kind": 512,
"kindString": "Constructor",
@@ -20429,7 +22017,7 @@
},
"signatures": [
{
- "id": 40,
+ "id": 43,
"name": "new PostgrestBuilder",
"kind": 16384,
"kindString": "Constructor signature",
@@ -20438,7 +22026,7 @@
},
"parameters": [
{
- "id": 41,
+ "id": 44,
"name": "builder",
"kind": 32768,
"kindString": "Parameter",
@@ -20447,7 +22035,7 @@
},
"type": {
"type": "reference",
- "id": 29,
+ "id": 32,
"typeArguments": [
{
"type": "typeParameter",
@@ -20460,7 +22048,7 @@
],
"type": {
"type": "reference",
- "id": 29,
+ "id": 32,
"name": "PostgrestBuilder"
}
}
@@ -20468,13 +22056,13 @@
"sources": [
{
"fileName": "lib/types.ts",
- "line": 52,
+ "line": 55,
"character": 44
}
]
},
{
- "id": 38,
+ "id": 41,
"name": "body",
"kind": 1024,
"kindString": "Property",
@@ -20486,7 +22074,7 @@
"sources": [
{
"fileName": "lib/types.ts",
- "line": 52,
+ "line": 55,
"character": 16
}
],
@@ -20520,7 +22108,7 @@
}
},
{
- "id": 33,
+ "id": 36,
"name": "headers",
"kind": 1024,
"kindString": "Property",
@@ -20531,14 +22119,14 @@
"sources": [
{
"fileName": "lib/types.ts",
- "line": 50,
+ "line": 53,
"character": 19
}
],
"type": {
"type": "reflection",
"declaration": {
- "id": 34,
+ "id": 37,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -20547,7 +22135,7 @@
},
"indexSignature": [
{
- "id": 35,
+ "id": 38,
"name": "__index",
"kind": 8192,
"kindString": "Index signature",
@@ -20556,7 +22144,7 @@
},
"parameters": [
{
- "id": 36,
+ "id": 39,
"name": "key",
"kind": 32768,
"kindString": "Parameter",
@@ -20578,7 +22166,7 @@
"sources": [
{
"fileName": "lib/types.ts",
- "line": 50,
+ "line": 53,
"character": 21
}
]
@@ -20586,7 +22174,7 @@
}
},
{
- "id": 31,
+ "id": 34,
"name": "method",
"kind": 1024,
"kindString": "Property",
@@ -20597,7 +22185,7 @@
"sources": [
{
"fileName": "lib/types.ts",
- "line": 48,
+ "line": 51,
"character": 18
}
],
@@ -20628,7 +22216,7 @@
}
},
{
- "id": 37,
+ "id": 40,
"name": "schema",
"kind": 1024,
"kindString": "Property",
@@ -20640,7 +22228,7 @@
"sources": [
{
"fileName": "lib/types.ts",
- "line": 51,
+ "line": 54,
"character": 18
}
],
@@ -20659,7 +22247,7 @@
}
},
{
- "id": 32,
+ "id": 35,
"name": "url",
"kind": 1024,
"kindString": "Property",
@@ -20670,7 +22258,7 @@
"sources": [
{
"fileName": "lib/types.ts",
- "line": 49,
+ "line": 52,
"character": 15
}
],
@@ -20680,7 +22268,7 @@
}
},
{
- "id": 42,
+ "id": 45,
"name": "then",
"kind": 2048,
"kindString": "Method",
@@ -20689,7 +22277,7 @@
},
"signatures": [
{
- "id": 43,
+ "id": 46,
"name": "then",
"kind": 4096,
"kindString": "Call signature",
@@ -20698,7 +22286,7 @@
},
"typeParameter": [
{
- "id": 44,
+ "id": 47,
"name": "TResult1",
"kind": 131072,
"kindString": "Type parameter",
@@ -20707,7 +22295,7 @@
}
},
{
- "id": 45,
+ "id": 48,
"name": "TResult2",
"kind": 131072,
"kindString": "Type parameter",
@@ -20718,7 +22306,7 @@
],
"parameters": [
{
- "id": 46,
+ "id": 49,
"name": "onfulfilled",
"kind": 32768,
"kindString": "Parameter",
@@ -20732,7 +22320,7 @@
{
"type": "reflection",
"declaration": {
- "id": 47,
+ "id": 50,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -20741,7 +22329,7 @@
},
"signatures": [
{
- "id": 48,
+ "id": 51,
"name": "__call",
"kind": 4096,
"kindString": "Call signature",
@@ -20750,7 +22338,7 @@
},
"parameters": [
{
- "id": 49,
+ "id": 52,
"name": "value",
"kind": 32768,
"kindString": "Parameter",
@@ -20759,7 +22347,7 @@
},
"type": {
"type": "reference",
- "id": 54,
+ "id": 57,
"typeArguments": [
{
"type": "typeParameter",
@@ -20814,7 +22402,7 @@
"sources": [
{
"fileName": "lib/types.ts",
- "line": 60,
+ "line": 63,
"character": 9
}
]
@@ -20832,7 +22420,7 @@
}
},
{
- "id": 50,
+ "id": 53,
"name": "onrejected",
"kind": 32768,
"kindString": "Parameter",
@@ -20846,7 +22434,7 @@
{
"type": "reflection",
"declaration": {
- "id": 51,
+ "id": 54,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -20855,7 +22443,7 @@
},
"signatures": [
{
- "id": 52,
+ "id": 55,
"name": "__call",
"kind": 4096,
"kindString": "Call signature",
@@ -20864,7 +22452,7 @@
},
"parameters": [
{
- "id": 53,
+ "id": 56,
"name": "reason",
"kind": 32768,
"kindString": "Parameter",
@@ -20909,7 +22497,7 @@
"sources": [
{
"fileName": "lib/types.ts",
- "line": 63,
+ "line": 66,
"character": 18
}
]
@@ -20965,7 +22553,7 @@
"sources": [
{
"fileName": "lib/types.ts",
- "line": 58,
+ "line": 61,
"character": 6
}
]
@@ -20976,44 +22564,44 @@
"title": "Constructors",
"kind": 512,
"children": [
- 39
+ 42
]
},
{
"title": "Properties",
"kind": 1024,
"children": [
- 38,
- 33,
- 31,
- 37,
- 32
+ 41,
+ 36,
+ 34,
+ 40,
+ 35
]
},
{
"title": "Methods",
"kind": 2048,
"children": [
- 42
+ 45
]
}
],
"sources": [
{
"fileName": "lib/types.ts",
- "line": 47,
+ "line": 50,
"character": 38
}
],
"extendedBy": [
{
"type": "reference",
- "id": 59,
+ "id": 62,
"name": "PostgrestTransformBuilder"
},
{
"type": "reference",
- "id": 287,
+ "id": 290,
"name": "PostgrestQueryBuilder"
}
],
@@ -21023,7 +22611,7 @@
"typeArguments": [
{
"type": "reference",
- "id": 54,
+ "id": 57,
"typeArguments": [
{
"type": "typeParameter",
@@ -21214,25 +22802,25 @@
},
{
"type": "reference",
- "id": 17,
+ "id": 18,
"name": "PostgrestResponseFailure"
},
{
"type": "reference",
- "id": 23,
+ "id": 25,
"name": "PostgrestSingleResponseSuccess"
}
]
},
{
- "id": 17,
+ "id": 18,
"name": "PostgrestResponseFailure",
"kind": 256,
"kindString": "Interface",
"flags": {},
"children": [
{
- "id": 20,
+ "id": 21,
"name": "body",
"kind": 1024,
"kindString": "Property",
@@ -21240,7 +22828,7 @@
"sources": [
{
"fileName": "lib/types.ts",
- "line": 34,
+ "line": 35,
"character": 6
}
],
@@ -21250,7 +22838,25 @@
}
},
{
- "id": 19,
+ "id": 22,
+ "name": "count",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "lib/types.ts",
+ "line": 36,
+ "character": 7
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "null"
+ }
+ },
+ {
+ "id": 20,
"name": "data",
"kind": 1024,
"kindString": "Property",
@@ -21258,7 +22864,7 @@
"sources": [
{
"fileName": "lib/types.ts",
- "line": 32,
+ "line": 33,
"character": 6
}
],
@@ -21268,7 +22874,7 @@
}
},
{
- "id": 18,
+ "id": 19,
"name": "error",
"kind": 1024,
"kindString": "Property",
@@ -21276,7 +22882,7 @@
"sources": [
{
"fileName": "lib/types.ts",
- "line": 31,
+ "line": 32,
"character": 7
}
],
@@ -21287,7 +22893,7 @@
}
},
{
- "id": 21,
+ "id": 23,
"name": "status",
"kind": 1024,
"kindString": "Property",
@@ -21310,7 +22916,7 @@
}
},
{
- "id": 22,
+ "id": 24,
"name": "statusText",
"kind": 1024,
"kindString": "Property",
@@ -21338,18 +22944,19 @@
"title": "Properties",
"kind": 1024,
"children": [
+ 21,
+ 22,
20,
19,
- 18,
- 21,
- 22
+ 23,
+ 24
]
}
],
"sources": [
{
"fileName": "lib/types.ts",
- "line": 30,
+ "line": 31,
"character": 34
}
],
@@ -21398,6 +23005,33 @@
}
}
},
+ {
+ "id": 15,
+ "name": "count",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "lib/types.ts",
+ "line": 29,
+ "character": 7
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "intrinsic",
+ "name": "number"
+ },
+ {
+ "type": "intrinsic",
+ "name": "null"
+ }
+ ]
+ }
+ },
{
"id": 13,
"name": "data",
@@ -21438,7 +23072,7 @@
}
},
{
- "id": 15,
+ "id": 16,
"name": "status",
"kind": 1024,
"kindString": "Property",
@@ -21461,7 +23095,7 @@
}
},
{
- "id": 16,
+ "id": 17,
"name": "statusText",
"kind": 1024,
"kindString": "Property",
@@ -21490,10 +23124,11 @@
"kind": 1024,
"children": [
14,
+ 15,
13,
12,
- 15,
- 16
+ 16,
+ 17
]
}
],
@@ -21513,14 +23148,14 @@
]
},
{
- "id": 23,
+ "id": 25,
"name": "PostgrestSingleResponseSuccess",
"kind": 256,
"kindString": "Interface",
"flags": {},
"typeParameter": [
{
- "id": 24,
+ "id": 26,
"name": "T",
"kind": 131072,
"kindString": "Type parameter",
@@ -21529,7 +23164,7 @@
],
"children": [
{
- "id": 26,
+ "id": 29,
"name": "body",
"kind": 1024,
"kindString": "Property",
@@ -21537,7 +23172,7 @@
"sources": [
{
"fileName": "lib/types.ts",
- "line": 41,
+ "line": 44,
"character": 6
}
],
@@ -21547,7 +23182,7 @@
}
},
{
- "id": 25,
+ "id": 28,
"name": "data",
"kind": 1024,
"kindString": "Property",
@@ -21555,7 +23190,7 @@
"sources": [
{
"fileName": "lib/types.ts",
- "line": 39,
+ "line": 42,
"character": 6
}
],
@@ -21566,6 +23201,24 @@
},
{
"id": 27,
+ "name": "error",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "lib/types.ts",
+ "line": 41,
+ "character": 7
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "null"
+ }
+ },
+ {
+ "id": 30,
"name": "status",
"kind": 1024,
"kindString": "Property",
@@ -21588,7 +23241,7 @@
}
},
{
- "id": 28,
+ "id": 31,
"name": "statusText",
"kind": 1024,
"kindString": "Property",
@@ -21616,17 +23269,18 @@
"title": "Properties",
"kind": 1024,
"children": [
- 26,
- 25,
+ 29,
+ 28,
27,
- 28
+ 30,
+ 31
]
}
],
"sources": [
{
"fileName": "lib/types.ts",
- "line": 38,
+ "line": 40,
"character": 40
}
],
@@ -21639,7 +23293,7 @@
]
},
{
- "id": 54,
+ "id": 57,
"name": "PostgrestResponse",
"kind": 4194304,
"kindString": "Type alias",
@@ -21648,7 +23302,7 @@
},
"typeParameter": [
{
- "id": 55,
+ "id": 58,
"name": "T",
"kind": 131072,
"kindString": "Type parameter",
@@ -21660,7 +23314,7 @@
"sources": [
{
"fileName": "lib/types.ts",
- "line": 36,
+ "line": 38,
"character": 29
}
],
@@ -21680,14 +23334,14 @@
},
{
"type": "reference",
- "id": 17,
+ "id": 18,
"name": "PostgrestResponseFailure"
}
]
}
},
{
- "id": 56,
+ "id": 59,
"name": "PostgrestSingleResponse",
"kind": 4194304,
"kindString": "Type alias",
@@ -21696,7 +23350,7 @@
},
"typeParameter": [
{
- "id": 57,
+ "id": 60,
"name": "T",
"kind": 131072,
"kindString": "Type parameter",
@@ -21708,7 +23362,7 @@
"sources": [
{
"fileName": "lib/types.ts",
- "line": 43,
+ "line": 46,
"character": 35
}
],
@@ -21717,7 +23371,7 @@
"types": [
{
"type": "reference",
- "id": 23,
+ "id": 25,
"typeArguments": [
{
"type": "typeParameter",
@@ -21728,7 +23382,7 @@
},
{
"type": "reference",
- "id": 17,
+ "id": 18,
"name": "PostgrestResponseFailure"
}
]
@@ -21740,7 +23394,7 @@
"title": "Classes",
"kind": 128,
"children": [
- 29
+ 32
]
},
{
@@ -21749,17 +23403,17 @@
"children": [
2,
7,
- 17,
+ 18,
10,
- 23
+ 25
]
},
{
"title": "Type aliases",
"kind": 4194304,
"children": [
- 54,
- 56
+ 57,
+ 59
]
}
],
@@ -21777,11 +23431,11 @@
"title": "Modules",
"kind": 1,
"children": [
- 344,
- 374,
- 110,
- 286,
- 58,
+ 358,
+ 388,
+ 113,
+ 289,
+ 61,
1
]
}
diff --git a/web/spec/gotrue.json b/web/spec/gotrue.json
index d55b8baf7a7..01a784d683e 100644
--- a/web/spec/gotrue.json
+++ b/web/spec/gotrue.json
@@ -6,7 +6,7 @@
"originalName": "",
"children": [
{
- "id": 68,
+ "id": 131,
"name": "\"GoTrueApi\"",
"kind": 1,
"kindString": "Module",
@@ -16,7 +16,7 @@
"originalName": "/home/runner/work/gotrue-js/gotrue-js/src/GoTrueApi.ts",
"children": [
{
- "id": 69,
+ "id": 132,
"name": "GoTrueApi",
"kind": 128,
"kindString": "Class",
@@ -25,7 +25,7 @@
},
"children": [
{
- "id": 75,
+ "id": 139,
"name": "constructor",
"kind": 512,
"kindString": "Constructor",
@@ -34,7 +34,7 @@
},
"signatures": [
{
- "id": 76,
+ "id": 140,
"name": "new GoTrueApi",
"kind": 16384,
"kindString": "Constructor signature",
@@ -43,7 +43,7 @@
},
"parameters": [
{
- "id": 77,
+ "id": 141,
"name": "__namedParameters",
"kind": 32768,
"kindString": "Parameter",
@@ -54,7 +54,7 @@
"type": {
"type": "reflection",
"declaration": {
- "id": 78,
+ "id": 142,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -63,7 +63,37 @@
},
"children": [
{
- "id": 80,
+ "id": 148,
+ "name": "cookieOptions",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "GoTrueApi.ts",
+ "line": 16,
+ "character": 17
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "intrinsic",
+ "name": "undefined"
+ },
+ {
+ "type": "reference",
+ "id": 66,
+ "name": "CookieOptions"
+ }
+ ]
+ }
+ },
+ {
+ "id": 144,
"name": "headers",
"kind": 32,
"kindString": "Variable",
@@ -73,14 +103,14 @@
"sources": [
{
"fileName": "GoTrueApi.ts",
- "line": 12,
+ "line": 15,
"character": 11
}
],
"type": {
"type": "reflection",
"declaration": {
- "id": 81,
+ "id": 145,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -89,7 +119,7 @@
},
"indexSignature": [
{
- "id": 82,
+ "id": 146,
"name": "__index",
"kind": 8192,
"kindString": "Index signature",
@@ -98,7 +128,7 @@
},
"parameters": [
{
- "id": 83,
+ "id": 147,
"name": "key",
"kind": 32768,
"kindString": "Parameter",
@@ -121,7 +151,7 @@
}
},
{
- "id": 79,
+ "id": 143,
"name": "url",
"kind": 32,
"kindString": "Variable",
@@ -131,7 +161,7 @@
"sources": [
{
"fileName": "GoTrueApi.ts",
- "line": 11,
+ "line": 14,
"character": 7
}
],
@@ -147,15 +177,16 @@
"title": "Variables",
"kind": 32,
"children": [
- 80,
- 79
+ 148,
+ 144,
+ 143
]
}
],
"sources": [
{
"fileName": "GoTrueApi.ts",
- "line": 10,
+ "line": 13,
"character": 14
}
]
@@ -165,7 +196,7 @@
],
"type": {
"type": "reference",
- "id": 69,
+ "id": 132,
"name": "GoTrueApi"
}
}
@@ -173,13 +204,35 @@
"sources": [
{
"fileName": "GoTrueApi.ts",
- "line": 8,
- "character": 3
+ "line": 11,
+ "character": 40
}
]
},
{
- "id": 71,
+ "id": 138,
+ "name": "cookieOptions",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isProtected": true,
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "GoTrueApi.ts",
+ "line": 11,
+ "character": 25
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "id": 66,
+ "name": "CookieOptions"
+ }
+ },
+ {
+ "id": 134,
"name": "headers",
"kind": 1024,
"kindString": "Property",
@@ -190,14 +243,14 @@
"sources": [
{
"fileName": "GoTrueApi.ts",
- "line": 6,
+ "line": 8,
"character": 19
}
],
"type": {
"type": "reflection",
"declaration": {
- "id": 72,
+ "id": 135,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -206,7 +259,7 @@
},
"indexSignature": [
{
- "id": 73,
+ "id": 136,
"name": "__index",
"kind": 8192,
"kindString": "Index signature",
@@ -215,7 +268,7 @@
},
"parameters": [
{
- "id": 74,
+ "id": 137,
"name": "key",
"kind": 32768,
"kindString": "Parameter",
@@ -237,7 +290,7 @@
"sources": [
{
"fileName": "GoTrueApi.ts",
- "line": 6,
+ "line": 8,
"character": 20
}
]
@@ -245,7 +298,7 @@
}
},
{
- "id": 70,
+ "id": 133,
"name": "url",
"kind": 1024,
"kindString": "Property",
@@ -256,7 +309,7 @@
"sources": [
{
"fileName": "GoTrueApi.ts",
- "line": 5,
+ "line": 7,
"character": 15
}
],
@@ -266,7 +319,7 @@
}
},
{
- "id": 124,
+ "id": 189,
"name": "getUrlForProvider",
"kind": 2048,
"kindString": "Method",
@@ -275,7 +328,7 @@
},
"signatures": [
{
- "id": 125,
+ "id": 190,
"name": "getUrlForProvider",
"kind": 4096,
"kindString": "Call signature",
@@ -287,7 +340,7 @@
},
"parameters": [
{
- "id": 126,
+ "id": 191,
"name": "provider",
"kind": 32768,
"kindString": "Parameter",
@@ -299,7 +352,7 @@
},
"type": {
"type": "reference",
- "id": 66,
+ "id": 72,
"name": "Provider"
}
}
@@ -313,13 +366,13 @@
"sources": [
{
"fileName": "GoTrueApi.ts",
- "line": 119,
+ "line": 125,
"character": 19
}
]
},
{
- "id": 127,
+ "id": 192,
"name": "getUser",
"kind": 2048,
"kindString": "Method",
@@ -328,7 +381,7 @@
},
"signatures": [
{
- "id": 128,
+ "id": 193,
"name": "getUser",
"kind": 4096,
"kindString": "Call signature",
@@ -340,7 +393,7 @@
},
"parameters": [
{
- "id": 129,
+ "id": 194,
"name": "jwt",
"kind": 32768,
"kindString": "Parameter",
@@ -360,139 +413,125 @@
"type": "reference",
"typeArguments": [
{
- "type": "union",
- "types": [
- {
- "type": "reflection",
- "declaration": {
- "id": 130,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
+ "type": "reflection",
+ "declaration": {
+ "id": 195,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {
+ "isExported": true
+ },
+ "children": [
+ {
+ "id": 197,
+ "name": "data",
+ "kind": 32,
+ "kindString": "Variable",
"flags": {
"isExported": true
},
- "children": [
+ "sources": [
{
- "id": 131,
- "name": "data",
- "kind": 32,
- "kindString": "Variable",
- "flags": {
- "isExported": true
+ "fileName": "GoTrueApi.ts",
+ "line": 135,
+ "character": 38
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "reference",
+ "id": 33,
+ "name": "User"
},
- "sources": [
- {
- "fileName": "GoTrueApi.ts",
- "line": 132,
- "character": 19
- }
- ],
- "type": {
+ {
"type": "intrinsic",
- "name": "any"
+ "name": "null"
}
- },
+ ]
+ }
+ },
+ {
+ "id": 198,
+ "name": "error",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {
+ "isExported": true
+ },
+ "sources": [
{
- "id": 132,
- "name": "error",
- "kind": 32,
- "kindString": "Variable",
- "flags": {
- "isExported": true
+ "fileName": "GoTrueApi.ts",
+ "line": 135,
+ "character": 58
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "reference",
+ "name": "Error"
},
- "sources": [
- {
- "fileName": "GoTrueApi.ts",
- "line": 132,
- "character": 26
- }
- ],
- "type": {
+ {
"type": "intrinsic",
"name": "null"
- },
- "defaultValue": "null"
- }
- ],
- "groups": [
- {
- "title": "Variables",
- "kind": 32,
- "children": [
- 131,
- 132
- ]
- }
- ]
- }
- },
- {
- "type": "reflection",
- "declaration": {
- "id": 133,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
+ }
+ ]
+ }
+ },
+ {
+ "id": 196,
+ "name": "user",
+ "kind": 32,
+ "kindString": "Variable",
"flags": {
"isExported": true
},
- "children": [
+ "sources": [
{
- "id": 134,
- "name": "data",
- "kind": 32,
- "kindString": "Variable",
- "flags": {
- "isExported": true
+ "fileName": "GoTrueApi.ts",
+ "line": 135,
+ "character": 19
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "reference",
+ "id": 33,
+ "name": "User"
},
- "sources": [
- {
- "fileName": "GoTrueApi.ts",
- "line": 134,
- "character": 19
- }
- ],
- "type": {
+ {
"type": "intrinsic",
"name": "null"
- },
- "defaultValue": "null"
- },
- {
- "id": 135,
- "name": "error",
- "kind": 32,
- "kindString": "Variable",
- "flags": {
- "isExported": true
- },
- "sources": [
- {
- "fileName": "GoTrueApi.ts",
- "line": 134,
- "character": 32
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "any"
}
- }
- ],
- "groups": [
- {
- "title": "Variables",
- "kind": 32,
- "children": [
- 134,
- 135
- ]
- }
+ ]
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Variables",
+ "kind": 32,
+ "children": [
+ 197,
+ 198,
+ 196
]
}
- }
- ]
+ ],
+ "sources": [
+ {
+ "fileName": "GoTrueApi.ts",
+ "line": 135,
+ "character": 13
+ }
+ ]
+ }
}
],
"name": "Promise"
@@ -502,14 +541,14 @@
"sources": [
{
"fileName": "GoTrueApi.ts",
- "line": 127,
+ "line": 133,
"character": 15
}
]
},
{
- "id": 105,
- "name": "inviteUserByEmail",
+ "id": 217,
+ "name": "getUserByCookie",
"kind": 2048,
"kindString": "Method",
"flags": {
@@ -517,31 +556,28 @@
},
"signatures": [
{
- "id": 106,
- "name": "inviteUserByEmail",
+ "id": 218,
+ "name": "getUserByCookie",
"kind": 4096,
"kindString": "Call signature",
"flags": {
"isExported": true
},
"comment": {
- "shortText": "Sends an invite link to an email address."
+ "shortText": "Get user by reading the cookie from the request.\nWorks for Next.js & Express (requires cookie-parser middleware)."
},
"parameters": [
{
- "id": 107,
- "name": "email",
+ "id": 219,
+ "name": "req",
"kind": 32768,
"kindString": "Parameter",
"flags": {
"isExported": true
},
- "comment": {
- "text": "The email address of the user.\n"
- },
"type": {
"type": "intrinsic",
- "name": "string"
+ "name": "any"
}
}
],
@@ -551,7 +587,7 @@
{
"type": "reflection",
"declaration": {
- "id": 108,
+ "id": 220,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -560,7 +596,7 @@
},
"children": [
{
- "id": 109,
+ "id": 222,
"name": "data",
"kind": 32,
"kindString": "Variable",
@@ -570,31 +606,17 @@
"sources": [
{
"fileName": "GoTrueApi.ts",
- "line": 78,
- "character": 56
+ "line": 217,
+ "character": 38
}
],
"type": {
"type": "union",
"types": [
{
- "type": "reflection",
- "declaration": {
- "id": 110,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
- "flags": {
- "isExported": true
- },
- "sources": [
- {
- "fileName": "GoTrueApi.ts",
- "line": 78,
- "character": 57
- }
- ]
- }
+ "type": "reference",
+ "id": 33,
+ "name": "User"
},
{
"type": "intrinsic",
@@ -604,7 +626,7 @@
}
},
{
- "id": 111,
+ "id": 223,
"name": "error",
"kind": 32,
"kindString": "Variable",
@@ -614,8 +636,8 @@
"sources": [
{
"fileName": "GoTrueApi.ts",
- "line": 78,
- "character": 74
+ "line": 217,
+ "character": 58
}
],
"type": {
@@ -631,6 +653,36 @@
}
]
}
+ },
+ {
+ "id": 221,
+ "name": "user",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "GoTrueApi.ts",
+ "line": 217,
+ "character": 19
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "reference",
+ "id": 33,
+ "name": "User"
+ },
+ {
+ "type": "intrinsic",
+ "name": "null"
+ }
+ ]
+ }
}
],
"groups": [
@@ -638,16 +690,17 @@
"title": "Variables",
"kind": 32,
"children": [
- 109,
- 111
+ 222,
+ 223,
+ 221
]
}
],
"sources": [
{
"fileName": "GoTrueApi.ts",
- "line": 78,
- "character": 50
+ "line": 217,
+ "character": 13
}
]
}
@@ -660,203 +713,14 @@
"sources": [
{
"fileName": "GoTrueApi.ts",
- "line": 78,
- "character": 25
- }
- ]
- },
- {
- "id": 146,
- "name": "refreshAccessToken",
- "kind": 2048,
- "kindString": "Method",
- "flags": {
- "isExported": true
- },
- "signatures": [
- {
- "id": 147,
- "name": "refreshAccessToken",
- "kind": 4096,
- "kindString": "Call signature",
- "flags": {
- "isExported": true
- },
- "comment": {
- "shortText": "Generates a new JWT."
- },
- "parameters": [
- {
- "id": 148,
- "name": "refreshToken",
- "kind": 32768,
- "kindString": "Parameter",
- "flags": {
- "isExported": true
- },
- "comment": {
- "text": "A valid refresh token that was returned on login.\n"
- },
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- }
- ],
- "type": {
- "type": "reference",
- "typeArguments": [
- {
- "type": "union",
- "types": [
- {
- "type": "reflection",
- "declaration": {
- "id": 149,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
- "flags": {
- "isExported": true
- },
- "children": [
- {
- "id": 150,
- "name": "data",
- "kind": 32,
- "kindString": "Variable",
- "flags": {
- "isExported": true
- },
- "sources": [
- {
- "fileName": "GoTrueApi.ts",
- "line": 165,
- "character": 19
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "any"
- }
- },
- {
- "id": 151,
- "name": "error",
- "kind": 32,
- "kindString": "Variable",
- "flags": {
- "isExported": true
- },
- "sources": [
- {
- "fileName": "GoTrueApi.ts",
- "line": 165,
- "character": 26
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "null"
- },
- "defaultValue": "null"
- }
- ],
- "groups": [
- {
- "title": "Variables",
- "kind": 32,
- "children": [
- 150,
- 151
- ]
- }
- ]
- }
- },
- {
- "type": "reflection",
- "declaration": {
- "id": 152,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
- "flags": {
- "isExported": true
- },
- "children": [
- {
- "id": 153,
- "name": "data",
- "kind": 32,
- "kindString": "Variable",
- "flags": {
- "isExported": true
- },
- "sources": [
- {
- "fileName": "GoTrueApi.ts",
- "line": 167,
- "character": 19
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "null"
- },
- "defaultValue": "null"
- },
- {
- "id": 154,
- "name": "error",
- "kind": 32,
- "kindString": "Variable",
- "flags": {
- "isExported": true
- },
- "sources": [
- {
- "fileName": "GoTrueApi.ts",
- "line": 167,
- "character": 32
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "any"
- }
- }
- ],
- "groups": [
- {
- "title": "Variables",
- "kind": 32,
- "children": [
- 153,
- 154
- ]
- }
- ]
- }
- }
- ]
- }
- ],
- "name": "Promise"
- }
- }
- ],
- "sources": [
- {
- "fileName": "GoTrueApi.ts",
- "line": 158,
- "character": 26
+ "line": 215,
+ "character": 23
}
]
},
{
- "id": 112,
- "name": "resetPasswordForEmail",
+ "id": 170,
+ "name": "inviteUserByEmail",
"kind": 2048,
"kindString": "Method",
"flags": {
@@ -864,19 +728,19 @@
},
"signatures": [
{
- "id": 113,
- "name": "resetPasswordForEmail",
+ "id": 171,
+ "name": "inviteUserByEmail",
"kind": 4096,
"kindString": "Call signature",
"flags": {
"isExported": true
},
"comment": {
- "shortText": "Sends a reset request to an email address."
+ "shortText": "Sends an invite link to an email address."
},
"parameters": [
{
- "id": 114,
+ "id": 172,
"name": "email",
"kind": 32768,
"kindString": "Parameter",
@@ -898,7 +762,7 @@
{
"type": "reflection",
"declaration": {
- "id": 115,
+ "id": 173,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -907,7 +771,7 @@
},
"children": [
{
- "id": 116,
+ "id": 174,
"name": "data",
"kind": 32,
"kindString": "Variable",
@@ -917,8 +781,8 @@
"sources": [
{
"fileName": "GoTrueApi.ts",
- "line": 91,
- "character": 60
+ "line": 84,
+ "character": 56
}
],
"type": {
@@ -927,7 +791,7 @@
{
"type": "reflection",
"declaration": {
- "id": 117,
+ "id": 175,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -937,8 +801,8 @@
"sources": [
{
"fileName": "GoTrueApi.ts",
- "line": 91,
- "character": 61
+ "line": 84,
+ "character": 57
}
]
}
@@ -951,7 +815,7 @@
}
},
{
- "id": 118,
+ "id": 176,
"name": "error",
"kind": 32,
"kindString": "Variable",
@@ -961,8 +825,8 @@
"sources": [
{
"fileName": "GoTrueApi.ts",
- "line": 91,
- "character": 78
+ "line": 84,
+ "character": 74
}
],
"type": {
@@ -985,16 +849,16 @@
"title": "Variables",
"kind": 32,
"children": [
- 116,
- 118
+ 174,
+ 176
]
}
],
"sources": [
{
"fileName": "GoTrueApi.ts",
- "line": 91,
- "character": 54
+ "line": 84,
+ "character": 50
}
]
}
@@ -1007,14 +871,14 @@
"sources": [
{
"fileName": "GoTrueApi.ts",
- "line": 91,
- "character": 29
+ "line": 84,
+ "character": 25
}
]
},
{
- "id": 98,
- "name": "sendMagicLinkEmail",
+ "id": 207,
+ "name": "refreshAccessToken",
"kind": 2048,
"kindString": "Method",
"flags": {
@@ -1022,27 +886,27 @@
},
"signatures": [
{
- "id": 99,
- "name": "sendMagicLinkEmail",
+ "id": 208,
+ "name": "refreshAccessToken",
"kind": 4096,
"kindString": "Call signature",
"flags": {
"isExported": true
},
"comment": {
- "shortText": "Sends a magic login link to an email address."
+ "shortText": "Generates a new JWT."
},
"parameters": [
{
- "id": 100,
- "name": "email",
+ "id": 209,
+ "name": "refreshToken",
"kind": 32768,
"kindString": "Parameter",
"flags": {
"isExported": true
},
"comment": {
- "text": "The email address of the user.\n"
+ "text": "A valid refresh token that was returned on login.\n"
},
"type": {
"type": "intrinsic",
@@ -1056,7 +920,7 @@
{
"type": "reflection",
"declaration": {
- "id": 101,
+ "id": 210,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -1065,7 +929,7 @@
},
"children": [
{
- "id": 102,
+ "id": 211,
"name": "data",
"kind": 32,
"kindString": "Variable",
@@ -1075,31 +939,17 @@
"sources": [
{
"fileName": "GoTrueApi.ts",
- "line": 65,
- "character": 57
+ "line": 171,
+ "character": 19
}
],
"type": {
"type": "union",
"types": [
{
- "type": "reflection",
- "declaration": {
- "id": 103,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
- "flags": {
- "isExported": true
- },
- "sources": [
- {
- "fileName": "GoTrueApi.ts",
- "line": 65,
- "character": 58
- }
- ]
- }
+ "type": "reference",
+ "id": 27,
+ "name": "Session"
},
{
"type": "intrinsic",
@@ -1109,7 +959,7 @@
}
},
{
- "id": 104,
+ "id": 212,
"name": "error",
"kind": 32,
"kindString": "Variable",
@@ -1119,8 +969,8 @@
"sources": [
{
"fileName": "GoTrueApi.ts",
- "line": 65,
- "character": 75
+ "line": 171,
+ "character": 42
}
],
"type": {
@@ -1143,16 +993,16 @@
"title": "Variables",
"kind": 32,
"children": [
- 102,
- 104
+ 211,
+ 212
]
}
],
"sources": [
{
"fileName": "GoTrueApi.ts",
- "line": 65,
- "character": 51
+ "line": 171,
+ "character": 13
}
]
}
@@ -1165,14 +1015,14 @@
"sources": [
{
"fileName": "GoTrueApi.ts",
- "line": 65,
+ "line": 169,
"character": 26
}
]
},
{
- "id": 91,
- "name": "signInWithEmail",
+ "id": 177,
+ "name": "resetPasswordForEmail",
"kind": 2048,
"kindString": "Method",
"flags": {
@@ -1180,19 +1030,19 @@
},
"signatures": [
{
- "id": 92,
- "name": "signInWithEmail",
+ "id": 178,
+ "name": "resetPasswordForEmail",
"kind": 4096,
"kindString": "Call signature",
"flags": {
"isExported": true
},
"comment": {
- "shortText": "Logs in an existing user using their email address."
+ "shortText": "Sends a reset request to an email address."
},
"parameters": [
{
- "id": 93,
+ "id": 179,
"name": "email",
"kind": 32768,
"kindString": "Parameter",
@@ -1200,23 +1050,7 @@
"isExported": true
},
"comment": {
- "text": "The email address of the user."
- },
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- },
- {
- "id": 94,
- "name": "password",
- "kind": 32768,
- "kindString": "Parameter",
- "flags": {
- "isExported": true
- },
- "comment": {
- "text": "The password of the user.\n"
+ "text": "The email address of the user.\n"
},
"type": {
"type": "intrinsic",
@@ -1230,7 +1064,7 @@
{
"type": "reflection",
"declaration": {
- "id": 95,
+ "id": 180,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -1239,7 +1073,7 @@
},
"children": [
{
- "id": 96,
+ "id": 181,
"name": "data",
"kind": 32,
"kindString": "Variable",
@@ -1249,17 +1083,31 @@
"sources": [
{
"fileName": "GoTrueApi.ts",
- "line": 48,
- "character": 19
+ "line": 97,
+ "character": 60
}
],
"type": {
"type": "union",
"types": [
{
- "type": "reference",
- "id": 27,
- "name": "Session"
+ "type": "reflection",
+ "declaration": {
+ "id": 182,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "GoTrueApi.ts",
+ "line": 97,
+ "character": 61
+ }
+ ]
+ }
},
{
"type": "intrinsic",
@@ -1269,7 +1117,7 @@
}
},
{
- "id": 97,
+ "id": 183,
"name": "error",
"kind": 32,
"kindString": "Variable",
@@ -1279,8 +1127,8 @@
"sources": [
{
"fileName": "GoTrueApi.ts",
- "line": 48,
- "character": 42
+ "line": 97,
+ "character": 78
}
],
"type": {
@@ -1303,16 +1151,16 @@
"title": "Variables",
"kind": 32,
"children": [
- 96,
- 97
+ 181,
+ 183
]
}
],
"sources": [
{
"fileName": "GoTrueApi.ts",
- "line": 48,
- "character": 13
+ "line": 97,
+ "character": 54
}
]
}
@@ -1325,14 +1173,14 @@
"sources": [
{
"fileName": "GoTrueApi.ts",
- "line": 45,
- "character": 23
+ "line": 97,
+ "character": 29
}
]
},
{
- "id": 119,
- "name": "signOut",
+ "id": 163,
+ "name": "sendMagicLinkEmail",
"kind": 2048,
"kindString": "Method",
"flags": {
@@ -1340,27 +1188,27 @@
},
"signatures": [
{
- "id": 120,
- "name": "signOut",
+ "id": 164,
+ "name": "sendMagicLinkEmail",
"kind": 4096,
"kindString": "Call signature",
"flags": {
"isExported": true
},
"comment": {
- "shortText": "Removes a logged-in session."
+ "shortText": "Sends a magic login link to an email address."
},
"parameters": [
{
- "id": 121,
- "name": "jwt",
+ "id": 165,
+ "name": "email",
"kind": 32768,
"kindString": "Parameter",
"flags": {
"isExported": true
},
"comment": {
- "text": "A valid, logged-in JWT.\n"
+ "text": "The email address of the user.\n"
},
"type": {
"type": "intrinsic",
@@ -1374,7 +1222,7 @@
{
"type": "reflection",
"declaration": {
- "id": 122,
+ "id": 166,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -1383,7 +1231,51 @@
},
"children": [
{
- "id": 123,
+ "id": 167,
+ "name": "data",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "GoTrueApi.ts",
+ "line": 71,
+ "character": 57
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "reflection",
+ "declaration": {
+ "id": 168,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "GoTrueApi.ts",
+ "line": 71,
+ "character": 58
+ }
+ ]
+ }
+ },
+ {
+ "type": "intrinsic",
+ "name": "null"
+ }
+ ]
+ }
+ },
+ {
+ "id": 169,
"name": "error",
"kind": 32,
"kindString": "Variable",
@@ -1393,8 +1285,8 @@
"sources": [
{
"fileName": "GoTrueApi.ts",
- "line": 104,
- "character": 45
+ "line": 71,
+ "character": 75
}
],
"type": {
@@ -1417,15 +1309,16 @@
"title": "Variables",
"kind": 32,
"children": [
- 123
+ 167,
+ 169
]
}
],
"sources": [
{
"fileName": "GoTrueApi.ts",
- "line": 104,
- "character": 38
+ "line": 71,
+ "character": 51
}
]
}
@@ -1438,14 +1331,76 @@
"sources": [
{
"fileName": "GoTrueApi.ts",
- "line": 104,
+ "line": 71,
+ "character": 26
+ }
+ ]
+ },
+ {
+ "id": 213,
+ "name": "setAuthCookie",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {
+ "isExported": true
+ },
+ "signatures": [
+ {
+ "id": 214,
+ "name": "setAuthCookie",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {
+ "isExported": true
+ },
+ "comment": {
+ "shortText": "Set/delete the auth cookie based on the AuthChangeEvent.\nWorks for Next.js & Express (requires cookie-parser middleware)."
+ },
+ "parameters": [
+ {
+ "id": 215,
+ "name": "req",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "any"
+ }
+ },
+ {
+ "id": 216,
+ "name": "res",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "any"
+ }
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "void"
+ }
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "GoTrueApi.ts",
+ "line": 188,
"character": 15
}
]
},
{
- "id": 84,
- "name": "signUpWithEmail",
+ "id": 156,
+ "name": "signInWithEmail",
"kind": 2048,
"kindString": "Method",
"flags": {
@@ -1453,19 +1408,19 @@
},
"signatures": [
{
- "id": 85,
- "name": "signUpWithEmail",
+ "id": 157,
+ "name": "signInWithEmail",
"kind": 4096,
"kindString": "Call signature",
"flags": {
"isExported": true
},
"comment": {
- "shortText": "Creates a new user using their email address."
+ "shortText": "Logs in an existing user using their email address."
},
"parameters": [
{
- "id": 86,
+ "id": 158,
"name": "email",
"kind": 32768,
"kindString": "Parameter",
@@ -1481,7 +1436,7 @@
}
},
{
- "id": 87,
+ "id": 159,
"name": "password",
"kind": 32768,
"kindString": "Parameter",
@@ -1503,7 +1458,7 @@
{
"type": "reflection",
"declaration": {
- "id": 88,
+ "id": 160,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -1512,7 +1467,7 @@
},
"children": [
{
- "id": 89,
+ "id": 161,
"name": "data",
"kind": 32,
"kindString": "Variable",
@@ -1522,7 +1477,7 @@
"sources": [
{
"fileName": "GoTrueApi.ts",
- "line": 31,
+ "line": 54,
"character": 19
}
],
@@ -1542,7 +1497,7 @@
}
},
{
- "id": 90,
+ "id": 162,
"name": "error",
"kind": 32,
"kindString": "Variable",
@@ -1552,7 +1507,7 @@
"sources": [
{
"fileName": "GoTrueApi.ts",
- "line": 31,
+ "line": 54,
"character": 42
}
],
@@ -1576,15 +1531,15 @@
"title": "Variables",
"kind": 32,
"children": [
- 89,
- 90
+ 161,
+ 162
]
}
],
"sources": [
{
"fileName": "GoTrueApi.ts",
- "line": 31,
+ "line": 54,
"character": 13
}
]
@@ -1598,14 +1553,14 @@
"sources": [
{
"fileName": "GoTrueApi.ts",
- "line": 28,
+ "line": 51,
"character": 23
}
]
},
{
- "id": 136,
- "name": "updateUser",
+ "id": 184,
+ "name": "signOut",
"kind": 2048,
"kindString": "Method",
"flags": {
@@ -1613,19 +1568,19 @@
},
"signatures": [
{
- "id": 137,
- "name": "updateUser",
+ "id": 185,
+ "name": "signOut",
"kind": 4096,
"kindString": "Call signature",
"flags": {
"isExported": true
},
"comment": {
- "shortText": "Updates the user data."
+ "shortText": "Removes a logged-in session."
},
"parameters": [
{
- "id": 138,
+ "id": 186,
"name": "jwt",
"kind": 32768,
"kindString": "Parameter",
@@ -1633,168 +1588,75 @@
"isExported": true
},
"comment": {
- "text": "A valid, logged-in JWT."
+ "text": "A valid, logged-in JWT.\n"
},
"type": {
"type": "intrinsic",
"name": "string"
}
- },
- {
- "id": 139,
- "name": "attributes",
- "kind": 32768,
- "kindString": "Parameter",
- "flags": {
- "isExported": true
- },
- "comment": {
- "text": "The data you want to update.\n"
- },
- "type": {
- "type": "reference",
- "id": 51,
- "name": "UserAttributes"
- }
}
],
"type": {
"type": "reference",
"typeArguments": [
{
- "type": "union",
- "types": [
- {
- "type": "reflection",
- "declaration": {
- "id": 140,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
+ "type": "reflection",
+ "declaration": {
+ "id": 187,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {
+ "isExported": true
+ },
+ "children": [
+ {
+ "id": 188,
+ "name": "error",
+ "kind": 32,
+ "kindString": "Variable",
"flags": {
"isExported": true
},
- "children": [
+ "sources": [
{
- "id": 141,
- "name": "data",
- "kind": 32,
- "kindString": "Variable",
- "flags": {
- "isExported": true
+ "fileName": "GoTrueApi.ts",
+ "line": 110,
+ "character": 45
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "reference",
+ "name": "Error"
},
- "sources": [
- {
- "fileName": "GoTrueApi.ts",
- "line": 148,
- "character": 19
- }
- ],
- "type": {
+ {
"type": "intrinsic",
- "name": "any"
+ "name": "null"
}
- },
- {
- "id": 142,
- "name": "error",
- "kind": 32,
- "kindString": "Variable",
- "flags": {
- "isExported": true
- },
- "sources": [
- {
- "fileName": "GoTrueApi.ts",
- "line": 148,
- "character": 26
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "null"
- },
- "defaultValue": "null"
- }
- ],
- "groups": [
- {
- "title": "Variables",
- "kind": 32,
- "children": [
- 141,
- 142
- ]
- }
- ]
+ ]
+ }
}
- },
- {
- "type": "reflection",
- "declaration": {
- "id": 143,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
- "flags": {
- "isExported": true
- },
+ ],
+ "groups": [
+ {
+ "title": "Variables",
+ "kind": 32,
"children": [
- {
- "id": 144,
- "name": "data",
- "kind": 32,
- "kindString": "Variable",
- "flags": {
- "isExported": true
- },
- "sources": [
- {
- "fileName": "GoTrueApi.ts",
- "line": 150,
- "character": 19
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "null"
- },
- "defaultValue": "null"
- },
- {
- "id": 145,
- "name": "error",
- "kind": 32,
- "kindString": "Variable",
- "flags": {
- "isExported": true
- },
- "sources": [
- {
- "fileName": "GoTrueApi.ts",
- "line": 150,
- "character": 32
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "any"
- }
- }
- ],
- "groups": [
- {
- "title": "Variables",
- "kind": 32,
- "children": [
- 144,
- 145
- ]
- }
+ 188
]
}
- }
- ]
+ ],
+ "sources": [
+ {
+ "fileName": "GoTrueApi.ts",
+ "line": 110,
+ "character": 38
+ }
+ ]
+ }
}
],
"name": "Promise"
@@ -1804,126 +1666,72 @@
"sources": [
{
"fileName": "GoTrueApi.ts",
- "line": 143,
- "character": 18
+ "line": 110,
+ "character": 15
}
]
- }
- ],
- "groups": [
- {
- "title": "Constructors",
- "kind": 512,
- "children": [
- 75
- ]
- },
- {
- "title": "Properties",
- "kind": 1024,
- "children": [
- 71,
- 70
- ]
},
{
- "title": "Methods",
+ "id": 149,
+ "name": "signUpWithEmail",
"kind": 2048,
- "children": [
- 124,
- 127,
- 105,
- 146,
- 112,
- 98,
- 91,
- 119,
- 84,
- 136
- ]
- }
- ],
- "sources": [
- {
- "fileName": "GoTrueApi.ts",
- "line": 4,
- "character": 30
- }
- ]
- }
- ],
- "groups": [
- {
- "title": "Classes",
- "kind": 128,
- "children": [
- 69
- ]
- }
- ],
- "sources": [
- {
- "fileName": "GoTrueApi.ts",
- "line": 1,
- "character": 0
- }
- ]
- },
- {
- "id": 194,
- "name": "\"GoTrueClient\"",
- "kind": 1,
- "kindString": "Module",
- "flags": {
- "isExported": true
- },
- "originalName": "/home/runner/work/gotrue-js/gotrue-js/src/GoTrueClient.ts",
- "children": [
- {
- "id": 195,
- "name": "GoTrueClient",
- "kind": 128,
- "kindString": "Class",
- "flags": {
- "isExported": true
- },
- "children": [
- {
- "id": 203,
- "name": "constructor",
- "kind": 512,
- "kindString": "Constructor",
+ "kindString": "Method",
"flags": {
"isExported": true
},
- "comment": {
- "shortText": "Create a new client for use in the browser."
- },
"signatures": [
{
- "id": 204,
- "name": "new GoTrueClient",
- "kind": 16384,
- "kindString": "Constructor signature",
+ "id": 150,
+ "name": "signUpWithEmail",
+ "kind": 4096,
+ "kindString": "Call signature",
"flags": {
"isExported": true
},
"comment": {
- "shortText": "Create a new client for use in the browser."
+ "shortText": "Creates a new user using their email address."
},
"parameters": [
{
- "id": 205,
- "name": "options",
+ "id": 151,
+ "name": "email",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true
+ },
+ "comment": {
+ "text": "The email address of the user."
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 152,
+ "name": "password",
"kind": 32768,
"kindString": "Parameter",
"flags": {
"isExported": true
},
+ "comment": {
+ "text": "The password of the user.\n"
+ },
"type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "typeArguments": [
+ {
"type": "reflection",
"declaration": {
- "id": 206,
+ "id": 153,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -1932,240 +1740,251 @@
},
"children": [
{
- "id": 213,
- "name": "autoRefreshToken",
+ "id": 154,
+ "name": "data",
"kind": 32,
"kindString": "Variable",
"flags": {
- "isExported": true,
- "isOptional": true
- },
- "comment": {
- "text": "Set to \"true\" if you want to automatically refresh the token before expiring."
+ "isExported": true
},
"sources": [
{
- "fileName": "GoTrueClient.ts",
- "line": 46,
- "character": 20
+ "fileName": "GoTrueApi.ts",
+ "line": 37,
+ "character": 19
}
],
"type": {
"type": "union",
"types": [
{
- "type": "intrinsic",
- "name": "undefined"
- },
- {
- "type": "intrinsic",
- "name": "false"
+ "type": "reference",
+ "id": 27,
+ "name": "Session"
},
{
"type": "intrinsic",
- "name": "true"
+ "name": "null"
}
]
}
},
{
- "id": 212,
- "name": "detectSessionInUrl",
+ "id": 155,
+ "name": "error",
"kind": 32,
"kindString": "Variable",
"flags": {
- "isExported": true,
- "isOptional": true
- },
- "comment": {
- "text": "Set to \"true\" if you want to automatically detects OAuth grants in the URL and signs in the user."
+ "isExported": true
},
"sources": [
{
- "fileName": "GoTrueClient.ts",
- "line": 45,
- "character": 22
+ "fileName": "GoTrueApi.ts",
+ "line": 37,
+ "character": 42
}
],
"type": {
"type": "union",
"types": [
{
- "type": "intrinsic",
- "name": "undefined"
- },
- {
- "type": "intrinsic",
- "name": "false"
+ "type": "reference",
+ "name": "Error"
},
{
"type": "intrinsic",
- "name": "true"
+ "name": "null"
}
]
}
- },
+ }
+ ],
+ "groups": [
{
- "id": 208,
- "name": "headers",
+ "title": "Variables",
+ "kind": 32,
+ "children": [
+ 154,
+ 155
+ ]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "GoTrueApi.ts",
+ "line": 37,
+ "character": 13
+ }
+ ]
+ }
+ }
+ ],
+ "name": "Promise"
+ }
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "GoTrueApi.ts",
+ "line": 34,
+ "character": 23
+ }
+ ]
+ },
+ {
+ "id": 199,
+ "name": "updateUser",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {
+ "isExported": true
+ },
+ "signatures": [
+ {
+ "id": 200,
+ "name": "updateUser",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {
+ "isExported": true
+ },
+ "comment": {
+ "shortText": "Updates the user data."
+ },
+ "parameters": [
+ {
+ "id": 201,
+ "name": "jwt",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true
+ },
+ "comment": {
+ "text": "A valid, logged-in JWT."
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 202,
+ "name": "attributes",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true
+ },
+ "comment": {
+ "text": "The data you want to update.\n"
+ },
+ "type": {
+ "type": "reference",
+ "id": 51,
+ "name": "UserAttributes"
+ }
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "reflection",
+ "declaration": {
+ "id": 203,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {
+ "isExported": true
+ },
+ "children": [
+ {
+ "id": 205,
+ "name": "data",
"kind": 32,
"kindString": "Variable",
"flags": {
- "isExported": true,
- "isOptional": true
- },
- "comment": {
- "text": "Any additional headers to send to the GoTrue server."
+ "isExported": true
},
"sources": [
{
- "fileName": "GoTrueClient.ts",
- "line": 44,
- "character": 11
+ "fileName": "GoTrueApi.ts",
+ "line": 154,
+ "character": 38
}
],
"type": {
"type": "union",
"types": [
{
- "type": "intrinsic",
- "name": "undefined"
+ "type": "reference",
+ "id": 33,
+ "name": "User"
},
{
- "type": "reflection",
- "declaration": {
- "id": 209,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
- "flags": {
- "isExported": true
- },
- "indexSignature": [
- {
- "id": 210,
- "name": "__index",
- "kind": 8192,
- "kindString": "Index signature",
- "flags": {
- "isExported": true
- },
- "parameters": [
- {
- "id": 211,
- "name": "key",
- "kind": 32768,
- "kindString": "Parameter",
- "flags": {
- "isExported": true
- },
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- }
- ]
- }
+ "type": "intrinsic",
+ "name": "null"
}
]
}
},
{
- "id": 215,
- "name": "localStorage",
- "kind": 32,
- "kindString": "Variable",
- "flags": {
- "isExported": true,
- "isOptional": true
- },
- "comment": {
- "text": "\n"
- },
- "sources": [
- {
- "fileName": "GoTrueClient.ts",
- "line": 48,
- "character": 16
- }
- ],
- "type": {
- "type": "reference",
- "name": "Storage"
- }
- },
- {
- "id": 214,
- "name": "persistSession",
+ "id": 206,
+ "name": "error",
"kind": 32,
"kindString": "Variable",
"flags": {
- "isExported": true,
- "isOptional": true
- },
- "comment": {
- "text": "Set to \"true\" if you want to automatically save the user session into local storage."
+ "isExported": true
},
"sources": [
{
- "fileName": "GoTrueClient.ts",
- "line": 47,
- "character": 18
+ "fileName": "GoTrueApi.ts",
+ "line": 154,
+ "character": 58
}
],
"type": {
"type": "union",
"types": [
{
- "type": "intrinsic",
- "name": "undefined"
- },
- {
- "type": "intrinsic",
- "name": "false"
+ "type": "reference",
+ "name": "Error"
},
{
"type": "intrinsic",
- "name": "true"
+ "name": "null"
}
]
}
},
{
- "id": 207,
- "name": "url",
+ "id": 204,
+ "name": "user",
"kind": 32,
"kindString": "Variable",
"flags": {
- "isExported": true,
- "isOptional": true
- },
- "comment": {
- "text": "The URL of the GoTrue server."
+ "isExported": true
},
"sources": [
{
- "fileName": "GoTrueClient.ts",
- "line": 43,
- "character": 7
+ "fileName": "GoTrueApi.ts",
+ "line": 154,
+ "character": 19
}
],
"type": {
"type": "union",
"types": [
{
- "type": "intrinsic",
- "name": "undefined"
+ "type": "reference",
+ "id": 33,
+ "name": "User"
},
{
"type": "intrinsic",
- "name": "string"
+ "name": "null"
}
]
}
@@ -2176,426 +1995,653 @@
"title": "Variables",
"kind": 32,
"children": [
- 213,
- 212,
- 208,
- 215,
- 214,
- 207
+ 205,
+ 206,
+ 204
]
}
],
"sources": [
{
- "fileName": "GoTrueClient.ts",
- "line": 42,
- "character": 22
+ "fileName": "GoTrueApi.ts",
+ "line": 154,
+ "character": 13
}
]
}
}
- }
- ],
- "type": {
- "type": "reference",
- "id": 195,
- "name": "GoTrueClient"
+ ],
+ "name": "Promise"
}
}
],
"sources": [
{
- "fileName": "GoTrueClient.ts",
- "line": 31,
- "character": 70
+ "fileName": "GoTrueApi.ts",
+ "line": 151,
+ "character": 18
}
]
+ }
+ ],
+ "groups": [
+ {
+ "title": "Constructors",
+ "kind": 512,
+ "children": [
+ 139
+ ]
},
{
- "id": 196,
- "name": "api",
+ "title": "Properties",
"kind": 1024,
- "kindString": "Property",
- "flags": {
- "isExported": true
- },
- "comment": {
- "shortText": "Namespace for the GoTrue API methods.\nThese can be used for example to get a user from a JWT in a server environment or reset a user's password."
- },
- "sources": [
- {
- "fileName": "GoTrueClient.ts",
- "line": 19,
- "character": 5
- }
- ],
- "type": {
- "type": "reference",
- "id": 69,
- "name": "GoTrueApi"
- }
+ "children": [
+ 138,
+ 134,
+ 133
+ ]
},
{
- "id": 199,
- "name": "autoRefreshToken",
- "kind": 1024,
- "kindString": "Property",
- "flags": {
- "isProtected": true,
- "isExported": true
- },
- "sources": [
- {
- "fileName": "GoTrueClient.ts",
- "line": 28,
- "character": 28
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "boolean"
- }
- },
+ "title": "Methods",
+ "kind": 2048,
+ "children": [
+ 189,
+ 192,
+ 217,
+ 170,
+ 207,
+ 177,
+ 163,
+ 213,
+ 156,
+ 184,
+ 149,
+ 199
+ ]
+ }
+ ],
+ "sources": [
{
- "id": 198,
- "name": "currentSession",
- "kind": 1024,
- "kindString": "Property",
- "flags": {
- "isProtected": true,
- "isExported": true
- },
- "comment": {
- "shortText": "The session object for the currently logged in user or null."
- },
- "sources": [
- {
- "fileName": "GoTrueClient.ts",
- "line": 27,
- "character": 26
- }
- ],
- "type": {
- "type": "union",
- "types": [
- {
- "type": "reference",
- "id": 27,
- "name": "Session"
- },
- {
- "type": "intrinsic",
- "name": "null"
- }
- ]
- }
- },
+ "fileName": "GoTrueApi.ts",
+ "line": 6,
+ "character": 30
+ }
+ ]
+ }
+ ],
+ "groups": [
+ {
+ "title": "Classes",
+ "kind": 128,
+ "children": [
+ 132
+ ]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "GoTrueApi.ts",
+ "line": 1,
+ "character": 0
+ }
+ ]
+ },
+ {
+ "id": 256,
+ "name": "\"GoTrueClient\"",
+ "kind": 1,
+ "kindString": "Module",
+ "flags": {
+ "isExported": true
+ },
+ "originalName": "/home/runner/work/gotrue-js/gotrue-js/src/GoTrueClient.ts",
+ "children": [
+ {
+ "id": 257,
+ "name": "GoTrueClient",
+ "kind": 128,
+ "kindString": "Class",
+ "flags": {
+ "isExported": true
+ },
+ "children": [
{
- "id": 197,
- "name": "currentUser",
- "kind": 1024,
- "kindString": "Property",
+ "id": 265,
+ "name": "constructor",
+ "kind": 512,
+ "kindString": "Constructor",
"flags": {
- "isProtected": true,
"isExported": true
},
"comment": {
- "shortText": "The currently logged in user or null."
- },
- "sources": [
- {
- "fileName": "GoTrueClient.ts",
- "line": 23,
- "character": 23
- }
- ],
- "type": {
- "type": "union",
- "types": [
- {
- "type": "reference",
- "id": 33,
- "name": "User"
- },
- {
- "type": "intrinsic",
- "name": "null"
- }
- ]
- }
- },
- {
- "id": 201,
- "name": "localStorage",
- "kind": 1024,
- "kindString": "Property",
- "flags": {
- "isProtected": true,
- "isExported": true
- },
- "sources": [
- {
- "fileName": "GoTrueClient.ts",
- "line": 30,
- "character": 24
- }
- ],
- "type": {
- "type": "reference",
- "name": "Storage"
- }
- },
- {
- "id": 200,
- "name": "persistSession",
- "kind": 1024,
- "kindString": "Property",
- "flags": {
- "isProtected": true,
- "isExported": true
- },
- "sources": [
- {
- "fileName": "GoTrueClient.ts",
- "line": 29,
- "character": 26
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "boolean"
- }
- },
- {
- "id": 202,
- "name": "stateChangeEmitters",
- "kind": 1024,
- "kindString": "Property",
- "flags": {
- "isProtected": true,
- "isExported": true
- },
- "sources": [
- {
- "fileName": "GoTrueClient.ts",
- "line": 31,
- "character": 31
- }
- ],
- "type": {
- "type": "reference",
- "typeArguments": [
- {
- "type": "intrinsic",
- "name": "string"
- },
- {
- "type": "reference",
- "id": 56,
- "name": "Subscription"
- }
- ],
- "name": "Map"
- },
- "defaultValue": "new Map()"
- },
- {
- "id": 314,
- "name": "_callRefreshToken",
- "kind": 2048,
- "kindString": "Method",
- "flags": {
- "isPrivate": true,
- "isExported": true
+ "shortText": "Create a new client for use in the browser."
},
"signatures": [
{
- "id": 315,
- "name": "_callRefreshToken",
- "kind": 4096,
- "kindString": "Call signature",
+ "id": 266,
+ "name": "new GoTrueClient",
+ "kind": 16384,
+ "kindString": "Constructor signature",
"flags": {
"isExported": true
},
+ "comment": {
+ "shortText": "Create a new client for use in the browser."
+ },
"parameters": [
{
- "id": 316,
- "name": "refresh_token",
+ "id": 267,
+ "name": "options",
"kind": 32768,
"kindString": "Parameter",
"flags": {
"isExported": true
},
"type": {
- "type": "union",
- "types": [
- {
- "type": "intrinsic",
- "name": "undefined"
+ "type": "reflection",
+ "declaration": {
+ "id": 268,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {
+ "isExported": true
},
- {
- "type": "intrinsic",
- "name": "string"
- }
- ]
- },
- "defaultValue": "this.currentSession?.refresh_token"
- }
- ],
- "type": {
- "type": "reference",
- "typeArguments": [
- {
- "type": "union",
- "types": [
- {
- "type": "reflection",
- "declaration": {
- "id": 317,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
+ "children": [
+ {
+ "id": 275,
+ "name": "autoRefreshToken",
+ "kind": 32,
+ "kindString": "Variable",
"flags": {
- "isExported": true
+ "isExported": true,
+ "isOptional": true
},
- "children": [
+ "comment": {
+ "text": "Set to \"true\" if you want to automatically refresh the token before expiring."
+ },
+ "sources": [
{
- "id": 318,
- "name": "data",
- "kind": 32,
- "kindString": "Variable",
- "flags": {
- "isExported": true
- },
- "sources": [
- {
- "fileName": "GoTrueClient.ts",
- "line": 387,
- "character": 21
- }
- ],
- "type": {
+ "fileName": "GoTrueClient.ts",
+ "line": 54,
+ "character": 20
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
"type": "intrinsic",
- "name": "any"
- }
- },
- {
- "id": 319,
- "name": "error",
- "kind": 32,
- "kindString": "Variable",
- "flags": {
- "isExported": true
+ "name": "undefined"
},
- "sources": [
- {
- "fileName": "GoTrueClient.ts",
- "line": 387,
- "character": 28
- }
- ],
- "type": {
+ {
"type": "intrinsic",
- "name": "null"
+ "name": "false"
},
- "defaultValue": "null"
- }
- ],
- "groups": [
+ {
+ "type": "intrinsic",
+ "name": "true"
+ }
+ ]
+ }
+ },
+ {
+ "id": 278,
+ "name": "cookieOptions",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {
+ "isExported": true,
+ "isOptional": true
+ },
+ "sources": [
{
- "title": "Variables",
- "kind": 32,
- "children": [
- 318,
- 319
- ]
+ "fileName": "GoTrueClient.ts",
+ "line": 57,
+ "character": 17
}
- ]
- }
- },
- {
- "type": "reflection",
- "declaration": {
- "id": 320,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
+ ],
+ "type": {
+ "type": "reference",
+ "id": 66,
+ "name": "CookieOptions"
+ }
+ },
+ {
+ "id": 274,
+ "name": "detectSessionInUrl",
+ "kind": 32,
+ "kindString": "Variable",
"flags": {
- "isExported": true
+ "isExported": true,
+ "isOptional": true
},
- "children": [
+ "comment": {
+ "text": "Set to \"true\" if you want to automatically detects OAuth grants in the URL and signs in the user."
+ },
+ "sources": [
{
- "id": 321,
- "name": "data",
- "kind": 32,
- "kindString": "Variable",
- "flags": {
- "isExported": true
+ "fileName": "GoTrueClient.ts",
+ "line": 53,
+ "character": 22
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "intrinsic",
+ "name": "undefined"
},
- "sources": [
- {
- "fileName": "GoTrueClient.ts",
- "line": 392,
- "character": 19
- }
- ],
- "type": {
+ {
"type": "intrinsic",
- "name": "null"
+ "name": "false"
},
- "defaultValue": "null"
- },
+ {
+ "type": "intrinsic",
+ "name": "true"
+ }
+ ]
+ }
+ },
+ {
+ "id": 270,
+ "name": "headers",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {
+ "isExported": true,
+ "isOptional": true
+ },
+ "comment": {
+ "text": "Any additional headers to send to the GoTrue server."
+ },
+ "sources": [
{
- "id": 322,
- "name": "error",
- "kind": 32,
- "kindString": "Variable",
- "flags": {
- "isExported": true
+ "fileName": "GoTrueClient.ts",
+ "line": 52,
+ "character": 11
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "intrinsic",
+ "name": "undefined"
},
- "sources": [
- {
- "fileName": "GoTrueClient.ts",
- "line": 392,
- "character": 32
+ {
+ "type": "reflection",
+ "declaration": {
+ "id": 271,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {
+ "isExported": true
+ },
+ "indexSignature": [
+ {
+ "id": 272,
+ "name": "__index",
+ "kind": 8192,
+ "kindString": "Index signature",
+ "flags": {
+ "isExported": true
+ },
+ "parameters": [
+ {
+ "id": 273,
+ "name": "key",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ]
}
- ],
- "type": {
- "type": "intrinsic",
- "name": "any"
}
+ ]
+ }
+ },
+ {
+ "id": 277,
+ "name": "localStorage",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {
+ "isExported": true,
+ "isOptional": true
+ },
+ "comment": {
+ "text": "\n"
+ },
+ "sources": [
+ {
+ "fileName": "GoTrueClient.ts",
+ "line": 56,
+ "character": 16
}
],
- "groups": [
+ "type": {
+ "type": "reference",
+ "name": "Storage"
+ }
+ },
+ {
+ "id": 276,
+ "name": "persistSession",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {
+ "isExported": true,
+ "isOptional": true
+ },
+ "comment": {
+ "text": "Set to \"true\" if you want to automatically save the user session into local storage."
+ },
+ "sources": [
{
- "title": "Variables",
- "kind": 32,
- "children": [
- 321,
- 322
- ]
+ "fileName": "GoTrueClient.ts",
+ "line": 55,
+ "character": 18
}
- ]
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "intrinsic",
+ "name": "undefined"
+ },
+ {
+ "type": "intrinsic",
+ "name": "false"
+ },
+ {
+ "type": "intrinsic",
+ "name": "true"
+ }
+ ]
+ }
+ },
+ {
+ "id": 269,
+ "name": "url",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {
+ "isExported": true,
+ "isOptional": true
+ },
+ "comment": {
+ "text": "The URL of the GoTrue server."
+ },
+ "sources": [
+ {
+ "fileName": "GoTrueClient.ts",
+ "line": 51,
+ "character": 7
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "intrinsic",
+ "name": "undefined"
+ },
+ {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ ]
+ }
}
- }
- ]
+ ],
+ "groups": [
+ {
+ "title": "Variables",
+ "kind": 32,
+ "children": [
+ 275,
+ 278,
+ 274,
+ 270,
+ 277,
+ 276,
+ 269
+ ]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "GoTrueClient.ts",
+ "line": 50,
+ "character": 22
+ }
+ ]
+ }
}
- ],
- "name": "Promise"
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "id": 257,
+ "name": "GoTrueClient"
}
}
],
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 367,
- "character": 33
+ "line": 39,
+ "character": 70
}
]
},
{
- "id": 278,
- "name": "_handleEmailSignIn",
+ "id": 258,
+ "name": "api",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExported": true
+ },
+ "comment": {
+ "shortText": "Namespace for the GoTrue API methods.\nThese can be used for example to get a user from a JWT in a server environment or reset a user's password."
+ },
+ "sources": [
+ {
+ "fileName": "GoTrueClient.ts",
+ "line": 27,
+ "character": 5
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "id": 132,
+ "name": "GoTrueApi"
+ }
+ },
+ {
+ "id": 261,
+ "name": "autoRefreshToken",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isProtected": true,
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "GoTrueClient.ts",
+ "line": 36,
+ "character": 28
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "boolean"
+ }
+ },
+ {
+ "id": 260,
+ "name": "currentSession",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isProtected": true,
+ "isExported": true
+ },
+ "comment": {
+ "shortText": "The session object for the currently logged in user or null."
+ },
+ "sources": [
+ {
+ "fileName": "GoTrueClient.ts",
+ "line": 35,
+ "character": 26
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "reference",
+ "id": 27,
+ "name": "Session"
+ },
+ {
+ "type": "intrinsic",
+ "name": "null"
+ }
+ ]
+ }
+ },
+ {
+ "id": 259,
+ "name": "currentUser",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isProtected": true,
+ "isExported": true
+ },
+ "comment": {
+ "shortText": "The currently logged in user or null."
+ },
+ "sources": [
+ {
+ "fileName": "GoTrueClient.ts",
+ "line": 31,
+ "character": 23
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "reference",
+ "id": 33,
+ "name": "User"
+ },
+ {
+ "type": "intrinsic",
+ "name": "null"
+ }
+ ]
+ }
+ },
+ {
+ "id": 263,
+ "name": "localStorage",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isProtected": true,
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "GoTrueClient.ts",
+ "line": 38,
+ "character": 24
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "name": "Storage"
+ }
+ },
+ {
+ "id": 262,
+ "name": "persistSession",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isProtected": true,
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "GoTrueClient.ts",
+ "line": 37,
+ "character": 26
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "boolean"
+ }
+ },
+ {
+ "id": 264,
+ "name": "stateChangeEmitters",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isProtected": true,
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "GoTrueClient.ts",
+ "line": 39,
+ "character": 31
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ {
+ "type": "reference",
+ "id": 56,
+ "name": "Subscription"
+ }
+ ],
+ "name": "Map"
+ },
+ "defaultValue": "new Map()"
+ },
+ {
+ "id": 377,
+ "name": "_callRefreshToken",
"kind": 2048,
"kindString": "Method",
"flags": {
@@ -2604,7 +2650,202 @@
},
"signatures": [
{
- "id": 279,
+ "id": 378,
+ "name": "_callRefreshToken",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {
+ "isExported": true
+ },
+ "parameters": [
+ {
+ "id": 379,
+ "name": "refresh_token",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true
+ },
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "intrinsic",
+ "name": "undefined"
+ },
+ {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ ]
+ },
+ "defaultValue": "this.currentSession?.refresh_token"
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "union",
+ "types": [
+ {
+ "type": "reflection",
+ "declaration": {
+ "id": 380,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {
+ "isExported": true
+ },
+ "children": [
+ {
+ "id": 381,
+ "name": "data",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "GoTrueClient.ts",
+ "line": 402,
+ "character": 21
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "id": 27,
+ "name": "Session"
+ }
+ },
+ {
+ "id": 382,
+ "name": "error",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "GoTrueClient.ts",
+ "line": 402,
+ "character": 28
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "null"
+ },
+ "defaultValue": "null"
+ }
+ ],
+ "groups": [
+ {
+ "title": "Variables",
+ "kind": 32,
+ "children": [
+ 381,
+ 382
+ ]
+ }
+ ]
+ }
+ },
+ {
+ "type": "reflection",
+ "declaration": {
+ "id": 383,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {
+ "isExported": true
+ },
+ "children": [
+ {
+ "id": 384,
+ "name": "data",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "GoTrueClient.ts",
+ "line": 407,
+ "character": 19
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "null"
+ },
+ "defaultValue": "null"
+ },
+ {
+ "id": 385,
+ "name": "error",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "GoTrueClient.ts",
+ "line": 407,
+ "character": 32
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "any"
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Variables",
+ "kind": 32,
+ "children": [
+ 384,
+ 385
+ ]
+ }
+ ]
+ }
+ }
+ ]
+ }
+ ],
+ "name": "Promise"
+ }
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "GoTrueClient.ts",
+ "line": 381,
+ "character": 33
+ }
+ ]
+ },
+ {
+ "id": 341,
+ "name": "_handleEmailSignIn",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {
+ "isPrivate": true,
+ "isExported": true
+ },
+ "signatures": [
+ {
+ "id": 342,
"name": "_handleEmailSignIn",
"kind": 4096,
"kindString": "Call signature",
@@ -2613,7 +2854,7 @@
},
"parameters": [
{
- "id": 280,
+ "id": 343,
"name": "email",
"kind": 32768,
"kindString": "Parameter",
@@ -2626,7 +2867,7 @@
}
},
{
- "id": 281,
+ "id": 344,
"name": "password",
"kind": 32768,
"kindString": "Parameter",
@@ -2648,7 +2889,7 @@
{
"type": "reflection",
"declaration": {
- "id": 282,
+ "id": 345,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -2657,7 +2898,7 @@
},
"children": [
{
- "id": 283,
+ "id": 346,
"name": "data",
"kind": 32,
"kindString": "Variable",
@@ -2667,7 +2908,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 279,
+ "line": 295,
"character": 19
}
],
@@ -2678,7 +2919,7 @@
}
},
{
- "id": 285,
+ "id": 348,
"name": "error",
"kind": 32,
"kindString": "Variable",
@@ -2688,7 +2929,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 279,
+ "line": 295,
"character": 43
}
],
@@ -2699,7 +2940,7 @@
"defaultValue": "null"
},
{
- "id": 284,
+ "id": 347,
"name": "user",
"kind": 32,
"kindString": "Variable",
@@ -2709,7 +2950,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 279,
+ "line": 295,
"character": 25
}
],
@@ -2726,9 +2967,9 @@
"title": "Variables",
"kind": 32,
"children": [
- 283,
- 285,
- 284
+ 346,
+ 348,
+ 347
]
}
]
@@ -2737,7 +2978,7 @@
{
"type": "reflection",
"declaration": {
- "id": 286,
+ "id": 349,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -2746,7 +2987,7 @@
},
"children": [
{
- "id": 287,
+ "id": 350,
"name": "data",
"kind": 32,
"kindString": "Variable",
@@ -2756,7 +2997,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 281,
+ "line": 297,
"character": 19
}
],
@@ -2767,7 +3008,7 @@
"defaultValue": "null"
},
{
- "id": 289,
+ "id": 352,
"name": "error",
"kind": 32,
"kindString": "Variable",
@@ -2777,7 +3018,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 281,
+ "line": 297,
"character": 44
}
],
@@ -2787,7 +3028,7 @@
}
},
{
- "id": 288,
+ "id": 351,
"name": "user",
"kind": 32,
"kindString": "Variable",
@@ -2797,7 +3038,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 281,
+ "line": 297,
"character": 31
}
],
@@ -2813,9 +3054,9 @@
"title": "Variables",
"kind": 32,
"children": [
- 287,
- 289,
- 288
+ 350,
+ 352,
+ 351
]
}
]
@@ -2831,13 +3072,13 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 269,
+ "line": 285,
"character": 34
}
]
},
{
- "id": 290,
+ "id": 353,
"name": "_handleProviderSignIn",
"kind": 2048,
"kindString": "Method",
@@ -2847,7 +3088,7 @@
},
"signatures": [
{
- "id": 291,
+ "id": 354,
"name": "_handleProviderSignIn",
"kind": 4096,
"kindString": "Call signature",
@@ -2856,7 +3097,7 @@
},
"parameters": [
{
- "id": 292,
+ "id": 355,
"name": "provider",
"kind": 32768,
"kindString": "Parameter",
@@ -2865,7 +3106,7 @@
},
"type": {
"type": "reference",
- "id": 66,
+ "id": 72,
"name": "Provider"
}
}
@@ -2876,7 +3117,7 @@
{
"type": "reflection",
"declaration": {
- "id": 293,
+ "id": 356,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -2885,7 +3126,7 @@
},
"children": [
{
- "id": 296,
+ "id": 359,
"name": "data",
"kind": 32,
"kindString": "Variable",
@@ -2895,7 +3136,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 293,
+ "line": 309,
"character": 34
}
],
@@ -2906,7 +3147,7 @@
"defaultValue": "null"
},
{
- "id": 298,
+ "id": 361,
"name": "error",
"kind": 32,
"kindString": "Variable",
@@ -2916,7 +3157,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 293,
+ "line": 309,
"character": 59
}
],
@@ -2927,7 +3168,7 @@
"defaultValue": "null"
},
{
- "id": 294,
+ "id": 357,
"name": "provider",
"kind": 32,
"kindString": "Variable",
@@ -2937,18 +3178,18 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 293,
+ "line": 309,
"character": 23
}
],
"type": {
"type": "reference",
- "id": 66,
+ "id": 72,
"name": "Provider"
}
},
{
- "id": 295,
+ "id": 358,
"name": "url",
"kind": 32,
"kindString": "Variable",
@@ -2958,7 +3199,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 293,
+ "line": 309,
"character": 28
}
],
@@ -2968,7 +3209,7 @@
}
},
{
- "id": 297,
+ "id": 360,
"name": "user",
"kind": 32,
"kindString": "Variable",
@@ -2978,7 +3219,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 293,
+ "line": 309,
"character": 46
}
],
@@ -2994,11 +3235,11 @@
"title": "Variables",
"kind": 32,
"children": [
- 296,
- 298,
- 294,
- 295,
- 297
+ 359,
+ 361,
+ 357,
+ 358,
+ 360
]
}
]
@@ -3007,7 +3248,7 @@
{
"type": "reflection",
"declaration": {
- "id": 299,
+ "id": 362,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -3016,7 +3257,7 @@
},
"children": [
{
- "id": 300,
+ "id": 363,
"name": "data",
"kind": 32,
"kindString": "Variable",
@@ -3026,7 +3267,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 297,
+ "line": 313,
"character": 24
}
],
@@ -3037,7 +3278,7 @@
"defaultValue": "null"
},
{
- "id": 302,
+ "id": 365,
"name": "error",
"kind": 32,
"kindString": "Variable",
@@ -3047,7 +3288,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 297,
+ "line": 313,
"character": 49
}
],
@@ -3057,7 +3298,7 @@
}
},
{
- "id": 301,
+ "id": 364,
"name": "user",
"kind": 32,
"kindString": "Variable",
@@ -3067,7 +3308,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 297,
+ "line": 313,
"character": 36
}
],
@@ -3083,9 +3324,9 @@
"title": "Variables",
"kind": 32,
"children": [
- 300,
- 302,
- 301
+ 363,
+ 365,
+ 364
]
}
]
@@ -3098,13 +3339,13 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 285,
+ "line": 301,
"character": 31
}
]
},
{
- "id": 323,
+ "id": 386,
"name": "_notifyAllSubscribers",
"kind": 2048,
"kindString": "Method",
@@ -3114,7 +3355,7 @@
},
"signatures": [
{
- "id": 324,
+ "id": 387,
"name": "_notifyAllSubscribers",
"kind": 4096,
"kindString": "Call signature",
@@ -3123,7 +3364,7 @@
},
"parameters": [
{
- "id": 325,
+ "id": 388,
"name": "event",
"kind": 32768,
"kindString": "Parameter",
@@ -3132,7 +3373,7 @@
},
"type": {
"type": "reference",
- "id": 67,
+ "id": 73,
"name": "AuthChangeEvent"
}
}
@@ -3146,13 +3387,13 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 396,
+ "line": 411,
"character": 31
}
]
},
{
- "id": 306,
+ "id": 369,
"name": "_persistSession",
"kind": 2048,
"kindString": "Method",
@@ -3162,7 +3403,7 @@
},
"signatures": [
{
- "id": 307,
+ "id": 370,
"name": "_persistSession",
"kind": 4096,
"kindString": "Call signature",
@@ -3171,7 +3412,7 @@
},
"parameters": [
{
- "id": 308,
+ "id": 371,
"name": "currentSession",
"kind": 32768,
"kindString": "Parameter",
@@ -3185,7 +3426,7 @@
}
},
{
- "id": 309,
+ "id": 372,
"name": "secondsToExpiry",
"kind": 32768,
"kindString": "Parameter",
@@ -3207,13 +3448,13 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 315,
+ "line": 331,
"character": 25
}
]
},
{
- "id": 312,
+ "id": 375,
"name": "_recoverSession",
"kind": 2048,
"kindString": "Method",
@@ -3223,7 +3464,7 @@
},
"signatures": [
{
- "id": 313,
+ "id": 376,
"name": "_recoverSession",
"kind": 4096,
"kindString": "Call signature",
@@ -3245,13 +3486,13 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 328,
+ "line": 344,
"character": 31
}
]
},
{
- "id": 310,
+ "id": 373,
"name": "_removeSession",
"kind": 2048,
"kindString": "Method",
@@ -3261,7 +3502,7 @@
},
"signatures": [
{
- "id": 311,
+ "id": 374,
"name": "_removeSession",
"kind": 4096,
"kindString": "Call signature",
@@ -3283,13 +3524,13 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 322,
+ "line": 338,
"character": 30
}
]
},
{
- "id": 303,
+ "id": 366,
"name": "_saveSession",
"kind": 2048,
"kindString": "Method",
@@ -3299,7 +3540,7 @@
},
"signatures": [
{
- "id": 304,
+ "id": 367,
"name": "_saveSession",
"kind": 4096,
"kindString": "Call signature",
@@ -3308,7 +3549,7 @@
},
"parameters": [
{
- "id": 305,
+ "id": 368,
"name": "session",
"kind": 32768,
"kindString": "Parameter",
@@ -3331,13 +3572,13 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 301,
+ "line": 317,
"character": 22
}
]
},
{
- "id": 256,
+ "id": 319,
"name": "getSessionFromUrl",
"kind": 2048,
"kindString": "Method",
@@ -3346,7 +3587,7 @@
},
"signatures": [
{
- "id": 257,
+ "id": 320,
"name": "getSessionFromUrl",
"kind": 4096,
"kindString": "Call signature",
@@ -3358,7 +3599,7 @@
},
"parameters": [
{
- "id": 258,
+ "id": 321,
"name": "options",
"kind": 32768,
"kindString": "Parameter",
@@ -3376,7 +3617,7 @@
{
"type": "reflection",
"declaration": {
- "id": 259,
+ "id": 322,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -3385,7 +3626,7 @@
},
"children": [
{
- "id": 260,
+ "id": 323,
"name": "storeSession",
"kind": 32,
"kindString": "Variable",
@@ -3399,7 +3640,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 192,
+ "line": 205,
"character": 16
}
],
@@ -3427,7 +3668,7 @@
"title": "Variables",
"kind": 32,
"children": [
- 260
+ 323
]
}
]
@@ -3443,7 +3684,7 @@
{
"type": "reflection",
"declaration": {
- "id": 261,
+ "id": 324,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -3452,7 +3693,7 @@
},
"children": [
{
- "id": 262,
+ "id": 325,
"name": "data",
"kind": 32,
"kindString": "Variable",
@@ -3462,7 +3703,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 193,
+ "line": 206,
"character": 20
}
],
@@ -3482,7 +3723,7 @@
}
},
{
- "id": 263,
+ "id": 326,
"name": "error",
"kind": 32,
"kindString": "Variable",
@@ -3492,7 +3733,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 193,
+ "line": 206,
"character": 43
}
],
@@ -3516,15 +3757,15 @@
"title": "Variables",
"kind": 32,
"children": [
- 262,
- 263
+ 325,
+ 326
]
}
],
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 193,
+ "line": 206,
"character": 14
}
]
@@ -3538,13 +3779,13 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 191,
+ "line": 204,
"character": 25
}
]
},
{
- "id": 268,
+ "id": 331,
"name": "onAuthStateChange",
"kind": 2048,
"kindString": "Method",
@@ -3553,7 +3794,7 @@
},
"signatures": [
{
- "id": 269,
+ "id": 332,
"name": "onAuthStateChange",
"kind": 4096,
"kindString": "Call signature",
@@ -3566,7 +3807,7 @@
},
"parameters": [
{
- "id": 270,
+ "id": 333,
"name": "callback",
"kind": 32768,
"kindString": "Parameter",
@@ -3576,7 +3817,7 @@
"type": {
"type": "reflection",
"declaration": {
- "id": 271,
+ "id": 334,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -3585,7 +3826,7 @@
},
"signatures": [
{
- "id": 272,
+ "id": 335,
"name": "__call",
"kind": 4096,
"kindString": "Call signature",
@@ -3594,7 +3835,7 @@
},
"parameters": [
{
- "id": 273,
+ "id": 336,
"name": "event",
"kind": 32768,
"kindString": "Parameter",
@@ -3603,12 +3844,12 @@
},
"type": {
"type": "reference",
- "id": 67,
+ "id": 73,
"name": "AuthChangeEvent"
}
},
{
- "id": 274,
+ "id": 337,
"name": "session",
"kind": 32768,
"kindString": "Parameter",
@@ -3640,7 +3881,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 250,
+ "line": 266,
"character": 13
}
]
@@ -3651,7 +3892,7 @@
"type": {
"type": "reflection",
"declaration": {
- "id": 275,
+ "id": 338,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -3660,7 +3901,7 @@
},
"children": [
{
- "id": 276,
+ "id": 339,
"name": "data",
"kind": 32,
"kindString": "Variable",
@@ -3670,7 +3911,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 251,
+ "line": 267,
"character": 11
}
],
@@ -3690,7 +3931,7 @@
}
},
{
- "id": 277,
+ "id": 340,
"name": "error",
"kind": 32,
"kindString": "Variable",
@@ -3700,7 +3941,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 251,
+ "line": 267,
"character": 39
}
],
@@ -3724,15 +3965,15 @@
"title": "Variables",
"kind": 32,
"children": [
- 276,
- 277
+ 339,
+ 340
]
}
],
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 251,
+ "line": 267,
"character": 4
}
]
@@ -3743,13 +3984,13 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 249,
+ "line": 265,
"character": 19
}
]
},
{
- "id": 243,
+ "id": 306,
"name": "refreshSession",
"kind": 2048,
"kindString": "Method",
@@ -3758,7 +3999,7 @@
},
"signatures": [
{
- "id": 244,
+ "id": 307,
"name": "refreshSession",
"kind": 4096,
"kindString": "Call signature",
@@ -3774,7 +4015,7 @@
{
"type": "reflection",
"declaration": {
- "id": 245,
+ "id": 308,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -3783,7 +4024,7 @@
},
"children": [
{
- "id": 246,
+ "id": 309,
"name": "data",
"kind": 32,
"kindString": "Variable",
@@ -3793,7 +4034,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 147,
+ "line": 160,
"character": 8
}
],
@@ -3813,7 +4054,7 @@
}
},
{
- "id": 248,
+ "id": 311,
"name": "error",
"kind": 32,
"kindString": "Variable",
@@ -3823,7 +4064,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 149,
+ "line": 162,
"character": 9
}
],
@@ -3842,7 +4083,7 @@
}
},
{
- "id": 247,
+ "id": 310,
"name": "user",
"kind": 32,
"kindString": "Variable",
@@ -3852,7 +4093,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 148,
+ "line": 161,
"character": 8
}
],
@@ -3877,16 +4118,16 @@
"title": "Variables",
"kind": 32,
"children": [
- 246,
- 248,
- 247
+ 309,
+ 311,
+ 310
]
}
],
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 146,
+ "line": 159,
"character": 34
}
]
@@ -3900,13 +4141,13 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 146,
+ "line": 159,
"character": 22
}
]
},
{
- "id": 241,
+ "id": 304,
"name": "session",
"kind": 2048,
"kindString": "Method",
@@ -3915,7 +4156,7 @@
},
"signatures": [
{
- "id": 242,
+ "id": 305,
"name": "session",
"kind": 4096,
"kindString": "Call signature",
@@ -3944,13 +4185,13 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 139,
+ "line": 152,
"character": 9
}
]
},
{
- "id": 226,
+ "id": 289,
"name": "signIn",
"kind": 2048,
"kindString": "Method",
@@ -3959,7 +4200,7 @@
},
"signatures": [
{
- "id": 227,
+ "id": 290,
"name": "signIn",
"kind": 4096,
"kindString": "Call signature",
@@ -3971,7 +4212,7 @@
},
"parameters": [
{
- "id": 228,
+ "id": 291,
"name": "credentials",
"kind": 32768,
"kindString": "Parameter",
@@ -3984,7 +4225,7 @@
"type": {
"type": "reflection",
"declaration": {
- "id": 229,
+ "id": 292,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -3993,7 +4234,7 @@
},
"children": [
{
- "id": 230,
+ "id": 293,
"name": "email",
"kind": 32,
"kindString": "Variable",
@@ -4007,7 +4248,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 104,
+ "line": 117,
"character": 9
}
],
@@ -4026,7 +4267,7 @@
}
},
{
- "id": 231,
+ "id": 294,
"name": "password",
"kind": 32,
"kindString": "Variable",
@@ -4040,7 +4281,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 105,
+ "line": 118,
"character": 12
}
],
@@ -4059,7 +4300,7 @@
}
},
{
- "id": 232,
+ "id": 295,
"name": "provider",
"kind": 32,
"kindString": "Variable",
@@ -4073,13 +4314,13 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 106,
+ "line": 119,
"character": 12
}
],
"type": {
"type": "reference",
- "id": 66,
+ "id": 72,
"name": "Provider"
}
}
@@ -4089,16 +4330,16 @@
"title": "Variables",
"kind": 32,
"children": [
- 230,
- 231,
- 232
+ 293,
+ 294,
+ 295
]
}
],
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 103,
+ "line": 116,
"character": 27
}
]
@@ -4112,7 +4353,7 @@
{
"type": "reflection",
"declaration": {
- "id": 233,
+ "id": 296,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -4121,7 +4362,7 @@
},
"children": [
{
- "id": 234,
+ "id": 297,
"name": "data",
"kind": 32,
"kindString": "Variable",
@@ -4131,7 +4372,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 108,
+ "line": 121,
"character": 8
}
],
@@ -4151,7 +4392,7 @@
}
},
{
- "id": 238,
+ "id": 301,
"name": "error",
"kind": 32,
"kindString": "Variable",
@@ -4161,7 +4402,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 112,
+ "line": 125,
"character": 9
}
],
@@ -4180,7 +4421,7 @@
}
},
{
- "id": 236,
+ "id": 299,
"name": "provider",
"kind": 32,
"kindString": "Variable",
@@ -4191,18 +4432,18 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 110,
+ "line": 123,
"character": 12
}
],
"type": {
"type": "reference",
- "id": 66,
+ "id": 72,
"name": "Provider"
}
},
{
- "id": 237,
+ "id": 300,
"name": "url",
"kind": 32,
"kindString": "Variable",
@@ -4213,7 +4454,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 111,
+ "line": 124,
"character": 7
}
],
@@ -4232,7 +4473,7 @@
}
},
{
- "id": 235,
+ "id": 298,
"name": "user",
"kind": 32,
"kindString": "Variable",
@@ -4242,7 +4483,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 109,
+ "line": 122,
"character": 8
}
],
@@ -4267,18 +4508,18 @@
"title": "Variables",
"kind": 32,
"children": [
- 234,
- 238,
- 236,
- 237,
- 235
+ 297,
+ 301,
+ 299,
+ 300,
+ 298
]
}
],
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 107,
+ "line": 120,
"character": 14
}
]
@@ -4292,13 +4533,13 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 103,
+ "line": 116,
"character": 14
}
]
},
{
- "id": 264,
+ "id": 327,
"name": "signOut",
"kind": 2048,
"kindString": "Method",
@@ -4307,7 +4548,7 @@
},
"signatures": [
{
- "id": 265,
+ "id": 328,
"name": "signOut",
"kind": 4096,
"kindString": "Call signature",
@@ -4323,7 +4564,7 @@
{
"type": "reflection",
"declaration": {
- "id": 266,
+ "id": 329,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -4332,7 +4573,7 @@
},
"children": [
{
- "id": 267,
+ "id": 330,
"name": "error",
"kind": 32,
"kindString": "Variable",
@@ -4342,7 +4583,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 235,
+ "line": 251,
"character": 34
}
],
@@ -4366,14 +4607,14 @@
"title": "Variables",
"kind": 32,
"children": [
- 267
+ 330
]
}
],
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 235,
+ "line": 251,
"character": 27
}
]
@@ -4387,13 +4628,13 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 235,
+ "line": 251,
"character": 15
}
]
},
{
- "id": 216,
+ "id": 279,
"name": "signUp",
"kind": 2048,
"kindString": "Method",
@@ -4402,7 +4643,7 @@
},
"signatures": [
{
- "id": 217,
+ "id": 280,
"name": "signUp",
"kind": 4096,
"kindString": "Call signature",
@@ -4414,7 +4655,7 @@
},
"parameters": [
{
- "id": 218,
+ "id": 281,
"name": "credentials",
"kind": 32768,
"kindString": "Parameter",
@@ -4427,7 +4668,7 @@
"type": {
"type": "reflection",
"declaration": {
- "id": 219,
+ "id": 282,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -4436,7 +4677,7 @@
},
"children": [
{
- "id": 220,
+ "id": 283,
"name": "email",
"kind": 32,
"kindString": "Variable",
@@ -4449,7 +4690,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 76,
+ "line": 89,
"character": 9
}
],
@@ -4459,7 +4700,7 @@
}
},
{
- "id": 221,
+ "id": 284,
"name": "password",
"kind": 32,
"kindString": "Variable",
@@ -4472,7 +4713,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 77,
+ "line": 90,
"character": 12
}
],
@@ -4487,15 +4728,15 @@
"title": "Variables",
"kind": 32,
"children": [
- 220,
- 221
+ 283,
+ 284
]
}
],
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 75,
+ "line": 88,
"character": 27
}
]
@@ -4509,7 +4750,7 @@
{
"type": "reflection",
"declaration": {
- "id": 222,
+ "id": 285,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -4518,7 +4759,7 @@
},
"children": [
{
- "id": 223,
+ "id": 286,
"name": "data",
"kind": 32,
"kindString": "Variable",
@@ -4528,7 +4769,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 78,
+ "line": 91,
"character": 20
}
],
@@ -4548,7 +4789,7 @@
}
},
{
- "id": 225,
+ "id": 288,
"name": "error",
"kind": 32,
"kindString": "Variable",
@@ -4558,7 +4799,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 78,
+ "line": 91,
"character": 62
}
],
@@ -4577,7 +4818,7 @@
}
},
{
- "id": 224,
+ "id": 287,
"name": "user",
"kind": 32,
"kindString": "Variable",
@@ -4587,7 +4828,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 78,
+ "line": 91,
"character": 42
}
],
@@ -4612,16 +4853,16 @@
"title": "Variables",
"kind": 32,
"children": [
- 223,
- 225,
- 224
+ 286,
+ 288,
+ 287
]
}
],
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 78,
+ "line": 91,
"character": 14
}
]
@@ -4635,13 +4876,13 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 75,
+ "line": 88,
"character": 14
}
]
},
{
- "id": 249,
+ "id": 312,
"name": "update",
"kind": 2048,
"kindString": "Method",
@@ -4650,7 +4891,7 @@
},
"signatures": [
{
- "id": 250,
+ "id": 313,
"name": "update",
"kind": 4096,
"kindString": "Call signature",
@@ -4662,7 +4903,7 @@
},
"parameters": [
{
- "id": 251,
+ "id": 314,
"name": "attributes",
"kind": 32768,
"kindString": "Parameter",
@@ -4682,7 +4923,7 @@
{
"type": "reflection",
"declaration": {
- "id": 252,
+ "id": 315,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -4691,7 +4932,7 @@
},
"children": [
{
- "id": 253,
+ "id": 316,
"name": "data",
"kind": 32,
"kindString": "Variable",
@@ -4701,7 +4942,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 171,
+ "line": 184,
"character": 19
}
],
@@ -4721,7 +4962,7 @@
}
},
{
- "id": 255,
+ "id": 318,
"name": "error",
"kind": 32,
"kindString": "Variable",
@@ -4731,7 +4972,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 171,
+ "line": 184,
"character": 58
}
],
@@ -4750,7 +4991,7 @@
}
},
{
- "id": 254,
+ "id": 317,
"name": "user",
"kind": 32,
"kindString": "Variable",
@@ -4760,7 +5001,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 171,
+ "line": 184,
"character": 38
}
],
@@ -4785,16 +5026,16 @@
"title": "Variables",
"kind": 32,
"children": [
- 253,
- 255,
- 254
+ 316,
+ 318,
+ 317
]
}
],
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 171,
+ "line": 184,
"character": 13
}
]
@@ -4808,13 +5049,13 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 169,
+ "line": 182,
"character": 14
}
]
},
{
- "id": 239,
+ "id": 302,
"name": "user",
"kind": 2048,
"kindString": "Method",
@@ -4823,7 +5064,7 @@
},
"signatures": [
{
- "id": 240,
+ "id": 303,
"name": "user",
"kind": 4096,
"kindString": "Call signature",
@@ -4852,7 +5093,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 132,
+ "line": 145,
"character": 6
}
]
@@ -4863,56 +5104,56 @@
"title": "Constructors",
"kind": 512,
"children": [
- 203
+ 265
]
},
{
"title": "Properties",
"kind": 1024,
"children": [
- 196,
- 199,
- 198,
- 197,
- 201,
- 200,
- 202
+ 258,
+ 261,
+ 260,
+ 259,
+ 263,
+ 262,
+ 264
]
},
{
"title": "Methods",
"kind": 2048,
"children": [
- 314,
- 278,
- 290,
- 323,
+ 377,
+ 341,
+ 353,
+ 386,
+ 369,
+ 375,
+ 373,
+ 366,
+ 319,
+ 331,
306,
+ 304,
+ 289,
+ 327,
+ 279,
312,
- 310,
- 303,
- 256,
- 268,
- 243,
- 241,
- 226,
- 264,
- 216,
- 249,
- 239
+ 302
]
}
],
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 14,
+ "line": 22,
"character": 33
}
]
},
{
- "id": 326,
+ "id": 389,
"name": "DEFAULT_OPTIONS",
"kind": 2097152,
"kindString": "Object literal",
@@ -4921,7 +5162,7 @@
},
"children": [
{
- "id": 328,
+ "id": 391,
"name": "autoRefreshToken",
"kind": 32,
"kindString": "Variable",
@@ -4929,7 +5170,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 8,
+ "line": 16,
"character": 18
}
],
@@ -4940,7 +5181,7 @@
"defaultValue": "true"
},
{
- "id": 331,
+ "id": 394,
"name": "detectSessionInUrl",
"kind": 32,
"kindString": "Variable",
@@ -4948,7 +5189,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 11,
+ "line": 19,
"character": 20
}
],
@@ -4959,7 +5200,7 @@
"defaultValue": "true"
},
{
- "id": 332,
+ "id": 395,
"name": "headers",
"kind": 32,
"kindString": "Variable",
@@ -4967,14 +5208,14 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 12,
+ "line": 20,
"character": 9
}
],
"type": {
"type": "reflection",
"declaration": {
- "id": 333,
+ "id": 396,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -4984,7 +5225,7 @@
"defaultValue": "DEFAULT_HEADERS"
},
{
- "id": 330,
+ "id": 393,
"name": "localStorage",
"kind": 32,
"kindString": "Variable",
@@ -4992,7 +5233,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 10,
+ "line": 18,
"character": 14
}
],
@@ -5003,7 +5244,7 @@
"defaultValue": "globalThis.localStorage"
},
{
- "id": 329,
+ "id": 392,
"name": "persistSession",
"kind": 32,
"kindString": "Variable",
@@ -5011,7 +5252,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 9,
+ "line": 17,
"character": 16
}
],
@@ -5022,7 +5263,7 @@
"defaultValue": "true"
},
{
- "id": 327,
+ "id": 390,
"name": "url",
"kind": 32,
"kindString": "Variable",
@@ -5030,7 +5271,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 7,
+ "line": 15,
"character": 5
}
],
@@ -5046,19 +5287,19 @@
"title": "Variables",
"kind": 32,
"children": [
- 328,
- 331,
- 332,
- 330,
- 329,
- 327
+ 391,
+ 394,
+ 395,
+ 393,
+ 392,
+ 390
]
}
],
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 6,
+ "line": 14,
"character": 21
}
],
@@ -5073,14 +5314,14 @@
"title": "Classes",
"kind": 128,
"children": [
- 195
+ 257
]
},
{
"title": "Object literals",
"kind": 2097152,
"children": [
- 326
+ 389
]
}
],
@@ -5093,7 +5334,7 @@
]
},
{
- "id": 334,
+ "id": 397,
"name": "\"index\"",
"kind": 1,
"kindString": "Module",
@@ -5103,18 +5344,18 @@
"originalName": "/home/runner/work/gotrue-js/gotrue-js/src/index.ts",
"children": [
{
- "id": 336,
+ "id": 399,
"name": "AuthChangeEvent",
"kind": 16777216,
"kindString": "Reference",
"flags": {
"isExported": true
},
- "target": 67
+ "target": 73
},
{
- "id": 335,
- "name": "Provider",
+ "id": 404,
+ "name": "CookieOptions",
"kind": 16777216,
"kindString": "Reference",
"flags": {
@@ -5123,18 +5364,28 @@
"target": 66
},
{
- "id": 337,
- "name": "Session",
+ "id": 398,
+ "name": "Provider",
"kind": 16777216,
"kindString": "Reference",
"flags": {
"isExported": true
},
- "target": 27
+ "target": 72
},
{
- "id": 340,
- "name": "Subscription",
+ "id": 400,
+ "name": "Session",
+ "kind": 16777216,
+ "kindString": "Reference",
+ "flags": {
+ "isExported": true
+ },
+ "target": 27
+ },
+ {
+ "id": 403,
+ "name": "Subscription",
"kind": 16777216,
"kindString": "Reference",
"flags": {
@@ -5143,7 +5394,7 @@
"target": 56
},
{
- "id": 338,
+ "id": 401,
"name": "User",
"kind": 16777216,
"kindString": "Reference",
@@ -5153,7 +5404,7 @@
"target": 33
},
{
- "id": 339,
+ "id": 402,
"name": "UserAttributes",
"kind": 16777216,
"kindString": "Reference",
@@ -5168,12 +5419,13 @@
"title": "References",
"kind": 16777216,
"children": [
- 336,
- 335,
- 337,
- 340,
- 338,
- 339
+ 399,
+ 404,
+ 398,
+ 400,
+ 403,
+ 401,
+ 402
]
}
],
@@ -5186,7 +5438,7 @@
]
},
{
- "id": 187,
+ "id": 74,
"name": "\"lib/constants\"",
"kind": 1,
"kindString": "Module",
@@ -5196,7 +5448,7 @@
"originalName": "/home/runner/work/gotrue-js/gotrue-js/src/lib/constants.ts",
"children": [
{
- "id": 189,
+ "id": 76,
"name": "AUDIENCE",
"kind": 32,
"kindString": "Variable",
@@ -5218,7 +5470,7 @@
"defaultValue": "process?.env?.AUDIENCE || ''"
},
{
- "id": 190,
+ "id": 77,
"name": "DEFAULT_HEADERS",
"kind": 32,
"kindString": "Variable",
@@ -5236,7 +5488,7 @@
"type": {
"type": "reflection",
"declaration": {
- "id": 191,
+ "id": 78,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -5247,7 +5499,7 @@
}
},
{
- "id": 192,
+ "id": 79,
"name": "EXPIRY_MARGIN",
"kind": 32,
"kindString": "Variable",
@@ -5278,7 +5530,7 @@
"defaultValue": "process?.env?.EXPIRY_MARGIN || 60 * 1000"
},
{
- "id": 188,
+ "id": 75,
"name": "GOTRUE_URL",
"kind": 32,
"kindString": "Variable",
@@ -5300,44 +5552,969 @@
"defaultValue": "process?.env?.GOTRUE_URL || 'http://localhost:9999'"
},
{
- "id": 193,
- "name": "STORAGE_KEY",
- "kind": 32,
- "kindString": "Variable",
+ "id": 80,
+ "name": "STORAGE_KEY",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {
+ "isExported": true,
+ "isConst": true
+ },
+ "sources": [
+ {
+ "fileName": "lib/constants.ts",
+ "line": 5,
+ "character": 24
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "defaultValue": "process?.env?.STORAGE_KEY || 'supabase.auth.token'"
+ },
+ {
+ "id": 81,
+ "name": "COOKIE_OPTIONS",
+ "kind": 2097152,
+ "kindString": "Object literal",
+ "flags": {
+ "isExported": true,
+ "isConst": true
+ },
+ "children": [
+ {
+ "id": 84,
+ "name": "domain",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "lib/constants.ts",
+ "line": 9,
+ "character": 8
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "defaultValue": "\"\""
+ },
+ {
+ "id": 83,
+ "name": "lifetime",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "lib/constants.ts",
+ "line": 8,
+ "character": 10
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "number"
+ },
+ "defaultValue": "60 * 60 * 8"
+ },
+ {
+ "id": 82,
+ "name": "name",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "lib/constants.ts",
+ "line": 7,
+ "character": 6
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "defaultValue": "\"sb:token\""
+ },
+ {
+ "id": 85,
+ "name": "path",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "lib/constants.ts",
+ "line": 10,
+ "character": 6
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "defaultValue": "\"/\""
+ },
+ {
+ "id": 86,
+ "name": "sameSite",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "lib/constants.ts",
+ "line": 11,
+ "character": 10
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "defaultValue": "\"lax\""
+ }
+ ],
+ "groups": [
+ {
+ "title": "Variables",
+ "kind": 32,
+ "children": [
+ 84,
+ 83,
+ 82,
+ 85,
+ 86
+ ]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "lib/constants.ts",
+ "line": 6,
+ "character": 27
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "object"
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Variables",
+ "kind": 32,
+ "children": [
+ 76,
+ 77,
+ 79,
+ 75,
+ 80
+ ]
+ },
+ {
+ "title": "Object literals",
+ "kind": 2097152,
+ "children": [
+ 81
+ ]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "lib/constants.ts",
+ "line": 1,
+ "character": 0
+ }
+ ]
+ },
+ {
+ "id": 87,
+ "name": "\"lib/cookies\"",
+ "kind": 1,
+ "kindString": "Module",
+ "flags": {
+ "isExported": true
+ },
+ "originalName": "/home/runner/work/gotrue-js/gotrue-js/src/lib/cookies.ts",
+ "children": [
+ {
+ "id": 88,
+ "name": "Cookie",
+ "kind": 4194304,
+ "kindString": "Type alias",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "lib/cookies.ts",
+ "line": 1,
+ "character": 11
+ }
+ ],
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 89,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "children": [
+ {
+ "id": 93,
+ "name": "domain",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "lib/cookies.ts",
+ "line": 5,
+ "character": 8
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "intrinsic",
+ "name": "undefined"
+ },
+ {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ ]
+ }
+ },
+ {
+ "id": 92,
+ "name": "maxAge",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "lib/cookies.ts",
+ "line": 4,
+ "character": 8
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "number"
+ }
+ },
+ {
+ "id": 90,
+ "name": "name",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "lib/cookies.ts",
+ "line": 2,
+ "character": 6
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 94,
+ "name": "path",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "lib/cookies.ts",
+ "line": 6,
+ "character": 6
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "intrinsic",
+ "name": "undefined"
+ },
+ {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ ]
+ }
+ },
+ {
+ "id": 95,
+ "name": "sameSite",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "lib/cookies.ts",
+ "line": 7,
+ "character": 10
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "intrinsic",
+ "name": "undefined"
+ },
+ {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ ]
+ }
+ },
+ {
+ "id": 91,
+ "name": "value",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "lib/cookies.ts",
+ "line": 3,
+ "character": 7
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Variables",
+ "kind": 32,
+ "children": [
+ 93,
+ 92,
+ 90,
+ 94,
+ 95,
+ 91
+ ]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "lib/cookies.ts",
+ "line": 1,
+ "character": 13
+ }
+ ]
+ }
+ }
+ },
+ {
+ "id": 126,
+ "name": "deleteCookie",
+ "kind": 64,
+ "kindString": "Function",
+ "flags": {
+ "isExported": true
+ },
+ "signatures": [
+ {
+ "id": 127,
+ "name": "deleteCookie",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {
+ "isExported": true
+ },
+ "parameters": [
+ {
+ "id": 128,
+ "name": "req",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "any"
+ }
+ },
+ {
+ "id": 129,
+ "name": "res",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "any"
+ }
+ },
+ {
+ "id": 130,
+ "name": "name",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "void"
+ }
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "lib/cookies.ts",
+ "line": 164,
+ "character": 28
+ }
+ ]
+ },
+ {
+ "id": 109,
+ "name": "isSecureEnvironment",
+ "kind": 64,
+ "kindString": "Function",
+ "flags": {},
+ "signatures": [
+ {
+ "id": 110,
+ "name": "isSecureEnvironment",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {},
+ "comment": {
+ "shortText": "Based on the environment and the request we know if a secure cookie can be set."
+ },
+ "parameters": [
+ {
+ "id": 111,
+ "name": "req",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "type": {
+ "type": "intrinsic",
+ "name": "any"
+ }
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "boolean"
+ }
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "lib/cookies.ts",
+ "line": 112,
+ "character": 28
+ }
+ ]
+ },
+ {
+ "id": 96,
+ "name": "serialize",
+ "kind": 64,
+ "kindString": "Function",
+ "flags": {},
+ "signatures": [
+ {
+ "id": 97,
+ "name": "serialize",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {},
+ "comment": {
+ "shortText": "Serialize data into a cookie header."
+ },
+ "parameters": [
+ {
+ "id": 98,
+ "name": "name",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 99,
+ "name": "val",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 100,
+ "name": "options",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 101,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "children": [
+ {
+ "id": 103,
+ "name": "domain",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "lib/cookies.ts",
+ "line": 18,
+ "character": 10
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 105,
+ "name": "expires",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "lib/cookies.ts",
+ "line": 20,
+ "character": 11
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "name": "Date"
+ }
+ },
+ {
+ "id": 106,
+ "name": "httpOnly",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "lib/cookies.ts",
+ "line": 21,
+ "character": 12
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "boolean"
+ }
+ },
+ {
+ "id": 102,
+ "name": "maxAge",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "lib/cookies.ts",
+ "line": 17,
+ "character": 10
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "number"
+ }
+ },
+ {
+ "id": 104,
+ "name": "path",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "lib/cookies.ts",
+ "line": 19,
+ "character": 8
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 108,
+ "name": "sameSite",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "lib/cookies.ts",
+ "line": 23,
+ "character": 12
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 107,
+ "name": "secure",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "lib/cookies.ts",
+ "line": 22,
+ "character": 10
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "boolean"
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Variables",
+ "kind": 32,
+ "children": [
+ 103,
+ 105,
+ 106,
+ 102,
+ 104,
+ 108,
+ 107
+ ]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "lib/cookies.ts",
+ "line": 16,
+ "character": 10
+ }
+ ]
+ }
+ }
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "lib/cookies.ts",
+ "line": 13,
+ "character": 18
+ }
+ ]
+ },
+ {
+ "id": 112,
+ "name": "serializeCookie",
+ "kind": 64,
+ "kindString": "Function",
+ "flags": {},
+ "signatures": [
+ {
+ "id": 113,
+ "name": "serializeCookie",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {},
+ "comment": {
+ "shortText": "Serialize a cookie to a string."
+ },
+ "parameters": [
+ {
+ "id": 114,
+ "name": "cookie",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "type": {
+ "type": "reference",
+ "id": 88,
+ "name": "Cookie"
+ }
+ },
+ {
+ "id": 115,
+ "name": "secure",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "type": {
+ "type": "intrinsic",
+ "name": "boolean"
+ }
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "lib/cookies.ts",
+ "line": 129,
+ "character": 24
+ }
+ ]
+ },
+ {
+ "id": 121,
+ "name": "setCookie",
+ "kind": 64,
+ "kindString": "Function",
+ "flags": {
+ "isExported": true
+ },
+ "signatures": [
+ {
+ "id": 122,
+ "name": "setCookie",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {
+ "isExported": true
+ },
+ "comment": {
+ "shortText": "Set one or more cookies."
+ },
+ "parameters": [
+ {
+ "id": 123,
+ "name": "req",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "any"
+ }
+ },
+ {
+ "id": 124,
+ "name": "res",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "any"
+ }
+ },
+ {
+ "id": 125,
+ "name": "cookie",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true
+ },
+ "type": {
+ "type": "reference",
+ "id": 88,
+ "name": "Cookie"
+ }
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "void"
+ }
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "lib/cookies.ts",
+ "line": 160,
+ "character": 25
+ }
+ ]
+ },
+ {
+ "id": 116,
+ "name": "setCookies",
+ "kind": 64,
+ "kindString": "Function",
"flags": {
- "isExported": true,
- "isConst": true
+ "isExported": true
},
- "sources": [
+ "signatures": [
{
- "fileName": "lib/constants.ts",
- "line": 5,
- "character": 24
+ "id": 117,
+ "name": "setCookies",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {
+ "isExported": true
+ },
+ "comment": {
+ "shortText": "Set one or more cookies."
+ },
+ "parameters": [
+ {
+ "id": 118,
+ "name": "req",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "any"
+ }
+ },
+ {
+ "id": 119,
+ "name": "res",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "any"
+ }
+ },
+ {
+ "id": 120,
+ "name": "cookies",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true
+ },
+ "type": {
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "reference",
+ "id": 88,
+ "name": "Cookie"
+ }
+ ],
+ "name": "Array"
+ }
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "void"
+ }
}
],
- "type": {
- "type": "intrinsic",
- "name": "string"
- },
- "defaultValue": "process?.env?.STORAGE_KEY || 'supabase.auth.token'"
+ "sources": [
+ {
+ "fileName": "lib/cookies.ts",
+ "line": 144,
+ "character": 26
+ }
+ ]
}
],
"groups": [
{
- "title": "Variables",
- "kind": 32,
+ "title": "Type aliases",
+ "kind": 4194304,
"children": [
- 189,
- 190,
- 192,
- 188,
- 193
+ 88
+ ]
+ },
+ {
+ "title": "Functions",
+ "kind": 64,
+ "children": [
+ 126,
+ 109,
+ 96,
+ 112,
+ 121,
+ 116
]
}
],
"sources": [
{
- "fileName": "lib/constants.ts",
+ "fileName": "lib/cookies.ts",
"line": 1,
"character": 0
}
@@ -5792,7 +6969,7 @@
]
},
{
- "id": 155,
+ "id": 224,
"name": "\"lib/helpers\"",
"kind": 1,
"kindString": "Module",
@@ -5802,7 +6979,7 @@
"originalName": "/home/runner/work/gotrue-js/gotrue-js/src/lib/helpers.ts",
"children": [
{
- "id": 156,
+ "id": 225,
"name": "LocalStorage",
"kind": 128,
"kindString": "Class",
@@ -5811,7 +6988,7 @@
},
"indexSignature": [
{
- "id": 158,
+ "id": 227,
"name": "__index",
"kind": 8192,
"kindString": "Index signature",
@@ -5820,7 +6997,7 @@
},
"parameters": [
{
- "id": 159,
+ "id": 228,
"name": "name",
"kind": 32768,
"kindString": "Parameter",
@@ -5841,7 +7018,7 @@
],
"children": [
{
- "id": 161,
+ "id": 230,
"name": "constructor",
"kind": 512,
"kindString": "Constructor",
@@ -5850,7 +7027,7 @@
},
"signatures": [
{
- "id": 162,
+ "id": 231,
"name": "new LocalStorage",
"kind": 16384,
"kindString": "Constructor signature",
@@ -5859,7 +7036,7 @@
},
"parameters": [
{
- "id": 163,
+ "id": 232,
"name": "localStorage",
"kind": 32768,
"kindString": "Parameter",
@@ -5874,7 +7051,7 @@
],
"type": {
"type": "reference",
- "id": 156,
+ "id": 225,
"name": "LocalStorage"
}
}
@@ -5888,7 +7065,7 @@
]
},
{
- "id": 160,
+ "id": 229,
"name": "length",
"kind": 1024,
"kindString": "Property",
@@ -5908,7 +7085,7 @@
}
},
{
- "id": 157,
+ "id": 226,
"name": "localStorage",
"kind": 1024,
"kindString": "Property",
@@ -5928,7 +7105,7 @@
}
},
{
- "id": 164,
+ "id": 233,
"name": "clear",
"kind": 2048,
"kindString": "Method",
@@ -5937,7 +7114,7 @@
},
"signatures": [
{
- "id": 165,
+ "id": 234,
"name": "clear",
"kind": 4096,
"kindString": "Call signature",
@@ -5959,7 +7136,7 @@
]
},
{
- "id": 173,
+ "id": 242,
"name": "getItem",
"kind": 2048,
"kindString": "Method",
@@ -5968,7 +7145,7 @@
},
"signatures": [
{
- "id": 174,
+ "id": 243,
"name": "getItem",
"kind": 4096,
"kindString": "Call signature",
@@ -5977,7 +7154,7 @@
},
"parameters": [
{
- "id": 175,
+ "id": 244,
"name": "key",
"kind": 32768,
"kindString": "Parameter",
@@ -6014,7 +7191,7 @@
]
},
{
- "id": 166,
+ "id": 235,
"name": "key",
"kind": 2048,
"kindString": "Method",
@@ -6023,7 +7200,7 @@
},
"signatures": [
{
- "id": 167,
+ "id": 236,
"name": "key",
"kind": 4096,
"kindString": "Call signature",
@@ -6032,7 +7209,7 @@
},
"parameters": [
{
- "id": 168,
+ "id": 237,
"name": "index",
"kind": 32768,
"kindString": "Parameter",
@@ -6069,7 +7246,7 @@
]
},
{
- "id": 176,
+ "id": 245,
"name": "removeItem",
"kind": 2048,
"kindString": "Method",
@@ -6078,7 +7255,7 @@
},
"signatures": [
{
- "id": 177,
+ "id": 246,
"name": "removeItem",
"kind": 4096,
"kindString": "Call signature",
@@ -6087,7 +7264,7 @@
},
"parameters": [
{
- "id": 178,
+ "id": 247,
"name": "key",
"kind": 32768,
"kindString": "Parameter",
@@ -6115,7 +7292,7 @@
]
},
{
- "id": 169,
+ "id": 238,
"name": "setItem",
"kind": 2048,
"kindString": "Method",
@@ -6124,7 +7301,7 @@
},
"signatures": [
{
- "id": 170,
+ "id": 239,
"name": "setItem",
"kind": 4096,
"kindString": "Call signature",
@@ -6133,7 +7310,7 @@
},
"parameters": [
{
- "id": 171,
+ "id": 240,
"name": "key",
"kind": 32768,
"kindString": "Parameter",
@@ -6146,7 +7323,7 @@
}
},
{
- "id": 172,
+ "id": 241,
"name": "value",
"kind": 32768,
"kindString": "Parameter",
@@ -6179,26 +7356,26 @@
"title": "Constructors",
"kind": 512,
"children": [
- 161
+ 230
]
},
{
"title": "Properties",
"kind": 1024,
"children": [
- 160,
- 157
+ 229,
+ 226
]
},
{
"title": "Methods",
"kind": 2048,
"children": [
- 164,
- 173,
- 166,
- 176,
- 169
+ 233,
+ 242,
+ 235,
+ 245,
+ 238
]
}
],
@@ -6217,7 +7394,7 @@
]
},
{
- "id": 183,
+ "id": 252,
"name": "getParameterByName",
"kind": 64,
"kindString": "Function",
@@ -6226,7 +7403,7 @@
},
"signatures": [
{
- "id": 184,
+ "id": 253,
"name": "getParameterByName",
"kind": 4096,
"kindString": "Call signature",
@@ -6235,7 +7412,7 @@
},
"parameters": [
{
- "id": 185,
+ "id": 254,
"name": "name",
"kind": 32768,
"kindString": "Parameter",
@@ -6248,7 +7425,7 @@
}
},
{
- "id": 186,
+ "id": 255,
"name": "url",
"kind": 32768,
"kindString": "Parameter",
@@ -6295,7 +7472,7 @@
]
},
{
- "id": 181,
+ "id": 250,
"name": "isBrowser",
"kind": 64,
"kindString": "Function",
@@ -6305,7 +7482,7 @@
},
"signatures": [
{
- "id": 182,
+ "id": 251,
"name": "isBrowser",
"kind": 4096,
"kindString": "Call signature",
@@ -6327,7 +7504,7 @@
]
},
{
- "id": 179,
+ "id": 248,
"name": "uuid",
"kind": 64,
"kindString": "Function",
@@ -6336,7 +7513,7 @@
},
"signatures": [
{
- "id": 180,
+ "id": 249,
"name": "uuid",
"kind": 4096,
"kindString": "Call signature",
@@ -6363,16 +7540,16 @@
"title": "Classes",
"kind": 128,
"children": [
- 156
+ 225
]
},
{
"title": "Functions",
"kind": 64,
"children": [
- 183,
- 181,
- 179
+ 252,
+ 250,
+ 248
]
}
],
@@ -6394,6 +7571,187 @@
},
"originalName": "/home/runner/work/gotrue-js/gotrue-js/src/lib/types.ts",
"children": [
+ {
+ "id": 66,
+ "name": "CookieOptions",
+ "kind": 256,
+ "kindString": "Interface",
+ "flags": {
+ "isExported": true
+ },
+ "children": [
+ {
+ "id": 69,
+ "name": "domain",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExported": true,
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "lib/types.ts",
+ "line": 71,
+ "character": 8
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "intrinsic",
+ "name": "undefined"
+ },
+ {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ ]
+ }
+ },
+ {
+ "id": 68,
+ "name": "lifetime",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExported": true,
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "lib/types.ts",
+ "line": 69,
+ "character": 10
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "intrinsic",
+ "name": "undefined"
+ },
+ {
+ "type": "intrinsic",
+ "name": "number"
+ }
+ ]
+ }
+ },
+ {
+ "id": 67,
+ "name": "name",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExported": true,
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "lib/types.ts",
+ "line": 67,
+ "character": 6
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "intrinsic",
+ "name": "undefined"
+ },
+ {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ ]
+ }
+ },
+ {
+ "id": 70,
+ "name": "path",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExported": true,
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "lib/types.ts",
+ "line": 72,
+ "character": 6
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "intrinsic",
+ "name": "undefined"
+ },
+ {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ ]
+ }
+ },
+ {
+ "id": 71,
+ "name": "sameSite",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExported": true,
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "lib/types.ts",
+ "line": 74,
+ "character": 10
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "intrinsic",
+ "name": "undefined"
+ },
+ {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ ]
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [
+ 69,
+ 68,
+ 67,
+ 70,
+ 71
+ ]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "lib/types.ts",
+ "line": 65,
+ "character": 30
+ }
+ ]
+ },
{
"id": 27,
"name": "Session",
@@ -6583,7 +7941,7 @@
},
"type": {
"type": "reference",
- "id": 67,
+ "id": 73,
"name": "AuthChangeEvent"
}
},
@@ -7303,7 +8661,7 @@
]
},
{
- "id": 67,
+ "id": 73,
"name": "AuthChangeEvent",
"kind": 4194304,
"kindString": "Type alias",
@@ -7331,12 +8689,16 @@
{
"type": "stringLiteral",
"value": "USER_UPDATED"
+ },
+ {
+ "type": "stringLiteral",
+ "value": "PASSWORD_RECOVERY"
}
]
}
},
{
- "id": 66,
+ "id": 72,
"name": "Provider",
"kind": 4194304,
"kindString": "Type alias",
@@ -7378,6 +8740,7 @@
"title": "Interfaces",
"kind": 256,
"children": [
+ 66,
27,
56,
33,
@@ -7388,8 +8751,8 @@
"title": "Type aliases",
"kind": 4194304,
"children": [
- 67,
- 66
+ 73,
+ 72
]
}
],
@@ -7407,12 +8770,13 @@
"title": "Modules",
"kind": 1,
"children": [
- 68,
- 194,
- 334,
- 187,
+ 131,
+ 256,
+ 397,
+ 74,
+ 87,
1,
- 155,
+ 224,
26
]
}
diff --git a/web/spec/postgrest.json b/web/spec/postgrest.json
index 1d0acd206c6..36b205719a1 100644
--- a/web/spec/postgrest.json
+++ b/web/spec/postgrest.json
@@ -6,7 +6,7 @@
"originalName": "",
"children": [
{
- "id": 344,
+ "id": 358,
"name": "\"PostgrestClient\"",
"kind": 1,
"kindString": "Module",
@@ -16,7 +16,7 @@
"originalName": "/home/runner/work/postgrest-js/postgrest-js/src/PostgrestClient.ts",
"children": [
{
- "id": 345,
+ "id": 359,
"name": "PostgrestClient",
"kind": 128,
"kindString": "Class",
@@ -25,7 +25,7 @@
},
"children": [
{
- "id": 352,
+ "id": 366,
"name": "constructor",
"kind": 512,
"kindString": "Constructor",
@@ -37,7 +37,7 @@
},
"signatures": [
{
- "id": 353,
+ "id": 367,
"name": "new PostgrestClient",
"kind": 16384,
"kindString": "Constructor signature",
@@ -49,7 +49,7 @@
},
"parameters": [
{
- "id": 354,
+ "id": 368,
"name": "url",
"kind": 32768,
"kindString": "Parameter",
@@ -65,7 +65,7 @@
}
},
{
- "id": 355,
+ "id": 369,
"name": "__namedParameters",
"kind": 32768,
"kindString": "Parameter",
@@ -76,7 +76,7 @@
"type": {
"type": "reflection",
"declaration": {
- "id": 356,
+ "id": 370,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -85,7 +85,7 @@
},
"children": [
{
- "id": 357,
+ "id": 371,
"name": "headers",
"kind": 32,
"kindString": "Variable",
@@ -98,14 +98,14 @@
"sources": [
{
"fileName": "PostgrestClient.ts",
- "line": 19,
+ "line": 18,
"character": 13
}
],
"type": {
"type": "reflection",
"declaration": {
- "id": 358,
+ "id": 372,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -114,7 +114,7 @@
},
"indexSignature": [
{
- "id": 359,
+ "id": 373,
"name": "__index",
"kind": 8192,
"kindString": "Index signature",
@@ -123,7 +123,7 @@
},
"parameters": [
{
- "id": 360,
+ "id": 374,
"name": "key",
"kind": 32768,
"kindString": "Parameter",
@@ -146,7 +146,7 @@
}
},
{
- "id": 361,
+ "id": 375,
"name": "schema",
"kind": 32,
"kindString": "Variable",
@@ -159,7 +159,7 @@
"sources": [
{
"fileName": "PostgrestClient.ts",
- "line": 19,
+ "line": 18,
"character": 26
}
],
@@ -183,15 +183,15 @@
"title": "Variables",
"kind": 32,
"children": [
- 357,
- 361
+ 371,
+ 375
]
}
],
"sources": [
{
"fileName": "PostgrestClient.ts",
- "line": 18,
+ "line": 17,
"character": 16
}
]
@@ -202,7 +202,7 @@
],
"type": {
"type": "reference",
- "id": 345,
+ "id": 359,
"name": "PostgrestClient"
}
}
@@ -210,13 +210,13 @@
"sources": [
{
"fileName": "PostgrestClient.ts",
- "line": 8,
+ "line": 7,
"character": 17
}
]
},
{
- "id": 347,
+ "id": 361,
"name": "headers",
"kind": 1024,
"kindString": "Property",
@@ -226,14 +226,14 @@
"sources": [
{
"fileName": "PostgrestClient.ts",
- "line": 7,
+ "line": 6,
"character": 9
}
],
"type": {
"type": "reflection",
"declaration": {
- "id": 348,
+ "id": 362,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -242,7 +242,7 @@
},
"indexSignature": [
{
- "id": 349,
+ "id": 363,
"name": "__index",
"kind": 8192,
"kindString": "Index signature",
@@ -251,7 +251,7 @@
},
"parameters": [
{
- "id": 350,
+ "id": 364,
"name": "key",
"kind": 32768,
"kindString": "Parameter",
@@ -273,7 +273,7 @@
"sources": [
{
"fileName": "PostgrestClient.ts",
- "line": 7,
+ "line": 6,
"character": 10
}
]
@@ -281,7 +281,7 @@
}
},
{
- "id": 351,
+ "id": 365,
"name": "schema",
"kind": 1024,
"kindString": "Property",
@@ -292,7 +292,7 @@
"sources": [
{
"fileName": "PostgrestClient.ts",
- "line": 8,
+ "line": 7,
"character": 8
}
],
@@ -311,7 +311,7 @@
}
},
{
- "id": 346,
+ "id": 360,
"name": "url",
"kind": 1024,
"kindString": "Property",
@@ -321,7 +321,7 @@
"sources": [
{
"fileName": "PostgrestClient.ts",
- "line": 6,
+ "line": 5,
"character": 5
}
],
@@ -331,7 +331,7 @@
}
},
{
- "id": 362,
+ "id": 376,
"name": "auth",
"kind": 2048,
"kindString": "Method",
@@ -340,7 +340,7 @@
},
"signatures": [
{
- "id": 363,
+ "id": 377,
"name": "auth",
"kind": 4096,
"kindString": "Call signature",
@@ -352,7 +352,7 @@
},
"parameters": [
{
- "id": 364,
+ "id": 378,
"name": "token",
"kind": 32768,
"kindString": "Parameter",
@@ -377,13 +377,13 @@
"sources": [
{
"fileName": "PostgrestClient.ts",
- "line": 31,
+ "line": 30,
"character": 6
}
]
},
{
- "id": 365,
+ "id": 379,
"name": "from",
"kind": 2048,
"kindString": "Method",
@@ -392,7 +392,7 @@
},
"signatures": [
{
- "id": 366,
+ "id": 380,
"name": "from",
"kind": 4096,
"kindString": "Call signature",
@@ -404,7 +404,7 @@
},
"typeParameter": [
{
- "id": 367,
+ "id": 381,
"name": "T",
"kind": 131072,
"kindString": "Type parameter",
@@ -415,7 +415,7 @@
],
"parameters": [
{
- "id": 368,
+ "id": 382,
"name": "table",
"kind": 32768,
"kindString": "Parameter",
@@ -433,7 +433,7 @@
],
"type": {
"type": "reference",
- "id": 287,
+ "id": 290,
"typeArguments": [
{
"type": "typeParameter",
@@ -451,13 +451,13 @@
"sources": [
{
"fileName": "PostgrestClient.ts",
- "line": 41,
+ "line": 40,
"character": 6
}
]
},
{
- "id": 369,
+ "id": 383,
"name": "rpc",
"kind": 2048,
"kindString": "Method",
@@ -466,7 +466,7 @@
},
"signatures": [
{
- "id": 370,
+ "id": 384,
"name": "rpc",
"kind": 4096,
"kindString": "Call signature",
@@ -478,7 +478,7 @@
},
"typeParameter": [
{
- "id": 371,
+ "id": 385,
"name": "T",
"kind": 131072,
"kindString": "Type parameter",
@@ -489,7 +489,7 @@
],
"parameters": [
{
- "id": 372,
+ "id": 386,
"name": "fn",
"kind": 32768,
"kindString": "Parameter",
@@ -505,7 +505,7 @@
}
},
{
- "id": 373,
+ "id": 387,
"name": "params",
"kind": 32768,
"kindString": "Parameter",
@@ -533,7 +533,7 @@
],
"type": {
"type": "reference",
- "id": 59,
+ "id": 62,
"typeArguments": [
{
"type": "typeParameter",
@@ -551,7 +551,7 @@
"sources": [
{
"fileName": "PostgrestClient.ts",
- "line": 52,
+ "line": 51,
"character": 5
}
]
@@ -562,32 +562,32 @@
"title": "Constructors",
"kind": 512,
"children": [
- 352
+ 366
]
},
{
"title": "Properties",
"kind": 1024,
"children": [
- 347,
- 351,
- 346
+ 361,
+ 365,
+ 360
]
},
{
"title": "Methods",
"kind": 2048,
"children": [
- 362,
- 365,
- 369
+ 376,
+ 379,
+ 383
]
}
],
"sources": [
{
"fileName": "PostgrestClient.ts",
- "line": 5,
+ "line": 4,
"character": 36
}
]
@@ -598,7 +598,7 @@
"title": "Classes",
"kind": 128,
"children": [
- 345
+ 359
]
}
],
@@ -611,7 +611,7 @@
]
},
{
- "id": 374,
+ "id": 388,
"name": "\"index\"",
"kind": 1,
"kindString": "Module",
@@ -628,7 +628,7 @@
]
},
{
- "id": 110,
+ "id": 113,
"name": "\"lib/PostgrestFilterBuilder\"",
"kind": 1,
"kindString": "Module",
@@ -638,7 +638,7 @@
"originalName": "/home/runner/work/postgrest-js/postgrest-js/src/lib/PostgrestFilterBuilder.ts",
"children": [
{
- "id": 111,
+ "id": 114,
"name": "PostgrestFilterBuilder",
"kind": 128,
"kindString": "Class",
@@ -647,7 +647,7 @@
},
"typeParameter": [
{
- "id": 112,
+ "id": 115,
"name": "T",
"kind": 131072,
"kindString": "Type parameter",
@@ -658,7 +658,7 @@
],
"children": [
{
- "id": 266,
+ "id": 269,
"name": "constructor",
"kind": 512,
"kindString": "Constructor",
@@ -667,7 +667,7 @@
},
"signatures": [
{
- "id": 267,
+ "id": 270,
"name": "new PostgrestFilterBuilder",
"kind": 16384,
"kindString": "Constructor signature",
@@ -676,7 +676,7 @@
},
"parameters": [
{
- "id": 268,
+ "id": 271,
"name": "builder",
"kind": 32768,
"kindString": "Parameter",
@@ -685,7 +685,7 @@
},
"type": {
"type": "reference",
- "id": 29,
+ "id": 32,
"typeArguments": [
{
"type": "typeParameter",
@@ -698,12 +698,12 @@
],
"type": {
"type": "reference",
- "id": 111,
+ "id": 114,
"name": "PostgrestFilterBuilder"
},
"inheritedFrom": {
"type": "reference",
- "id": 39,
+ "id": 42,
"name": "PostgrestBuilder.__constructor"
}
}
@@ -711,18 +711,18 @@
"sources": [
{
"fileName": "lib/types.ts",
- "line": 52,
+ "line": 55,
"character": 44
}
],
"inheritedFrom": {
"type": "reference",
- "id": 39,
+ "id": 42,
"name": "PostgrestBuilder.__constructor"
}
},
{
- "id": 265,
+ "id": 268,
"name": "body",
"kind": 1024,
"kindString": "Property",
@@ -734,7 +734,7 @@
"sources": [
{
"fileName": "lib/types.ts",
- "line": 52,
+ "line": 55,
"character": 16
}
],
@@ -768,12 +768,12 @@
},
"inheritedFrom": {
"type": "reference",
- "id": 38,
+ "id": 41,
"name": "PostgrestBuilder.body"
}
},
{
- "id": 260,
+ "id": 263,
"name": "headers",
"kind": 1024,
"kindString": "Property",
@@ -784,14 +784,14 @@
"sources": [
{
"fileName": "lib/types.ts",
- "line": 50,
+ "line": 53,
"character": 19
}
],
"type": {
"type": "reflection",
"declaration": {
- "id": 261,
+ "id": 264,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -800,7 +800,7 @@
},
"indexSignature": [
{
- "id": 262,
+ "id": 265,
"name": "__index",
"kind": 8192,
"kindString": "Index signature",
@@ -809,7 +809,7 @@
},
"parameters": [
{
- "id": 263,
+ "id": 266,
"name": "key",
"kind": 32768,
"kindString": "Parameter",
@@ -831,7 +831,7 @@
"sources": [
{
"fileName": "lib/types.ts",
- "line": 50,
+ "line": 53,
"character": 21
}
]
@@ -839,12 +839,12 @@
},
"inheritedFrom": {
"type": "reference",
- "id": 33,
+ "id": 36,
"name": "PostgrestBuilder.headers"
}
},
{
- "id": 258,
+ "id": 261,
"name": "method",
"kind": 1024,
"kindString": "Property",
@@ -855,7 +855,7 @@
"sources": [
{
"fileName": "lib/types.ts",
- "line": 48,
+ "line": 51,
"character": 18
}
],
@@ -886,12 +886,12 @@
},
"inheritedFrom": {
"type": "reference",
- "id": 31,
+ "id": 34,
"name": "PostgrestBuilder.method"
}
},
{
- "id": 264,
+ "id": 267,
"name": "schema",
"kind": 1024,
"kindString": "Property",
@@ -903,7 +903,7 @@
"sources": [
{
"fileName": "lib/types.ts",
- "line": 51,
+ "line": 54,
"character": 18
}
],
@@ -922,12 +922,12 @@
},
"inheritedFrom": {
"type": "reference",
- "id": 37,
+ "id": 40,
"name": "PostgrestBuilder.schema"
}
},
{
- "id": 259,
+ "id": 262,
"name": "url",
"kind": 1024,
"kindString": "Property",
@@ -938,7 +938,7 @@
"sources": [
{
"fileName": "lib/types.ts",
- "line": 49,
+ "line": 52,
"character": 15
}
],
@@ -948,12 +948,12 @@
},
"inheritedFrom": {
"type": "reference",
- "id": 32,
+ "id": 35,
"name": "PostgrestBuilder.url"
}
},
{
- "id": 185,
+ "id": 188,
"name": "adj",
"kind": 2048,
"kindString": "Method",
@@ -962,7 +962,7 @@
},
"signatures": [
{
- "id": 186,
+ "id": 189,
"name": "adj",
"kind": 4096,
"kindString": "Call signature",
@@ -974,7 +974,7 @@
},
"parameters": [
{
- "id": 187,
+ "id": 190,
"name": "column",
"kind": 32768,
"kindString": "Parameter",
@@ -994,7 +994,7 @@
}
},
{
- "id": 188,
+ "id": 191,
"name": "range",
"kind": 32768,
"kindString": "Parameter",
@@ -1025,7 +1025,7 @@
]
},
{
- "id": 165,
+ "id": 168,
"name": "cd",
"kind": 2048,
"kindString": "Method",
@@ -1034,7 +1034,7 @@
},
"signatures": [
{
- "id": 166,
+ "id": 169,
"name": "cd",
"kind": 4096,
"kindString": "Call signature",
@@ -1046,7 +1046,7 @@
},
"parameters": [
{
- "id": 167,
+ "id": 170,
"name": "column",
"kind": 32768,
"kindString": "Parameter",
@@ -1066,7 +1066,7 @@
}
},
{
- "id": 168,
+ "id": 171,
"name": "value",
"kind": 32768,
"kindString": "Parameter",
@@ -1124,7 +1124,7 @@
]
},
{
- "id": 161,
+ "id": 164,
"name": "cs",
"kind": 2048,
"kindString": "Method",
@@ -1133,7 +1133,7 @@
},
"signatures": [
{
- "id": 162,
+ "id": 165,
"name": "cs",
"kind": 4096,
"kindString": "Call signature",
@@ -1145,7 +1145,7 @@
},
"parameters": [
{
- "id": 163,
+ "id": 166,
"name": "column",
"kind": 32768,
"kindString": "Parameter",
@@ -1165,7 +1165,7 @@
}
},
{
- "id": 164,
+ "id": 167,
"name": "value",
"kind": 32768,
"kindString": "Parameter",
@@ -1223,7 +1223,7 @@
]
},
{
- "id": 121,
+ "id": 124,
"name": "eq",
"kind": 2048,
"kindString": "Method",
@@ -1232,7 +1232,7 @@
},
"signatures": [
{
- "id": 122,
+ "id": 125,
"name": "eq",
"kind": 4096,
"kindString": "Call signature",
@@ -1244,7 +1244,7 @@
},
"parameters": [
{
- "id": 123,
+ "id": 126,
"name": "column",
"kind": 32768,
"kindString": "Parameter",
@@ -1264,7 +1264,7 @@
}
},
{
- "id": 124,
+ "id": 127,
"name": "value",
"kind": 32768,
"kindString": "Parameter",
@@ -1306,7 +1306,7 @@
]
},
{
- "id": 221,
+ "id": 224,
"name": "filter",
"kind": 2048,
"kindString": "Method",
@@ -1315,7 +1315,7 @@
},
"signatures": [
{
- "id": 222,
+ "id": 225,
"name": "filter",
"kind": 4096,
"kindString": "Call signature",
@@ -1327,7 +1327,7 @@
},
"parameters": [
{
- "id": 223,
+ "id": 226,
"name": "column",
"kind": 32768,
"kindString": "Parameter",
@@ -1347,7 +1347,7 @@
}
},
{
- "id": 224,
+ "id": 227,
"name": "operator",
"kind": 32768,
"kindString": "Parameter",
@@ -1359,12 +1359,12 @@
},
"type": {
"type": "reference",
- "id": 285,
+ "id": 288,
"name": "FilterOperator"
}
},
{
- "id": 225,
+ "id": 228,
"name": "value",
"kind": 32768,
"kindString": "Parameter",
@@ -1395,7 +1395,7 @@
]
},
{
- "id": 193,
+ "id": 196,
"name": "fts",
"kind": 2048,
"kindString": "Method",
@@ -1404,7 +1404,7 @@
},
"signatures": [
{
- "id": 194,
+ "id": 197,
"name": "fts",
"kind": 4096,
"kindString": "Call signature",
@@ -1416,7 +1416,7 @@
},
"parameters": [
{
- "id": 195,
+ "id": 198,
"name": "column",
"kind": 32768,
"kindString": "Parameter",
@@ -1436,7 +1436,7 @@
}
},
{
- "id": 196,
+ "id": 199,
"name": "query",
"kind": 32768,
"kindString": "Parameter",
@@ -1452,7 +1452,7 @@
}
},
{
- "id": 197,
+ "id": 200,
"name": "__namedParameters",
"kind": 32768,
"kindString": "Parameter",
@@ -1463,7 +1463,7 @@
"type": {
"type": "reflection",
"declaration": {
- "id": 198,
+ "id": 201,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -1472,7 +1472,7 @@
},
"children": [
{
- "id": 199,
+ "id": 202,
"name": "config",
"kind": 32,
"kindString": "Variable",
@@ -1509,7 +1509,7 @@
"title": "Variables",
"kind": 32,
"children": [
- 199
+ 202
]
}
],
@@ -1540,7 +1540,7 @@
]
},
{
- "id": 129,
+ "id": 132,
"name": "gt",
"kind": 2048,
"kindString": "Method",
@@ -1549,7 +1549,7 @@
},
"signatures": [
{
- "id": 130,
+ "id": 133,
"name": "gt",
"kind": 4096,
"kindString": "Call signature",
@@ -1561,7 +1561,7 @@
},
"parameters": [
{
- "id": 131,
+ "id": 134,
"name": "column",
"kind": 32768,
"kindString": "Parameter",
@@ -1581,7 +1581,7 @@
}
},
{
- "id": 132,
+ "id": 135,
"name": "value",
"kind": 32768,
"kindString": "Parameter",
@@ -1623,7 +1623,7 @@
]
},
{
- "id": 133,
+ "id": 136,
"name": "gte",
"kind": 2048,
"kindString": "Method",
@@ -1632,7 +1632,7 @@
},
"signatures": [
{
- "id": 134,
+ "id": 137,
"name": "gte",
"kind": 4096,
"kindString": "Call signature",
@@ -1644,7 +1644,7 @@
},
"parameters": [
{
- "id": 135,
+ "id": 138,
"name": "column",
"kind": 32768,
"kindString": "Parameter",
@@ -1664,7 +1664,7 @@
}
},
{
- "id": 136,
+ "id": 139,
"name": "value",
"kind": 32768,
"kindString": "Parameter",
@@ -1706,7 +1706,7 @@
]
},
{
- "id": 149,
+ "id": 152,
"name": "ilike",
"kind": 2048,
"kindString": "Method",
@@ -1715,7 +1715,7 @@
},
"signatures": [
{
- "id": 150,
+ "id": 153,
"name": "ilike",
"kind": 4096,
"kindString": "Call signature",
@@ -1727,7 +1727,7 @@
},
"parameters": [
{
- "id": 151,
+ "id": 154,
"name": "column",
"kind": 32768,
"kindString": "Parameter",
@@ -1747,7 +1747,7 @@
}
},
{
- "id": 152,
+ "id": 155,
"name": "pattern",
"kind": 32768,
"kindString": "Parameter",
@@ -1778,7 +1778,7 @@
]
},
{
- "id": 157,
+ "id": 160,
"name": "in",
"kind": 2048,
"kindString": "Method",
@@ -1787,7 +1787,7 @@
},
"signatures": [
{
- "id": 158,
+ "id": 161,
"name": "in",
"kind": 4096,
"kindString": "Call signature",
@@ -1799,7 +1799,7 @@
},
"parameters": [
{
- "id": 159,
+ "id": 162,
"name": "column",
"kind": 32768,
"kindString": "Parameter",
@@ -1819,7 +1819,7 @@
}
},
{
- "id": 160,
+ "id": 163,
"name": "values",
"kind": 32768,
"kindString": "Parameter",
@@ -1864,7 +1864,7 @@
]
},
{
- "id": 153,
+ "id": 156,
"name": "is",
"kind": 2048,
"kindString": "Method",
@@ -1873,7 +1873,7 @@
},
"signatures": [
{
- "id": 154,
+ "id": 157,
"name": "is",
"kind": 4096,
"kindString": "Call signature",
@@ -1885,7 +1885,7 @@
},
"parameters": [
{
- "id": 155,
+ "id": 158,
"name": "column",
"kind": 32768,
"kindString": "Parameter",
@@ -1905,7 +1905,7 @@
}
},
{
- "id": 156,
+ "id": 159,
"name": "value",
"kind": 32768,
"kindString": "Parameter",
@@ -1945,7 +1945,7 @@
]
},
{
- "id": 145,
+ "id": 148,
"name": "like",
"kind": 2048,
"kindString": "Method",
@@ -1954,7 +1954,7 @@
},
"signatures": [
{
- "id": 146,
+ "id": 149,
"name": "like",
"kind": 4096,
"kindString": "Call signature",
@@ -1966,7 +1966,7 @@
},
"parameters": [
{
- "id": 147,
+ "id": 150,
"name": "column",
"kind": 32768,
"kindString": "Parameter",
@@ -1986,7 +1986,7 @@
}
},
{
- "id": 148,
+ "id": 151,
"name": "pattern",
"kind": 32768,
"kindString": "Parameter",
@@ -2017,7 +2017,7 @@
]
},
{
- "id": 243,
+ "id": 246,
"name": "limit",
"kind": 2048,
"kindString": "Method",
@@ -2026,7 +2026,7 @@
},
"signatures": [
{
- "id": 244,
+ "id": 247,
"name": "limit",
"kind": 4096,
"kindString": "Call signature",
@@ -2038,7 +2038,7 @@
},
"parameters": [
{
- "id": 245,
+ "id": 248,
"name": "count",
"kind": 32768,
"kindString": "Parameter",
@@ -2054,7 +2054,7 @@
}
},
{
- "id": 246,
+ "id": 249,
"name": "__namedParameters",
"kind": 32768,
"kindString": "Parameter",
@@ -2065,7 +2065,7 @@
"type": {
"type": "reflection",
"declaration": {
- "id": 247,
+ "id": 250,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -2074,7 +2074,7 @@
},
"children": [
{
- "id": 248,
+ "id": 251,
"name": "foreignTable",
"kind": 32,
"kindString": "Variable",
@@ -2087,8 +2087,8 @@
"sources": [
{
"fileName": "lib/PostgrestTransformBuilder.ts",
- "line": 64,
- "character": 18
+ "line": 62,
+ "character": 37
}
],
"type": {
@@ -2111,15 +2111,15 @@
"title": "Variables",
"kind": 32,
"children": [
- 248
+ 251
]
}
],
"sources": [
{
"fileName": "lib/PostgrestTransformBuilder.ts",
- "line": 63,
- "character": 18
+ "line": 62,
+ "character": 22
}
]
}
@@ -2133,7 +2133,7 @@
},
"inheritedFrom": {
"type": "reference",
- "id": 72,
+ "id": 75,
"name": "PostgrestTransformBuilder.limit"
}
}
@@ -2147,12 +2147,12 @@
],
"inheritedFrom": {
"type": "reference",
- "id": 72,
+ "id": 75,
"name": "PostgrestTransformBuilder.limit"
}
},
{
- "id": 137,
+ "id": 140,
"name": "lt",
"kind": 2048,
"kindString": "Method",
@@ -2161,7 +2161,7 @@
},
"signatures": [
{
- "id": 138,
+ "id": 141,
"name": "lt",
"kind": 4096,
"kindString": "Call signature",
@@ -2173,7 +2173,7 @@
},
"parameters": [
{
- "id": 139,
+ "id": 142,
"name": "column",
"kind": 32768,
"kindString": "Parameter",
@@ -2193,7 +2193,7 @@
}
},
{
- "id": 140,
+ "id": 143,
"name": "value",
"kind": 32768,
"kindString": "Parameter",
@@ -2235,7 +2235,7 @@
]
},
{
- "id": 141,
+ "id": 144,
"name": "lte",
"kind": 2048,
"kindString": "Method",
@@ -2244,7 +2244,7 @@
},
"signatures": [
{
- "id": 142,
+ "id": 145,
"name": "lte",
"kind": 4096,
"kindString": "Call signature",
@@ -2256,7 +2256,7 @@
},
"parameters": [
{
- "id": 143,
+ "id": 146,
"name": "column",
"kind": 32768,
"kindString": "Parameter",
@@ -2276,7 +2276,7 @@
}
},
{
- "id": 144,
+ "id": 147,
"name": "value",
"kind": 32768,
"kindString": "Parameter",
@@ -2318,7 +2318,7 @@
]
},
{
- "id": 226,
+ "id": 229,
"name": "match",
"kind": 2048,
"kindString": "Method",
@@ -2327,7 +2327,7 @@
},
"signatures": [
{
- "id": 227,
+ "id": 230,
"name": "match",
"kind": 4096,
"kindString": "Call signature",
@@ -2339,7 +2339,7 @@
},
"parameters": [
{
- "id": 228,
+ "id": 231,
"name": "query",
"kind": 32768,
"kindString": "Parameter",
@@ -2352,7 +2352,7 @@
"type": {
"type": "reflection",
"declaration": {
- "id": 229,
+ "id": 232,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -2361,7 +2361,7 @@
},
"indexSignature": [
{
- "id": 230,
+ "id": 233,
"name": "__index",
"kind": 8192,
"kindString": "Index signature",
@@ -2370,7 +2370,7 @@
},
"parameters": [
{
- "id": 231,
+ "id": 234,
"name": "key",
"kind": 32768,
"kindString": "Parameter",
@@ -2415,7 +2415,7 @@
]
},
{
- "id": 125,
+ "id": 128,
"name": "neq",
"kind": 2048,
"kindString": "Method",
@@ -2424,7 +2424,7 @@
},
"signatures": [
{
- "id": 126,
+ "id": 129,
"name": "neq",
"kind": 4096,
"kindString": "Call signature",
@@ -2436,7 +2436,7 @@
},
"parameters": [
{
- "id": 127,
+ "id": 130,
"name": "column",
"kind": 32768,
"kindString": "Parameter",
@@ -2456,7 +2456,7 @@
}
},
{
- "id": 128,
+ "id": 131,
"name": "value",
"kind": 32768,
"kindString": "Parameter",
@@ -2498,7 +2498,7 @@
]
},
{
- "id": 113,
+ "id": 116,
"name": "not",
"kind": 2048,
"kindString": "Method",
@@ -2507,7 +2507,7 @@
},
"signatures": [
{
- "id": 114,
+ "id": 117,
"name": "not",
"kind": 4096,
"kindString": "Call signature",
@@ -2519,7 +2519,7 @@
},
"parameters": [
{
- "id": 115,
+ "id": 118,
"name": "column",
"kind": 32768,
"kindString": "Parameter",
@@ -2539,7 +2539,7 @@
}
},
{
- "id": 116,
+ "id": 119,
"name": "operator",
"kind": 32768,
"kindString": "Parameter",
@@ -2551,12 +2551,12 @@
},
"type": {
"type": "reference",
- "id": 285,
+ "id": 288,
"name": "FilterOperator"
}
},
{
- "id": 117,
+ "id": 120,
"name": "value",
"kind": 32768,
"kindString": "Parameter",
@@ -2587,7 +2587,7 @@
]
},
{
- "id": 177,
+ "id": 180,
"name": "nxl",
"kind": 2048,
"kindString": "Method",
@@ -2596,7 +2596,7 @@
},
"signatures": [
{
- "id": 178,
+ "id": 181,
"name": "nxl",
"kind": 4096,
"kindString": "Call signature",
@@ -2608,7 +2608,7 @@
},
"parameters": [
{
- "id": 179,
+ "id": 182,
"name": "column",
"kind": 32768,
"kindString": "Parameter",
@@ -2628,7 +2628,7 @@
}
},
{
- "id": 180,
+ "id": 183,
"name": "range",
"kind": 32768,
"kindString": "Parameter",
@@ -2659,7 +2659,7 @@
]
},
{
- "id": 181,
+ "id": 184,
"name": "nxr",
"kind": 2048,
"kindString": "Method",
@@ -2668,7 +2668,7 @@
},
"signatures": [
{
- "id": 182,
+ "id": 185,
"name": "nxr",
"kind": 4096,
"kindString": "Call signature",
@@ -2680,7 +2680,7 @@
},
"parameters": [
{
- "id": 183,
+ "id": 186,
"name": "column",
"kind": 32768,
"kindString": "Parameter",
@@ -2700,7 +2700,7 @@
}
},
{
- "id": 184,
+ "id": 187,
"name": "range",
"kind": 32768,
"kindString": "Parameter",
@@ -2731,7 +2731,7 @@
]
},
{
- "id": 118,
+ "id": 121,
"name": "or",
"kind": 2048,
"kindString": "Method",
@@ -2740,7 +2740,7 @@
},
"signatures": [
{
- "id": 119,
+ "id": 122,
"name": "or",
"kind": 4096,
"kindString": "Call signature",
@@ -2752,7 +2752,7 @@
},
"parameters": [
{
- "id": 120,
+ "id": 123,
"name": "filters",
"kind": 32768,
"kindString": "Parameter",
@@ -2783,7 +2783,7 @@
]
},
{
- "id": 235,
+ "id": 238,
"name": "order",
"kind": 2048,
"kindString": "Method",
@@ -2792,7 +2792,7 @@
},
"signatures": [
{
- "id": 236,
+ "id": 239,
"name": "order",
"kind": 4096,
"kindString": "Call signature",
@@ -2804,7 +2804,7 @@
},
"parameters": [
{
- "id": 237,
+ "id": 240,
"name": "column",
"kind": 32768,
"kindString": "Parameter",
@@ -2824,7 +2824,7 @@
}
},
{
- "id": 238,
+ "id": 241,
"name": "__namedParameters",
"kind": 32768,
"kindString": "Parameter",
@@ -2835,7 +2835,7 @@
"type": {
"type": "reflection",
"declaration": {
- "id": 239,
+ "id": 242,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -2844,7 +2844,7 @@
},
"children": [
{
- "id": 240,
+ "id": 243,
"name": "ascending",
"kind": 32,
"kindString": "Variable",
@@ -2868,7 +2868,7 @@
"defaultValue": "true"
},
{
- "id": 242,
+ "id": 245,
"name": "foreignTable",
"kind": 32,
"kindString": "Variable",
@@ -2900,7 +2900,7 @@
}
},
{
- "id": 241,
+ "id": 244,
"name": "nullsFirst",
"kind": 32,
"kindString": "Variable",
@@ -2929,9 +2929,9 @@
"title": "Variables",
"kind": 32,
"children": [
- 240,
- 242,
- 241
+ 243,
+ 245,
+ 244
]
}
],
@@ -2953,7 +2953,7 @@
},
"inheritedFrom": {
"type": "reference",
- "id": 64,
+ "id": 67,
"name": "PostgrestTransformBuilder.order"
}
}
@@ -2967,12 +2967,12 @@
],
"inheritedFrom": {
"type": "reference",
- "id": 64,
+ "id": 67,
"name": "PostgrestTransformBuilder.order"
}
},
{
- "id": 189,
+ "id": 192,
"name": "ov",
"kind": 2048,
"kindString": "Method",
@@ -2981,7 +2981,7 @@
},
"signatures": [
{
- "id": 190,
+ "id": 193,
"name": "ov",
"kind": 4096,
"kindString": "Call signature",
@@ -2993,7 +2993,7 @@
},
"parameters": [
{
- "id": 191,
+ "id": 194,
"name": "column",
"kind": 32768,
"kindString": "Parameter",
@@ -3013,7 +3013,7 @@
}
},
{
- "id": 192,
+ "id": 195,
"name": "value",
"kind": 32768,
"kindString": "Parameter",
@@ -3067,7 +3067,7 @@
]
},
{
- "id": 207,
+ "id": 210,
"name": "phfts",
"kind": 2048,
"kindString": "Method",
@@ -3076,7 +3076,7 @@
},
"signatures": [
{
- "id": 208,
+ "id": 211,
"name": "phfts",
"kind": 4096,
"kindString": "Call signature",
@@ -3088,7 +3088,7 @@
},
"parameters": [
{
- "id": 209,
+ "id": 212,
"name": "column",
"kind": 32768,
"kindString": "Parameter",
@@ -3108,7 +3108,7 @@
}
},
{
- "id": 210,
+ "id": 213,
"name": "query",
"kind": 32768,
"kindString": "Parameter",
@@ -3124,7 +3124,7 @@
}
},
{
- "id": 211,
+ "id": 214,
"name": "__namedParameters",
"kind": 32768,
"kindString": "Parameter",
@@ -3135,7 +3135,7 @@
"type": {
"type": "reflection",
"declaration": {
- "id": 212,
+ "id": 215,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -3144,7 +3144,7 @@
},
"children": [
{
- "id": 213,
+ "id": 216,
"name": "config",
"kind": 32,
"kindString": "Variable",
@@ -3181,7 +3181,7 @@
"title": "Variables",
"kind": 32,
"children": [
- 213
+ 216
]
}
],
@@ -3212,7 +3212,7 @@
]
},
{
- "id": 200,
+ "id": 203,
"name": "plfts",
"kind": 2048,
"kindString": "Method",
@@ -3221,7 +3221,7 @@
},
"signatures": [
{
- "id": 201,
+ "id": 204,
"name": "plfts",
"kind": 4096,
"kindString": "Call signature",
@@ -3233,7 +3233,7 @@
},
"parameters": [
{
- "id": 202,
+ "id": 205,
"name": "column",
"kind": 32768,
"kindString": "Parameter",
@@ -3253,7 +3253,7 @@
}
},
{
- "id": 203,
+ "id": 206,
"name": "query",
"kind": 32768,
"kindString": "Parameter",
@@ -3269,7 +3269,7 @@
}
},
{
- "id": 204,
+ "id": 207,
"name": "__namedParameters",
"kind": 32768,
"kindString": "Parameter",
@@ -3280,7 +3280,7 @@
"type": {
"type": "reflection",
"declaration": {
- "id": 205,
+ "id": 208,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -3289,7 +3289,7 @@
},
"children": [
{
- "id": 206,
+ "id": 209,
"name": "config",
"kind": 32,
"kindString": "Variable",
@@ -3326,7 +3326,7 @@
"title": "Variables",
"kind": 32,
"children": [
- 206
+ 209
]
}
],
@@ -3357,7 +3357,7 @@
]
},
{
- "id": 249,
+ "id": 252,
"name": "range",
"kind": 2048,
"kindString": "Method",
@@ -3366,7 +3366,7 @@
},
"signatures": [
{
- "id": 250,
+ "id": 253,
"name": "range",
"kind": 4096,
"kindString": "Call signature",
@@ -3378,7 +3378,7 @@
},
"parameters": [
{
- "id": 251,
+ "id": 254,
"name": "from",
"kind": 32768,
"kindString": "Parameter",
@@ -3394,7 +3394,7 @@
}
},
{
- "id": 252,
+ "id": 255,
"name": "to",
"kind": 32768,
"kindString": "Parameter",
@@ -3410,7 +3410,7 @@
}
},
{
- "id": 253,
+ "id": 256,
"name": "__namedParameters",
"kind": 32768,
"kindString": "Parameter",
@@ -3421,7 +3421,7 @@
"type": {
"type": "reflection",
"declaration": {
- "id": 254,
+ "id": 257,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -3430,7 +3430,7 @@
},
"children": [
{
- "id": 255,
+ "id": 258,
"name": "foreignTable",
"kind": 32,
"kindString": "Variable",
@@ -3443,8 +3443,8 @@
"sources": [
{
"fileName": "lib/PostgrestTransformBuilder.ts",
- "line": 81,
- "character": 18
+ "line": 75,
+ "character": 48
}
],
"type": {
@@ -3467,15 +3467,15 @@
"title": "Variables",
"kind": 32,
"children": [
- 255
+ 258
]
}
],
"sources": [
{
"fileName": "lib/PostgrestTransformBuilder.ts",
- "line": 80,
- "character": 15
+ "line": 75,
+ "character": 33
}
]
}
@@ -3489,7 +3489,7 @@
},
"inheritedFrom": {
"type": "reference",
- "id": 78,
+ "id": 81,
"name": "PostgrestTransformBuilder.range"
}
}
@@ -3497,18 +3497,18 @@
"sources": [
{
"fileName": "lib/PostgrestTransformBuilder.ts",
- "line": 78,
+ "line": 75,
"character": 7
}
],
"inheritedFrom": {
"type": "reference",
- "id": 78,
+ "id": 81,
"name": "PostgrestTransformBuilder.range"
}
},
{
- "id": 232,
+ "id": 235,
"name": "select",
"kind": 2048,
"kindString": "Method",
@@ -3517,7 +3517,7 @@
},
"signatures": [
{
- "id": 233,
+ "id": 236,
"name": "select",
"kind": 4096,
"kindString": "Call signature",
@@ -3529,7 +3529,7 @@
},
"parameters": [
{
- "id": 234,
+ "id": 237,
"name": "columns",
"kind": 32768,
"kindString": "Parameter",
@@ -3552,7 +3552,7 @@
},
"inheritedFrom": {
"type": "reference",
- "id": 61,
+ "id": 64,
"name": "PostgrestTransformBuilder.select"
}
}
@@ -3566,12 +3566,12 @@
],
"inheritedFrom": {
"type": "reference",
- "id": 61,
+ "id": 64,
"name": "PostgrestTransformBuilder.select"
}
},
{
- "id": 256,
+ "id": 259,
"name": "single",
"kind": 2048,
"kindString": "Method",
@@ -3580,7 +3580,7 @@
},
"signatures": [
{
- "id": 257,
+ "id": 260,
"name": "single",
"kind": 4096,
"kindString": "Call signature",
@@ -3595,7 +3595,7 @@
"typeArguments": [
{
"type": "reference",
- "id": 56,
+ "id": 59,
"typeArguments": [
{
"type": "typeParameter",
@@ -3609,7 +3609,7 @@
},
"inheritedFrom": {
"type": "reference",
- "id": 85,
+ "id": 88,
"name": "PostgrestTransformBuilder.single"
}
}
@@ -3617,18 +3617,18 @@
"sources": [
{
"fileName": "lib/PostgrestTransformBuilder.ts",
- "line": 95,
+ "line": 88,
"character": 8
}
],
"inheritedFrom": {
"type": "reference",
- "id": 85,
+ "id": 88,
"name": "PostgrestTransformBuilder.single"
}
},
{
- "id": 169,
+ "id": 172,
"name": "sl",
"kind": 2048,
"kindString": "Method",
@@ -3637,7 +3637,7 @@
},
"signatures": [
{
- "id": 170,
+ "id": 173,
"name": "sl",
"kind": 4096,
"kindString": "Call signature",
@@ -3649,7 +3649,7 @@
},
"parameters": [
{
- "id": 171,
+ "id": 174,
"name": "column",
"kind": 32768,
"kindString": "Parameter",
@@ -3669,7 +3669,7 @@
}
},
{
- "id": 172,
+ "id": 175,
"name": "range",
"kind": 32768,
"kindString": "Parameter",
@@ -3700,7 +3700,7 @@
]
},
{
- "id": 173,
+ "id": 176,
"name": "sr",
"kind": 2048,
"kindString": "Method",
@@ -3709,7 +3709,7 @@
},
"signatures": [
{
- "id": 174,
+ "id": 177,
"name": "sr",
"kind": 4096,
"kindString": "Call signature",
@@ -3721,7 +3721,7 @@
},
"parameters": [
{
- "id": 175,
+ "id": 178,
"name": "column",
"kind": 32768,
"kindString": "Parameter",
@@ -3741,7 +3741,7 @@
}
},
{
- "id": 176,
+ "id": 179,
"name": "range",
"kind": 32768,
"kindString": "Parameter",
@@ -3772,7 +3772,7 @@
]
},
{
- "id": 269,
+ "id": 272,
"name": "then",
"kind": 2048,
"kindString": "Method",
@@ -3781,7 +3781,7 @@
},
"signatures": [
{
- "id": 270,
+ "id": 273,
"name": "then",
"kind": 4096,
"kindString": "Call signature",
@@ -3790,7 +3790,7 @@
},
"typeParameter": [
{
- "id": 271,
+ "id": 274,
"name": "TResult1",
"kind": 131072,
"kindString": "Type parameter",
@@ -3799,7 +3799,7 @@
}
},
{
- "id": 272,
+ "id": 275,
"name": "TResult2",
"kind": 131072,
"kindString": "Type parameter",
@@ -3810,7 +3810,7 @@
],
"parameters": [
{
- "id": 273,
+ "id": 276,
"name": "onfulfilled",
"kind": 32768,
"kindString": "Parameter",
@@ -3824,7 +3824,7 @@
{
"type": "reflection",
"declaration": {
- "id": 274,
+ "id": 277,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -3833,7 +3833,7 @@
},
"signatures": [
{
- "id": 275,
+ "id": 278,
"name": "__call",
"kind": 4096,
"kindString": "Call signature",
@@ -3842,7 +3842,7 @@
},
"parameters": [
{
- "id": 276,
+ "id": 279,
"name": "value",
"kind": 32768,
"kindString": "Parameter",
@@ -3851,7 +3851,7 @@
},
"type": {
"type": "reference",
- "id": 54,
+ "id": 57,
"typeArguments": [
{
"type": "typeParameter",
@@ -3906,7 +3906,7 @@
"sources": [
{
"fileName": "lib/types.ts",
- "line": 60,
+ "line": 63,
"character": 9
}
]
@@ -3924,7 +3924,7 @@
}
},
{
- "id": 277,
+ "id": 280,
"name": "onrejected",
"kind": 32768,
"kindString": "Parameter",
@@ -3938,7 +3938,7 @@
{
"type": "reflection",
"declaration": {
- "id": 278,
+ "id": 281,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -3947,7 +3947,7 @@
},
"signatures": [
{
- "id": 279,
+ "id": 282,
"name": "__call",
"kind": 4096,
"kindString": "Call signature",
@@ -3956,7 +3956,7 @@
},
"parameters": [
{
- "id": 280,
+ "id": 283,
"name": "reason",
"kind": 32768,
"kindString": "Parameter",
@@ -4001,7 +4001,7 @@
"sources": [
{
"fileName": "lib/types.ts",
- "line": 63,
+ "line": 66,
"character": 18
}
]
@@ -4054,7 +4054,7 @@
},
"inheritedFrom": {
"type": "reference",
- "id": 42,
+ "id": 45,
"name": "PostgrestBuilder.then"
}
}
@@ -4062,18 +4062,18 @@
"sources": [
{
"fileName": "lib/types.ts",
- "line": 58,
+ "line": 61,
"character": 6
}
],
"inheritedFrom": {
"type": "reference",
- "id": 42,
+ "id": 45,
"name": "PostgrestBuilder.then"
}
},
{
- "id": 214,
+ "id": 217,
"name": "wfts",
"kind": 2048,
"kindString": "Method",
@@ -4082,7 +4082,7 @@
},
"signatures": [
{
- "id": 215,
+ "id": 218,
"name": "wfts",
"kind": 4096,
"kindString": "Call signature",
@@ -4094,7 +4094,7 @@
},
"parameters": [
{
- "id": 216,
+ "id": 219,
"name": "column",
"kind": 32768,
"kindString": "Parameter",
@@ -4114,7 +4114,7 @@
}
},
{
- "id": 217,
+ "id": 220,
"name": "query",
"kind": 32768,
"kindString": "Parameter",
@@ -4130,7 +4130,7 @@
}
},
{
- "id": 218,
+ "id": 221,
"name": "__namedParameters",
"kind": 32768,
"kindString": "Parameter",
@@ -4141,7 +4141,7 @@
"type": {
"type": "reflection",
"declaration": {
- "id": 219,
+ "id": 222,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -4150,7 +4150,7 @@
},
"children": [
{
- "id": 220,
+ "id": 223,
"name": "config",
"kind": 32,
"kindString": "Variable",
@@ -4187,7 +4187,7 @@
"title": "Variables",
"kind": 32,
"children": [
- 220
+ 223
]
}
],
@@ -4223,56 +4223,56 @@
"title": "Constructors",
"kind": 512,
"children": [
- 266
+ 269
]
},
{
"title": "Properties",
"kind": 1024,
"children": [
- 265,
- 260,
- 258,
- 264,
- 259
+ 268,
+ 263,
+ 261,
+ 267,
+ 262
]
},
{
"title": "Methods",
"kind": 2048,
"children": [
- 185,
- 165,
- 161,
+ 188,
+ 168,
+ 164,
+ 124,
+ 224,
+ 196,
+ 132,
+ 136,
+ 152,
+ 160,
+ 156,
+ 148,
+ 246,
+ 140,
+ 144,
+ 229,
+ 128,
+ 116,
+ 180,
+ 184,
121,
- 221,
- 193,
- 129,
- 133,
- 149,
- 157,
- 153,
- 145,
- 243,
- 137,
- 141,
- 226,
- 125,
- 113,
- 177,
- 181,
- 118,
+ 238,
+ 192,
+ 210,
+ 203,
+ 252,
235,
- 189,
- 207,
- 200,
- 249,
- 232,
- 256,
- 169,
- 173,
- 269,
- 214
+ 259,
+ 172,
+ 176,
+ 272,
+ 217
]
}
],
@@ -4286,7 +4286,7 @@
"extendedTypes": [
{
"type": "reference",
- "id": 59,
+ "id": 62,
"typeArguments": [
{
"type": "typeParameter",
@@ -4302,7 +4302,7 @@
"typeArguments": [
{
"type": "reference",
- "id": 54,
+ "id": 57,
"typeArguments": [
{
"type": "typeParameter",
@@ -4317,7 +4317,7 @@
]
},
{
- "id": 285,
+ "id": 288,
"name": "FilterOperator",
"kind": 4194304,
"kindString": "Type alias",
@@ -4424,7 +4424,7 @@
}
},
{
- "id": 281,
+ "id": 284,
"name": "cleanFilterArray",
"kind": 64,
"kindString": "Function",
@@ -4436,7 +4436,7 @@
},
"signatures": [
{
- "id": 282,
+ "id": 285,
"name": "cleanFilterArray",
"kind": 4096,
"kindString": "Call signature",
@@ -4446,7 +4446,7 @@
},
"typeParameter": [
{
- "id": 283,
+ "id": 286,
"name": "T",
"kind": 131072,
"kindString": "Type parameter",
@@ -4455,7 +4455,7 @@
],
"parameters": [
{
- "id": 284,
+ "id": 287,
"name": "filter",
"kind": 32768,
"kindString": "Parameter",
@@ -4500,21 +4500,21 @@
"title": "Classes",
"kind": 128,
"children": [
- 111
+ 114
]
},
{
"title": "Type aliases",
"kind": 4194304,
"children": [
- 285
+ 288
]
},
{
"title": "Functions",
"kind": 64,
"children": [
- 281
+ 284
]
}
],
@@ -4527,7 +4527,7 @@
]
},
{
- "id": 286,
+ "id": 289,
"name": "\"lib/PostgrestQueryBuilder\"",
"kind": 1,
"kindString": "Module",
@@ -4537,7 +4537,7 @@
"originalName": "/home/runner/work/postgrest-js/postgrest-js/src/lib/PostgrestQueryBuilder.ts",
"children": [
{
- "id": 287,
+ "id": 290,
"name": "PostgrestQueryBuilder",
"kind": 128,
"kindString": "Class",
@@ -4546,7 +4546,7 @@
},
"typeParameter": [
{
- "id": 288,
+ "id": 291,
"name": "T",
"kind": 131072,
"kindString": "Type parameter",
@@ -4557,7 +4557,7 @@
],
"children": [
{
- "id": 289,
+ "id": 292,
"name": "constructor",
"kind": 512,
"kindString": "Constructor",
@@ -4566,7 +4566,7 @@
},
"signatures": [
{
- "id": 290,
+ "id": 293,
"name": "new PostgrestQueryBuilder",
"kind": 16384,
"kindString": "Constructor signature",
@@ -4575,7 +4575,7 @@
},
"parameters": [
{
- "id": 291,
+ "id": 294,
"name": "url",
"kind": 32768,
"kindString": "Parameter",
@@ -4588,7 +4588,7 @@
}
},
{
- "id": 292,
+ "id": 295,
"name": "__namedParameters",
"kind": 32768,
"kindString": "Parameter",
@@ -4599,7 +4599,7 @@
"type": {
"type": "reflection",
"declaration": {
- "id": 293,
+ "id": 296,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -4608,7 +4608,7 @@
},
"children": [
{
- "id": 294,
+ "id": 297,
"name": "headers",
"kind": 32,
"kindString": "Variable",
@@ -4625,7 +4625,7 @@
"type": {
"type": "reflection",
"declaration": {
- "id": 295,
+ "id": 298,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -4634,7 +4634,7 @@
},
"indexSignature": [
{
- "id": 296,
+ "id": 299,
"name": "__index",
"kind": 8192,
"kindString": "Index signature",
@@ -4643,7 +4643,7 @@
},
"parameters": [
{
- "id": 297,
+ "id": 300,
"name": "key",
"kind": 32768,
"kindString": "Parameter",
@@ -4666,7 +4666,7 @@
}
},
{
- "id": 298,
+ "id": 301,
"name": "schema",
"kind": 32,
"kindString": "Variable",
@@ -4700,8 +4700,8 @@
"title": "Variables",
"kind": 32,
"children": [
- 294,
- 298
+ 297,
+ 301
]
}
],
@@ -4719,12 +4719,12 @@
],
"type": {
"type": "reference",
- "id": 287,
+ "id": 290,
"name": "PostgrestQueryBuilder"
},
"overwrites": {
"type": "reference",
- "id": 39,
+ "id": 42,
"name": "PostgrestBuilder.__constructor"
}
}
@@ -4738,12 +4738,12 @@
],
"overwrites": {
"type": "reference",
- "id": 39,
+ "id": 42,
"name": "PostgrestBuilder.__constructor"
}
},
{
- "id": 331,
+ "id": 345,
"name": "body",
"kind": 1024,
"kindString": "Property",
@@ -4755,7 +4755,7 @@
"sources": [
{
"fileName": "lib/types.ts",
- "line": 52,
+ "line": 55,
"character": 16
}
],
@@ -4789,12 +4789,12 @@
},
"inheritedFrom": {
"type": "reference",
- "id": 38,
+ "id": 41,
"name": "PostgrestBuilder.body"
}
},
{
- "id": 326,
+ "id": 340,
"name": "headers",
"kind": 1024,
"kindString": "Property",
@@ -4805,14 +4805,14 @@
"sources": [
{
"fileName": "lib/types.ts",
- "line": 50,
+ "line": 53,
"character": 19
}
],
"type": {
"type": "reflection",
"declaration": {
- "id": 327,
+ "id": 341,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -4821,7 +4821,7 @@
},
"indexSignature": [
{
- "id": 328,
+ "id": 342,
"name": "__index",
"kind": 8192,
"kindString": "Index signature",
@@ -4830,7 +4830,7 @@
},
"parameters": [
{
- "id": 329,
+ "id": 343,
"name": "key",
"kind": 32768,
"kindString": "Parameter",
@@ -4852,7 +4852,7 @@
"sources": [
{
"fileName": "lib/types.ts",
- "line": 50,
+ "line": 53,
"character": 21
}
]
@@ -4860,12 +4860,12 @@
},
"inheritedFrom": {
"type": "reference",
- "id": 33,
+ "id": 36,
"name": "PostgrestBuilder.headers"
}
},
{
- "id": 324,
+ "id": 338,
"name": "method",
"kind": 1024,
"kindString": "Property",
@@ -4876,7 +4876,7 @@
"sources": [
{
"fileName": "lib/types.ts",
- "line": 48,
+ "line": 51,
"character": 18
}
],
@@ -4907,12 +4907,12 @@
},
"inheritedFrom": {
"type": "reference",
- "id": 31,
+ "id": 34,
"name": "PostgrestBuilder.method"
}
},
{
- "id": 330,
+ "id": 344,
"name": "schema",
"kind": 1024,
"kindString": "Property",
@@ -4924,7 +4924,7 @@
"sources": [
{
"fileName": "lib/types.ts",
- "line": 51,
+ "line": 54,
"character": 18
}
],
@@ -4943,12 +4943,12 @@
},
"inheritedFrom": {
"type": "reference",
- "id": 37,
+ "id": 40,
"name": "PostgrestBuilder.schema"
}
},
{
- "id": 325,
+ "id": 339,
"name": "url",
"kind": 1024,
"kindString": "Property",
@@ -4959,7 +4959,7 @@
"sources": [
{
"fileName": "lib/types.ts",
- "line": 49,
+ "line": 52,
"character": 15
}
],
@@ -4969,12 +4969,12 @@
},
"inheritedFrom": {
"type": "reference",
- "id": 32,
+ "id": 35,
"name": "PostgrestBuilder.url"
}
},
{
- "id": 316,
+ "id": 325,
"name": "delete",
"kind": 2048,
"kindString": "Method",
@@ -4983,7 +4983,7 @@
},
"signatures": [
{
- "id": 317,
+ "id": 326,
"name": "delete",
"kind": 4096,
"kindString": "Call signature",
@@ -4995,7 +4995,7 @@
},
"parameters": [
{
- "id": 318,
+ "id": 327,
"name": "__namedParameters",
"kind": 32768,
"kindString": "Parameter",
@@ -5006,7 +5006,7 @@
"type": {
"type": "reflection",
"declaration": {
- "id": 319,
+ "id": 328,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -5015,7 +5015,45 @@
},
"children": [
{
- "id": 320,
+ "id": 330,
+ "name": "count",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "lib/PostgrestQueryBuilder.ts",
+ "line": 131,
+ "character": 9
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "intrinsic",
+ "name": "null"
+ },
+ {
+ "type": "stringLiteral",
+ "value": "exact"
+ },
+ {
+ "type": "stringLiteral",
+ "value": "planned"
+ },
+ {
+ "type": "stringLiteral",
+ "value": "estimated"
+ }
+ ]
+ },
+ "defaultValue": "null"
+ },
+ {
+ "id": 329,
"name": "returning",
"kind": 32,
"kindString": "Variable",
@@ -5028,7 +5066,7 @@
"sources": [
{
"fileName": "lib/PostgrestQueryBuilder.ts",
- "line": 95,
+ "line": 130,
"character": 13
}
],
@@ -5053,14 +5091,15 @@
"title": "Variables",
"kind": 32,
"children": [
- 320
+ 330,
+ 329
]
}
],
"sources": [
{
"fileName": "lib/PostgrestQueryBuilder.ts",
- "line": 94,
+ "line": 129,
"character": 9
}
]
@@ -5071,7 +5110,7 @@
],
"type": {
"type": "reference",
- "id": 111,
+ "id": 114,
"typeArguments": [
{
"type": "typeParameter",
@@ -5085,13 +5124,13 @@
"sources": [
{
"fileName": "lib/PostgrestQueryBuilder.ts",
- "line": 94,
+ "line": 129,
"character": 8
}
]
},
{
- "id": 302,
+ "id": 309,
"name": "insert",
"kind": 2048,
"kindString": "Method",
@@ -5100,7 +5139,7 @@
},
"signatures": [
{
- "id": 303,
+ "id": 310,
"name": "insert",
"kind": 4096,
"kindString": "Call signature",
@@ -5112,7 +5151,7 @@
},
"parameters": [
{
- "id": 304,
+ "id": 311,
"name": "values",
"kind": 32768,
"kindString": "Parameter",
@@ -5152,7 +5191,7 @@
}
},
{
- "id": 305,
+ "id": 312,
"name": "__namedParameters",
"kind": 32768,
"kindString": "Parameter",
@@ -5163,7 +5202,7 @@
"type": {
"type": "reflection",
"declaration": {
- "id": 306,
+ "id": 313,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -5172,7 +5211,45 @@
},
"children": [
{
- "id": 308,
+ "id": 317,
+ "name": "count",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "lib/PostgrestQueryBuilder.ts",
+ "line": 72,
+ "character": 11
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "intrinsic",
+ "name": "null"
+ },
+ {
+ "type": "stringLiteral",
+ "value": "exact"
+ },
+ {
+ "type": "stringLiteral",
+ "value": "planned"
+ },
+ {
+ "type": "stringLiteral",
+ "value": "estimated"
+ }
+ ]
+ },
+ "defaultValue": "null"
+ },
+ {
+ "id": 315,
"name": "onConflict",
"kind": 32,
"kindString": "Variable",
@@ -5185,7 +5262,7 @@
"sources": [
{
"fileName": "lib/PostgrestQueryBuilder.ts",
- "line": 53,
+ "line": 70,
"character": 16
}
],
@@ -5204,7 +5281,7 @@
}
},
{
- "id": 309,
+ "id": 316,
"name": "returning",
"kind": 32,
"kindString": "Variable",
@@ -5217,7 +5294,7 @@
"sources": [
{
"fileName": "lib/PostgrestQueryBuilder.ts",
- "line": 54,
+ "line": 71,
"character": 15
}
],
@@ -5237,7 +5314,7 @@
"defaultValue": "\"representation\""
},
{
- "id": 307,
+ "id": 314,
"name": "upsert",
"kind": 32,
"kindString": "Variable",
@@ -5250,7 +5327,7 @@
"sources": [
{
"fileName": "lib/PostgrestQueryBuilder.ts",
- "line": 52,
+ "line": 69,
"character": 12
}
],
@@ -5266,16 +5343,17 @@
"title": "Variables",
"kind": 32,
"children": [
- 308,
- 309,
- 307
+ 317,
+ 315,
+ 316,
+ 314
]
}
],
"sources": [
{
"fileName": "lib/PostgrestQueryBuilder.ts",
- "line": 50,
+ "line": 67,
"character": 38
}
]
@@ -5286,7 +5364,7 @@
],
"type": {
"type": "reference",
- "id": 111,
+ "id": 114,
"typeArguments": [
{
"type": "typeParameter",
@@ -5300,13 +5378,13 @@
"sources": [
{
"fileName": "lib/PostgrestQueryBuilder.ts",
- "line": 49,
+ "line": 66,
"character": 8
}
]
},
{
- "id": 299,
+ "id": 302,
"name": "select",
"kind": 2048,
"kindString": "Method",
@@ -5315,7 +5393,7 @@
},
"signatures": [
{
- "id": 300,
+ "id": 303,
"name": "select",
"kind": 4096,
"kindString": "Call signature",
@@ -5327,7 +5405,7 @@
},
"parameters": [
{
- "id": 301,
+ "id": 304,
"name": "columns",
"kind": 32768,
"kindString": "Parameter",
@@ -5335,18 +5413,125 @@
"isExported": true
},
"comment": {
- "text": "The columns to retrieve, separated by commas.\n"
+ "text": "The columns to retrieve, separated by commas."
},
"type": {
"type": "intrinsic",
"name": "string"
},
"defaultValue": "\"*\""
+ },
+ {
+ "id": 305,
+ "name": "__namedParameters",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true
+ },
+ "originalName": "__1",
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 306,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {
+ "isExported": true
+ },
+ "children": [
+ {
+ "id": 308,
+ "name": "count",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {
+ "isExported": true
+ },
+ "comment": {
+ "text": "Count algorithm to use to count rows in a table.\n"
+ },
+ "sources": [
+ {
+ "fileName": "lib/PostgrestQueryBuilder.ts",
+ "line": 27,
+ "character": 11
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "intrinsic",
+ "name": "null"
+ },
+ {
+ "type": "stringLiteral",
+ "value": "exact"
+ },
+ {
+ "type": "stringLiteral",
+ "value": "planned"
+ },
+ {
+ "type": "stringLiteral",
+ "value": "estimated"
+ }
+ ]
+ },
+ "defaultValue": "null"
+ },
+ {
+ "id": 307,
+ "name": "head",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {
+ "isExported": true
+ },
+ "comment": {
+ "text": "When set to true, select will void data."
+ },
+ "sources": [
+ {
+ "fileName": "lib/PostgrestQueryBuilder.ts",
+ "line": 26,
+ "character": 10
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "boolean"
+ },
+ "defaultValue": "false"
+ }
+ ],
+ "groups": [
+ {
+ "title": "Variables",
+ "kind": 32,
+ "children": [
+ 308,
+ 307
+ ]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "lib/PostgrestQueryBuilder.ts",
+ "line": 24,
+ "character": 18
+ }
+ ]
+ }
+ },
+ "defaultValue": "{}"
}
],
"type": {
"type": "reference",
- "id": 111,
+ "id": 114,
"typeArguments": [
{
"type": "typeParameter",
@@ -5360,13 +5545,13 @@
"sources": [
{
"fileName": "lib/PostgrestQueryBuilder.ts",
- "line": 21,
+ "line": 23,
"character": 8
}
]
},
{
- "id": 332,
+ "id": 346,
"name": "then",
"kind": 2048,
"kindString": "Method",
@@ -5375,7 +5560,7 @@
},
"signatures": [
{
- "id": 333,
+ "id": 347,
"name": "then",
"kind": 4096,
"kindString": "Call signature",
@@ -5384,7 +5569,7 @@
},
"typeParameter": [
{
- "id": 334,
+ "id": 348,
"name": "TResult1",
"kind": 131072,
"kindString": "Type parameter",
@@ -5393,7 +5578,7 @@
}
},
{
- "id": 335,
+ "id": 349,
"name": "TResult2",
"kind": 131072,
"kindString": "Type parameter",
@@ -5404,7 +5589,7 @@
],
"parameters": [
{
- "id": 336,
+ "id": 350,
"name": "onfulfilled",
"kind": 32768,
"kindString": "Parameter",
@@ -5418,7 +5603,7 @@
{
"type": "reflection",
"declaration": {
- "id": 337,
+ "id": 351,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -5427,7 +5612,7 @@
},
"signatures": [
{
- "id": 338,
+ "id": 352,
"name": "__call",
"kind": 4096,
"kindString": "Call signature",
@@ -5436,7 +5621,7 @@
},
"parameters": [
{
- "id": 339,
+ "id": 353,
"name": "value",
"kind": 32768,
"kindString": "Parameter",
@@ -5445,7 +5630,7 @@
},
"type": {
"type": "reference",
- "id": 54,
+ "id": 57,
"typeArguments": [
{
"type": "typeParameter",
@@ -5500,7 +5685,7 @@
"sources": [
{
"fileName": "lib/types.ts",
- "line": 60,
+ "line": 63,
"character": 9
}
]
@@ -5518,7 +5703,7 @@
}
},
{
- "id": 340,
+ "id": 354,
"name": "onrejected",
"kind": 32768,
"kindString": "Parameter",
@@ -5532,7 +5717,7 @@
{
"type": "reflection",
"declaration": {
- "id": 341,
+ "id": 355,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -5541,7 +5726,7 @@
},
"signatures": [
{
- "id": 342,
+ "id": 356,
"name": "__call",
"kind": 4096,
"kindString": "Call signature",
@@ -5550,7 +5735,7 @@
},
"parameters": [
{
- "id": 343,
+ "id": 357,
"name": "reason",
"kind": 32768,
"kindString": "Parameter",
@@ -5595,7 +5780,7 @@
"sources": [
{
"fileName": "lib/types.ts",
- "line": 63,
+ "line": 66,
"character": 18
}
]
@@ -5648,7 +5833,7 @@
},
"inheritedFrom": {
"type": "reference",
- "id": 42,
+ "id": 45,
"name": "PostgrestBuilder.then"
}
}
@@ -5656,18 +5841,18 @@
"sources": [
{
"fileName": "lib/types.ts",
- "line": 58,
+ "line": 61,
"character": 6
}
],
"inheritedFrom": {
"type": "reference",
- "id": 42,
+ "id": 45,
"name": "PostgrestBuilder.then"
}
},
{
- "id": 310,
+ "id": 318,
"name": "update",
"kind": 2048,
"kindString": "Method",
@@ -5676,7 +5861,7 @@
},
"signatures": [
{
- "id": 311,
+ "id": 319,
"name": "update",
"kind": 4096,
"kindString": "Call signature",
@@ -5688,7 +5873,7 @@
},
"parameters": [
{
- "id": 312,
+ "id": 320,
"name": "values",
"kind": 32768,
"kindString": "Parameter",
@@ -5710,7 +5895,7 @@
}
},
{
- "id": 313,
+ "id": 321,
"name": "__namedParameters",
"kind": 32768,
"kindString": "Parameter",
@@ -5721,7 +5906,7 @@
"type": {
"type": "reflection",
"declaration": {
- "id": 314,
+ "id": 322,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -5730,7 +5915,45 @@
},
"children": [
{
- "id": 315,
+ "id": 324,
+ "name": "count",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "lib/PostgrestQueryBuilder.ts",
+ "line": 106,
+ "character": 11
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "intrinsic",
+ "name": "null"
+ },
+ {
+ "type": "stringLiteral",
+ "value": "exact"
+ },
+ {
+ "type": "stringLiteral",
+ "value": "planned"
+ },
+ {
+ "type": "stringLiteral",
+ "value": "estimated"
+ }
+ ]
+ },
+ "defaultValue": "null"
+ },
+ {
+ "id": 323,
"name": "returning",
"kind": 32,
"kindString": "Variable",
@@ -5743,7 +5966,7 @@
"sources": [
{
"fileName": "lib/PostgrestQueryBuilder.ts",
- "line": 81,
+ "line": 105,
"character": 15
}
],
@@ -5768,14 +5991,15 @@
"title": "Variables",
"kind": 32,
"children": [
- 315
+ 324,
+ 323
]
}
],
"sources": [
{
"fileName": "lib/PostgrestQueryBuilder.ts",
- "line": 80,
+ "line": 103,
"character": 23
}
]
@@ -5786,7 +6010,7 @@
],
"type": {
"type": "reference",
- "id": 111,
+ "id": 114,
"typeArguments": [
{
"type": "typeParameter",
@@ -5800,7 +6024,7 @@
"sources": [
{
"fileName": "lib/PostgrestQueryBuilder.ts",
- "line": 79,
+ "line": 102,
"character": 8
}
]
@@ -5811,29 +6035,29 @@
"title": "Constructors",
"kind": 512,
"children": [
- 289
+ 292
]
},
{
"title": "Properties",
"kind": 1024,
"children": [
- 331,
- 326,
- 324,
- 330,
- 325
+ 345,
+ 340,
+ 338,
+ 344,
+ 339
]
},
{
"title": "Methods",
"kind": 2048,
"children": [
- 316,
+ 325,
+ 309,
302,
- 299,
- 332,
- 310
+ 346,
+ 318
]
}
],
@@ -5847,7 +6071,7 @@
"extendedTypes": [
{
"type": "reference",
- "id": 29,
+ "id": 32,
"typeArguments": [
{
"type": "typeParameter",
@@ -5863,7 +6087,7 @@
"typeArguments": [
{
"type": "reference",
- "id": 54,
+ "id": 57,
"typeArguments": [
{
"type": "typeParameter",
@@ -5883,7 +6107,7 @@
"title": "Classes",
"kind": 128,
"children": [
- 287
+ 290
]
}
],
@@ -5896,7 +6120,7 @@
]
},
{
- "id": 58,
+ "id": 61,
"name": "\"lib/PostgrestTransformBuilder\"",
"kind": 1,
"kindString": "Module",
@@ -5906,7 +6130,7 @@
"originalName": "/home/runner/work/postgrest-js/postgrest-js/src/lib/PostgrestTransformBuilder.ts",
"children": [
{
- "id": 59,
+ "id": 62,
"name": "PostgrestTransformBuilder",
"kind": 128,
"kindString": "Class",
@@ -5918,7 +6142,7 @@
},
"typeParameter": [
{
- "id": 60,
+ "id": 63,
"name": "T",
"kind": 131072,
"kindString": "Type parameter",
@@ -5929,7 +6153,7 @@
],
"children": [
{
- "id": 95,
+ "id": 98,
"name": "constructor",
"kind": 512,
"kindString": "Constructor",
@@ -5938,7 +6162,7 @@
},
"signatures": [
{
- "id": 96,
+ "id": 99,
"name": "new PostgrestTransformBuilder",
"kind": 16384,
"kindString": "Constructor signature",
@@ -5947,7 +6171,7 @@
},
"parameters": [
{
- "id": 97,
+ "id": 100,
"name": "builder",
"kind": 32768,
"kindString": "Parameter",
@@ -5956,7 +6180,7 @@
},
"type": {
"type": "reference",
- "id": 29,
+ "id": 32,
"typeArguments": [
{
"type": "typeParameter",
@@ -5969,12 +6193,12 @@
],
"type": {
"type": "reference",
- "id": 59,
+ "id": 62,
"name": "PostgrestTransformBuilder"
},
"inheritedFrom": {
"type": "reference",
- "id": 39,
+ "id": 42,
"name": "PostgrestBuilder.__constructor"
}
}
@@ -5982,18 +6206,18 @@
"sources": [
{
"fileName": "lib/types.ts",
- "line": 52,
+ "line": 55,
"character": 44
}
],
"inheritedFrom": {
"type": "reference",
- "id": 39,
+ "id": 42,
"name": "PostgrestBuilder.__constructor"
}
},
{
- "id": 94,
+ "id": 97,
"name": "body",
"kind": 1024,
"kindString": "Property",
@@ -6005,7 +6229,7 @@
"sources": [
{
"fileName": "lib/types.ts",
- "line": 52,
+ "line": 55,
"character": 16
}
],
@@ -6039,12 +6263,12 @@
},
"inheritedFrom": {
"type": "reference",
- "id": 38,
+ "id": 41,
"name": "PostgrestBuilder.body"
}
},
{
- "id": 89,
+ "id": 92,
"name": "headers",
"kind": 1024,
"kindString": "Property",
@@ -6055,14 +6279,14 @@
"sources": [
{
"fileName": "lib/types.ts",
- "line": 50,
+ "line": 53,
"character": 19
}
],
"type": {
"type": "reflection",
"declaration": {
- "id": 90,
+ "id": 93,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -6071,7 +6295,7 @@
},
"indexSignature": [
{
- "id": 91,
+ "id": 94,
"name": "__index",
"kind": 8192,
"kindString": "Index signature",
@@ -6080,7 +6304,7 @@
},
"parameters": [
{
- "id": 92,
+ "id": 95,
"name": "key",
"kind": 32768,
"kindString": "Parameter",
@@ -6102,7 +6326,7 @@
"sources": [
{
"fileName": "lib/types.ts",
- "line": 50,
+ "line": 53,
"character": 21
}
]
@@ -6110,12 +6334,12 @@
},
"inheritedFrom": {
"type": "reference",
- "id": 33,
+ "id": 36,
"name": "PostgrestBuilder.headers"
}
},
{
- "id": 87,
+ "id": 90,
"name": "method",
"kind": 1024,
"kindString": "Property",
@@ -6126,7 +6350,7 @@
"sources": [
{
"fileName": "lib/types.ts",
- "line": 48,
+ "line": 51,
"character": 18
}
],
@@ -6157,12 +6381,12 @@
},
"inheritedFrom": {
"type": "reference",
- "id": 31,
+ "id": 34,
"name": "PostgrestBuilder.method"
}
},
{
- "id": 93,
+ "id": 96,
"name": "schema",
"kind": 1024,
"kindString": "Property",
@@ -6174,7 +6398,7 @@
"sources": [
{
"fileName": "lib/types.ts",
- "line": 51,
+ "line": 54,
"character": 18
}
],
@@ -6193,12 +6417,12 @@
},
"inheritedFrom": {
"type": "reference",
- "id": 37,
+ "id": 40,
"name": "PostgrestBuilder.schema"
}
},
{
- "id": 88,
+ "id": 91,
"name": "url",
"kind": 1024,
"kindString": "Property",
@@ -6209,7 +6433,7 @@
"sources": [
{
"fileName": "lib/types.ts",
- "line": 49,
+ "line": 52,
"character": 15
}
],
@@ -6219,12 +6443,12 @@
},
"inheritedFrom": {
"type": "reference",
- "id": 32,
+ "id": 35,
"name": "PostgrestBuilder.url"
}
},
{
- "id": 72,
+ "id": 75,
"name": "limit",
"kind": 2048,
"kindString": "Method",
@@ -6233,7 +6457,7 @@
},
"signatures": [
{
- "id": 73,
+ "id": 76,
"name": "limit",
"kind": 4096,
"kindString": "Call signature",
@@ -6245,7 +6469,7 @@
},
"parameters": [
{
- "id": 74,
+ "id": 77,
"name": "count",
"kind": 32768,
"kindString": "Parameter",
@@ -6261,7 +6485,7 @@
}
},
{
- "id": 75,
+ "id": 78,
"name": "__namedParameters",
"kind": 32768,
"kindString": "Parameter",
@@ -6272,7 +6496,7 @@
"type": {
"type": "reflection",
"declaration": {
- "id": 76,
+ "id": 79,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -6281,7 +6505,7 @@
},
"children": [
{
- "id": 77,
+ "id": 80,
"name": "foreignTable",
"kind": 32,
"kindString": "Variable",
@@ -6294,8 +6518,8 @@
"sources": [
{
"fileName": "lib/PostgrestTransformBuilder.ts",
- "line": 64,
- "character": 18
+ "line": 62,
+ "character": 37
}
],
"type": {
@@ -6318,15 +6542,15 @@
"title": "Variables",
"kind": 32,
"children": [
- 77
+ 80
]
}
],
"sources": [
{
"fileName": "lib/PostgrestTransformBuilder.ts",
- "line": 63,
- "character": 18
+ "line": 62,
+ "character": 22
}
]
}
@@ -6349,7 +6573,7 @@
]
},
{
- "id": 64,
+ "id": 67,
"name": "order",
"kind": 2048,
"kindString": "Method",
@@ -6358,7 +6582,7 @@
},
"signatures": [
{
- "id": 65,
+ "id": 68,
"name": "order",
"kind": 4096,
"kindString": "Call signature",
@@ -6370,7 +6594,7 @@
},
"parameters": [
{
- "id": 66,
+ "id": 69,
"name": "column",
"kind": 32768,
"kindString": "Parameter",
@@ -6390,7 +6614,7 @@
}
},
{
- "id": 67,
+ "id": 70,
"name": "__namedParameters",
"kind": 32768,
"kindString": "Parameter",
@@ -6401,7 +6625,7 @@
"type": {
"type": "reflection",
"declaration": {
- "id": 68,
+ "id": 71,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -6410,7 +6634,7 @@
},
"children": [
{
- "id": 69,
+ "id": 72,
"name": "ascending",
"kind": 32,
"kindString": "Variable",
@@ -6434,7 +6658,7 @@
"defaultValue": "true"
},
{
- "id": 71,
+ "id": 74,
"name": "foreignTable",
"kind": 32,
"kindString": "Variable",
@@ -6466,7 +6690,7 @@
}
},
{
- "id": 70,
+ "id": 73,
"name": "nullsFirst",
"kind": 32,
"kindString": "Variable",
@@ -6495,9 +6719,9 @@
"title": "Variables",
"kind": 32,
"children": [
- 69,
- 71,
- 70
+ 72,
+ 74,
+ 73
]
}
],
@@ -6528,7 +6752,7 @@
]
},
{
- "id": 78,
+ "id": 81,
"name": "range",
"kind": 2048,
"kindString": "Method",
@@ -6537,7 +6761,7 @@
},
"signatures": [
{
- "id": 79,
+ "id": 82,
"name": "range",
"kind": 4096,
"kindString": "Call signature",
@@ -6549,7 +6773,7 @@
},
"parameters": [
{
- "id": 80,
+ "id": 83,
"name": "from",
"kind": 32768,
"kindString": "Parameter",
@@ -6565,7 +6789,7 @@
}
},
{
- "id": 81,
+ "id": 84,
"name": "to",
"kind": 32768,
"kindString": "Parameter",
@@ -6581,7 +6805,7 @@
}
},
{
- "id": 82,
+ "id": 85,
"name": "__namedParameters",
"kind": 32768,
"kindString": "Parameter",
@@ -6592,7 +6816,7 @@
"type": {
"type": "reflection",
"declaration": {
- "id": 83,
+ "id": 86,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -6601,7 +6825,7 @@
},
"children": [
{
- "id": 84,
+ "id": 87,
"name": "foreignTable",
"kind": 32,
"kindString": "Variable",
@@ -6614,8 +6838,8 @@
"sources": [
{
"fileName": "lib/PostgrestTransformBuilder.ts",
- "line": 81,
- "character": 18
+ "line": 75,
+ "character": 48
}
],
"type": {
@@ -6638,15 +6862,15 @@
"title": "Variables",
"kind": 32,
"children": [
- 84
+ 87
]
}
],
"sources": [
{
"fileName": "lib/PostgrestTransformBuilder.ts",
- "line": 80,
- "character": 15
+ "line": 75,
+ "character": 33
}
]
}
@@ -6663,13 +6887,13 @@
"sources": [
{
"fileName": "lib/PostgrestTransformBuilder.ts",
- "line": 78,
+ "line": 75,
"character": 7
}
]
},
{
- "id": 61,
+ "id": 64,
"name": "select",
"kind": 2048,
"kindString": "Method",
@@ -6678,7 +6902,7 @@
},
"signatures": [
{
- "id": 62,
+ "id": 65,
"name": "select",
"kind": 4096,
"kindString": "Call signature",
@@ -6690,7 +6914,7 @@
},
"parameters": [
{
- "id": 63,
+ "id": 66,
"name": "columns",
"kind": 32768,
"kindString": "Parameter",
@@ -6722,7 +6946,7 @@
]
},
{
- "id": 85,
+ "id": 88,
"name": "single",
"kind": 2048,
"kindString": "Method",
@@ -6731,7 +6955,7 @@
},
"signatures": [
{
- "id": 86,
+ "id": 89,
"name": "single",
"kind": 4096,
"kindString": "Call signature",
@@ -6746,7 +6970,7 @@
"typeArguments": [
{
"type": "reference",
- "id": 56,
+ "id": 59,
"typeArguments": [
{
"type": "typeParameter",
@@ -6763,13 +6987,13 @@
"sources": [
{
"fileName": "lib/PostgrestTransformBuilder.ts",
- "line": 95,
+ "line": 88,
"character": 8
}
]
},
{
- "id": 98,
+ "id": 101,
"name": "then",
"kind": 2048,
"kindString": "Method",
@@ -6778,7 +7002,7 @@
},
"signatures": [
{
- "id": 99,
+ "id": 102,
"name": "then",
"kind": 4096,
"kindString": "Call signature",
@@ -6787,7 +7011,7 @@
},
"typeParameter": [
{
- "id": 100,
+ "id": 103,
"name": "TResult1",
"kind": 131072,
"kindString": "Type parameter",
@@ -6796,7 +7020,7 @@
}
},
{
- "id": 101,
+ "id": 104,
"name": "TResult2",
"kind": 131072,
"kindString": "Type parameter",
@@ -6807,7 +7031,7 @@
],
"parameters": [
{
- "id": 102,
+ "id": 105,
"name": "onfulfilled",
"kind": 32768,
"kindString": "Parameter",
@@ -6821,7 +7045,7 @@
{
"type": "reflection",
"declaration": {
- "id": 103,
+ "id": 106,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -6830,7 +7054,7 @@
},
"signatures": [
{
- "id": 104,
+ "id": 107,
"name": "__call",
"kind": 4096,
"kindString": "Call signature",
@@ -6839,7 +7063,7 @@
},
"parameters": [
{
- "id": 105,
+ "id": 108,
"name": "value",
"kind": 32768,
"kindString": "Parameter",
@@ -6848,7 +7072,7 @@
},
"type": {
"type": "reference",
- "id": 54,
+ "id": 57,
"typeArguments": [
{
"type": "typeParameter",
@@ -6903,7 +7127,7 @@
"sources": [
{
"fileName": "lib/types.ts",
- "line": 60,
+ "line": 63,
"character": 9
}
]
@@ -6921,7 +7145,7 @@
}
},
{
- "id": 106,
+ "id": 109,
"name": "onrejected",
"kind": 32768,
"kindString": "Parameter",
@@ -6935,7 +7159,7 @@
{
"type": "reflection",
"declaration": {
- "id": 107,
+ "id": 110,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -6944,7 +7168,7 @@
},
"signatures": [
{
- "id": 108,
+ "id": 111,
"name": "__call",
"kind": 4096,
"kindString": "Call signature",
@@ -6953,7 +7177,7 @@
},
"parameters": [
{
- "id": 109,
+ "id": 112,
"name": "reason",
"kind": 32768,
"kindString": "Parameter",
@@ -6998,7 +7222,7 @@
"sources": [
{
"fileName": "lib/types.ts",
- "line": 63,
+ "line": 66,
"character": 18
}
]
@@ -7051,7 +7275,7 @@
},
"inheritedFrom": {
"type": "reference",
- "id": 42,
+ "id": 45,
"name": "PostgrestBuilder.then"
}
}
@@ -7059,13 +7283,13 @@
"sources": [
{
"fileName": "lib/types.ts",
- "line": 58,
+ "line": 61,
"character": 6
}
],
"inheritedFrom": {
"type": "reference",
- "id": 42,
+ "id": 45,
"name": "PostgrestBuilder.then"
}
}
@@ -7075,30 +7299,30 @@
"title": "Constructors",
"kind": 512,
"children": [
- 95
+ 98
]
},
{
"title": "Properties",
"kind": 1024,
"children": [
- 94,
- 89,
- 87,
- 93,
- 88
+ 97,
+ 92,
+ 90,
+ 96,
+ 91
]
},
{
"title": "Methods",
"kind": 2048,
"children": [
- 72,
+ 75,
+ 67,
+ 81,
64,
- 78,
- 61,
- 85,
- 98
+ 88,
+ 101
]
}
],
@@ -7112,7 +7336,7 @@
"extendedTypes": [
{
"type": "reference",
- "id": 29,
+ "id": 32,
"typeArguments": [
{
"type": "typeParameter",
@@ -7125,7 +7349,7 @@
"extendedBy": [
{
"type": "reference",
- "id": 111,
+ "id": 114,
"name": "PostgrestFilterBuilder"
}
],
@@ -7135,7 +7359,7 @@
"typeArguments": [
{
"type": "reference",
- "id": 54,
+ "id": 57,
"typeArguments": [
{
"type": "typeParameter",
@@ -7155,7 +7379,7 @@
"title": "Classes",
"kind": 128,
"children": [
- 59
+ 62
]
}
],
@@ -7178,7 +7402,7 @@
"originalName": "/home/runner/work/postgrest-js/postgrest-js/src/lib/types.ts",
"children": [
{
- "id": 29,
+ "id": 32,
"name": "PostgrestBuilder",
"kind": 128,
"kindString": "Class",
@@ -7188,7 +7412,7 @@
},
"typeParameter": [
{
- "id": 30,
+ "id": 33,
"name": "T",
"kind": 131072,
"kindString": "Type parameter",
@@ -7199,7 +7423,7 @@
],
"children": [
{
- "id": 39,
+ "id": 42,
"name": "constructor",
"kind": 512,
"kindString": "Constructor",
@@ -7208,7 +7432,7 @@
},
"signatures": [
{
- "id": 40,
+ "id": 43,
"name": "new PostgrestBuilder",
"kind": 16384,
"kindString": "Constructor signature",
@@ -7217,7 +7441,7 @@
},
"parameters": [
{
- "id": 41,
+ "id": 44,
"name": "builder",
"kind": 32768,
"kindString": "Parameter",
@@ -7226,7 +7450,7 @@
},
"type": {
"type": "reference",
- "id": 29,
+ "id": 32,
"typeArguments": [
{
"type": "typeParameter",
@@ -7239,7 +7463,7 @@
],
"type": {
"type": "reference",
- "id": 29,
+ "id": 32,
"name": "PostgrestBuilder"
}
}
@@ -7247,13 +7471,13 @@
"sources": [
{
"fileName": "lib/types.ts",
- "line": 52,
+ "line": 55,
"character": 44
}
]
},
{
- "id": 38,
+ "id": 41,
"name": "body",
"kind": 1024,
"kindString": "Property",
@@ -7265,7 +7489,7 @@
"sources": [
{
"fileName": "lib/types.ts",
- "line": 52,
+ "line": 55,
"character": 16
}
],
@@ -7299,7 +7523,7 @@
}
},
{
- "id": 33,
+ "id": 36,
"name": "headers",
"kind": 1024,
"kindString": "Property",
@@ -7310,14 +7534,14 @@
"sources": [
{
"fileName": "lib/types.ts",
- "line": 50,
+ "line": 53,
"character": 19
}
],
"type": {
"type": "reflection",
"declaration": {
- "id": 34,
+ "id": 37,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -7326,7 +7550,7 @@
},
"indexSignature": [
{
- "id": 35,
+ "id": 38,
"name": "__index",
"kind": 8192,
"kindString": "Index signature",
@@ -7335,7 +7559,7 @@
},
"parameters": [
{
- "id": 36,
+ "id": 39,
"name": "key",
"kind": 32768,
"kindString": "Parameter",
@@ -7357,7 +7581,7 @@
"sources": [
{
"fileName": "lib/types.ts",
- "line": 50,
+ "line": 53,
"character": 21
}
]
@@ -7365,7 +7589,7 @@
}
},
{
- "id": 31,
+ "id": 34,
"name": "method",
"kind": 1024,
"kindString": "Property",
@@ -7376,7 +7600,7 @@
"sources": [
{
"fileName": "lib/types.ts",
- "line": 48,
+ "line": 51,
"character": 18
}
],
@@ -7407,7 +7631,7 @@
}
},
{
- "id": 37,
+ "id": 40,
"name": "schema",
"kind": 1024,
"kindString": "Property",
@@ -7419,7 +7643,7 @@
"sources": [
{
"fileName": "lib/types.ts",
- "line": 51,
+ "line": 54,
"character": 18
}
],
@@ -7438,7 +7662,7 @@
}
},
{
- "id": 32,
+ "id": 35,
"name": "url",
"kind": 1024,
"kindString": "Property",
@@ -7449,7 +7673,7 @@
"sources": [
{
"fileName": "lib/types.ts",
- "line": 49,
+ "line": 52,
"character": 15
}
],
@@ -7459,7 +7683,7 @@
}
},
{
- "id": 42,
+ "id": 45,
"name": "then",
"kind": 2048,
"kindString": "Method",
@@ -7468,7 +7692,7 @@
},
"signatures": [
{
- "id": 43,
+ "id": 46,
"name": "then",
"kind": 4096,
"kindString": "Call signature",
@@ -7477,7 +7701,7 @@
},
"typeParameter": [
{
- "id": 44,
+ "id": 47,
"name": "TResult1",
"kind": 131072,
"kindString": "Type parameter",
@@ -7486,7 +7710,7 @@
}
},
{
- "id": 45,
+ "id": 48,
"name": "TResult2",
"kind": 131072,
"kindString": "Type parameter",
@@ -7497,7 +7721,7 @@
],
"parameters": [
{
- "id": 46,
+ "id": 49,
"name": "onfulfilled",
"kind": 32768,
"kindString": "Parameter",
@@ -7511,7 +7735,7 @@
{
"type": "reflection",
"declaration": {
- "id": 47,
+ "id": 50,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -7520,7 +7744,7 @@
},
"signatures": [
{
- "id": 48,
+ "id": 51,
"name": "__call",
"kind": 4096,
"kindString": "Call signature",
@@ -7529,7 +7753,7 @@
},
"parameters": [
{
- "id": 49,
+ "id": 52,
"name": "value",
"kind": 32768,
"kindString": "Parameter",
@@ -7538,7 +7762,7 @@
},
"type": {
"type": "reference",
- "id": 54,
+ "id": 57,
"typeArguments": [
{
"type": "typeParameter",
@@ -7593,7 +7817,7 @@
"sources": [
{
"fileName": "lib/types.ts",
- "line": 60,
+ "line": 63,
"character": 9
}
]
@@ -7611,7 +7835,7 @@
}
},
{
- "id": 50,
+ "id": 53,
"name": "onrejected",
"kind": 32768,
"kindString": "Parameter",
@@ -7625,7 +7849,7 @@
{
"type": "reflection",
"declaration": {
- "id": 51,
+ "id": 54,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -7634,7 +7858,7 @@
},
"signatures": [
{
- "id": 52,
+ "id": 55,
"name": "__call",
"kind": 4096,
"kindString": "Call signature",
@@ -7643,7 +7867,7 @@
},
"parameters": [
{
- "id": 53,
+ "id": 56,
"name": "reason",
"kind": 32768,
"kindString": "Parameter",
@@ -7688,7 +7912,7 @@
"sources": [
{
"fileName": "lib/types.ts",
- "line": 63,
+ "line": 66,
"character": 18
}
]
@@ -7744,7 +7968,7 @@
"sources": [
{
"fileName": "lib/types.ts",
- "line": 58,
+ "line": 61,
"character": 6
}
]
@@ -7755,44 +7979,44 @@
"title": "Constructors",
"kind": 512,
"children": [
- 39
+ 42
]
},
{
"title": "Properties",
"kind": 1024,
"children": [
- 38,
- 33,
- 31,
- 37,
- 32
+ 41,
+ 36,
+ 34,
+ 40,
+ 35
]
},
{
"title": "Methods",
"kind": 2048,
"children": [
- 42
+ 45
]
}
],
"sources": [
{
"fileName": "lib/types.ts",
- "line": 47,
+ "line": 50,
"character": 38
}
],
"extendedBy": [
{
"type": "reference",
- "id": 59,
+ "id": 62,
"name": "PostgrestTransformBuilder"
},
{
"type": "reference",
- "id": 287,
+ "id": 290,
"name": "PostgrestQueryBuilder"
}
],
@@ -7802,7 +8026,7 @@
"typeArguments": [
{
"type": "reference",
- "id": 54,
+ "id": 57,
"typeArguments": [
{
"type": "typeParameter",
@@ -7993,25 +8217,25 @@
},
{
"type": "reference",
- "id": 17,
+ "id": 18,
"name": "PostgrestResponseFailure"
},
{
"type": "reference",
- "id": 23,
+ "id": 25,
"name": "PostgrestSingleResponseSuccess"
}
]
},
{
- "id": 17,
+ "id": 18,
"name": "PostgrestResponseFailure",
"kind": 256,
"kindString": "Interface",
"flags": {},
"children": [
{
- "id": 20,
+ "id": 21,
"name": "body",
"kind": 1024,
"kindString": "Property",
@@ -8019,7 +8243,7 @@
"sources": [
{
"fileName": "lib/types.ts",
- "line": 34,
+ "line": 35,
"character": 6
}
],
@@ -8029,7 +8253,25 @@
}
},
{
- "id": 19,
+ "id": 22,
+ "name": "count",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "lib/types.ts",
+ "line": 36,
+ "character": 7
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "null"
+ }
+ },
+ {
+ "id": 20,
"name": "data",
"kind": 1024,
"kindString": "Property",
@@ -8037,7 +8279,7 @@
"sources": [
{
"fileName": "lib/types.ts",
- "line": 32,
+ "line": 33,
"character": 6
}
],
@@ -8047,7 +8289,7 @@
}
},
{
- "id": 18,
+ "id": 19,
"name": "error",
"kind": 1024,
"kindString": "Property",
@@ -8055,7 +8297,7 @@
"sources": [
{
"fileName": "lib/types.ts",
- "line": 31,
+ "line": 32,
"character": 7
}
],
@@ -8066,7 +8308,7 @@
}
},
{
- "id": 21,
+ "id": 23,
"name": "status",
"kind": 1024,
"kindString": "Property",
@@ -8089,7 +8331,7 @@
}
},
{
- "id": 22,
+ "id": 24,
"name": "statusText",
"kind": 1024,
"kindString": "Property",
@@ -8117,18 +8359,19 @@
"title": "Properties",
"kind": 1024,
"children": [
+ 21,
+ 22,
20,
19,
- 18,
- 21,
- 22
+ 23,
+ 24
]
}
],
"sources": [
{
"fileName": "lib/types.ts",
- "line": 30,
+ "line": 31,
"character": 34
}
],
@@ -8177,6 +8420,33 @@
}
}
},
+ {
+ "id": 15,
+ "name": "count",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "lib/types.ts",
+ "line": 29,
+ "character": 7
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "intrinsic",
+ "name": "number"
+ },
+ {
+ "type": "intrinsic",
+ "name": "null"
+ }
+ ]
+ }
+ },
{
"id": 13,
"name": "data",
@@ -8217,7 +8487,7 @@
}
},
{
- "id": 15,
+ "id": 16,
"name": "status",
"kind": 1024,
"kindString": "Property",
@@ -8240,7 +8510,7 @@
}
},
{
- "id": 16,
+ "id": 17,
"name": "statusText",
"kind": 1024,
"kindString": "Property",
@@ -8269,10 +8539,11 @@
"kind": 1024,
"children": [
14,
+ 15,
13,
12,
- 15,
- 16
+ 16,
+ 17
]
}
],
@@ -8292,14 +8563,14 @@
]
},
{
- "id": 23,
+ "id": 25,
"name": "PostgrestSingleResponseSuccess",
"kind": 256,
"kindString": "Interface",
"flags": {},
"typeParameter": [
{
- "id": 24,
+ "id": 26,
"name": "T",
"kind": 131072,
"kindString": "Type parameter",
@@ -8308,7 +8579,7 @@
],
"children": [
{
- "id": 26,
+ "id": 29,
"name": "body",
"kind": 1024,
"kindString": "Property",
@@ -8316,7 +8587,7 @@
"sources": [
{
"fileName": "lib/types.ts",
- "line": 41,
+ "line": 44,
"character": 6
}
],
@@ -8326,7 +8597,7 @@
}
},
{
- "id": 25,
+ "id": 28,
"name": "data",
"kind": 1024,
"kindString": "Property",
@@ -8334,7 +8605,7 @@
"sources": [
{
"fileName": "lib/types.ts",
- "line": 39,
+ "line": 42,
"character": 6
}
],
@@ -8345,6 +8616,24 @@
},
{
"id": 27,
+ "name": "error",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "lib/types.ts",
+ "line": 41,
+ "character": 7
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "null"
+ }
+ },
+ {
+ "id": 30,
"name": "status",
"kind": 1024,
"kindString": "Property",
@@ -8367,7 +8656,7 @@
}
},
{
- "id": 28,
+ "id": 31,
"name": "statusText",
"kind": 1024,
"kindString": "Property",
@@ -8395,17 +8684,18 @@
"title": "Properties",
"kind": 1024,
"children": [
- 26,
- 25,
+ 29,
+ 28,
27,
- 28
+ 30,
+ 31
]
}
],
"sources": [
{
"fileName": "lib/types.ts",
- "line": 38,
+ "line": 40,
"character": 40
}
],
@@ -8418,7 +8708,7 @@
]
},
{
- "id": 54,
+ "id": 57,
"name": "PostgrestResponse",
"kind": 4194304,
"kindString": "Type alias",
@@ -8427,7 +8717,7 @@
},
"typeParameter": [
{
- "id": 55,
+ "id": 58,
"name": "T",
"kind": 131072,
"kindString": "Type parameter",
@@ -8439,7 +8729,7 @@
"sources": [
{
"fileName": "lib/types.ts",
- "line": 36,
+ "line": 38,
"character": 29
}
],
@@ -8459,14 +8749,14 @@
},
{
"type": "reference",
- "id": 17,
+ "id": 18,
"name": "PostgrestResponseFailure"
}
]
}
},
{
- "id": 56,
+ "id": 59,
"name": "PostgrestSingleResponse",
"kind": 4194304,
"kindString": "Type alias",
@@ -8475,7 +8765,7 @@
},
"typeParameter": [
{
- "id": 57,
+ "id": 60,
"name": "T",
"kind": 131072,
"kindString": "Type parameter",
@@ -8487,7 +8777,7 @@
"sources": [
{
"fileName": "lib/types.ts",
- "line": 43,
+ "line": 46,
"character": 35
}
],
@@ -8496,7 +8786,7 @@
"types": [
{
"type": "reference",
- "id": 23,
+ "id": 25,
"typeArguments": [
{
"type": "typeParameter",
@@ -8507,7 +8797,7 @@
},
{
"type": "reference",
- "id": 17,
+ "id": 18,
"name": "PostgrestResponseFailure"
}
]
@@ -8519,7 +8809,7 @@
"title": "Classes",
"kind": 128,
"children": [
- 29
+ 32
]
},
{
@@ -8528,17 +8818,17 @@
"children": [
2,
7,
- 17,
+ 18,
10,
- 23
+ 25
]
},
{
"title": "Type aliases",
"kind": 4194304,
"children": [
- 54,
- 56
+ 57,
+ 59
]
}
],
@@ -8556,11 +8846,11 @@
"title": "Modules",
"kind": 1,
"children": [
- 344,
- 374,
- 110,
- 286,
- 58,
+ 358,
+ 388,
+ 113,
+ 289,
+ 61,
1
]
}
diff --git a/web/spec/postgrest.yml b/web/spec/postgrest.yml
index 45e46a2a97d..a971ab33259 100644
--- a/web/spec/postgrest.yml
+++ b/web/spec/postgrest.yml
@@ -1,14 +1,14 @@
openref: 0.1
info:
- title: PostgREST Client
+ title: PostgREST Client
description: |
PostgREST is a standalone web server that turns your PostgreSQL database directly into a RESTful API.
Supabase provides client libraries to interact with the PostgREST.
-
+
definition: spec/postgrest.json
- libraries:
+ libraries:
- name: 'JavaScript'
id: 'js'
version: '0.0.1'
@@ -59,11 +59,10 @@ info:
- wfts
pages:
-
- Installing:
+ Installing:
description: |
All JavaScript libraries are built directly by the Supabase team.
-
+
Other languages are built by the community and supported by Supabase.
## JavaScript
@@ -79,7 +78,7 @@ pages:
```bash
# Not yet implemented
- Initializing:
+ Initializing:
$ref: '"PostgrestClient".PostgrestClient.constructor'
from:
@@ -96,7 +95,7 @@ pages:
.from('cities')
.select()
```
- py: |
+ py: |
```py
# Not yet implemented
```
@@ -108,7 +107,7 @@ pages:
.from('cities')
.select('name')
```
- py: |
+ py: |
```py
# Not yet implemented
```
@@ -125,12 +124,12 @@ pages:
)
`)
```
- py: |
+ py: |
```py
# Not yet implemented
```
- name: Query the same foreign table multiple times
- description: |
+ description: |
Sometimes you will need to query the same foreign table twice.
In this case, you can use the name of the joined column to identify
which join you intend to use. For convenience, you can also give an
@@ -147,12 +146,36 @@ pages:
purchaser:purchaser_id ( name )
`)
```
- py: |
+ py: |
+ ```py
+ # Not yet implemented
+ ```
+ - name: Selecting specific columns
+ description: You can select specific fields from your tables.
+ js: |
+ ```js
+ const { data, error } = await postgrest
+ .from('cities')
+ .select('name')
+ ```
+ py: |
+ ```py
+ # Not yet implemented
+ ```
+ - name: Selecting with count option
+ description: You can get the number of rows by using the count option. Values can be 'exact', 'planned' or 'estimated'.
+ js: |
+ ```js
+ const { data, error, count } = await postgrest
+ .from('cities')
+ .select('name', {count: 'exact'})
+ ```
+ py: |
```py
# Not yet implemented
```
- name: Quering JSON data
- description: |
+ description: |
If you have data inside of a JSONB column, you can apply select
and query filters to the data values. Postgres offers a
[number of operators](https://www.postgresql.org/docs/9.5/functions-json.html)
@@ -168,11 +191,11 @@ pages:
purchaser:purchaser_id ( name )
`)
```
- py: |
+ py: |
```py
# Not yet implemented
```
-
+
insert:
$ref: '"lib/PostgrestQueryBuilder".PostgrestQueryBuilder.insert'
examples:
@@ -186,7 +209,7 @@ pages:
{ name: 'The Shire', country_id: 554 }
])
```
- py: |
+ py: |
```py
# Not yet implemented
```
@@ -200,12 +223,12 @@ pages:
{ name: 'Rohan', country_id: 555 },
])
```
- py: |
+ py: |
```py
# Not yet implemented
```
- name: Upsert
- description: |
+ description: |
For upsert, if set to true, primary key columns would need to be included
in the data parameter in order for an update to properly happen. Also, primary keys
used must be natural, not surrogate. There are however,
@@ -223,7 +246,7 @@ pages:
],
{ upsert: true })
```
- py: |
+ py: |
```py
# Not yet implemented
```
@@ -240,7 +263,7 @@ pages:
.update({ name: 'Middle Earth' })
.match({ name: 'Auckland' })
```
- py: |
+ py: |
```py
# Not yet implemented
```
@@ -257,14 +280,14 @@ pages:
.delete()
.match({ id: 666 })
```
- py: |
+ py: |
```py
# Not yet implemented
```
rpc:
- title: "Stored Procedures: rpc()"
- description: |
+ title: 'Stored Procedures: rpc()'
+ description: |
You can call stored procedures as a "Remote Procedure Call".
That's a fancy way of saying that you can put some logic into your database then call it from anywhere.
@@ -280,7 +303,7 @@ pages:
.rpc('hello_world')
}
```
- py: |
+ py: |
```py
# Not yet implemented
```
@@ -291,7 +314,7 @@ pages:
.rpc('echo_city', { name: 'The Shire' })
}
```
- py: |
+ py: |
```py
# Not yet implemented
```
@@ -305,12 +328,12 @@ pages:
])
}
```
- py: |
+ py: |
```py
# Not yet implemented
```
- name: With filters.
- description: |
+ description: |
Stored procedures that return tables can also be combined with
[Modifiers](/docs/postgrest/client/using-modifiers) and
[Filters](/docs/postgrest/client/using-filters).
@@ -320,7 +343,7 @@ pages:
.rpc('echo_all_cities')
.eq('name', 'The Shire')
```
- py: |
+ py: |
```py
# Not yet implemented
```
@@ -337,7 +360,7 @@ pages:
.select('name, country_id')
.filter('name', 'eq', 'Paris')
```
- py: |
+ py: |
```py
# Not yet implemented
```
@@ -349,7 +372,7 @@ pages:
.update({ name: 'Mordor' })
.filter('name', 'eq', 'Paris')
```
- py: |
+ py: |
```py
# Not yet implemented
```
@@ -361,7 +384,7 @@ pages:
.delete()
.filter('name', 'eq', 'Paris')
```
- py: |
+ py: |
```py
# Not yet implemented
```
@@ -373,7 +396,7 @@ pages:
.rpc('echo_all_cities')
.filter('name', 'eq', 'Paris')
```
- py: |
+ py: |
```py
# Not yet implemented
```
@@ -385,7 +408,7 @@ pages:
.select('name, countries ( name )')
.filter('countries.name', 'eq', 'France')
```
- py: |
+ py: |
```py
# Not yet implemented
```
@@ -402,7 +425,7 @@ pages:
.select('name, country_id')
.not('name', 'eq', 'Paris')
```
- py: |
+ py: |
```py
# Not yet implemented
```
@@ -414,7 +437,7 @@ pages:
.update({ name: 'Mordor' })
.not('name', 'eq', 'Paris')
```
- py: |
+ py: |
```py
# Not yet implemented
```
@@ -426,7 +449,7 @@ pages:
.delete()
.not('name', 'eq', 'Paris')
```
- py: |
+ py: |
```py
# Not yet implemented
```
@@ -438,7 +461,7 @@ pages:
.rpc('echo_all_cities)
.not('name', 'eq', 'Paris')
```
- py: |
+ py: |
```py
# Not yet implemented
```
@@ -455,7 +478,7 @@ pages:
.select('name, country_id')
.eq('name', 'The shire')
```
- py: |
+ py: |
```py
# Not yet implemented
```
@@ -467,7 +490,7 @@ pages:
.update({ name: 'Mordor' })
.eq('name', 'San Francisco')
```
- py: |
+ py: |
```py
# Not yet implemented
```
@@ -479,7 +502,7 @@ pages:
.delete()
.eq('name', 'Mordor')
```
- py: |
+ py: |
```py
# Not yet implemented
```
@@ -491,7 +514,7 @@ pages:
.rpc('echo_all_cities')
.eq('name', 'San Francisco')
```
- py: |
+ py: |
```py
# Not yet implemented
```
@@ -508,7 +531,7 @@ pages:
.select('name, country_id')
.neq('name', 'The shire')
```
- py: |
+ py: |
```py
# Not yet implemented
```
@@ -520,7 +543,7 @@ pages:
.update({ name: 'Mordor' })
.neq('name', 'San Francisco')
```
- py: |
+ py: |
```py
# Not yet implemented
```
@@ -532,7 +555,7 @@ pages:
.delete()
.neq('name', 'Mordor')
```
- py: |
+ py: |
```py
# Not yet implemented
```
@@ -544,7 +567,7 @@ pages:
.rpc('echo_all_cities')
.neq('name', 'Lagos')
```
- py: |
+ py: |
```py
# Not yet implemented
```
@@ -561,7 +584,7 @@ pages:
.select('name, country_id')
.gt('country_id', 250)
```
- py: |
+ py: |
```py
# Not yet implemented
```
@@ -573,7 +596,7 @@ pages:
.update({ name: 'Mordor' })
.gt('country_id', 250)
```
- py: |
+ py: |
```py
# Not yet implemented
```
@@ -585,7 +608,7 @@ pages:
.delete()
.gt('country_id', 250)
```
- py: |
+ py: |
```py
# Not yet implemented
```
@@ -597,7 +620,7 @@ pages:
.rpc('echo_all_cities')
.gt('country_id', 250)
```
- py: |
+ py: |
```py
# Not yet implemented
```
@@ -614,7 +637,7 @@ pages:
.select('name, country_id')
.gte('country_id', 250)
```
- py: |
+ py: |
```py
# Not yet implemented
```
@@ -626,7 +649,7 @@ pages:
.update({ name: 'Mordor' })
.gte('country_id', 250)
```
- py: |
+ py: |
```py
# Not yet implemented
```
@@ -638,7 +661,7 @@ pages:
.delete()
.gte('country_id', 250)
```
- py: |
+ py: |
```py
# Not yet implemented
```
@@ -650,7 +673,7 @@ pages:
.rpc('echo_all_cities')
.gte('country_id', 250)
```
- py: |
+ py: |
```py
# Not yet implemented
```
@@ -667,7 +690,7 @@ pages:
.select('name, country_id')
.lt('country_id', 250)
```
- py: |
+ py: |
```py
# Not yet implemented
```
@@ -679,7 +702,7 @@ pages:
.update({ name: 'Mordor' })
.lt('country_id', 250)
```
- py: |
+ py: |
```py
# Not yet implemented
```
@@ -691,7 +714,7 @@ pages:
.delete()
.lt('country_id', 250)
```
- py: |
+ py: |
```py
# Not yet implemented
```
@@ -703,7 +726,7 @@ pages:
.rpc('echo_all_cities')
.lt('country_id', 250)
```
- py: |
+ py: |
```py
# Not yet implemented
```
@@ -720,7 +743,7 @@ pages:
.select('name, country_id')
.lte('country_id', 250)
```
- py: |
+ py: |
```py
# Not yet implemented
```
@@ -732,7 +755,7 @@ pages:
.update({ name: 'Mordor' })
.lte('country_id', 250)
```
- py: |
+ py: |
```py
# Not yet implemented
```
@@ -744,7 +767,7 @@ pages:
.delete()
.lte('country_id', 250)
```
- py: |
+ py: |
```py
# Not yet implemented
```
@@ -756,7 +779,7 @@ pages:
.rpc('echo_all_cities')
.lte('country_id', 250)
```
- py: |
+ py: |
```py
# Not yet implemented
```
@@ -773,7 +796,7 @@ pages:
.select('name, country_id')
.like('name', '%la%')
```
- py: |
+ py: |
```py
# Not yet implemented
```
@@ -785,7 +808,7 @@ pages:
.update({ name: 'Mordor' })
.like('name', '%la%')
```
- py: |
+ py: |
```py
# Not yet implemented
```
@@ -797,7 +820,7 @@ pages:
.delete()
.like('name', '%la%')
```
- py: |
+ py: |
```py
# Not yet implemented
```
@@ -809,7 +832,7 @@ pages:
.rpc('echo_all_cities')
.like('name', '%la%')
```
- py: |
+ py: |
```py
# Not yet implemented
```
@@ -826,7 +849,7 @@ pages:
.select('name, country_id')
.ilike('name', '%la%')
```
- py: |
+ py: |
```py
# Not yet implemented
```
@@ -838,7 +861,7 @@ pages:
.update({ name: 'Mordor' })
.ilike('name', '%la%')
```
- py: |
+ py: |
```py
# Not yet implemented
```
@@ -850,7 +873,7 @@ pages:
.delete()
.ilike('name', '%la%')
```
- py: |
+ py: |
```py
# Not yet implemented
```
@@ -862,7 +885,7 @@ pages:
.rpc('echo_all_cities')
.ilike('name', '%la%')
```
- py: |
+ py: |
```py
# Not yet implemented
```
@@ -879,7 +902,7 @@ pages:
.select('name, country_id')
.is('name', null)
```
- py: |
+ py: |
```py
# Not yet implemented
```
@@ -891,7 +914,7 @@ pages:
.update({ name: 'Mordor' })
.is('name', null)
```
- py: |
+ py: |
```py
# Not yet implemented
```
@@ -903,7 +926,7 @@ pages:
.delete()
.is('name', null)
```
- py: |
+ py: |
```py
# Not yet implemented
```
@@ -915,7 +938,7 @@ pages:
.rpc('echo_all_cities')
.is('name', null)
```
- py: |
+ py: |
```py
# Not yet implemented
```
@@ -932,7 +955,7 @@ pages:
.select('name, country_id')
.in('name', ['Rio de Janeiro', 'San Francisco'])
```
- py: |
+ py: |
```py
# Not yet implemented
```
@@ -944,7 +967,7 @@ pages:
.update({ name: 'Mordor' })
.in('name', ['Rio de Janeiro', 'San Francisco'])
```
- py: |
+ py: |
```py
# Not yet implemented
```
@@ -956,7 +979,7 @@ pages:
.delete()
.in('name', ['Rio de Janeiro', 'San Francisco'])
```
- py: |
+ py: |
```py
# Not yet implemented
```
@@ -968,7 +991,7 @@ pages:
.rpc('echo_all_cities')
.in('name', ['Rio de Janeiro', 'San Francisco'])
```
- py: |
+ py: |
```py
# Not yet implemented
```
@@ -985,7 +1008,7 @@ pages:
.select('name, id, main_exports')
.cs('main_exports', ['oil'])
```
- py: |
+ py: |
```py
# Not yet implemented
```
@@ -997,7 +1020,7 @@ pages:
.update({ name: 'Mordor' })
.cs('main_exports', ['oil'])
```
- py: |
+ py: |
```py
# Not yet implemented
```
@@ -1009,7 +1032,7 @@ pages:
.delete()
.cs('main_exports', ['oil'])
```
- py: |
+ py: |
```py
# Not yet implemented
```
@@ -1021,7 +1044,7 @@ pages:
.rpc('echo_all_countries')
.cs('main_exports', ['oil'])
```
- py: |
+ py: |
```py
# Not yet implemented
```
@@ -1038,7 +1061,7 @@ pages:
.select('name, id, main_exports')
.cd('main_exports', ['cars', 'food', 'machine'])
```
- py: |
+ py: |
```py
# Not yet implemented
```
@@ -1050,7 +1073,7 @@ pages:
.update({ name: 'Mordor' })
.cd('main_exports', ['orks', 'surveillance', 'evil'])
```
- py: |
+ py: |
```py
# Not yet implemented
```
@@ -1062,7 +1085,7 @@ pages:
.delete()
.cd('main_exports', ['cars', 'food', 'machine'])
```
- py: |
+ py: |
```py
# Not yet implemented
```
@@ -1074,7 +1097,7 @@ pages:
.rpc('echo_all_countries')
.cd('main_exports', ['cars', 'food', 'machine'])
```
- py: |
+ py: |
```py
# Not yet implemented
```
@@ -1091,7 +1114,7 @@ pages:
.select('name, id, population_range_millions')
.sl('population_range_millions', [150, 250])
```
- py: |
+ py: |
```py
# Not yet implemented
```
@@ -1103,7 +1126,7 @@ pages:
.update({ name: 'Mordor' })
.sl('population_range_millions', [150, 250])
```
- py: |
+ py: |
```py
# Not yet implemented
```
@@ -1115,7 +1138,7 @@ pages:
.delete()
.sl('population_range_millions', [150, 250])
```
- py: |
+ py: |
```py
# Not yet implemented
```
@@ -1127,7 +1150,7 @@ pages:
.rpc('echo_all_countries')
.sl('population_range_millions', [150, 250])
```
- py: |
+ py: |
```py
# Not yet implemented
```
@@ -1144,7 +1167,7 @@ pages:
.select('name, id, population_range_millions')
.sr('population_range_millions', [150, 250])
```
- py: |
+ py: |
```py
# Not yet implemented
```
@@ -1156,7 +1179,7 @@ pages:
.update({ name: 'Mordor' })
.sr('population_range_millions', [150, 250])
```
- py: |
+ py: |
```py
# Not yet implemented
```
@@ -1168,7 +1191,7 @@ pages:
.delete()
.sr('population_range_millions', [150, 250])
```
- py: |
+ py: |
```py
# Not yet implemented
```
@@ -1180,7 +1203,7 @@ pages:
.rpc('echo_all_countries')
.sr('population_range_millions', [150, 250])
```
- py: |
+ py: |
```py
# Not yet implemented
```
@@ -1197,7 +1220,7 @@ pages:
.select('name, id, population_range_millions')
.nxl('population_range_millions', [150, 250])
```
- py: |
+ py: |
```py
# Not yet implemented
```
@@ -1209,7 +1232,7 @@ pages:
.update({ name: 'Mordor' })
.nxl('population_range_millions', [150, 250])
```
- py: |
+ py: |
```py
# Not yet implemented
```
@@ -1221,7 +1244,7 @@ pages:
.delete()
.nxl('population_range_millions', [150, 250])
```
- py: |
+ py: |
```py
# Not yet implemented
```
@@ -1233,7 +1256,7 @@ pages:
.rpc('echo_all_countries')
.nxl('population_range_millions', [150, 250])
```
- py: |
+ py: |
```py
# Not yet implemented
```
@@ -1250,7 +1273,7 @@ pages:
.select('name, id, population_range_millions')
.nxr('population_range_millions', [150, 250])
```
- py: |
+ py: |
```py
# Not yet implemented
```
@@ -1262,7 +1285,7 @@ pages:
.update({ name: 'Mordor' })
.nxr('population_range_millions', [150, 250])
```
- py: |
+ py: |
```py
# Not yet implemented
```
@@ -1274,7 +1297,7 @@ pages:
.delete()
.nxr('population_range_millions', [150, 250])
```
- py: |
+ py: |
```py
# Not yet implemented
```
@@ -1286,7 +1309,7 @@ pages:
.rpc('echo_all_countries')
.nxr('population_range_millions', [150, 250])
```
- py: |
+ py: |
```py
# Not yet implemented
```
@@ -1303,7 +1326,7 @@ pages:
.select('name, id, population_range_millions')
.adj('population_range_millions', [70, 185])
```
- py: |
+ py: |
```py
# Not yet implemented
```
@@ -1315,7 +1338,7 @@ pages:
.update({ name: 'Mordor' })
.adj('population_range_millions', [70, 185])
```
- py: |
+ py: |
```py
# Not yet implemented
```
@@ -1327,7 +1350,7 @@ pages:
.delete()
.adj('population_range_millions', [70, 185])
```
- py: |
+ py: |
```py
# Not yet implemented
```
@@ -1339,7 +1362,7 @@ pages:
.rpc('echo_all_countries')
.adj('population_range_millions', [70, 185])
```
- py: |
+ py: |
```py
# Not yet implemented
```
@@ -1356,7 +1379,7 @@ pages:
.select('name, id, main_exports')
.ova('main_exports', ['computers', 'minerals'])
```
- py: |
+ py: |
```py
# Not yet implemented
```
@@ -1368,7 +1391,7 @@ pages:
.update({ name: 'Mordor' })
.ova('main_exports', ['computers', 'minerals'])
```
- py: |
+ py: |
```py
# Not yet implemented
```
@@ -1380,7 +1403,7 @@ pages:
.delete()
.ova('main_exports', ['computers', 'minerals'])
```
- py: |
+ py: |
```py
# Not yet implemented
```
@@ -1392,7 +1415,7 @@ pages:
.rpc('echo_all_countries')
.ova('main_exports', ['computers', 'minerals'])
```
- py: |
+ py: |
```py
# Not yet implemented
```
@@ -1407,4 +1430,4 @@ pages:
$ref: '"lib/PostgrestFilterBuilder".PostgrestFilterBuilder.phfts'
wfts:
- $ref: '"lib/PostgrestFilterBuilder".PostgrestFilterBuilder.wfts'
\ No newline at end of file
+ $ref: '"lib/PostgrestFilterBuilder".PostgrestFilterBuilder.wfts'