@xata.io/client 0.0.0-alpha.vf89b33e → 0.0.0-alpha.vf95371f
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/CHANGELOG.md +42 -0
- package/dist/index.cjs +440 -177
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +330 -93
- package/dist/index.mjs +436 -178
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
@@ -19,11 +19,39 @@ declare type ErrorWrapper<TError> = TError | {
|
|
19
19
|
payload: string;
|
20
20
|
};
|
21
21
|
|
22
|
+
interface CacheImpl {
|
23
|
+
cacheRecords: boolean;
|
24
|
+
defaultQueryTTL: number;
|
25
|
+
getAll(): Promise<Record<string, unknown>>;
|
26
|
+
get: <T>(key: string) => Promise<T | null>;
|
27
|
+
set: <T>(key: string, value: T) => Promise<void>;
|
28
|
+
delete: (key: string) => Promise<void>;
|
29
|
+
clear: () => Promise<void>;
|
30
|
+
}
|
31
|
+
interface SimpleCacheOptions {
|
32
|
+
max?: number;
|
33
|
+
cacheRecords?: boolean;
|
34
|
+
defaultQueryTTL?: number;
|
35
|
+
}
|
36
|
+
declare class SimpleCache implements CacheImpl {
|
37
|
+
#private;
|
38
|
+
capacity: number;
|
39
|
+
cacheRecords: boolean;
|
40
|
+
defaultQueryTTL: number;
|
41
|
+
constructor(options?: SimpleCacheOptions);
|
42
|
+
getAll(): Promise<Record<string, unknown>>;
|
43
|
+
get<T>(key: string): Promise<T | null>;
|
44
|
+
set<T>(key: string, value: T): Promise<void>;
|
45
|
+
delete(key: string): Promise<void>;
|
46
|
+
clear(): Promise<void>;
|
47
|
+
}
|
48
|
+
|
22
49
|
declare abstract class XataPlugin {
|
23
50
|
abstract build(options: XataPluginOptions): unknown | Promise<unknown>;
|
24
51
|
}
|
25
52
|
declare type XataPluginOptions = {
|
26
53
|
getFetchProps: () => Promise<FetcherExtraProps>;
|
54
|
+
cache: CacheImpl;
|
27
55
|
};
|
28
56
|
|
29
57
|
/**
|
@@ -110,6 +138,12 @@ declare type ListBranchesResponse = {
|
|
110
138
|
displayName: string;
|
111
139
|
branches: Branch[];
|
112
140
|
};
|
141
|
+
declare type ListGitBranchesResponse = {
|
142
|
+
mapping: {
|
143
|
+
gitBranch: string;
|
144
|
+
xataBranch: string;
|
145
|
+
}[];
|
146
|
+
};
|
113
147
|
declare type Branch = {
|
114
148
|
name: string;
|
115
149
|
createdAt: DateTime;
|
@@ -158,7 +192,7 @@ declare type Table = {
|
|
158
192
|
*/
|
159
193
|
declare type Column = {
|
160
194
|
name: string;
|
161
|
-
type: 'bool' | 'int' | 'float' | 'string' | 'text' | 'email' | 'multiple' | 'link' | 'object';
|
195
|
+
type: 'bool' | 'int' | 'float' | 'string' | 'text' | 'email' | 'multiple' | 'link' | 'object' | 'datetime';
|
162
196
|
link?: {
|
163
197
|
table: string;
|
164
198
|
};
|
@@ -354,6 +388,7 @@ type schemas_WorkspaceMembers = WorkspaceMembers;
|
|
354
388
|
type schemas_InviteKey = InviteKey;
|
355
389
|
type schemas_ListDatabasesResponse = ListDatabasesResponse;
|
356
390
|
type schemas_ListBranchesResponse = ListBranchesResponse;
|
391
|
+
type schemas_ListGitBranchesResponse = ListGitBranchesResponse;
|
357
392
|
type schemas_Branch = Branch;
|
358
393
|
type schemas_BranchMetadata = BranchMetadata;
|
359
394
|
type schemas_DBBranch = DBBranch;
|
@@ -406,6 +441,7 @@ declare namespace schemas {
|
|
406
441
|
schemas_InviteKey as InviteKey,
|
407
442
|
schemas_ListDatabasesResponse as ListDatabasesResponse,
|
408
443
|
schemas_ListBranchesResponse as ListBranchesResponse,
|
444
|
+
schemas_ListGitBranchesResponse as ListGitBranchesResponse,
|
409
445
|
schemas_Branch as Branch,
|
410
446
|
schemas_BranchMetadata as BranchMetadata,
|
411
447
|
schemas_DBBranch as DBBranch,
|
@@ -982,6 +1018,163 @@ declare type DeleteDatabaseVariables = {
|
|
982
1018
|
* Delete a database and all of its branches and tables permanently.
|
983
1019
|
*/
|
984
1020
|
declare const deleteDatabase: (variables: DeleteDatabaseVariables) => Promise<undefined>;
|
1021
|
+
declare type GetGitBranchesMappingPathParams = {
|
1022
|
+
dbName: DBName;
|
1023
|
+
workspace: string;
|
1024
|
+
};
|
1025
|
+
declare type GetGitBranchesMappingError = ErrorWrapper<{
|
1026
|
+
status: 400;
|
1027
|
+
payload: BadRequestError;
|
1028
|
+
} | {
|
1029
|
+
status: 401;
|
1030
|
+
payload: AuthError;
|
1031
|
+
}>;
|
1032
|
+
declare type GetGitBranchesMappingVariables = {
|
1033
|
+
pathParams: GetGitBranchesMappingPathParams;
|
1034
|
+
} & FetcherExtraProps;
|
1035
|
+
/**
|
1036
|
+
* Lists all the git branches in the mapping, and their associated Xata branches.
|
1037
|
+
*
|
1038
|
+
* Example response:
|
1039
|
+
*
|
1040
|
+
* ```json
|
1041
|
+
* {
|
1042
|
+
* "mappings": [
|
1043
|
+
* {
|
1044
|
+
* "gitBranch": "main",
|
1045
|
+
* "xataBranch": "main"
|
1046
|
+
* },
|
1047
|
+
* {
|
1048
|
+
* "gitBranch": "gitBranch1",
|
1049
|
+
* "xataBranch": "xataBranch1"
|
1050
|
+
* }
|
1051
|
+
* {
|
1052
|
+
* "gitBranch": "xataBranch2",
|
1053
|
+
* "xataBranch": "xataBranch2"
|
1054
|
+
* }
|
1055
|
+
* ]
|
1056
|
+
* }
|
1057
|
+
* ```
|
1058
|
+
*/
|
1059
|
+
declare const getGitBranchesMapping: (variables: GetGitBranchesMappingVariables) => Promise<ListGitBranchesResponse>;
|
1060
|
+
declare type AddGitBranchesEntryPathParams = {
|
1061
|
+
dbName: DBName;
|
1062
|
+
workspace: string;
|
1063
|
+
};
|
1064
|
+
declare type AddGitBranchesEntryError = ErrorWrapper<{
|
1065
|
+
status: 400;
|
1066
|
+
payload: BadRequestError;
|
1067
|
+
} | {
|
1068
|
+
status: 401;
|
1069
|
+
payload: AuthError;
|
1070
|
+
}>;
|
1071
|
+
declare type AddGitBranchesEntryResponse = {
|
1072
|
+
warning?: string;
|
1073
|
+
};
|
1074
|
+
declare type AddGitBranchesEntryRequestBody = {
|
1075
|
+
gitBranch: string;
|
1076
|
+
xataBranch: BranchName;
|
1077
|
+
};
|
1078
|
+
declare type AddGitBranchesEntryVariables = {
|
1079
|
+
body: AddGitBranchesEntryRequestBody;
|
1080
|
+
pathParams: AddGitBranchesEntryPathParams;
|
1081
|
+
} & FetcherExtraProps;
|
1082
|
+
/**
|
1083
|
+
* Adds an entry to the mapping of git branches to Xata branches. The git branch and the Xata branch must be present in the body of the request. If the Xata branch doesn't exist, a 400 error is returned.
|
1084
|
+
*
|
1085
|
+
* If the git branch is already present in the mapping, the old entry is overwritten, and a warning message is included in the response. If the git branch is added and didn't exist before, the response code is 204. If the git branch existed and it was overwritten, the response code is 201.
|
1086
|
+
*
|
1087
|
+
* Example request:
|
1088
|
+
*
|
1089
|
+
* ```json
|
1090
|
+
* // POST https://tutorial-ng7s8c.xata.sh/dbs/demo/gitBranches
|
1091
|
+
* {
|
1092
|
+
* "gitBranch": "fix/bug123",
|
1093
|
+
* "xataBranch": "fix_bug"
|
1094
|
+
* }
|
1095
|
+
* ```
|
1096
|
+
*/
|
1097
|
+
declare const addGitBranchesEntry: (variables: AddGitBranchesEntryVariables) => Promise<AddGitBranchesEntryResponse>;
|
1098
|
+
declare type RemoveGitBranchesEntryPathParams = {
|
1099
|
+
dbName: DBName;
|
1100
|
+
workspace: string;
|
1101
|
+
};
|
1102
|
+
declare type RemoveGitBranchesEntryQueryParams = {
|
1103
|
+
gitBranch: string;
|
1104
|
+
};
|
1105
|
+
declare type RemoveGitBranchesEntryError = ErrorWrapper<{
|
1106
|
+
status: 400;
|
1107
|
+
payload: BadRequestError;
|
1108
|
+
} | {
|
1109
|
+
status: 401;
|
1110
|
+
payload: AuthError;
|
1111
|
+
}>;
|
1112
|
+
declare type RemoveGitBranchesEntryVariables = {
|
1113
|
+
pathParams: RemoveGitBranchesEntryPathParams;
|
1114
|
+
queryParams: RemoveGitBranchesEntryQueryParams;
|
1115
|
+
} & FetcherExtraProps;
|
1116
|
+
/**
|
1117
|
+
* Removes an entry from the mapping of git branches to Xata branches. The name of the git branch must be passed as a query parameter. If the git branch is not found, the endpoint returns a 404 status code.
|
1118
|
+
*
|
1119
|
+
* Example request:
|
1120
|
+
*
|
1121
|
+
* ```json
|
1122
|
+
* // DELETE https://tutorial-ng7s8c.xata.sh/dbs/demo/gitBranches?gitBranch=fix%2Fbug123
|
1123
|
+
* ```
|
1124
|
+
*/
|
1125
|
+
declare const removeGitBranchesEntry: (variables: RemoveGitBranchesEntryVariables) => Promise<undefined>;
|
1126
|
+
declare type ResolveBranchPathParams = {
|
1127
|
+
dbName: DBName;
|
1128
|
+
workspace: string;
|
1129
|
+
};
|
1130
|
+
declare type ResolveBranchQueryParams = {
|
1131
|
+
gitBranch?: string;
|
1132
|
+
fallbackBranch?: string;
|
1133
|
+
};
|
1134
|
+
declare type ResolveBranchError = ErrorWrapper<{
|
1135
|
+
status: 400;
|
1136
|
+
payload: BadRequestError;
|
1137
|
+
} | {
|
1138
|
+
status: 401;
|
1139
|
+
payload: AuthError;
|
1140
|
+
}>;
|
1141
|
+
declare type ResolveBranchResponse = {
|
1142
|
+
branch: string;
|
1143
|
+
reason: {
|
1144
|
+
code: 'FOUND_IN_MAPPING' | 'BRANCH_EXISTS' | 'FALLBACK_BRANCH' | 'DEFAULT_BRANCH';
|
1145
|
+
message: string;
|
1146
|
+
};
|
1147
|
+
};
|
1148
|
+
declare type ResolveBranchVariables = {
|
1149
|
+
pathParams: ResolveBranchPathParams;
|
1150
|
+
queryParams?: ResolveBranchQueryParams;
|
1151
|
+
} & FetcherExtraProps;
|
1152
|
+
/**
|
1153
|
+
* In order to resolve the database branch, the following algorithm is used:
|
1154
|
+
* * 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
|
+
* * else, if a Xata branch with the exact same name as `gitBranch` exists, return it
|
1156
|
+
* * else, if `fallbackBranch` is provided and a branch with that name exists, return it
|
1157
|
+
* * else, return the default branch of the DB (`main` or the first branch)
|
1158
|
+
*
|
1159
|
+
* Example call:
|
1160
|
+
*
|
1161
|
+
* ```json
|
1162
|
+
* // GET https://tutorial-ng7s8c.xata.sh/dbs/demo/dbs/demo/resolveBranch?gitBranch=test&fallbackBranch=tsg
|
1163
|
+
* ```
|
1164
|
+
*
|
1165
|
+
* Example response:
|
1166
|
+
*
|
1167
|
+
* ```json
|
1168
|
+
* {
|
1169
|
+
* "branch": "main",
|
1170
|
+
* "reason": {
|
1171
|
+
* "code": "DEFAULT_BRANCH",
|
1172
|
+
* "message": "Default branch for this database (main)"
|
1173
|
+
* }
|
1174
|
+
* }
|
1175
|
+
* ```
|
1176
|
+
*/
|
1177
|
+
declare const resolveBranch: (variables: ResolveBranchVariables) => Promise<ResolveBranchResponse>;
|
985
1178
|
declare type GetBranchDetailsPathParams = {
|
986
1179
|
dbBranchName: DBBranchName;
|
987
1180
|
workspace: string;
|
@@ -1266,8 +1459,9 @@ declare type UpdateTableVariables = {
|
|
1266
1459
|
*
|
1267
1460
|
* In the example below, we rename a table from “users” to “people”:
|
1268
1461
|
*
|
1269
|
-
* ```
|
1270
|
-
* PATCH /db/test:main/tables/users
|
1462
|
+
* ```json
|
1463
|
+
* // PATCH /db/test:main/tables/users
|
1464
|
+
*
|
1271
1465
|
* {
|
1272
1466
|
* "name": "people"
|
1273
1467
|
* }
|
@@ -1675,7 +1869,7 @@ declare type QueryTableVariables = {
|
|
1675
1869
|
* {
|
1676
1870
|
* "columns": [...],
|
1677
1871
|
* "filter": {
|
1678
|
-
* "$all": [...]
|
1872
|
+
* "$all": [...],
|
1679
1873
|
* "$any": [...]
|
1680
1874
|
* ...
|
1681
1875
|
* },
|
@@ -1721,7 +1915,11 @@ declare type QueryTableVariables = {
|
|
1721
1915
|
* "link": {
|
1722
1916
|
* "table": "users"
|
1723
1917
|
* }
|
1724
|
-
* }
|
1918
|
+
* },
|
1919
|
+
* {
|
1920
|
+
* "name": "foundedDate",
|
1921
|
+
* "type": "datetime"
|
1922
|
+
* },
|
1725
1923
|
* ]
|
1726
1924
|
* },
|
1727
1925
|
* {
|
@@ -1809,7 +2007,7 @@ declare type QueryTableVariables = {
|
|
1809
2007
|
* {
|
1810
2008
|
* "name": "Kilian",
|
1811
2009
|
* "address": {
|
1812
|
-
* "street": "New street"
|
2010
|
+
* "street": "New street"
|
1813
2011
|
* }
|
1814
2012
|
* }
|
1815
2013
|
* ```
|
@@ -1818,10 +2016,7 @@ declare type QueryTableVariables = {
|
|
1818
2016
|
*
|
1819
2017
|
* ```json
|
1820
2018
|
* {
|
1821
|
-
* "columns": [
|
1822
|
-
* "*",
|
1823
|
-
* "team.name"
|
1824
|
-
* ]
|
2019
|
+
* "columns": ["*", "team.name"]
|
1825
2020
|
* }
|
1826
2021
|
* ```
|
1827
2022
|
*
|
@@ -1839,7 +2034,7 @@ declare type QueryTableVariables = {
|
|
1839
2034
|
* "team": {
|
1840
2035
|
* "id": "XX",
|
1841
2036
|
* "xata": {
|
1842
|
-
* "version": 0
|
2037
|
+
* "version": 0
|
1843
2038
|
* },
|
1844
2039
|
* "name": "first team"
|
1845
2040
|
* }
|
@@ -1850,10 +2045,7 @@ declare type QueryTableVariables = {
|
|
1850
2045
|
*
|
1851
2046
|
* ```json
|
1852
2047
|
* {
|
1853
|
-
* "columns": [
|
1854
|
-
* "*",
|
1855
|
-
* "team.*"
|
1856
|
-
* ]
|
2048
|
+
* "columns": ["*", "team.*"]
|
1857
2049
|
* }
|
1858
2050
|
* ```
|
1859
2051
|
*
|
@@ -1871,10 +2063,11 @@ declare type QueryTableVariables = {
|
|
1871
2063
|
* "team": {
|
1872
2064
|
* "id": "XX",
|
1873
2065
|
* "xata": {
|
1874
|
-
* "version": 0
|
2066
|
+
* "version": 0
|
1875
2067
|
* },
|
1876
2068
|
* "name": "first team",
|
1877
|
-
* "code": "A1"
|
2069
|
+
* "code": "A1",
|
2070
|
+
* "foundedDate": "2020-03-04T10:43:54.32Z"
|
1878
2071
|
* }
|
1879
2072
|
* }
|
1880
2073
|
* ```
|
@@ -1889,7 +2082,7 @@ declare type QueryTableVariables = {
|
|
1889
2082
|
* `$none`, etc.
|
1890
2083
|
*
|
1891
2084
|
* All operators start with an `$` to differentiate them from column names
|
1892
|
-
* (which are not allowed to start with
|
2085
|
+
* (which are not allowed to start with a dollar sign).
|
1893
2086
|
*
|
1894
2087
|
* #### Exact matching and control operators
|
1895
2088
|
*
|
@@ -1920,7 +2113,7 @@ declare type QueryTableVariables = {
|
|
1920
2113
|
* ```json
|
1921
2114
|
* {
|
1922
2115
|
* "filter": {
|
1923
|
-
*
|
2116
|
+
* "name": "r2"
|
1924
2117
|
* }
|
1925
2118
|
* }
|
1926
2119
|
* ```
|
@@ -1942,7 +2135,7 @@ declare type QueryTableVariables = {
|
|
1942
2135
|
* ```json
|
1943
2136
|
* {
|
1944
2137
|
* "filter": {
|
1945
|
-
*
|
2138
|
+
* "settings.plan": "free"
|
1946
2139
|
* }
|
1947
2140
|
* }
|
1948
2141
|
* ```
|
@@ -1952,8 +2145,8 @@ declare type QueryTableVariables = {
|
|
1952
2145
|
* "filter": {
|
1953
2146
|
* "settings": {
|
1954
2147
|
* "plan": "free"
|
1955
|
-
* }
|
1956
|
-
* }
|
2148
|
+
* }
|
2149
|
+
* }
|
1957
2150
|
* }
|
1958
2151
|
* ```
|
1959
2152
|
*
|
@@ -1962,8 +2155,8 @@ declare type QueryTableVariables = {
|
|
1962
2155
|
* ```json
|
1963
2156
|
* {
|
1964
2157
|
* "filter": {
|
1965
|
-
* "settings.plan": {"$any": ["free", "paid"]}
|
1966
|
-
* }
|
2158
|
+
* "settings.plan": { "$any": ["free", "paid"] }
|
2159
|
+
* }
|
1967
2160
|
* }
|
1968
2161
|
* ```
|
1969
2162
|
*
|
@@ -1972,9 +2165,9 @@ declare type QueryTableVariables = {
|
|
1972
2165
|
* ```json
|
1973
2166
|
* {
|
1974
2167
|
* "filter": {
|
1975
|
-
*
|
1976
|
-
*
|
1977
|
-
* }
|
2168
|
+
* "settings.dark": true,
|
2169
|
+
* "settings.plan": "free"
|
2170
|
+
* }
|
1978
2171
|
* }
|
1979
2172
|
* ```
|
1980
2173
|
*
|
@@ -1985,11 +2178,11 @@ declare type QueryTableVariables = {
|
|
1985
2178
|
* ```json
|
1986
2179
|
* {
|
1987
2180
|
* "filter": {
|
1988
|
-
*
|
1989
|
-
*
|
1990
|
-
*
|
1991
|
-
*
|
1992
|
-
* }
|
2181
|
+
* "$any": {
|
2182
|
+
* "settings.dark": true,
|
2183
|
+
* "settings.plan": "free"
|
2184
|
+
* }
|
2185
|
+
* }
|
1993
2186
|
* }
|
1994
2187
|
* ```
|
1995
2188
|
*
|
@@ -2000,10 +2193,10 @@ declare type QueryTableVariables = {
|
|
2000
2193
|
* "filter": {
|
2001
2194
|
* "$any": [
|
2002
2195
|
* {
|
2003
|
-
* "name": "r1"
|
2196
|
+
* "name": "r1"
|
2004
2197
|
* },
|
2005
2198
|
* {
|
2006
|
-
* "name": "r2"
|
2199
|
+
* "name": "r2"
|
2007
2200
|
* }
|
2008
2201
|
* ]
|
2009
2202
|
* }
|
@@ -2015,7 +2208,7 @@ declare type QueryTableVariables = {
|
|
2015
2208
|
* ```json
|
2016
2209
|
* {
|
2017
2210
|
* "filter": {
|
2018
|
-
* "$exists": "settings"
|
2211
|
+
* "$exists": "settings"
|
2019
2212
|
* }
|
2020
2213
|
* }
|
2021
2214
|
* ```
|
@@ -2027,10 +2220,10 @@ declare type QueryTableVariables = {
|
|
2027
2220
|
* "filter": {
|
2028
2221
|
* "$all": [
|
2029
2222
|
* {
|
2030
|
-
* "$exists": "settings"
|
2223
|
+
* "$exists": "settings"
|
2031
2224
|
* },
|
2032
2225
|
* {
|
2033
|
-
* "$exists": "name"
|
2226
|
+
* "$exists": "name"
|
2034
2227
|
* }
|
2035
2228
|
* ]
|
2036
2229
|
* }
|
@@ -2042,7 +2235,7 @@ declare type QueryTableVariables = {
|
|
2042
2235
|
* ```json
|
2043
2236
|
* {
|
2044
2237
|
* "filter": {
|
2045
|
-
* "$notExists": "settings"
|
2238
|
+
* "$notExists": "settings"
|
2046
2239
|
* }
|
2047
2240
|
* }
|
2048
2241
|
* ```
|
@@ -2069,7 +2262,7 @@ declare type QueryTableVariables = {
|
|
2069
2262
|
* {
|
2070
2263
|
* "filter": {
|
2071
2264
|
* "<column_name>": {
|
2072
|
-
*
|
2265
|
+
* "$pattern": "v*alue*"
|
2073
2266
|
* }
|
2074
2267
|
* }
|
2075
2268
|
* }
|
@@ -2081,31 +2274,41 @@ declare type QueryTableVariables = {
|
|
2081
2274
|
* {
|
2082
2275
|
* "filter": {
|
2083
2276
|
* "<column_name>": {
|
2084
|
-
*
|
2277
|
+
* "$endsWith": ".gz"
|
2085
2278
|
* },
|
2086
2279
|
* "<column_name>": {
|
2087
|
-
*
|
2280
|
+
* "$startsWith": "tmp-"
|
2088
2281
|
* }
|
2089
2282
|
* }
|
2090
2283
|
* }
|
2091
2284
|
* ```
|
2092
2285
|
*
|
2093
|
-
* #### Numeric ranges
|
2286
|
+
* #### Numeric or datetime ranges
|
2094
2287
|
*
|
2095
2288
|
* ```json
|
2096
2289
|
* {
|
2097
2290
|
* "filter": {
|
2098
|
-
*
|
2099
|
-
*
|
2100
|
-
*
|
2101
|
-
*
|
2291
|
+
* "<column_name>": {
|
2292
|
+
* "$ge": 0,
|
2293
|
+
* "$lt": 100
|
2294
|
+
* }
|
2295
|
+
* }
|
2296
|
+
* }
|
2297
|
+
* ```
|
2298
|
+
* Date ranges support the same operators, with the date using the format defined in
|
2299
|
+
* [RFC 3339](https://www.rfc-editor.org/rfc/rfc3339):
|
2300
|
+
* ```json
|
2301
|
+
* {
|
2302
|
+
* "filter": {
|
2303
|
+
* "<column_name>": {
|
2304
|
+
* "$gt": "2019-10-12T07:20:50.52Z",
|
2305
|
+
* "$lt": "2021-10-12T07:20:50.52Z"
|
2306
|
+
* }
|
2102
2307
|
* }
|
2103
2308
|
* }
|
2104
2309
|
* ```
|
2105
|
-
*
|
2106
2310
|
* The supported operators are `$gt`, `$lt`, `$ge`, `$le`.
|
2107
2311
|
*
|
2108
|
-
*
|
2109
2312
|
* #### Negations
|
2110
2313
|
*
|
2111
2314
|
* A general `$not` operator can inverse any operation.
|
@@ -2130,15 +2333,21 @@ declare type QueryTableVariables = {
|
|
2130
2333
|
* {
|
2131
2334
|
* "filter": {
|
2132
2335
|
* "$not": {
|
2133
|
-
* "$any": [
|
2134
|
-
*
|
2135
|
-
*
|
2136
|
-
*
|
2137
|
-
*
|
2138
|
-
*
|
2139
|
-
*
|
2140
|
-
*
|
2141
|
-
*
|
2336
|
+
* "$any": [
|
2337
|
+
* {
|
2338
|
+
* "<column_name1>": "value1"
|
2339
|
+
* },
|
2340
|
+
* {
|
2341
|
+
* "$all": [
|
2342
|
+
* {
|
2343
|
+
* "<column_name2>": "value2"
|
2344
|
+
* },
|
2345
|
+
* {
|
2346
|
+
* "<column_name3>": "value3"
|
2347
|
+
* }
|
2348
|
+
* ]
|
2349
|
+
* }
|
2350
|
+
* ]
|
2142
2351
|
* }
|
2143
2352
|
* }
|
2144
2353
|
* }
|
@@ -2193,8 +2402,8 @@ declare type QueryTableVariables = {
|
|
2193
2402
|
* "<array name>": {
|
2194
2403
|
* "$includes": {
|
2195
2404
|
* "$all": [
|
2196
|
-
* {"$contains": "label"},
|
2197
|
-
* {"$not": {"$endsWith": "-debug"}}
|
2405
|
+
* { "$contains": "label" },
|
2406
|
+
* { "$not": { "$endsWith": "-debug" } }
|
2198
2407
|
* ]
|
2199
2408
|
* }
|
2200
2409
|
* }
|
@@ -2214,9 +2423,7 @@ declare type QueryTableVariables = {
|
|
2214
2423
|
* {
|
2215
2424
|
* "filter": {
|
2216
2425
|
* "settings.labels": {
|
2217
|
-
* "$includesAll": [
|
2218
|
-
* {"$contains": "label"},
|
2219
|
-
* ]
|
2426
|
+
* "$includesAll": [{ "$contains": "label" }]
|
2220
2427
|
* }
|
2221
2428
|
* }
|
2222
2429
|
* }
|
@@ -2264,7 +2471,6 @@ declare type QueryTableVariables = {
|
|
2264
2471
|
* }
|
2265
2472
|
* ```
|
2266
2473
|
*
|
2267
|
-
*
|
2268
2474
|
* ### Pagination
|
2269
2475
|
*
|
2270
2476
|
* We offer cursor pagination and offset pagination. The offset pagination is limited
|
@@ -2330,8 +2536,8 @@ declare type QueryTableVariables = {
|
|
2330
2536
|
* can be queried by update `page.after` to the returned cursor while keeping the
|
2331
2537
|
* `page.before` cursor from the first range query.
|
2332
2538
|
*
|
2333
|
-
* The `filter` , `columns`,
|
2334
|
-
* encoded with the cursor.
|
2539
|
+
* The `filter` , `columns`, `sort` , and `page.size` configuration will be
|
2540
|
+
* encoded with the cursor. The pagination request will be invalid if
|
2335
2541
|
* `filter` or `sort` is set. The columns returned and page size can be changed
|
2336
2542
|
* anytime by passing the `columns` or `page.size` settings to the next query.
|
2337
2543
|
*
|
@@ -2422,6 +2628,10 @@ declare const operationsByTag: {
|
|
2422
2628
|
getDatabaseList: (variables: GetDatabaseListVariables) => Promise<ListDatabasesResponse>;
|
2423
2629
|
createDatabase: (variables: CreateDatabaseVariables) => Promise<CreateDatabaseResponse>;
|
2424
2630
|
deleteDatabase: (variables: DeleteDatabaseVariables) => Promise<undefined>;
|
2631
|
+
getGitBranchesMapping: (variables: GetGitBranchesMappingVariables) => Promise<ListGitBranchesResponse>;
|
2632
|
+
addGitBranchesEntry: (variables: AddGitBranchesEntryVariables) => Promise<AddGitBranchesEntryResponse>;
|
2633
|
+
removeGitBranchesEntry: (variables: RemoveGitBranchesEntryVariables) => Promise<undefined>;
|
2634
|
+
resolveBranch: (variables: ResolveBranchVariables) => Promise<ResolveBranchResponse>;
|
2425
2635
|
};
|
2426
2636
|
branch: {
|
2427
2637
|
getBranchList: (variables: GetBranchListVariables) => Promise<ListBranchesResponse>;
|
@@ -2472,6 +2682,9 @@ interface XataApiClientOptions {
|
|
2472
2682
|
apiKey?: string;
|
2473
2683
|
host?: HostProvider;
|
2474
2684
|
}
|
2685
|
+
/**
|
2686
|
+
* @deprecated Use XataApiPlugin instead
|
2687
|
+
*/
|
2475
2688
|
declare class XataApiClient {
|
2476
2689
|
#private;
|
2477
2690
|
constructor(options?: XataApiClientOptions);
|
@@ -2514,6 +2727,10 @@ declare class DatabaseApi {
|
|
2514
2727
|
getDatabaseList(workspace: WorkspaceID): Promise<ListDatabasesResponse>;
|
2515
2728
|
createDatabase(workspace: WorkspaceID, dbName: DBName, options?: CreateDatabaseRequestBody): Promise<CreateDatabaseResponse>;
|
2516
2729
|
deleteDatabase(workspace: WorkspaceID, dbName: DBName): Promise<void>;
|
2730
|
+
getGitBranchesMapping(workspace: WorkspaceID, dbName: DBName): Promise<ListGitBranchesResponse>;
|
2731
|
+
addGitBranchesEntry(workspace: WorkspaceID, dbName: DBName, body: AddGitBranchesEntryRequestBody): Promise<AddGitBranchesEntryResponse>;
|
2732
|
+
removeGitBranchesEntry(workspace: WorkspaceID, dbName: DBName, gitBranch: string): Promise<void>;
|
2733
|
+
resolveBranch(workspace: WorkspaceID, dbName: DBName, gitBranch: string): Promise<ResolveBranchResponse>;
|
2517
2734
|
}
|
2518
2735
|
declare class BranchApi {
|
2519
2736
|
private extraProps;
|
@@ -2575,7 +2792,7 @@ declare type RequiredBy<T, K extends keyof T> = T & {
|
|
2575
2792
|
};
|
2576
2793
|
declare type GetArrayInnerType<T extends readonly any[]> = T[number];
|
2577
2794
|
declare type SingleOrArray<T> = T | T[];
|
2578
|
-
declare type
|
2795
|
+
declare type OmitBy<T, K extends keyof T> = T extends any ? Omit<T, K> : never;
|
2579
2796
|
|
2580
2797
|
declare type SelectableColumn<O, RecursivePath extends any[] = []> = '*' | 'id' | DataProps<O> | NestedColumns<O, RecursivePath>;
|
2581
2798
|
declare type SelectedPick<O extends XataRecord, Key extends SelectableColumn<O>[]> = XataRecord & UnionToIntersection<Values<{
|
@@ -2770,12 +2987,21 @@ declare type SortFilterBase<T extends XataRecord> = {
|
|
2770
2987
|
[Key in StringKeys<T>]: SortDirection;
|
2771
2988
|
};
|
2772
2989
|
|
2773
|
-
declare type
|
2774
|
-
page?: PaginationOptions;
|
2990
|
+
declare type BaseOptions<T extends XataRecord> = {
|
2775
2991
|
columns?: NonEmptyArray<SelectableColumn<T>>;
|
2992
|
+
cache?: number;
|
2993
|
+
};
|
2994
|
+
declare type CursorQueryOptions = {
|
2995
|
+
pagination?: CursorNavigationOptions & OffsetNavigationOptions;
|
2996
|
+
filter?: never;
|
2997
|
+
sort?: never;
|
2998
|
+
};
|
2999
|
+
declare type OffsetQueryOptions<T extends XataRecord> = {
|
3000
|
+
pagination?: OffsetNavigationOptions;
|
2776
3001
|
filter?: FilterExpression;
|
2777
3002
|
sort?: SortFilter<T> | SortFilter<T>[];
|
2778
3003
|
};
|
3004
|
+
declare type QueryOptions<T extends XataRecord> = BaseOptions<T> & (CursorQueryOptions | OffsetQueryOptions<T>);
|
2779
3005
|
/**
|
2780
3006
|
* Query objects contain the information of all filters, sorting, etc. to be included in the database query.
|
2781
3007
|
*
|
@@ -2788,6 +3014,7 @@ declare class Query<Record extends XataRecord, Result extends XataRecord = Recor
|
|
2788
3014
|
readonly records: Result[];
|
2789
3015
|
constructor(repository: Repository<Record> | null, table: string, data: Partial<QueryOptions<Record>>, parent?: Partial<QueryOptions<Record>>);
|
2790
3016
|
getQueryOptions(): QueryOptions<Record>;
|
3017
|
+
key(): string;
|
2791
3018
|
/**
|
2792
3019
|
* Builds a new query object representing a logical OR between the given subqueries.
|
2793
3020
|
* @param queries An array of subqueries.
|
@@ -2843,19 +3070,23 @@ declare class Query<Record extends XataRecord, Result extends XataRecord = Recor
|
|
2843
3070
|
*/
|
2844
3071
|
select<K extends SelectableColumn<Record>>(columns: NonEmptyArray<K>): Query<Record, SelectedPick<Record, NonEmptyArray<K>>>;
|
2845
3072
|
getPaginated(): Promise<Page<Record, Result>>;
|
2846
|
-
getPaginated(options:
|
3073
|
+
getPaginated(options: OmitBy<QueryOptions<Record>, 'columns'>): Promise<Page<Record, Result>>;
|
2847
3074
|
getPaginated<Options extends RequiredBy<QueryOptions<Record>, 'columns'>>(options: Options): Promise<Page<Record, SelectedPick<Record, typeof options['columns']>>>;
|
2848
3075
|
[Symbol.asyncIterator](): AsyncIterableIterator<Result>;
|
2849
|
-
getIterator(
|
2850
|
-
getIterator(
|
2851
|
-
|
3076
|
+
getIterator(): AsyncGenerator<Result[]>;
|
3077
|
+
getIterator(options: OmitBy<QueryOptions<Record>, 'columns' | 'pagination'> & {
|
3078
|
+
batchSize?: number;
|
3079
|
+
}): AsyncGenerator<Result[]>;
|
3080
|
+
getIterator<Options extends RequiredBy<OmitBy<QueryOptions<Record>, 'pagination'>, 'columns'> & {
|
3081
|
+
batchSize?: number;
|
3082
|
+
}>(options: Options): AsyncGenerator<SelectedPick<Record, typeof options['columns']>[]>;
|
2852
3083
|
/**
|
2853
3084
|
* Performs the query in the database and returns a set of results.
|
2854
3085
|
* @param options Additional options to be used when performing the query.
|
2855
3086
|
* @returns An array of records from the database.
|
2856
3087
|
*/
|
2857
3088
|
getMany(): Promise<Result[]>;
|
2858
|
-
getMany(options:
|
3089
|
+
getMany(options: OmitBy<QueryOptions<Record>, 'columns'>): Promise<Result[]>;
|
2859
3090
|
getMany<Options extends RequiredBy<QueryOptions<Record>, 'columns'>>(options: Options): Promise<SelectedPick<Record, typeof options['columns']>[]>;
|
2860
3091
|
/**
|
2861
3092
|
* Performs the query in the database and returns all the results.
|
@@ -2863,17 +3094,27 @@ declare class Query<Record extends XataRecord, Result extends XataRecord = Recor
|
|
2863
3094
|
* @param options Additional options to be used when performing the query.
|
2864
3095
|
* @returns An array of records from the database.
|
2865
3096
|
*/
|
2866
|
-
getAll(
|
2867
|
-
getAll(
|
2868
|
-
|
3097
|
+
getAll(): Promise<Result[]>;
|
3098
|
+
getAll(options: OmitBy<QueryOptions<Record>, 'columns' | 'pagination'> & {
|
3099
|
+
batchSize?: number;
|
3100
|
+
}): Promise<Result[]>;
|
3101
|
+
getAll<Options extends RequiredBy<OmitBy<QueryOptions<Record>, 'pagination'>, 'columns'> & {
|
3102
|
+
batchSize?: number;
|
3103
|
+
}>(options: Options): Promise<SelectedPick<Record, typeof options['columns']>[]>;
|
2869
3104
|
/**
|
2870
3105
|
* Performs the query in the database and returns the first result.
|
2871
3106
|
* @param options Additional options to be used when performing the query.
|
2872
3107
|
* @returns The first record that matches the query, or null if no record matched the query.
|
2873
3108
|
*/
|
2874
|
-
|
2875
|
-
|
2876
|
-
|
3109
|
+
getFirst(): Promise<Result | null>;
|
3110
|
+
getFirst(options: OmitBy<QueryOptions<Record>, 'columns' | 'pagination'>): Promise<Result | null>;
|
3111
|
+
getFirst<Options extends RequiredBy<OmitBy<QueryOptions<Record>, 'pagination'>, 'columns'>>(options: Options): Promise<SelectedPick<Record, typeof options['columns']> | null>;
|
3112
|
+
/**
|
3113
|
+
* Builds a new query object adding a cache TTL in milliseconds.
|
3114
|
+
* @param ttl The cache TTL in milliseconds.
|
3115
|
+
* @returns A new Query object.
|
3116
|
+
*/
|
3117
|
+
cache(ttl: number): Query<Record, Result>;
|
2877
3118
|
nextPage(size?: number, offset?: number): Promise<Page<Record, Result>>;
|
2878
3119
|
previousPage(size?: number, offset?: number): Promise<Page<Record, Result>>;
|
2879
3120
|
firstPage(size?: number, offset?: number): Promise<Page<Record, Result>>;
|
@@ -2957,14 +3198,11 @@ declare type OffsetNavigationOptions = {
|
|
2957
3198
|
size?: number;
|
2958
3199
|
offset?: number;
|
2959
3200
|
};
|
2960
|
-
declare type PaginationOptions = CursorNavigationOptions & OffsetNavigationOptions;
|
2961
3201
|
declare const PAGINATION_MAX_SIZE = 200;
|
2962
3202
|
declare const PAGINATION_DEFAULT_SIZE = 200;
|
2963
3203
|
declare const PAGINATION_MAX_OFFSET = 800;
|
2964
3204
|
declare const PAGINATION_DEFAULT_OFFSET = 0;
|
2965
3205
|
|
2966
|
-
declare type TableLink = string[];
|
2967
|
-
declare type LinkDictionary = Dictionary<TableLink[]>;
|
2968
3206
|
/**
|
2969
3207
|
* Common interface for performing operations on a table.
|
2970
3208
|
*/
|
@@ -3070,9 +3308,8 @@ declare class RestRepository<Data extends BaseData, Record extends XataRecord =
|
|
3070
3308
|
db: SchemaPluginResult<any>;
|
3071
3309
|
constructor(options: {
|
3072
3310
|
table: string;
|
3073
|
-
links?: LinkDictionary;
|
3074
|
-
getFetchProps: () => Promise<FetcherExtraProps>;
|
3075
3311
|
db: SchemaPluginResult<any>;
|
3312
|
+
pluginOptions: XataPluginOptions;
|
3076
3313
|
});
|
3077
3314
|
create(object: EditableData<Data>): Promise<SelectedPick<Record, ['*']>>;
|
3078
3315
|
create(recordId: string, object: EditableData<Data>): Promise<SelectedPick<Record, ['*']>>;
|
@@ -3084,7 +3321,7 @@ declare class RestRepository<Data extends BaseData, Record extends XataRecord =
|
|
3084
3321
|
createOrUpdate(object: EditableData<Data>): Promise<SelectedPick<Record, ['*']>>;
|
3085
3322
|
createOrUpdate(recordId: string, object: EditableData<Data>): Promise<SelectedPick<Record, ['*']>>;
|
3086
3323
|
createOrUpdate(objects: EditableData<Data>[]): Promise<SelectedPick<Record, ['*']>[]>;
|
3087
|
-
delete(
|
3324
|
+
delete(a: string | Identifiable | Array<string | Identifiable>): Promise<void>;
|
3088
3325
|
search(query: string, options?: {
|
3089
3326
|
fuzziness?: number;
|
3090
3327
|
}): Promise<SelectedPick<Record, ['*']>[]>;
|
@@ -3166,17 +3403,17 @@ declare const includesAny: <T>(value: T) => ArrayFilter<T>;
|
|
3166
3403
|
|
3167
3404
|
declare type SchemaDefinition = {
|
3168
3405
|
table: string;
|
3169
|
-
links?: LinkDictionary;
|
3170
3406
|
};
|
3171
3407
|
declare type SchemaPluginResult<Schemas extends Record<string, BaseData>> = {
|
3172
3408
|
[Key in keyof Schemas]: Repository<Schemas[Key]>;
|
3409
|
+
} & {
|
3410
|
+
[key: string]: Repository<XataRecord$1>;
|
3173
3411
|
};
|
3174
3412
|
declare class SchemaPlugin<Schemas extends Record<string, BaseData>> extends XataPlugin {
|
3175
3413
|
#private;
|
3176
|
-
private links?;
|
3177
3414
|
private tableNames?;
|
3178
|
-
constructor(
|
3179
|
-
build(
|
3415
|
+
constructor(tableNames?: string[] | undefined);
|
3416
|
+
build(pluginOptions: XataPluginOptions): SchemaPluginResult<Schemas>;
|
3180
3417
|
}
|
3181
3418
|
|
3182
3419
|
declare type SearchOptions<Schemas extends Record<string, BaseData>, Tables extends StringKeys<Schemas>> = {
|
@@ -3197,8 +3434,7 @@ declare type SearchPluginResult<Schemas extends Record<string, BaseData>> = {
|
|
3197
3434
|
declare class SearchPlugin<Schemas extends Record<string, BaseData>> extends XataPlugin {
|
3198
3435
|
#private;
|
3199
3436
|
private db;
|
3200
|
-
|
3201
|
-
constructor(db: SchemaPluginResult<Schemas>, links: LinkDictionary);
|
3437
|
+
constructor(db: SchemaPluginResult<Schemas>);
|
3202
3438
|
build({ getFetchProps }: XataPluginOptions): SearchPluginResult<Schemas>;
|
3203
3439
|
}
|
3204
3440
|
declare type SearchXataRecord = XataRecord & {
|
@@ -3217,10 +3453,11 @@ declare type BaseClientOptions = {
|
|
3217
3453
|
apiKey?: string;
|
3218
3454
|
databaseURL?: string;
|
3219
3455
|
branch?: BranchStrategyOption;
|
3456
|
+
cache?: CacheImpl;
|
3220
3457
|
};
|
3221
3458
|
declare const buildClient: <Plugins extends Record<string, XataPlugin> = {}>(plugins?: Plugins | undefined) => ClientConstructor<Plugins>;
|
3222
3459
|
interface ClientConstructor<Plugins extends Record<string, XataPlugin>> {
|
3223
|
-
new <Schemas extends Record<string, BaseData
|
3460
|
+
new <Schemas extends Record<string, BaseData> = {}>(options?: Partial<BaseClientOptions>, tables?: string[]): Omit<{
|
3224
3461
|
db: Awaited<ReturnType<SchemaPlugin<Schemas>['build']>>;
|
3225
3462
|
search: Awaited<ReturnType<SearchPlugin<Schemas>['build']>>;
|
3226
3463
|
}, keyof Plugins> & {
|
@@ -3247,4 +3484,4 @@ declare class XataError extends Error {
|
|
3247
3484
|
constructor(message: string, status: number);
|
3248
3485
|
}
|
3249
3486
|
|
3250
|
-
export { AcceptWorkspaceMemberInviteError, AcceptWorkspaceMemberInvitePathParams, AcceptWorkspaceMemberInviteVariables, AddTableColumnError, AddTableColumnPathParams, AddTableColumnVariables, BaseClient, BaseClientOptions, BaseData, BulkInsertTableRecordsError, BulkInsertTableRecordsPathParams, BulkInsertTableRecordsRequestBody, BulkInsertTableRecordsResponse, BulkInsertTableRecordsVariables, 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, 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,
|
3487
|
+
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 };
|