@xata.io/client 0.0.0-alpha.vf976907 → 0.0.0-alpha.vfae42b5
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/README.md +258 -1
- package/dist/index.cjs +133 -65
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +304 -106
- package/dist/index.mjs +132 -66
- package/dist/index.mjs.map +1 -1
- package/package.json +5 -2
- package/tsconfig.json +1 -0
package/dist/index.mjs
CHANGED
@@ -7,8 +7,11 @@ function compact(arr) {
|
|
7
7
|
function isObject(value) {
|
8
8
|
return Boolean(value) && typeof value === "object" && !Array.isArray(value);
|
9
9
|
}
|
10
|
+
function isDefined(value) {
|
11
|
+
return value !== null && value !== void 0;
|
12
|
+
}
|
10
13
|
function isString(value) {
|
11
|
-
return value
|
14
|
+
return isDefined(value) && typeof value === "string";
|
12
15
|
}
|
13
16
|
function toBase64(value) {
|
14
17
|
try {
|
@@ -70,7 +73,12 @@ function getFetchImplementation(userFetch) {
|
|
70
73
|
return fetchImpl;
|
71
74
|
}
|
72
75
|
|
73
|
-
class
|
76
|
+
class ErrorWithCause extends Error {
|
77
|
+
constructor(message, options) {
|
78
|
+
super(message, options);
|
79
|
+
}
|
80
|
+
}
|
81
|
+
class FetcherError extends ErrorWithCause {
|
74
82
|
constructor(status, data) {
|
75
83
|
super(getMessage(data));
|
76
84
|
this.status = status;
|
@@ -366,6 +374,11 @@ const queryTable = (variables) => fetch$1({
|
|
366
374
|
method: "post",
|
367
375
|
...variables
|
368
376
|
});
|
377
|
+
const searchTable = (variables) => fetch$1({
|
378
|
+
url: "/db/{dbBranchName}/tables/{tableName}/search",
|
379
|
+
method: "post",
|
380
|
+
...variables
|
381
|
+
});
|
369
382
|
const searchBranch = (variables) => fetch$1({
|
370
383
|
url: "/db/{dbBranchName}/search",
|
371
384
|
method: "post",
|
@@ -429,6 +442,7 @@ const operationsByTag = {
|
|
429
442
|
getRecord,
|
430
443
|
bulkInsertTableRecords,
|
431
444
|
queryTable,
|
445
|
+
searchTable,
|
432
446
|
searchBranch
|
433
447
|
}
|
434
448
|
};
|
@@ -884,6 +898,13 @@ class RecordsApi {
|
|
884
898
|
...this.extraProps
|
885
899
|
});
|
886
900
|
}
|
901
|
+
searchTable(workspace, database, branch, tableName, query) {
|
902
|
+
return operationsByTag.records.searchTable({
|
903
|
+
pathParams: { workspace, dbBranchName: `${database}:${branch}`, tableName },
|
904
|
+
body: query,
|
905
|
+
...this.extraProps
|
906
|
+
});
|
907
|
+
}
|
887
908
|
searchBranch(workspace, database, branch, query) {
|
888
909
|
return operationsByTag.records.searchBranch({
|
889
910
|
pathParams: { workspace, dbBranchName: `${database}:${branch}` },
|
@@ -950,6 +971,9 @@ const PAGINATION_MAX_SIZE = 200;
|
|
950
971
|
const PAGINATION_DEFAULT_SIZE = 200;
|
951
972
|
const PAGINATION_MAX_OFFSET = 800;
|
952
973
|
const PAGINATION_DEFAULT_OFFSET = 0;
|
974
|
+
function isCursorPaginationOptions(options) {
|
975
|
+
return isDefined(options) && (isDefined(options.first) || isDefined(options.last) || isDefined(options.after) || isDefined(options.before));
|
976
|
+
}
|
953
977
|
|
954
978
|
var __accessCheck$5 = (obj, member, msg) => {
|
955
979
|
if (!member.has(obj))
|
@@ -971,7 +995,7 @@ var __privateSet$4 = (obj, member, value, setter) => {
|
|
971
995
|
};
|
972
996
|
var _table$1, _repository, _data;
|
973
997
|
const _Query = class {
|
974
|
-
constructor(repository, table, data,
|
998
|
+
constructor(repository, table, data, rawParent) {
|
975
999
|
__privateAdd$5(this, _table$1, void 0);
|
976
1000
|
__privateAdd$5(this, _repository, void 0);
|
977
1001
|
__privateAdd$5(this, _data, { filter: {} });
|
@@ -983,6 +1007,7 @@ const _Query = class {
|
|
983
1007
|
} else {
|
984
1008
|
__privateSet$4(this, _repository, this);
|
985
1009
|
}
|
1010
|
+
const parent = cleanParent(data, rawParent);
|
986
1011
|
__privateGet$5(this, _data).filter = data.filter ?? parent?.filter ?? {};
|
987
1012
|
__privateGet$5(this, _data).filter.$any = data.filter?.$any ?? parent?.filter?.$any;
|
988
1013
|
__privateGet$5(this, _data).filter.$all = data.filter?.$all ?? parent?.filter?.$all;
|
@@ -1054,13 +1079,13 @@ const _Query = class {
|
|
1054
1079
|
}
|
1055
1080
|
async *getIterator(options = {}) {
|
1056
1081
|
const { batchSize = 1 } = options;
|
1057
|
-
let
|
1058
|
-
let
|
1059
|
-
|
1060
|
-
|
1061
|
-
|
1062
|
-
|
1063
|
-
|
1082
|
+
let page = await this.getPaginated({ ...options, pagination: { size: batchSize, offset: 0 } });
|
1083
|
+
let more = page.hasNextPage();
|
1084
|
+
yield page.records;
|
1085
|
+
while (more) {
|
1086
|
+
page = await page.nextPage();
|
1087
|
+
more = page.hasNextPage();
|
1088
|
+
yield page.records;
|
1064
1089
|
}
|
1065
1090
|
}
|
1066
1091
|
async getMany(options = {}) {
|
@@ -1077,7 +1102,7 @@ const _Query = class {
|
|
1077
1102
|
}
|
1078
1103
|
async getFirst(options = {}) {
|
1079
1104
|
const records = await this.getMany({ ...options, pagination: { size: 1 } });
|
1080
|
-
return records[0]
|
1105
|
+
return records[0] ?? null;
|
1081
1106
|
}
|
1082
1107
|
cache(ttl) {
|
1083
1108
|
return new _Query(__privateGet$5(this, _repository), __privateGet$5(this, _table$1), { cache: ttl }, __privateGet$5(this, _data));
|
@@ -1102,12 +1127,20 @@ let Query = _Query;
|
|
1102
1127
|
_table$1 = new WeakMap();
|
1103
1128
|
_repository = new WeakMap();
|
1104
1129
|
_data = new WeakMap();
|
1130
|
+
function cleanParent(data, parent) {
|
1131
|
+
if (isCursorPaginationOptions(data.pagination)) {
|
1132
|
+
return { ...parent, sorting: void 0, filter: void 0 };
|
1133
|
+
}
|
1134
|
+
return parent;
|
1135
|
+
}
|
1105
1136
|
|
1106
1137
|
function isIdentifiable(x) {
|
1107
1138
|
return isObject(x) && isString(x?.id);
|
1108
1139
|
}
|
1109
1140
|
function isXataRecord(x) {
|
1110
|
-
|
1141
|
+
const record = x;
|
1142
|
+
const metadata = record?.getMetadata();
|
1143
|
+
return isIdentifiable(x) && isObject(metadata) && typeof metadata.version === "number";
|
1111
1144
|
}
|
1112
1145
|
|
1113
1146
|
function isSortFilterString(value) {
|
@@ -1184,6 +1217,8 @@ class RestRepository extends Query {
|
|
1184
1217
|
}
|
1185
1218
|
async create(a, b) {
|
1186
1219
|
if (Array.isArray(a)) {
|
1220
|
+
if (a.length === 0)
|
1221
|
+
return [];
|
1187
1222
|
const records = await __privateMethod$2(this, _bulkInsertTableRecords, bulkInsertTableRecords_fn).call(this, a);
|
1188
1223
|
await Promise.all(records.map((record) => __privateMethod$2(this, _setCacheRecord, setCacheRecord_fn).call(this, record)));
|
1189
1224
|
return records;
|
@@ -1209,27 +1244,36 @@ class RestRepository extends Query {
|
|
1209
1244
|
}
|
1210
1245
|
throw new Error("Invalid arguments for create method");
|
1211
1246
|
}
|
1212
|
-
async read(
|
1213
|
-
|
1214
|
-
|
1215
|
-
|
1216
|
-
|
1217
|
-
|
1218
|
-
|
1219
|
-
|
1220
|
-
|
1221
|
-
|
1222
|
-
const
|
1223
|
-
|
1224
|
-
|
1225
|
-
|
1226
|
-
|
1247
|
+
async read(a) {
|
1248
|
+
if (Array.isArray(a)) {
|
1249
|
+
if (a.length === 0)
|
1250
|
+
return [];
|
1251
|
+
return this.getAll({ filter: { id: { $any: a } } });
|
1252
|
+
}
|
1253
|
+
if (isString(a)) {
|
1254
|
+
const cacheRecord = await __privateMethod$2(this, _getCacheRecord, getCacheRecord_fn).call(this, a);
|
1255
|
+
if (cacheRecord)
|
1256
|
+
return cacheRecord;
|
1257
|
+
const fetchProps = await __privateGet$4(this, _getFetchProps).call(this);
|
1258
|
+
try {
|
1259
|
+
const response = await getRecord({
|
1260
|
+
pathParams: { workspace: "{workspaceId}", dbBranchName: "{dbBranch}", tableName: __privateGet$4(this, _table), recordId: a },
|
1261
|
+
...fetchProps
|
1262
|
+
});
|
1263
|
+
const schema = await __privateMethod$2(this, _getSchema$1, getSchema_fn$1).call(this);
|
1264
|
+
return initObject(this.db, schema, __privateGet$4(this, _table), response);
|
1265
|
+
} catch (e) {
|
1266
|
+
if (isObject(e) && e.status === 404) {
|
1267
|
+
return null;
|
1268
|
+
}
|
1269
|
+
throw e;
|
1227
1270
|
}
|
1228
|
-
throw e;
|
1229
1271
|
}
|
1230
1272
|
}
|
1231
1273
|
async update(a, b) {
|
1232
1274
|
if (Array.isArray(a)) {
|
1275
|
+
if (a.length === 0)
|
1276
|
+
return [];
|
1233
1277
|
if (a.length > 100) {
|
1234
1278
|
console.warn("Bulk update operation is not optimized in the Xata API yet, this request might be slow");
|
1235
1279
|
}
|
@@ -1251,6 +1295,8 @@ class RestRepository extends Query {
|
|
1251
1295
|
}
|
1252
1296
|
async createOrUpdate(a, b) {
|
1253
1297
|
if (Array.isArray(a)) {
|
1298
|
+
if (a.length === 0)
|
1299
|
+
return [];
|
1254
1300
|
if (a.length > 100) {
|
1255
1301
|
console.warn("Bulk update operation is not optimized in the Xata API yet, this request might be slow");
|
1256
1302
|
}
|
@@ -1272,6 +1318,8 @@ class RestRepository extends Query {
|
|
1272
1318
|
}
|
1273
1319
|
async delete(a) {
|
1274
1320
|
if (Array.isArray(a)) {
|
1321
|
+
if (a.length === 0)
|
1322
|
+
return;
|
1275
1323
|
if (a.length > 100) {
|
1276
1324
|
console.warn("Bulk delete operation is not optimized in the Xata API yet, this request might be slow");
|
1277
1325
|
}
|
@@ -1292,9 +1340,14 @@ class RestRepository extends Query {
|
|
1292
1340
|
}
|
1293
1341
|
async search(query, options = {}) {
|
1294
1342
|
const fetchProps = await __privateGet$4(this, _getFetchProps).call(this);
|
1295
|
-
const { records } = await
|
1296
|
-
pathParams: { workspace: "{workspaceId}", dbBranchName: "{dbBranch}" },
|
1297
|
-
body: {
|
1343
|
+
const { records } = await searchTable({
|
1344
|
+
pathParams: { workspace: "{workspaceId}", dbBranchName: "{dbBranch}", tableName: __privateGet$4(this, _table) },
|
1345
|
+
body: {
|
1346
|
+
query,
|
1347
|
+
fuzziness: options.fuzziness,
|
1348
|
+
highlight: options.highlight,
|
1349
|
+
filter: options.filter
|
1350
|
+
},
|
1298
1351
|
...fetchProps
|
1299
1352
|
});
|
1300
1353
|
const schema = await __privateMethod$2(this, _getSchema$1, getSchema_fn$1).call(this);
|
@@ -1307,7 +1360,7 @@ class RestRepository extends Query {
|
|
1307
1360
|
const data = query.getQueryOptions();
|
1308
1361
|
const body = {
|
1309
1362
|
filter: Object.values(data.filter ?? {}).some(Boolean) ? data.filter : void 0,
|
1310
|
-
sort: data.sort ? buildSortFilter(data.sort) : void 0,
|
1363
|
+
sort: data.sort !== void 0 ? buildSortFilter(data.sort) : void 0,
|
1311
1364
|
page: data.pagination,
|
1312
1365
|
columns: data.columns
|
1313
1366
|
};
|
@@ -1477,7 +1530,8 @@ const transformObjectLinks = (object) => {
|
|
1477
1530
|
};
|
1478
1531
|
const initObject = (db, schema, table, object) => {
|
1479
1532
|
const result = {};
|
1480
|
-
|
1533
|
+
const { xata, ...rest } = object ?? {};
|
1534
|
+
Object.assign(result, rest);
|
1481
1535
|
const { columns } = schema.tables.find(({ name }) => name === table) ?? {};
|
1482
1536
|
if (!columns)
|
1483
1537
|
console.error(`Table ${table} not found in schema`);
|
@@ -1485,10 +1539,10 @@ const initObject = (db, schema, table, object) => {
|
|
1485
1539
|
const value = result[column.name];
|
1486
1540
|
switch (column.type) {
|
1487
1541
|
case "datetime": {
|
1488
|
-
const date = new Date(value);
|
1489
|
-
if (isNaN(date.getTime())) {
|
1542
|
+
const date = value !== void 0 ? new Date(value) : void 0;
|
1543
|
+
if (date && isNaN(date.getTime())) {
|
1490
1544
|
console.error(`Failed to parse date ${value} for field ${column.name}`);
|
1491
|
-
} else {
|
1545
|
+
} else if (date) {
|
1492
1546
|
result[column.name] = date;
|
1493
1547
|
}
|
1494
1548
|
break;
|
@@ -1497,7 +1551,7 @@ const initObject = (db, schema, table, object) => {
|
|
1497
1551
|
const linkTable = column.link?.table;
|
1498
1552
|
if (!linkTable) {
|
1499
1553
|
console.error(`Failed to parse link for field ${column.name}`);
|
1500
|
-
} else if (
|
1554
|
+
} else if (isObject(value)) {
|
1501
1555
|
result[column.name] = initObject(db, schema, linkTable, value);
|
1502
1556
|
}
|
1503
1557
|
break;
|
@@ -1513,7 +1567,10 @@ const initObject = (db, schema, table, object) => {
|
|
1513
1567
|
result.delete = function() {
|
1514
1568
|
return db[table].delete(result["id"]);
|
1515
1569
|
};
|
1516
|
-
|
1570
|
+
result.getMetadata = function() {
|
1571
|
+
return xata;
|
1572
|
+
};
|
1573
|
+
for (const prop of ["read", "update", "delete", "getMetadata"]) {
|
1517
1574
|
Object.defineProperty(result, prop, { enumerable: false });
|
1518
1575
|
}
|
1519
1576
|
Object.freeze(result);
|
@@ -1623,7 +1680,7 @@ class SchemaPlugin extends XataPlugin {
|
|
1623
1680
|
get: (_target, table) => {
|
1624
1681
|
if (!isString(table))
|
1625
1682
|
throw new Error("Invalid table name");
|
1626
|
-
if (
|
1683
|
+
if (__privateGet$2(this, _tables)[table] === void 0) {
|
1627
1684
|
__privateGet$2(this, _tables)[table] = new RestRepository({ db, pluginOptions, table });
|
1628
1685
|
}
|
1629
1686
|
return __privateGet$2(this, _tables)[table];
|
@@ -1695,10 +1752,10 @@ _schema = new WeakMap();
|
|
1695
1752
|
_search = new WeakSet();
|
1696
1753
|
search_fn = async function(query, options, getFetchProps) {
|
1697
1754
|
const fetchProps = await getFetchProps();
|
1698
|
-
const { tables, fuzziness } = options ?? {};
|
1755
|
+
const { tables, fuzziness, highlight } = options ?? {};
|
1699
1756
|
const { records } = await searchBranch({
|
1700
1757
|
pathParams: { workspace: "{workspaceId}", dbBranchName: "{dbBranch}" },
|
1701
|
-
body: { tables, query, fuzziness },
|
1758
|
+
body: { tables, query, fuzziness, highlight },
|
1702
1759
|
...fetchProps
|
1703
1760
|
});
|
1704
1761
|
return records;
|
@@ -1726,30 +1783,39 @@ const envBranchNames = [
|
|
1726
1783
|
"CF_PAGES_BRANCH",
|
1727
1784
|
"BRANCH"
|
1728
1785
|
];
|
1729
|
-
const defaultBranch = "main";
|
1730
1786
|
async function getCurrentBranchName(options) {
|
1731
|
-
const env =
|
1732
|
-
if (env)
|
1733
|
-
|
1734
|
-
|
1735
|
-
|
1736
|
-
|
1737
|
-
|
1738
|
-
|
1739
|
-
|
1740
|
-
return defaultBranch;
|
1787
|
+
const env = getBranchByEnvVariable();
|
1788
|
+
if (env) {
|
1789
|
+
const details = await getDatabaseBranch(env, options);
|
1790
|
+
if (details)
|
1791
|
+
return env;
|
1792
|
+
console.warn(`Branch ${env} not found in Xata. Ignoring...`);
|
1793
|
+
}
|
1794
|
+
const gitBranch = await getGitBranch();
|
1795
|
+
return resolveXataBranch(gitBranch, options);
|
1741
1796
|
}
|
1742
1797
|
async function getCurrentBranchDetails(options) {
|
1743
|
-
const
|
1744
|
-
|
1745
|
-
|
1746
|
-
|
1747
|
-
|
1748
|
-
|
1749
|
-
|
1750
|
-
|
1751
|
-
|
1752
|
-
|
1798
|
+
const branch = await getCurrentBranchName(options);
|
1799
|
+
return getDatabaseBranch(branch, options);
|
1800
|
+
}
|
1801
|
+
async function resolveXataBranch(gitBranch, options) {
|
1802
|
+
const databaseURL = options?.databaseURL || getDatabaseURL();
|
1803
|
+
const apiKey = options?.apiKey || getAPIKey();
|
1804
|
+
if (!databaseURL)
|
1805
|
+
throw new Error("A databaseURL was not defined. Either set the XATA_DATABASE_URL env variable or pass the argument explicitely");
|
1806
|
+
if (!apiKey)
|
1807
|
+
throw new Error("An API key was not defined. Either set the XATA_API_KEY env variable or pass the argument explicitely");
|
1808
|
+
const [protocol, , host, , dbName] = databaseURL.split("/");
|
1809
|
+
const [workspace] = host.split(".");
|
1810
|
+
const { branch } = await resolveBranch({
|
1811
|
+
apiKey,
|
1812
|
+
apiUrl: databaseURL,
|
1813
|
+
fetchImpl: getFetchImplementation(options?.fetchImpl),
|
1814
|
+
workspacesApiUrl: `${protocol}//${host}`,
|
1815
|
+
pathParams: { dbName, workspace },
|
1816
|
+
queryParams: { gitBranch, fallbackBranch: getEnvVariable("XATA_FALLBACK_BRANCH") }
|
1817
|
+
});
|
1818
|
+
return branch;
|
1753
1819
|
}
|
1754
1820
|
async function getDatabaseBranch(branch, options) {
|
1755
1821
|
const databaseURL = options?.databaseURL || getDatabaseURL();
|
@@ -1838,7 +1904,7 @@ const buildClient = (plugins) => {
|
|
1838
1904
|
this.db = db;
|
1839
1905
|
this.search = search;
|
1840
1906
|
for (const [key, namespace] of Object.entries(plugins ?? {})) {
|
1841
|
-
if (
|
1907
|
+
if (namespace === void 0)
|
1842
1908
|
continue;
|
1843
1909
|
const result = namespace.build(pluginOptions);
|
1844
1910
|
if (result instanceof Promise) {
|
@@ -1855,7 +1921,7 @@ const buildClient = (plugins) => {
|
|
1855
1921
|
const databaseURL = options?.databaseURL || getDatabaseURL();
|
1856
1922
|
const apiKey = options?.apiKey || getAPIKey();
|
1857
1923
|
const cache = options?.cache ?? new SimpleCache({ cacheRecords: false, defaultQueryTTL: 0 });
|
1858
|
-
const branch = async () => options?.branch ? await __privateMethod(this, _evaluateBranch, evaluateBranch_fn).call(this, options.branch) : await getCurrentBranchName({ apiKey, databaseURL, fetchImpl: options?.fetch });
|
1924
|
+
const branch = async () => options?.branch !== void 0 ? await __privateMethod(this, _evaluateBranch, evaluateBranch_fn).call(this, options.branch) : await getCurrentBranchName({ apiKey, databaseURL, fetchImpl: options?.fetch });
|
1859
1925
|
if (!databaseURL || !apiKey) {
|
1860
1926
|
throw new Error("Options databaseURL and apiKey are required");
|
1861
1927
|
}
|
@@ -1882,7 +1948,7 @@ const buildClient = (plugins) => {
|
|
1882
1948
|
}, _evaluateBranch = new WeakSet(), evaluateBranch_fn = async function(param) {
|
1883
1949
|
if (__privateGet(this, _branch))
|
1884
1950
|
return __privateGet(this, _branch);
|
1885
|
-
if (
|
1951
|
+
if (param === void 0)
|
1886
1952
|
return void 0;
|
1887
1953
|
const strategies = Array.isArray(param) ? [...param] : [param];
|
1888
1954
|
const evaluateBranch = async (strategy) => {
|
@@ -1907,5 +1973,5 @@ class XataError extends Error {
|
|
1907
1973
|
}
|
1908
1974
|
}
|
1909
1975
|
|
1910
|
-
export { BaseClient, operationsByTag as Operations, PAGINATION_DEFAULT_OFFSET, PAGINATION_DEFAULT_SIZE, PAGINATION_MAX_OFFSET, PAGINATION_MAX_SIZE, Page, Query, Repository, RestRepository, SchemaPlugin, SearchPlugin, SimpleCache, XataApiClient, XataApiPlugin, XataError, XataPlugin, 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 };
|
1976
|
+
export { BaseClient, operationsByTag as Operations, PAGINATION_DEFAULT_OFFSET, PAGINATION_DEFAULT_SIZE, PAGINATION_MAX_OFFSET, PAGINATION_MAX_SIZE, Page, Query, Repository, RestRepository, SchemaPlugin, SearchPlugin, SimpleCache, XataApiClient, XataApiPlugin, XataError, XataPlugin, 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 };
|
1911
1977
|
//# sourceMappingURL=index.mjs.map
|