@xata.io/client 0.10.0 → 0.11.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.eslintrc.cjs +1 -2
- package/CHANGELOG.md +34 -0
- package/dist/index.cjs +121 -59
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +183 -88
- package/dist/index.mjs +120 -60
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
- package/tsconfig.json +1 -0
package/dist/index.d.ts
CHANGED
@@ -268,6 +268,17 @@ declare type SortExpression = string[] | {
|
|
268
268
|
[key: string]: SortOrder;
|
269
269
|
}[];
|
270
270
|
declare type SortOrder = 'asc' | 'desc';
|
271
|
+
/**
|
272
|
+
* Maximum [Levenshtein distance](https://en.wikipedia.org/wiki/Levenshtein_distance) for the search terms. The Levenshtein
|
273
|
+
* distance is the number of one charcter changes needed to make two strings equal. The default is 1, meaning that single
|
274
|
+
* character typos per word are tollerated by search. You can set it to 0 to remove the typo tollerance or set it to 2
|
275
|
+
* to allow two typos in a word.
|
276
|
+
*
|
277
|
+
* @default 1
|
278
|
+
* @maximum 2
|
279
|
+
* @minimum 0
|
280
|
+
*/
|
281
|
+
declare type FuzzinessExpression = number;
|
271
282
|
/**
|
272
283
|
* @minProperties 1
|
273
284
|
*/
|
@@ -281,6 +292,10 @@ declare type FilterExpression = {
|
|
281
292
|
} & {
|
282
293
|
[key: string]: FilterColumn;
|
283
294
|
};
|
295
|
+
declare type HighlightExpression = {
|
296
|
+
enabled?: boolean;
|
297
|
+
encodeHTML?: boolean;
|
298
|
+
};
|
284
299
|
declare type FilterList = FilterExpression | FilterExpression[];
|
285
300
|
declare type FilterColumn = FilterColumnIncludes | FilterPredicate | FilterList;
|
286
301
|
/**
|
@@ -366,6 +381,11 @@ declare type XataRecord$1 = {
|
|
366
381
|
xata: {
|
367
382
|
version: number;
|
368
383
|
table?: string;
|
384
|
+
highlight?: {
|
385
|
+
[key: string]: string[] | {
|
386
|
+
[key: string]: any;
|
387
|
+
};
|
388
|
+
};
|
369
389
|
warnings?: string[];
|
370
390
|
};
|
371
391
|
} & {
|
@@ -409,7 +429,9 @@ type schemas_TableMigration = TableMigration;
|
|
409
429
|
type schemas_ColumnMigration = ColumnMigration;
|
410
430
|
type schemas_SortExpression = SortExpression;
|
411
431
|
type schemas_SortOrder = SortOrder;
|
432
|
+
type schemas_FuzzinessExpression = FuzzinessExpression;
|
412
433
|
type schemas_FilterExpression = FilterExpression;
|
434
|
+
type schemas_HighlightExpression = HighlightExpression;
|
413
435
|
type schemas_FilterList = FilterList;
|
414
436
|
type schemas_FilterColumn = FilterColumn;
|
415
437
|
type schemas_FilterColumnIncludes = FilterColumnIncludes;
|
@@ -462,7 +484,9 @@ declare namespace schemas {
|
|
462
484
|
schemas_ColumnMigration as ColumnMigration,
|
463
485
|
schemas_SortExpression as SortExpression,
|
464
486
|
schemas_SortOrder as SortOrder,
|
487
|
+
schemas_FuzzinessExpression as FuzzinessExpression,
|
465
488
|
schemas_FilterExpression as FilterExpression,
|
489
|
+
schemas_HighlightExpression as HighlightExpression,
|
466
490
|
schemas_FilterList as FilterList,
|
467
491
|
schemas_FilterColumn as FilterColumn,
|
468
492
|
schemas_FilterColumnIncludes as FilterColumnIncludes,
|
@@ -1151,14 +1175,15 @@ declare type ResolveBranchVariables = {
|
|
1151
1175
|
} & FetcherExtraProps;
|
1152
1176
|
/**
|
1153
1177
|
* In order to resolve the database branch, the following algorithm is used:
|
1154
|
-
* * if the `gitBranch` is found in the [git branches mapping](), the associated Xata branch is returned
|
1178
|
+
* * if the `gitBranch` was provided and is found in the [git branches mapping](/api-reference/dbs/db_name/gitBranches), the associated Xata branch is returned
|
1155
1179
|
* * else, if a Xata branch with the exact same name as `gitBranch` exists, return it
|
1156
|
-
* * else,
|
1180
|
+
* * else, if `fallbackBranch` is provided and a branch with that name exists, return it
|
1181
|
+
* * else, return the default branch of the DB (`main` or the first branch)
|
1157
1182
|
*
|
1158
1183
|
* Example call:
|
1159
1184
|
*
|
1160
1185
|
* ```json
|
1161
|
-
* // GET https://tutorial-ng7s8c.xata.sh/dbs/demo/dbs/demo/resolveBranch?gitBranch=test
|
1186
|
+
* // GET https://tutorial-ng7s8c.xata.sh/dbs/demo/dbs/demo/resolveBranch?gitBranch=test&fallbackBranch=tsg
|
1162
1187
|
* ```
|
1163
1188
|
*
|
1164
1189
|
* Example response:
|
@@ -1458,8 +1483,9 @@ declare type UpdateTableVariables = {
|
|
1458
1483
|
*
|
1459
1484
|
* In the example below, we rename a table from “users” to “people”:
|
1460
1485
|
*
|
1461
|
-
* ```
|
1462
|
-
* PATCH /db/test:main/tables/users
|
1486
|
+
* ```json
|
1487
|
+
* // PATCH /db/test:main/tables/users
|
1488
|
+
*
|
1463
1489
|
* {
|
1464
1490
|
* "name": "people"
|
1465
1491
|
* }
|
@@ -1867,7 +1893,7 @@ declare type QueryTableVariables = {
|
|
1867
1893
|
* {
|
1868
1894
|
* "columns": [...],
|
1869
1895
|
* "filter": {
|
1870
|
-
* "$all": [...]
|
1896
|
+
* "$all": [...],
|
1871
1897
|
* "$any": [...]
|
1872
1898
|
* ...
|
1873
1899
|
* },
|
@@ -2005,7 +2031,7 @@ declare type QueryTableVariables = {
|
|
2005
2031
|
* {
|
2006
2032
|
* "name": "Kilian",
|
2007
2033
|
* "address": {
|
2008
|
-
* "street": "New street"
|
2034
|
+
* "street": "New street"
|
2009
2035
|
* }
|
2010
2036
|
* }
|
2011
2037
|
* ```
|
@@ -2014,10 +2040,7 @@ declare type QueryTableVariables = {
|
|
2014
2040
|
*
|
2015
2041
|
* ```json
|
2016
2042
|
* {
|
2017
|
-
* "columns": [
|
2018
|
-
* "*",
|
2019
|
-
* "team.name"
|
2020
|
-
* ]
|
2043
|
+
* "columns": ["*", "team.name"]
|
2021
2044
|
* }
|
2022
2045
|
* ```
|
2023
2046
|
*
|
@@ -2035,7 +2058,7 @@ declare type QueryTableVariables = {
|
|
2035
2058
|
* "team": {
|
2036
2059
|
* "id": "XX",
|
2037
2060
|
* "xata": {
|
2038
|
-
* "version": 0
|
2061
|
+
* "version": 0
|
2039
2062
|
* },
|
2040
2063
|
* "name": "first team"
|
2041
2064
|
* }
|
@@ -2046,10 +2069,7 @@ declare type QueryTableVariables = {
|
|
2046
2069
|
*
|
2047
2070
|
* ```json
|
2048
2071
|
* {
|
2049
|
-
* "columns": [
|
2050
|
-
* "*",
|
2051
|
-
* "team.*"
|
2052
|
-
* ]
|
2072
|
+
* "columns": ["*", "team.*"]
|
2053
2073
|
* }
|
2054
2074
|
* ```
|
2055
2075
|
*
|
@@ -2067,7 +2087,7 @@ declare type QueryTableVariables = {
|
|
2067
2087
|
* "team": {
|
2068
2088
|
* "id": "XX",
|
2069
2089
|
* "xata": {
|
2070
|
-
* "version": 0
|
2090
|
+
* "version": 0
|
2071
2091
|
* },
|
2072
2092
|
* "name": "first team",
|
2073
2093
|
* "code": "A1",
|
@@ -2117,7 +2137,7 @@ declare type QueryTableVariables = {
|
|
2117
2137
|
* ```json
|
2118
2138
|
* {
|
2119
2139
|
* "filter": {
|
2120
|
-
*
|
2140
|
+
* "name": "r2"
|
2121
2141
|
* }
|
2122
2142
|
* }
|
2123
2143
|
* ```
|
@@ -2139,7 +2159,7 @@ declare type QueryTableVariables = {
|
|
2139
2159
|
* ```json
|
2140
2160
|
* {
|
2141
2161
|
* "filter": {
|
2142
|
-
*
|
2162
|
+
* "settings.plan": "free"
|
2143
2163
|
* }
|
2144
2164
|
* }
|
2145
2165
|
* ```
|
@@ -2149,8 +2169,8 @@ declare type QueryTableVariables = {
|
|
2149
2169
|
* "filter": {
|
2150
2170
|
* "settings": {
|
2151
2171
|
* "plan": "free"
|
2152
|
-
* }
|
2153
|
-
* }
|
2172
|
+
* }
|
2173
|
+
* }
|
2154
2174
|
* }
|
2155
2175
|
* ```
|
2156
2176
|
*
|
@@ -2159,8 +2179,8 @@ declare type QueryTableVariables = {
|
|
2159
2179
|
* ```json
|
2160
2180
|
* {
|
2161
2181
|
* "filter": {
|
2162
|
-
* "settings.plan": {"$any": ["free", "paid"]}
|
2163
|
-
* }
|
2182
|
+
* "settings.plan": { "$any": ["free", "paid"] }
|
2183
|
+
* }
|
2164
2184
|
* }
|
2165
2185
|
* ```
|
2166
2186
|
*
|
@@ -2169,9 +2189,9 @@ declare type QueryTableVariables = {
|
|
2169
2189
|
* ```json
|
2170
2190
|
* {
|
2171
2191
|
* "filter": {
|
2172
|
-
*
|
2173
|
-
*
|
2174
|
-
* }
|
2192
|
+
* "settings.dark": true,
|
2193
|
+
* "settings.plan": "free"
|
2194
|
+
* }
|
2175
2195
|
* }
|
2176
2196
|
* ```
|
2177
2197
|
*
|
@@ -2182,11 +2202,11 @@ declare type QueryTableVariables = {
|
|
2182
2202
|
* ```json
|
2183
2203
|
* {
|
2184
2204
|
* "filter": {
|
2185
|
-
*
|
2186
|
-
*
|
2187
|
-
*
|
2188
|
-
*
|
2189
|
-
* }
|
2205
|
+
* "$any": {
|
2206
|
+
* "settings.dark": true,
|
2207
|
+
* "settings.plan": "free"
|
2208
|
+
* }
|
2209
|
+
* }
|
2190
2210
|
* }
|
2191
2211
|
* ```
|
2192
2212
|
*
|
@@ -2197,10 +2217,10 @@ declare type QueryTableVariables = {
|
|
2197
2217
|
* "filter": {
|
2198
2218
|
* "$any": [
|
2199
2219
|
* {
|
2200
|
-
* "name": "r1"
|
2220
|
+
* "name": "r1"
|
2201
2221
|
* },
|
2202
2222
|
* {
|
2203
|
-
* "name": "r2"
|
2223
|
+
* "name": "r2"
|
2204
2224
|
* }
|
2205
2225
|
* ]
|
2206
2226
|
* }
|
@@ -2212,7 +2232,7 @@ declare type QueryTableVariables = {
|
|
2212
2232
|
* ```json
|
2213
2233
|
* {
|
2214
2234
|
* "filter": {
|
2215
|
-
* "$exists": "settings"
|
2235
|
+
* "$exists": "settings"
|
2216
2236
|
* }
|
2217
2237
|
* }
|
2218
2238
|
* ```
|
@@ -2224,10 +2244,10 @@ declare type QueryTableVariables = {
|
|
2224
2244
|
* "filter": {
|
2225
2245
|
* "$all": [
|
2226
2246
|
* {
|
2227
|
-
* "$exists": "settings"
|
2247
|
+
* "$exists": "settings"
|
2228
2248
|
* },
|
2229
2249
|
* {
|
2230
|
-
* "$exists": "name"
|
2250
|
+
* "$exists": "name"
|
2231
2251
|
* }
|
2232
2252
|
* ]
|
2233
2253
|
* }
|
@@ -2239,7 +2259,7 @@ declare type QueryTableVariables = {
|
|
2239
2259
|
* ```json
|
2240
2260
|
* {
|
2241
2261
|
* "filter": {
|
2242
|
-
* "$notExists": "settings"
|
2262
|
+
* "$notExists": "settings"
|
2243
2263
|
* }
|
2244
2264
|
* }
|
2245
2265
|
* ```
|
@@ -2266,22 +2286,28 @@ declare type QueryTableVariables = {
|
|
2266
2286
|
* {
|
2267
2287
|
* "filter": {
|
2268
2288
|
* "<column_name>": {
|
2269
|
-
*
|
2289
|
+
* "$pattern": "v*alu?"
|
2270
2290
|
* }
|
2271
2291
|
* }
|
2272
2292
|
* }
|
2273
2293
|
* ```
|
2274
2294
|
*
|
2295
|
+
* The `$pattern` operator accepts two wildcard characters:
|
2296
|
+
* * `*` matches zero or more characters
|
2297
|
+
* * `?` matches exactly one character
|
2298
|
+
*
|
2299
|
+
* If you want to match a string that contains a wildcard character, you can escape them using a backslash (`\`). You can escape a backslash by usign another backslash.
|
2300
|
+
*
|
2275
2301
|
* We could also have `$endsWith` and `$startsWith` operators:
|
2276
2302
|
*
|
2277
2303
|
* ```json
|
2278
2304
|
* {
|
2279
2305
|
* "filter": {
|
2280
2306
|
* "<column_name>": {
|
2281
|
-
*
|
2307
|
+
* "$endsWith": ".gz"
|
2282
2308
|
* },
|
2283
2309
|
* "<column_name>": {
|
2284
|
-
*
|
2310
|
+
* "$startsWith": "tmp-"
|
2285
2311
|
* }
|
2286
2312
|
* }
|
2287
2313
|
* }
|
@@ -2292,10 +2318,10 @@ declare type QueryTableVariables = {
|
|
2292
2318
|
* ```json
|
2293
2319
|
* {
|
2294
2320
|
* "filter": {
|
2295
|
-
*
|
2296
|
-
*
|
2297
|
-
*
|
2298
|
-
*
|
2321
|
+
* "<column_name>": {
|
2322
|
+
* "$ge": 0,
|
2323
|
+
* "$lt": 100
|
2324
|
+
* }
|
2299
2325
|
* }
|
2300
2326
|
* }
|
2301
2327
|
* ```
|
@@ -2313,7 +2339,6 @@ declare type QueryTableVariables = {
|
|
2313
2339
|
* ```
|
2314
2340
|
* The supported operators are `$gt`, `$lt`, `$ge`, `$le`.
|
2315
2341
|
*
|
2316
|
-
*
|
2317
2342
|
* #### Negations
|
2318
2343
|
*
|
2319
2344
|
* A general `$not` operator can inverse any operation.
|
@@ -2338,15 +2363,21 @@ declare type QueryTableVariables = {
|
|
2338
2363
|
* {
|
2339
2364
|
* "filter": {
|
2340
2365
|
* "$not": {
|
2341
|
-
* "$any": [
|
2342
|
-
*
|
2343
|
-
*
|
2344
|
-
*
|
2345
|
-
*
|
2346
|
-
*
|
2347
|
-
*
|
2348
|
-
*
|
2349
|
-
*
|
2366
|
+
* "$any": [
|
2367
|
+
* {
|
2368
|
+
* "<column_name1>": "value1"
|
2369
|
+
* },
|
2370
|
+
* {
|
2371
|
+
* "$all": [
|
2372
|
+
* {
|
2373
|
+
* "<column_name2>": "value2"
|
2374
|
+
* },
|
2375
|
+
* {
|
2376
|
+
* "<column_name3>": "value3"
|
2377
|
+
* }
|
2378
|
+
* ]
|
2379
|
+
* }
|
2380
|
+
* ]
|
2350
2381
|
* }
|
2351
2382
|
* }
|
2352
2383
|
* }
|
@@ -2401,8 +2432,8 @@ declare type QueryTableVariables = {
|
|
2401
2432
|
* "<array name>": {
|
2402
2433
|
* "$includes": {
|
2403
2434
|
* "$all": [
|
2404
|
-
* {"$contains": "label"},
|
2405
|
-
* {"$not": {"$endsWith": "-debug"}}
|
2435
|
+
* { "$contains": "label" },
|
2436
|
+
* { "$not": { "$endsWith": "-debug" } }
|
2406
2437
|
* ]
|
2407
2438
|
* }
|
2408
2439
|
* }
|
@@ -2422,9 +2453,7 @@ declare type QueryTableVariables = {
|
|
2422
2453
|
* {
|
2423
2454
|
* "filter": {
|
2424
2455
|
* "settings.labels": {
|
2425
|
-
* "$includesAll": [
|
2426
|
-
* {"$contains": "label"},
|
2427
|
-
* ]
|
2456
|
+
* "$includesAll": [{ "$contains": "label" }]
|
2428
2457
|
* }
|
2429
2458
|
* }
|
2430
2459
|
* }
|
@@ -2472,7 +2501,6 @@ declare type QueryTableVariables = {
|
|
2472
2501
|
* }
|
2473
2502
|
* ```
|
2474
2503
|
*
|
2475
|
-
*
|
2476
2504
|
* ### Pagination
|
2477
2505
|
*
|
2478
2506
|
* We offer cursor pagination and offset pagination. The offset pagination is limited
|
@@ -2538,8 +2566,8 @@ declare type QueryTableVariables = {
|
|
2538
2566
|
* can be queried by update `page.after` to the returned cursor while keeping the
|
2539
2567
|
* `page.before` cursor from the first range query.
|
2540
2568
|
*
|
2541
|
-
* The `filter` , `columns`,
|
2542
|
-
* encoded with the cursor.
|
2569
|
+
* The `filter` , `columns`, `sort` , and `page.size` configuration will be
|
2570
|
+
* encoded with the cursor. The pagination request will be invalid if
|
2543
2571
|
* `filter` or `sort` is set. The columns returned and page size can be changed
|
2544
2572
|
* anytime by passing the `columns` or `page.size` settings to the next query.
|
2545
2573
|
*
|
@@ -2576,6 +2604,39 @@ declare type QueryTableVariables = {
|
|
2576
2604
|
* ```
|
2577
2605
|
*/
|
2578
2606
|
declare const queryTable: (variables: QueryTableVariables) => Promise<QueryResponse>;
|
2607
|
+
declare type SearchTablePathParams = {
|
2608
|
+
dbBranchName: DBBranchName;
|
2609
|
+
tableName: TableName;
|
2610
|
+
workspace: string;
|
2611
|
+
};
|
2612
|
+
declare type SearchTableError = ErrorWrapper<{
|
2613
|
+
status: 400;
|
2614
|
+
payload: BadRequestError;
|
2615
|
+
} | {
|
2616
|
+
status: 401;
|
2617
|
+
payload: AuthError;
|
2618
|
+
} | {
|
2619
|
+
status: 404;
|
2620
|
+
payload: SimpleError;
|
2621
|
+
}>;
|
2622
|
+
declare type SearchTableRequestBody = {
|
2623
|
+
query: string;
|
2624
|
+
fuzziness?: FuzzinessExpression;
|
2625
|
+
filter?: FilterExpression;
|
2626
|
+
highlight?: HighlightExpression;
|
2627
|
+
};
|
2628
|
+
declare type SearchTableVariables = {
|
2629
|
+
body: SearchTableRequestBody;
|
2630
|
+
pathParams: SearchTablePathParams;
|
2631
|
+
} & FetcherExtraProps;
|
2632
|
+
/**
|
2633
|
+
* Run a free text search operation in a particular table.
|
2634
|
+
*
|
2635
|
+
* The endpoint accepts a `query` parameter that is used for the free text search and a set of structured filters (via the `filter` parameter) that are applied before the search. The `filter` parameter uses the same syntax as the [query endpoint](/api-reference/db/db_branch_name/tables/table_name/) with the following exceptions:
|
2636
|
+
* * filters `$contains`, `$startsWith`, `$endsWith` don't work on columns of type `text`
|
2637
|
+
* * filtering on columns of type `multiple` is currently unsupported
|
2638
|
+
*/
|
2639
|
+
declare const searchTable: (variables: SearchTableVariables) => Promise<SearchResponse>;
|
2579
2640
|
declare type SearchBranchPathParams = {
|
2580
2641
|
dbBranchName: DBBranchName;
|
2581
2642
|
workspace: string;
|
@@ -2591,9 +2652,13 @@ declare type SearchBranchError = ErrorWrapper<{
|
|
2591
2652
|
payload: SimpleError;
|
2592
2653
|
}>;
|
2593
2654
|
declare type SearchBranchRequestBody = {
|
2594
|
-
tables?: string
|
2655
|
+
tables?: (string | {
|
2656
|
+
table: string;
|
2657
|
+
filter?: FilterExpression;
|
2658
|
+
})[];
|
2595
2659
|
query: string;
|
2596
|
-
fuzziness?:
|
2660
|
+
fuzziness?: FuzzinessExpression;
|
2661
|
+
highlight?: HighlightExpression;
|
2597
2662
|
};
|
2598
2663
|
declare type SearchBranchVariables = {
|
2599
2664
|
body: SearchBranchRequestBody;
|
@@ -2668,6 +2733,7 @@ declare const operationsByTag: {
|
|
2668
2733
|
getRecord: (variables: GetRecordVariables) => Promise<XataRecord$1>;
|
2669
2734
|
bulkInsertTableRecords: (variables: BulkInsertTableRecordsVariables) => Promise<BulkInsertTableRecordsResponse>;
|
2670
2735
|
queryTable: (variables: QueryTableVariables) => Promise<QueryResponse>;
|
2736
|
+
searchTable: (variables: SearchTableVariables) => Promise<SearchResponse>;
|
2671
2737
|
searchBranch: (variables: SearchBranchVariables) => Promise<SearchResponse>;
|
2672
2738
|
};
|
2673
2739
|
};
|
@@ -2773,6 +2839,7 @@ declare class RecordsApi {
|
|
2773
2839
|
getRecord(workspace: WorkspaceID, database: DBName, branch: BranchName, tableName: TableName, recordId: RecordID, options?: GetRecordRequestBody): Promise<XataRecord$1>;
|
2774
2840
|
bulkInsertTableRecords(workspace: WorkspaceID, database: DBName, branch: BranchName, tableName: TableName, records: Record<string, any>[]): Promise<BulkInsertTableRecordsResponse>;
|
2775
2841
|
queryTable(workspace: WorkspaceID, database: DBName, branch: BranchName, tableName: TableName, query: QueryTableRequestBody): Promise<QueryResponse>;
|
2842
|
+
searchTable(workspace: WorkspaceID, database: DBName, branch: BranchName, tableName: TableName, query: SearchTableRequestBody): Promise<SearchResponse>;
|
2776
2843
|
searchBranch(workspace: WorkspaceID, database: DBName, branch: BranchName, query: SearchBranchRequestBody): Promise<SearchResponse>;
|
2777
2844
|
}
|
2778
2845
|
|
@@ -2800,24 +2867,25 @@ declare type SelectableColumn<O, RecursivePath extends any[] = []> = '*' | 'id'
|
|
2800
2867
|
declare type SelectedPick<O extends XataRecord, Key extends SelectableColumn<O>[]> = XataRecord & UnionToIntersection<Values<{
|
2801
2868
|
[K in Key[number]]: NestedValueAtColumn<O, K> & XataRecord;
|
2802
2869
|
}>>;
|
2803
|
-
declare type ValueAtColumn<O, P extends SelectableColumn<O>> = P extends '*' ? Values<O> : P extends 'id' ? string : P extends keyof O ? O[P] : P extends `${infer K}.${infer V}` ? K extends keyof O ? Values<O[K] extends
|
2804
|
-
V: ValueAtColumn<O[K]
|
2805
|
-
} : never
|
2870
|
+
declare type ValueAtColumn<O, P extends SelectableColumn<O>> = P extends '*' ? Values<O> : P extends 'id' ? string : P extends keyof O ? O[P] : P extends `${infer K}.${infer V}` ? K extends keyof O ? Values<RemoveNullable<O[K]> extends Record<string, any> ? V extends SelectableColumn<RemoveNullable<O[K]>> ? {
|
2871
|
+
V: ValueAtColumn<RemoveNullable<O[K]>, V>;
|
2872
|
+
} : never : O[K]> : never : never;
|
2806
2873
|
declare type MAX_RECURSION = 5;
|
2807
2874
|
declare type NestedColumns<O, RecursivePath extends any[]> = RecursivePath['length'] extends MAX_RECURSION ? never : If<IsObject<O>, Values<{
|
2808
|
-
[K in DataProps<O>]: If<IsArray<
|
2809
|
-
If<IsObject<
|
2875
|
+
[K in DataProps<O>]: If<IsArray<RemoveNullable<O[K]>>, K, // If the property is an array, we stop recursion. We don't support object arrays yet
|
2876
|
+
If<IsObject<RemoveNullable<O[K]>>, RemoveNullable<O[K]> extends XataRecord ? SelectableColumn<RemoveNullable<O[K]>, [...RecursivePath, O[K]]> extends string ? K | `${K}.${SelectableColumn<RemoveNullable<O[K]>, [...RecursivePath, O[K]]>}` : never : `${K}.${StringKeys<RemoveNullable<O[K]>> | '*'}`, // This allows usage of objects that are not links
|
2810
2877
|
K>>;
|
2811
2878
|
}>, never>;
|
2812
2879
|
declare type DataProps<O> = Exclude<StringKeys<O>, StringKeys<XataRecord>>;
|
2813
2880
|
declare type NestedValueAtColumn<O, Key extends SelectableColumn<O>> = Key extends `${infer N}.${infer M}` ? N extends DataProps<O> ? {
|
2814
|
-
[K in N]: M extends SelectableColumn<
|
2881
|
+
[K in N]: M extends SelectableColumn<RemoveNullable<O[K]>> ? RemoveNullable<O[K]> extends XataRecord ? ForwardNullable<O[K], NestedValueAtColumn<RemoveNullable<O[K]>, M> & XataRecord> : ForwardNullable<O[K], NestedValueAtColumn<RemoveNullable<O[K]>, M>> : unknown;
|
2815
2882
|
} : unknown : Key extends DataProps<O> ? {
|
2816
|
-
[K in Key]:
|
2883
|
+
[K in Key]: RemoveNullable<O[K]> extends XataRecord ? ForwardNullable<O[K], SelectedPick<RemoveNullable<O[K]>, ['*']>> : O[K];
|
2817
2884
|
} : Key extends '*' ? {
|
2818
|
-
[K in StringKeys<O>]:
|
2885
|
+
[K in StringKeys<O>]: RemoveNullable<O[K]> extends XataRecord ? ForwardNullable<O[K], Link<RemoveNullable<O[K]>>> : O[K];
|
2819
2886
|
} : unknown;
|
2820
|
-
declare type
|
2887
|
+
declare type RemoveNullable<T> = T extends null | undefined ? never : T;
|
2888
|
+
declare type ForwardNullable<T, R> = T extends RemoveNullable<T> ? R : R | null;
|
2821
2889
|
|
2822
2890
|
/**
|
2823
2891
|
* Represents an identifiable record from the database.
|
@@ -2958,8 +3026,8 @@ declare type ValueTypeFilters<T> = T | T extends string ? StringTypeFilter : T e
|
|
2958
3026
|
],
|
2959
3027
|
}
|
2960
3028
|
*/
|
2961
|
-
declare type AggregatorFilter<
|
2962
|
-
[key in '$all' | '$any' | '$not' | '$none']?: SingleOrArray<Filter<
|
3029
|
+
declare type AggregatorFilter<T> = {
|
3030
|
+
[key in '$all' | '$any' | '$not' | '$none']?: SingleOrArray<Filter<T>>;
|
2963
3031
|
};
|
2964
3032
|
/**
|
2965
3033
|
* Existance filter
|
@@ -2974,10 +3042,10 @@ declare type BaseApiFilter<Record> = PropertyAccessFilter<Record> | AggregatorFi
|
|
2974
3042
|
* Injects the Api filters on nested properties
|
2975
3043
|
* Example: { filter: { settings: { plan: { $any: ['free', 'trial'] } } } }
|
2976
3044
|
*/
|
2977
|
-
declare type NestedApiFilter<T> =
|
3045
|
+
declare type NestedApiFilter<T> = {
|
2978
3046
|
[key in keyof T]?: T[key] extends Record<string, any> ? SingleOrArray<Filter<T[key]>> : PropertyFilter<T[key]>;
|
2979
|
-
}
|
2980
|
-
declare type Filter<
|
3047
|
+
};
|
3048
|
+
declare type Filter<T> = T extends Record<string, any> ? BaseApiFilter<T> | NestedApiFilter<T> : PropertyFilter<T>;
|
2981
3049
|
|
2982
3050
|
declare type SortDirection = 'asc' | 'desc';
|
2983
3051
|
declare type SortFilterExtended<T extends XataRecord> = {
|
@@ -3014,7 +3082,7 @@ declare class Query<Record extends XataRecord, Result extends XataRecord = Recor
|
|
3014
3082
|
#private;
|
3015
3083
|
readonly meta: PaginationQueryMeta;
|
3016
3084
|
readonly records: Result[];
|
3017
|
-
constructor(repository: Repository<Record> | null, table: string, data: Partial<QueryOptions<Record>>,
|
3085
|
+
constructor(repository: Repository<Record> | null, table: string, data: Partial<QueryOptions<Record>>, rawParent?: Partial<QueryOptions<Record>>);
|
3018
3086
|
getQueryOptions(): QueryOptions<Record>;
|
3019
3087
|
key(): string;
|
3020
3088
|
/**
|
@@ -3056,8 +3124,8 @@ declare class Query<Record extends XataRecord, Result extends XataRecord = Recor
|
|
3056
3124
|
*
|
3057
3125
|
* @returns A new Query object.
|
3058
3126
|
*/
|
3059
|
-
filter(filters: Filter<Record>): Query<Record, Result>;
|
3060
3127
|
filter<F extends SelectableColumn<Record>>(column: F, value: Filter<ValueAtColumn<Record, F>>): Query<Record, Result>;
|
3128
|
+
filter(filters: Filter<Record>): Query<Record, Result>;
|
3061
3129
|
/**
|
3062
3130
|
* Builds a new query with a new sort option.
|
3063
3131
|
* @param column The column name.
|
@@ -3204,6 +3272,7 @@ declare const PAGINATION_MAX_SIZE = 200;
|
|
3204
3272
|
declare const PAGINATION_DEFAULT_SIZE = 200;
|
3205
3273
|
declare const PAGINATION_MAX_OFFSET = 800;
|
3206
3274
|
declare const PAGINATION_DEFAULT_OFFSET = 0;
|
3275
|
+
declare function isCursorPaginationOptions(options: Record<string, unknown> | undefined | null): options is CursorNavigationOptions;
|
3207
3276
|
|
3208
3277
|
/**
|
3209
3278
|
* Common interface for performing operations on a table.
|
@@ -3229,6 +3298,12 @@ declare abstract class Repository<Data extends BaseData, Record extends XataReco
|
|
3229
3298
|
* @returns The persisted record for the given id or null if the record could not be found.
|
3230
3299
|
*/
|
3231
3300
|
abstract read(id: string): Promise<Readonly<SelectedPick<Record, ['*']> | null>>;
|
3301
|
+
/**
|
3302
|
+
* Queries multiple records from the table given their unique id.
|
3303
|
+
* @param ids The unique ids array.
|
3304
|
+
* @returns The persisted records for the given ids (if a record could not be found it is not returned).
|
3305
|
+
*/
|
3306
|
+
abstract read(ids: string[]): Promise<Array<Readonly<SelectedPick<Record, ['*']>>>>;
|
3232
3307
|
/**
|
3233
3308
|
* Partially update a single record.
|
3234
3309
|
* @param object An object with its id and the columns to be updated.
|
@@ -3301,7 +3376,9 @@ declare abstract class Repository<Data extends BaseData, Record extends XataReco
|
|
3301
3376
|
* @returns The found records.
|
3302
3377
|
*/
|
3303
3378
|
abstract search(query: string, options?: {
|
3304
|
-
fuzziness?:
|
3379
|
+
fuzziness?: FuzzinessExpression;
|
3380
|
+
highlight?: HighlightExpression;
|
3381
|
+
filter?: Filter<Record>;
|
3305
3382
|
}): Promise<SelectedPick<Record, ['*']>[]>;
|
3306
3383
|
abstract query<Result extends XataRecord>(query: Query<Record, Result>): Promise<Page<Record, Result>>;
|
3307
3384
|
}
|
@@ -3317,6 +3394,7 @@ declare class RestRepository<Data extends BaseData, Record extends XataRecord =
|
|
3317
3394
|
create(recordId: string, object: EditableData<Data>): Promise<SelectedPick<Record, ['*']>>;
|
3318
3395
|
create(objects: EditableData<Data>[]): Promise<SelectedPick<Record, ['*']>[]>;
|
3319
3396
|
read(recordId: string): Promise<SelectedPick<Record, ['*']> | null>;
|
3397
|
+
read(recordIds: string[]): Promise<Array<Readonly<SelectedPick<Record, ['*']>>>>;
|
3320
3398
|
update(object: Partial<EditableData<Data>> & Identifiable): Promise<SelectedPick<Record, ['*']>>;
|
3321
3399
|
update(recordId: string, object: Partial<EditableData<Data>>): Promise<SelectedPick<Record, ['*']>>;
|
3322
3400
|
update(objects: Array<Partial<EditableData<Data>> & Identifiable>): Promise<SelectedPick<Record, ['*']>[]>;
|
@@ -3325,7 +3403,9 @@ declare class RestRepository<Data extends BaseData, Record extends XataRecord =
|
|
3325
3403
|
createOrUpdate(objects: EditableData<Data>[]): Promise<SelectedPick<Record, ['*']>[]>;
|
3326
3404
|
delete(a: string | Identifiable | Array<string | Identifiable>): Promise<void>;
|
3327
3405
|
search(query: string, options?: {
|
3328
|
-
fuzziness?:
|
3406
|
+
fuzziness?: FuzzinessExpression;
|
3407
|
+
highlight?: HighlightExpression;
|
3408
|
+
filter?: Filter<Record>;
|
3329
3409
|
}): Promise<SelectedPick<Record, ['*']>[]>;
|
3330
3410
|
query<Result extends XataRecord>(query: Query<Record, Result>): Promise<Page<Record, Result>>;
|
3331
3411
|
}
|
@@ -3419,18 +3499,24 @@ declare class SchemaPlugin<Schemas extends Record<string, BaseData>> extends Xat
|
|
3419
3499
|
}
|
3420
3500
|
|
3421
3501
|
declare type SearchOptions<Schemas extends Record<string, BaseData>, Tables extends StringKeys<Schemas>> = {
|
3422
|
-
fuzziness?:
|
3423
|
-
|
3502
|
+
fuzziness?: FuzzinessExpression;
|
3503
|
+
highlight?: HighlightExpression;
|
3504
|
+
tables?: Array<Tables | Values<{
|
3505
|
+
[Model in GetArrayInnerType<NonNullable<Tables[]>>]: {
|
3506
|
+
table: Model;
|
3507
|
+
filter?: Filter<SelectedPick<Schemas[Model] & SearchXataRecord, ['*']>>;
|
3508
|
+
};
|
3509
|
+
}>>;
|
3424
3510
|
};
|
3425
3511
|
declare type SearchPluginResult<Schemas extends Record<string, BaseData>> = {
|
3426
3512
|
all: <Tables extends StringKeys<Schemas>>(query: string, options?: SearchOptions<Schemas, Tables>) => Promise<Values<{
|
3427
|
-
[Model in GetArrayInnerType<NonNullable<NonNullable<typeof options>['tables']
|
3513
|
+
[Model in ExtractTables<Schemas, Tables, GetArrayInnerType<NonNullable<NonNullable<typeof options>['tables']>>>]: {
|
3428
3514
|
table: Model;
|
3429
3515
|
record: Awaited<SelectedPick<Schemas[Model] & SearchXataRecord, ['*']>>;
|
3430
3516
|
};
|
3431
3517
|
}>[]>;
|
3432
3518
|
byTable: <Tables extends StringKeys<Schemas>>(query: string, options?: SearchOptions<Schemas, Tables>) => Promise<{
|
3433
|
-
[Model in GetArrayInnerType<NonNullable<NonNullable<typeof options>['tables']
|
3519
|
+
[Model in ExtractTables<Schemas, Tables, GetArrayInnerType<NonNullable<NonNullable<typeof options>['tables']>>>]?: Awaited<SelectedPick<Schemas[Model] & SearchXataRecord, ['*']>[]>;
|
3434
3520
|
}>;
|
3435
3521
|
};
|
3436
3522
|
declare class SearchPlugin<Schemas extends Record<string, BaseData>> extends XataPlugin {
|
@@ -3441,9 +3527,18 @@ declare class SearchPlugin<Schemas extends Record<string, BaseData>> extends Xat
|
|
3441
3527
|
}
|
3442
3528
|
declare type SearchXataRecord = XataRecord & {
|
3443
3529
|
xata: {
|
3444
|
-
table
|
3530
|
+
table?: string;
|
3531
|
+
highlight?: {
|
3532
|
+
[key: string]: string[] | {
|
3533
|
+
[key: string]: any;
|
3534
|
+
};
|
3535
|
+
};
|
3445
3536
|
};
|
3446
3537
|
};
|
3538
|
+
declare type ReturnTable<Table, Tables> = Table extends Tables ? Table : never;
|
3539
|
+
declare type ExtractTables<Schemas extends Record<string, BaseData>, Tables extends StringKeys<Schemas>, TableOptions extends GetArrayInnerType<NonNullable<NonNullable<SearchOptions<Schemas, Tables>>['tables']>>> = TableOptions extends `${infer Table}` ? ReturnTable<Table, Tables> : TableOptions extends {
|
3540
|
+
table: infer Table;
|
3541
|
+
} ? ReturnTable<Table, Tables> : never;
|
3447
3542
|
|
3448
3543
|
declare type BranchStrategyValue = string | undefined | null;
|
3449
3544
|
declare type BranchStrategyBuilder = () => BranchStrategyValue | Promise<BranchStrategyValue>;
|
@@ -3486,4 +3581,4 @@ declare class XataError extends Error {
|
|
3486
3581
|
constructor(message: string, status: number);
|
3487
3582
|
}
|
3488
3583
|
|
3489
|
-
export { AcceptWorkspaceMemberInviteError, AcceptWorkspaceMemberInvitePathParams, AcceptWorkspaceMemberInviteVariables, AddGitBranchesEntryError, AddGitBranchesEntryPathParams, AddGitBranchesEntryRequestBody, AddGitBranchesEntryResponse, AddGitBranchesEntryVariables, AddTableColumnError, AddTableColumnPathParams, AddTableColumnVariables, BaseClient, BaseClientOptions, BaseData, BulkInsertTableRecordsError, BulkInsertTableRecordsPathParams, BulkInsertTableRecordsRequestBody, BulkInsertTableRecordsResponse, BulkInsertTableRecordsVariables, CacheImpl, CancelWorkspaceMemberInviteError, CancelWorkspaceMemberInvitePathParams, CancelWorkspaceMemberInviteVariables, ClientConstructor, CreateBranchError, CreateBranchPathParams, CreateBranchQueryParams, CreateBranchRequestBody, CreateBranchVariables, CreateDatabaseError, CreateDatabasePathParams, CreateDatabaseRequestBody, CreateDatabaseResponse, CreateDatabaseVariables, CreateTableError, CreateTablePathParams, CreateTableVariables, CreateUserAPIKeyError, CreateUserAPIKeyPathParams, CreateUserAPIKeyResponse, CreateUserAPIKeyVariables, CreateWorkspaceError, CreateWorkspaceVariables, CursorNavigationOptions, DeleteBranchError, DeleteBranchPathParams, DeleteBranchVariables, DeleteColumnError, DeleteColumnPathParams, DeleteColumnVariables, DeleteDatabaseError, DeleteDatabasePathParams, DeleteDatabaseVariables, DeleteRecordError, DeleteRecordPathParams, DeleteRecordVariables, DeleteTableError, DeleteTablePathParams, DeleteTableVariables, DeleteUserAPIKeyError, DeleteUserAPIKeyPathParams, DeleteUserAPIKeyVariables, DeleteUserError, DeleteUserVariables, DeleteWorkspaceError, DeleteWorkspacePathParams, DeleteWorkspaceVariables, EditableData, ExecuteBranchMigrationPlanError, ExecuteBranchMigrationPlanPathParams, ExecuteBranchMigrationPlanRequestBody, ExecuteBranchMigrationPlanVariables, FetchImpl, FetcherExtraProps, GetBranchDetailsError, GetBranchDetailsPathParams, GetBranchDetailsVariables, GetBranchListError, GetBranchListPathParams, GetBranchListVariables, GetBranchMetadataError, GetBranchMetadataPathParams, GetBranchMetadataVariables, GetBranchMigrationHistoryError, GetBranchMigrationHistoryPathParams, GetBranchMigrationHistoryRequestBody, GetBranchMigrationHistoryResponse, GetBranchMigrationHistoryVariables, GetBranchMigrationPlanError, GetBranchMigrationPlanPathParams, GetBranchMigrationPlanVariables, GetBranchStatsError, GetBranchStatsPathParams, GetBranchStatsResponse, GetBranchStatsVariables, GetColumnError, GetColumnPathParams, GetColumnVariables, GetDatabaseListError, GetDatabaseListPathParams, GetDatabaseListVariables, GetGitBranchesMappingError, GetGitBranchesMappingPathParams, GetGitBranchesMappingVariables, GetRecordError, GetRecordPathParams, GetRecordRequestBody, GetRecordVariables, GetTableColumnsError, GetTableColumnsPathParams, GetTableColumnsResponse, GetTableColumnsVariables, GetTableSchemaError, GetTableSchemaPathParams, GetTableSchemaResponse, GetTableSchemaVariables, GetUserAPIKeysError, GetUserAPIKeysResponse, GetUserAPIKeysVariables, GetUserError, GetUserVariables, GetWorkspaceError, GetWorkspaceMembersListError, GetWorkspaceMembersListPathParams, GetWorkspaceMembersListVariables, GetWorkspacePathParams, GetWorkspaceVariables, GetWorkspacesListError, GetWorkspacesListResponse, GetWorkspacesListVariables, Identifiable, InsertRecordError, InsertRecordPathParams, InsertRecordResponse, InsertRecordVariables, InsertRecordWithIDError, InsertRecordWithIDPathParams, InsertRecordWithIDQueryParams, InsertRecordWithIDVariables, InviteWorkspaceMemberError, InviteWorkspaceMemberPathParams, InviteWorkspaceMemberRequestBody, InviteWorkspaceMemberVariables, OffsetNavigationOptions, operationsByTag as Operations, PAGINATION_DEFAULT_OFFSET, PAGINATION_DEFAULT_SIZE, PAGINATION_MAX_OFFSET, PAGINATION_MAX_SIZE, Page, Paginable, PaginationQueryMeta, Query, QueryTableError, QueryTablePathParams, QueryTableRequestBody, QueryTableVariables, RemoveGitBranchesEntryError, RemoveGitBranchesEntryPathParams, RemoveGitBranchesEntryQueryParams, RemoveGitBranchesEntryVariables, RemoveWorkspaceMemberError, RemoveWorkspaceMemberPathParams, RemoveWorkspaceMemberVariables, Repository, ResendWorkspaceMemberInviteError, ResendWorkspaceMemberInvitePathParams, ResendWorkspaceMemberInviteVariables, ResolveBranchError, ResolveBranchPathParams, ResolveBranchQueryParams, ResolveBranchResponse, ResolveBranchVariables, responses as Responses, RestRepository, SchemaDefinition, SchemaPlugin, SchemaPluginResult, schemas as Schemas, SearchBranchError, SearchBranchPathParams, SearchBranchRequestBody, SearchBranchVariables, SearchOptions, SearchPlugin, SearchPluginResult, SelectableColumn, SelectedPick, SetTableSchemaError, SetTableSchemaPathParams, SetTableSchemaRequestBody, SetTableSchemaVariables, SimpleCache, SimpleCacheOptions, UpdateBranchMetadataError, UpdateBranchMetadataPathParams, UpdateBranchMetadataVariables, UpdateColumnError, UpdateColumnPathParams, UpdateColumnRequestBody, UpdateColumnVariables, UpdateRecordWithIDError, UpdateRecordWithIDPathParams, UpdateRecordWithIDQueryParams, UpdateRecordWithIDVariables, UpdateTableError, UpdateTablePathParams, UpdateTableRequestBody, UpdateTableVariables, UpdateUserError, UpdateUserVariables, UpdateWorkspaceError, UpdateWorkspaceMemberRoleError, UpdateWorkspaceMemberRolePathParams, UpdateWorkspaceMemberRoleRequestBody, UpdateWorkspaceMemberRoleVariables, UpdateWorkspacePathParams, UpdateWorkspaceVariables, UpsertRecordWithIDError, UpsertRecordWithIDPathParams, UpsertRecordWithIDQueryParams, UpsertRecordWithIDVariables, ValueAtColumn, XataApiClient, XataApiClientOptions, XataApiPlugin, XataError, XataPlugin, XataPluginOptions, XataRecord, acceptWorkspaceMemberInvite, addGitBranchesEntry, addTableColumn, buildClient, bulkInsertTableRecords, cancelWorkspaceMemberInvite, contains, createBranch, createDatabase, createTable, createUserAPIKey, createWorkspace, deleteBranch, deleteColumn, deleteDatabase, deleteRecord, deleteTable, deleteUser, deleteUserAPIKey, deleteWorkspace, endsWith, executeBranchMigrationPlan, exists, ge, getAPIKey, getBranchDetails, getBranchList, getBranchMetadata, getBranchMigrationHistory, getBranchMigrationPlan, getBranchStats, getColumn, getCurrentBranchDetails, getCurrentBranchName, getDatabaseList, getDatabaseURL, getGitBranchesMapping, getRecord, getTableColumns, getTableSchema, getUser, getUserAPIKeys, getWorkspace, getWorkspaceMembersList, getWorkspacesList, gt, gte, includes, includesAll, includesAny, includesNone, insertRecord, insertRecordWithID, inviteWorkspaceMember, is, isIdentifiable, isNot, isXataRecord, le, lt, lte, notExists, operationsByTag, pattern, queryTable, removeGitBranchesEntry, removeWorkspaceMember, resendWorkspaceMemberInvite, resolveBranch, searchBranch, setTableSchema, startsWith, updateBranchMetadata, updateColumn, updateRecordWithID, updateTable, updateUser, updateWorkspace, updateWorkspaceMemberRole, upsertRecordWithID };
|
3584
|
+
export { AcceptWorkspaceMemberInviteError, AcceptWorkspaceMemberInvitePathParams, AcceptWorkspaceMemberInviteVariables, AddGitBranchesEntryError, AddGitBranchesEntryPathParams, AddGitBranchesEntryRequestBody, AddGitBranchesEntryResponse, AddGitBranchesEntryVariables, AddTableColumnError, AddTableColumnPathParams, AddTableColumnVariables, BaseClient, BaseClientOptions, BaseData, BulkInsertTableRecordsError, BulkInsertTableRecordsPathParams, BulkInsertTableRecordsRequestBody, BulkInsertTableRecordsResponse, BulkInsertTableRecordsVariables, CacheImpl, CancelWorkspaceMemberInviteError, CancelWorkspaceMemberInvitePathParams, CancelWorkspaceMemberInviteVariables, ClientConstructor, CreateBranchError, CreateBranchPathParams, CreateBranchQueryParams, CreateBranchRequestBody, CreateBranchVariables, CreateDatabaseError, CreateDatabasePathParams, CreateDatabaseRequestBody, CreateDatabaseResponse, CreateDatabaseVariables, CreateTableError, CreateTablePathParams, CreateTableVariables, CreateUserAPIKeyError, CreateUserAPIKeyPathParams, CreateUserAPIKeyResponse, CreateUserAPIKeyVariables, CreateWorkspaceError, CreateWorkspaceVariables, CursorNavigationOptions, DeleteBranchError, DeleteBranchPathParams, DeleteBranchVariables, DeleteColumnError, DeleteColumnPathParams, DeleteColumnVariables, DeleteDatabaseError, DeleteDatabasePathParams, DeleteDatabaseVariables, DeleteRecordError, DeleteRecordPathParams, DeleteRecordVariables, DeleteTableError, DeleteTablePathParams, DeleteTableVariables, DeleteUserAPIKeyError, DeleteUserAPIKeyPathParams, DeleteUserAPIKeyVariables, DeleteUserError, DeleteUserVariables, DeleteWorkspaceError, DeleteWorkspacePathParams, DeleteWorkspaceVariables, EditableData, ExecuteBranchMigrationPlanError, ExecuteBranchMigrationPlanPathParams, ExecuteBranchMigrationPlanRequestBody, ExecuteBranchMigrationPlanVariables, FetchImpl, FetcherExtraProps, GetBranchDetailsError, GetBranchDetailsPathParams, GetBranchDetailsVariables, GetBranchListError, GetBranchListPathParams, GetBranchListVariables, GetBranchMetadataError, GetBranchMetadataPathParams, GetBranchMetadataVariables, GetBranchMigrationHistoryError, GetBranchMigrationHistoryPathParams, GetBranchMigrationHistoryRequestBody, GetBranchMigrationHistoryResponse, GetBranchMigrationHistoryVariables, GetBranchMigrationPlanError, GetBranchMigrationPlanPathParams, GetBranchMigrationPlanVariables, GetBranchStatsError, GetBranchStatsPathParams, GetBranchStatsResponse, GetBranchStatsVariables, GetColumnError, GetColumnPathParams, GetColumnVariables, GetDatabaseListError, GetDatabaseListPathParams, GetDatabaseListVariables, GetGitBranchesMappingError, GetGitBranchesMappingPathParams, GetGitBranchesMappingVariables, GetRecordError, GetRecordPathParams, GetRecordRequestBody, GetRecordVariables, GetTableColumnsError, GetTableColumnsPathParams, GetTableColumnsResponse, GetTableColumnsVariables, GetTableSchemaError, GetTableSchemaPathParams, GetTableSchemaResponse, GetTableSchemaVariables, GetUserAPIKeysError, GetUserAPIKeysResponse, GetUserAPIKeysVariables, GetUserError, GetUserVariables, GetWorkspaceError, GetWorkspaceMembersListError, GetWorkspaceMembersListPathParams, GetWorkspaceMembersListVariables, GetWorkspacePathParams, GetWorkspaceVariables, GetWorkspacesListError, GetWorkspacesListResponse, GetWorkspacesListVariables, Identifiable, InsertRecordError, InsertRecordPathParams, InsertRecordResponse, InsertRecordVariables, InsertRecordWithIDError, InsertRecordWithIDPathParams, InsertRecordWithIDQueryParams, InsertRecordWithIDVariables, InviteWorkspaceMemberError, InviteWorkspaceMemberPathParams, InviteWorkspaceMemberRequestBody, InviteWorkspaceMemberVariables, OffsetNavigationOptions, operationsByTag as Operations, PAGINATION_DEFAULT_OFFSET, PAGINATION_DEFAULT_SIZE, PAGINATION_MAX_OFFSET, PAGINATION_MAX_SIZE, Page, Paginable, PaginationQueryMeta, Query, QueryTableError, QueryTablePathParams, QueryTableRequestBody, QueryTableVariables, RemoveGitBranchesEntryError, RemoveGitBranchesEntryPathParams, RemoveGitBranchesEntryQueryParams, RemoveGitBranchesEntryVariables, RemoveWorkspaceMemberError, RemoveWorkspaceMemberPathParams, RemoveWorkspaceMemberVariables, Repository, ResendWorkspaceMemberInviteError, ResendWorkspaceMemberInvitePathParams, ResendWorkspaceMemberInviteVariables, ResolveBranchError, ResolveBranchPathParams, ResolveBranchQueryParams, ResolveBranchResponse, ResolveBranchVariables, responses as Responses, RestRepository, SchemaDefinition, SchemaPlugin, SchemaPluginResult, schemas as Schemas, SearchBranchError, SearchBranchPathParams, SearchBranchRequestBody, SearchBranchVariables, SearchOptions, SearchPlugin, SearchPluginResult, SearchTableError, SearchTablePathParams, SearchTableRequestBody, SearchTableVariables, SelectableColumn, SelectedPick, SetTableSchemaError, SetTableSchemaPathParams, SetTableSchemaRequestBody, SetTableSchemaVariables, SimpleCache, SimpleCacheOptions, UpdateBranchMetadataError, UpdateBranchMetadataPathParams, UpdateBranchMetadataVariables, UpdateColumnError, UpdateColumnPathParams, UpdateColumnRequestBody, UpdateColumnVariables, UpdateRecordWithIDError, UpdateRecordWithIDPathParams, UpdateRecordWithIDQueryParams, UpdateRecordWithIDVariables, UpdateTableError, UpdateTablePathParams, UpdateTableRequestBody, UpdateTableVariables, UpdateUserError, UpdateUserVariables, UpdateWorkspaceError, UpdateWorkspaceMemberRoleError, UpdateWorkspaceMemberRolePathParams, UpdateWorkspaceMemberRoleRequestBody, UpdateWorkspaceMemberRoleVariables, UpdateWorkspacePathParams, UpdateWorkspaceVariables, UpsertRecordWithIDError, UpsertRecordWithIDPathParams, UpsertRecordWithIDQueryParams, UpsertRecordWithIDVariables, ValueAtColumn, XataApiClient, XataApiClientOptions, XataApiPlugin, XataError, XataPlugin, XataPluginOptions, XataRecord, acceptWorkspaceMemberInvite, addGitBranchesEntry, addTableColumn, buildClient, bulkInsertTableRecords, cancelWorkspaceMemberInvite, contains, createBranch, createDatabase, createTable, createUserAPIKey, createWorkspace, deleteBranch, deleteColumn, deleteDatabase, deleteRecord, deleteTable, deleteUser, deleteUserAPIKey, deleteWorkspace, endsWith, executeBranchMigrationPlan, exists, ge, getAPIKey, getBranchDetails, getBranchList, getBranchMetadata, getBranchMigrationHistory, getBranchMigrationPlan, getBranchStats, getColumn, getCurrentBranchDetails, getCurrentBranchName, getDatabaseList, getDatabaseURL, getGitBranchesMapping, getRecord, getTableColumns, getTableSchema, getUser, getUserAPIKeys, getWorkspace, getWorkspaceMembersList, getWorkspacesList, gt, gte, includes, includesAll, includesAny, includesNone, insertRecord, insertRecordWithID, inviteWorkspaceMember, is, isCursorPaginationOptions, isIdentifiable, isNot, isXataRecord, le, lt, lte, notExists, operationsByTag, pattern, queryTable, removeGitBranchesEntry, removeWorkspaceMember, resendWorkspaceMemberInvite, resolveBranch, searchBranch, searchTable, setTableSchema, startsWith, updateBranchMetadata, updateColumn, updateRecordWithID, updateTable, updateUser, updateWorkspace, updateWorkspaceMemberRole, upsertRecordWithID };
|