@xata.io/client 0.19.0 → 0.20.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/CHANGELOG.md +22 -0
- package/README.md +2 -2
- package/Usage.md +5 -5
- package/dist/index.cjs +102 -71
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +365 -167
- package/dist/index.mjs +97 -67
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- /package/{rollup.config.js → rollup.config.mjs} +0 -0
package/dist/index.mjs
CHANGED
@@ -94,6 +94,25 @@ function getEnvironment() {
|
|
94
94
|
fallbackBranch: getGlobalFallbackBranch()
|
95
95
|
};
|
96
96
|
}
|
97
|
+
function getEnableBrowserVariable() {
|
98
|
+
try {
|
99
|
+
if (isObject(process) && isObject(process.env) && process.env.XATA_ENABLE_BROWSER !== void 0) {
|
100
|
+
return process.env.XATA_ENABLE_BROWSER === "true";
|
101
|
+
}
|
102
|
+
} catch (err) {
|
103
|
+
}
|
104
|
+
try {
|
105
|
+
if (isObject(Deno) && isObject(Deno.env) && Deno.env.get("XATA_ENABLE_BROWSER") !== void 0) {
|
106
|
+
return Deno.env.get("XATA_ENABLE_BROWSER") === "true";
|
107
|
+
}
|
108
|
+
} catch (err) {
|
109
|
+
}
|
110
|
+
try {
|
111
|
+
return XATA_ENABLE_BROWSER === true || XATA_ENABLE_BROWSER === "true";
|
112
|
+
} catch (err) {
|
113
|
+
return void 0;
|
114
|
+
}
|
115
|
+
}
|
97
116
|
function getGlobalApiKey() {
|
98
117
|
try {
|
99
118
|
return XATA_API_KEY;
|
@@ -164,7 +183,7 @@ function getFetchImplementation(userFetch) {
|
|
164
183
|
return fetchImpl;
|
165
184
|
}
|
166
185
|
|
167
|
-
const VERSION = "0.
|
186
|
+
const VERSION = "0.20.0";
|
168
187
|
|
169
188
|
class ErrorWithCause extends Error {
|
170
189
|
constructor(message, options) {
|
@@ -254,7 +273,8 @@ async function fetch$1({
|
|
254
273
|
trace,
|
255
274
|
signal,
|
256
275
|
clientID,
|
257
|
-
sessionID
|
276
|
+
sessionID,
|
277
|
+
fetchOptions = {}
|
258
278
|
}) {
|
259
279
|
return trace(
|
260
280
|
`${method.toUpperCase()} ${path}`,
|
@@ -267,6 +287,7 @@ async function fetch$1({
|
|
267
287
|
[TraceAttributes.HTTP_TARGET]: resolveUrl(path, queryParams, pathParams)
|
268
288
|
});
|
269
289
|
const response = await fetchImpl(url, {
|
290
|
+
...fetchOptions,
|
270
291
|
method: method.toUpperCase(),
|
271
292
|
body: body ? JSON.stringify(body) : void 0,
|
272
293
|
headers: {
|
@@ -316,32 +337,17 @@ function parseUrl(url) {
|
|
316
337
|
|
317
338
|
const dataPlaneFetch = async (options) => fetch$1({ ...options, endpoint: "dataPlane" });
|
318
339
|
|
319
|
-
const
|
320
|
-
url: "/dbs",
|
321
|
-
method: "get",
|
322
|
-
...variables,
|
323
|
-
signal
|
324
|
-
});
|
340
|
+
const dEPRECATEDgetDatabaseList = (variables, signal) => dataPlaneFetch({ url: "/dbs", method: "get", ...variables, signal });
|
325
341
|
const getBranchList = (variables, signal) => dataPlaneFetch({
|
326
342
|
url: "/dbs/{dbName}",
|
327
343
|
method: "get",
|
328
344
|
...variables,
|
329
345
|
signal
|
330
346
|
});
|
331
|
-
const
|
332
|
-
const
|
333
|
-
|
334
|
-
|
335
|
-
...variables,
|
336
|
-
signal
|
337
|
-
});
|
338
|
-
const getDatabaseMetadata = (variables, signal) => dataPlaneFetch({
|
339
|
-
url: "/dbs/{dbName}/metadata",
|
340
|
-
method: "get",
|
341
|
-
...variables,
|
342
|
-
signal
|
343
|
-
});
|
344
|
-
const updateDatabaseMetadata = (variables, signal) => dataPlaneFetch({ url: "/dbs/{dbName}/metadata", method: "patch", ...variables, signal });
|
347
|
+
const dEPRECATEDcreateDatabase = (variables, signal) => dataPlaneFetch({ url: "/dbs/{dbName}", method: "put", ...variables, signal });
|
348
|
+
const dEPRECATEDdeleteDatabase = (variables, signal) => dataPlaneFetch({ url: "/dbs/{dbName}", method: "delete", ...variables, signal });
|
349
|
+
const dEPRECATEDgetDatabaseMetadata = (variables, signal) => dataPlaneFetch({ url: "/dbs/{dbName}/metadata", method: "get", ...variables, signal });
|
350
|
+
const dEPRECATEDupdateDatabaseMetadata = (variables, signal) => dataPlaneFetch({ url: "/dbs/{dbName}/metadata", method: "patch", ...variables, signal });
|
345
351
|
const getBranchDetails = (variables, signal) => dataPlaneFetch({
|
346
352
|
url: "/db/{dbBranchName}",
|
347
353
|
method: "get",
|
@@ -380,6 +386,7 @@ const resolveBranch = (variables, signal) => dataPlaneFetch({ url: "/dbs/{dbName
|
|
380
386
|
const getBranchMigrationHistory = (variables, signal) => dataPlaneFetch({ url: "/db/{dbBranchName}/migrations", method: "get", ...variables, signal });
|
381
387
|
const getBranchMigrationPlan = (variables, signal) => dataPlaneFetch({ url: "/db/{dbBranchName}/migrations/plan", method: "post", ...variables, signal });
|
382
388
|
const executeBranchMigrationPlan = (variables, signal) => dataPlaneFetch({ url: "/db/{dbBranchName}/migrations/execute", method: "post", ...variables, signal });
|
389
|
+
const branchTransaction = (variables, signal) => dataPlaneFetch({ url: "/db/{dbBranchName}/transaction", method: "post", ...variables, signal });
|
383
390
|
const queryMigrationRequests = (variables, signal) => dataPlaneFetch({ url: "/dbs/{dbName}/migrations/query", method: "post", ...variables, signal });
|
384
391
|
const createMigrationRequest = (variables, signal) => dataPlaneFetch({ url: "/dbs/{dbName}/migrations", method: "post", ...variables, signal });
|
385
392
|
const getMigrationRequest = (variables, signal) => dataPlaneFetch({
|
@@ -479,7 +486,13 @@ const searchTable = (variables, signal) => dataPlaneFetch({
|
|
479
486
|
const summarizeTable = (variables, signal) => dataPlaneFetch({ url: "/db/{dbBranchName}/tables/{tableName}/summarize", method: "post", ...variables, signal });
|
480
487
|
const aggregateTable = (variables, signal) => dataPlaneFetch({ url: "/db/{dbBranchName}/tables/{tableName}/aggregate", method: "post", ...variables, signal });
|
481
488
|
const operationsByTag$2 = {
|
482
|
-
database: {
|
489
|
+
database: {
|
490
|
+
dEPRECATEDgetDatabaseList,
|
491
|
+
dEPRECATEDcreateDatabase,
|
492
|
+
dEPRECATEDdeleteDatabase,
|
493
|
+
dEPRECATEDgetDatabaseMetadata,
|
494
|
+
dEPRECATEDupdateDatabaseMetadata
|
495
|
+
},
|
483
496
|
branch: {
|
484
497
|
getBranchList,
|
485
498
|
getBranchDetails,
|
@@ -504,6 +517,16 @@ const operationsByTag$2 = {
|
|
504
517
|
previewBranchSchemaEdit,
|
505
518
|
applyBranchSchemaEdit
|
506
519
|
},
|
520
|
+
records: {
|
521
|
+
branchTransaction,
|
522
|
+
insertRecord,
|
523
|
+
getRecord,
|
524
|
+
insertRecordWithID,
|
525
|
+
updateRecordWithID,
|
526
|
+
upsertRecordWithID,
|
527
|
+
deleteRecord,
|
528
|
+
bulkInsertTableRecords
|
529
|
+
},
|
507
530
|
migrationRequests: {
|
508
531
|
queryMigrationRequests,
|
509
532
|
createMigrationRequest,
|
@@ -526,15 +549,6 @@ const operationsByTag$2 = {
|
|
526
549
|
updateColumn,
|
527
550
|
deleteColumn
|
528
551
|
},
|
529
|
-
records: {
|
530
|
-
insertRecord,
|
531
|
-
getRecord,
|
532
|
-
insertRecordWithID,
|
533
|
-
updateRecordWithID,
|
534
|
-
upsertRecordWithID,
|
535
|
-
deleteRecord,
|
536
|
-
bulkInsertTableRecords
|
537
|
-
},
|
538
552
|
searchAndFilter: { queryTable, searchBranch, searchTable, summarizeTable, aggregateTable }
|
539
553
|
};
|
540
554
|
|
@@ -619,16 +633,21 @@ const updateWorkspaceMemberInvite = (variables, signal) => controlPlaneFetch({ u
|
|
619
633
|
const cancelWorkspaceMemberInvite = (variables, signal) => controlPlaneFetch({ url: "/workspaces/{workspaceId}/invites/{inviteId}", method: "delete", ...variables, signal });
|
620
634
|
const acceptWorkspaceMemberInvite = (variables, signal) => controlPlaneFetch({ url: "/workspaces/{workspaceId}/invites/{inviteKey}/accept", method: "post", ...variables, signal });
|
621
635
|
const resendWorkspaceMemberInvite = (variables, signal) => controlPlaneFetch({ url: "/workspaces/{workspaceId}/invites/{inviteId}/resend", method: "post", ...variables, signal });
|
622
|
-
const
|
623
|
-
|
624
|
-
|
636
|
+
const getDatabaseList = (variables, signal) => controlPlaneFetch({
|
637
|
+
url: "/workspaces/{workspaceId}/dbs",
|
638
|
+
method: "get",
|
639
|
+
...variables,
|
640
|
+
signal
|
641
|
+
});
|
642
|
+
const createDatabase = (variables, signal) => controlPlaneFetch({ url: "/workspaces/{workspaceId}/dbs/{dbName}", method: "put", ...variables, signal });
|
643
|
+
const deleteDatabase = (variables, signal) => controlPlaneFetch({
|
625
644
|
url: "/workspaces/{workspaceId}/dbs/{dbName}",
|
626
645
|
method: "delete",
|
627
646
|
...variables,
|
628
647
|
signal
|
629
648
|
});
|
630
|
-
const
|
631
|
-
const
|
649
|
+
const getDatabaseMetadata = (variables, signal) => controlPlaneFetch({ url: "/workspaces/{workspaceId}/dbs/{dbName}", method: "get", ...variables, signal });
|
650
|
+
const updateDatabaseMetadata = (variables, signal) => controlPlaneFetch({ url: "/workspaces/{workspaceId}/dbs/{dbName}", method: "patch", ...variables, signal });
|
632
651
|
const listRegions = (variables, signal) => controlPlaneFetch({
|
633
652
|
url: "/workspaces/{workspaceId}/regions",
|
634
653
|
method: "get",
|
@@ -656,11 +675,11 @@ const operationsByTag$1 = {
|
|
656
675
|
resendWorkspaceMemberInvite
|
657
676
|
},
|
658
677
|
databases: {
|
659
|
-
|
660
|
-
|
661
|
-
|
662
|
-
|
663
|
-
|
678
|
+
getDatabaseList,
|
679
|
+
createDatabase,
|
680
|
+
deleteDatabase,
|
681
|
+
getDatabaseMetadata,
|
682
|
+
updateDatabaseMetadata,
|
664
683
|
listRegions
|
665
684
|
}
|
666
685
|
};
|
@@ -1361,11 +1380,12 @@ class SearchAndFilterApi {
|
|
1361
1380
|
filter,
|
1362
1381
|
sort,
|
1363
1382
|
page,
|
1364
|
-
columns
|
1383
|
+
columns,
|
1384
|
+
consistency
|
1365
1385
|
}) {
|
1366
1386
|
return operationsByTag.searchAndFilter.queryTable({
|
1367
1387
|
pathParams: { workspace, region, dbBranchName: `${database}:${branch}`, tableName: table },
|
1368
|
-
body: { filter, sort, page, columns },
|
1388
|
+
body: { filter, sort, page, columns, consistency },
|
1369
1389
|
...this.extraProps
|
1370
1390
|
});
|
1371
1391
|
}
|
@@ -1417,11 +1437,12 @@ class SearchAndFilterApi {
|
|
1417
1437
|
summaries,
|
1418
1438
|
sort,
|
1419
1439
|
summariesFilter,
|
1420
|
-
page
|
1440
|
+
page,
|
1441
|
+
consistency
|
1421
1442
|
}) {
|
1422
1443
|
return operationsByTag.searchAndFilter.summarizeTable({
|
1423
1444
|
pathParams: { workspace, region, dbBranchName: `${database}:${branch}`, tableName: table },
|
1424
|
-
body: { filter, columns, summaries, sort, summariesFilter, page },
|
1445
|
+
body: { filter, columns, summaries, sort, summariesFilter, page, consistency },
|
1425
1446
|
...this.extraProps
|
1426
1447
|
});
|
1427
1448
|
}
|
@@ -1672,7 +1693,7 @@ class DatabaseApi {
|
|
1672
1693
|
this.extraProps = extraProps;
|
1673
1694
|
}
|
1674
1695
|
getDatabaseList({ workspace }) {
|
1675
|
-
return operationsByTag.databases.
|
1696
|
+
return operationsByTag.databases.getDatabaseList({
|
1676
1697
|
pathParams: { workspaceId: workspace },
|
1677
1698
|
...this.extraProps
|
1678
1699
|
});
|
@@ -1682,7 +1703,7 @@ class DatabaseApi {
|
|
1682
1703
|
database,
|
1683
1704
|
data
|
1684
1705
|
}) {
|
1685
|
-
return operationsByTag.databases.
|
1706
|
+
return operationsByTag.databases.createDatabase({
|
1686
1707
|
pathParams: { workspaceId: workspace, dbName: database },
|
1687
1708
|
body: data,
|
1688
1709
|
...this.extraProps
|
@@ -1692,7 +1713,7 @@ class DatabaseApi {
|
|
1692
1713
|
workspace,
|
1693
1714
|
database
|
1694
1715
|
}) {
|
1695
|
-
return operationsByTag.databases.
|
1716
|
+
return operationsByTag.databases.deleteDatabase({
|
1696
1717
|
pathParams: { workspaceId: workspace, dbName: database },
|
1697
1718
|
...this.extraProps
|
1698
1719
|
});
|
@@ -1701,7 +1722,7 @@ class DatabaseApi {
|
|
1701
1722
|
workspace,
|
1702
1723
|
database
|
1703
1724
|
}) {
|
1704
|
-
return operationsByTag.databases.
|
1725
|
+
return operationsByTag.databases.getDatabaseMetadata({
|
1705
1726
|
pathParams: { workspaceId: workspace, dbName: database },
|
1706
1727
|
...this.extraProps
|
1707
1728
|
});
|
@@ -1711,7 +1732,7 @@ class DatabaseApi {
|
|
1711
1732
|
database,
|
1712
1733
|
metadata
|
1713
1734
|
}) {
|
1714
|
-
return operationsByTag.databases.
|
1735
|
+
return operationsByTag.databases.updateDatabaseMetadata({
|
1715
1736
|
pathParams: { workspaceId: workspace, dbName: database },
|
1716
1737
|
body: metadata,
|
1717
1738
|
...this.extraProps
|
@@ -1781,11 +1802,11 @@ class Page {
|
|
1781
1802
|
async previousPage(size, offset) {
|
1782
1803
|
return __privateGet$6(this, _query).getPaginated({ pagination: { size, offset, before: this.meta.page.cursor } });
|
1783
1804
|
}
|
1784
|
-
async
|
1785
|
-
return __privateGet$6(this, _query).getPaginated({ pagination: { size, offset,
|
1805
|
+
async startPage(size, offset) {
|
1806
|
+
return __privateGet$6(this, _query).getPaginated({ pagination: { size, offset, start: this.meta.page.cursor } });
|
1786
1807
|
}
|
1787
|
-
async
|
1788
|
-
return __privateGet$6(this, _query).getPaginated({ pagination: { size, offset,
|
1808
|
+
async endPage(size, offset) {
|
1809
|
+
return __privateGet$6(this, _query).getPaginated({ pagination: { size, offset, end: this.meta.page.cursor } });
|
1789
1810
|
}
|
1790
1811
|
hasNextPage() {
|
1791
1812
|
return this.meta.page.more;
|
@@ -1797,7 +1818,7 @@ const PAGINATION_DEFAULT_SIZE = 20;
|
|
1797
1818
|
const PAGINATION_MAX_OFFSET = 800;
|
1798
1819
|
const PAGINATION_DEFAULT_OFFSET = 0;
|
1799
1820
|
function isCursorPaginationOptions(options) {
|
1800
|
-
return isDefined(options) && (isDefined(options.
|
1821
|
+
return isDefined(options) && (isDefined(options.start) || isDefined(options.end) || isDefined(options.after) || isDefined(options.before));
|
1801
1822
|
}
|
1802
1823
|
const _RecordArray = class extends Array {
|
1803
1824
|
constructor(...args) {
|
@@ -1829,12 +1850,12 @@ const _RecordArray = class extends Array {
|
|
1829
1850
|
const newPage = await __privateGet$6(this, _page).previousPage(size, offset);
|
1830
1851
|
return new _RecordArray(newPage);
|
1831
1852
|
}
|
1832
|
-
async
|
1833
|
-
const newPage = await __privateGet$6(this, _page).
|
1853
|
+
async startPage(size, offset) {
|
1854
|
+
const newPage = await __privateGet$6(this, _page).startPage(size, offset);
|
1834
1855
|
return new _RecordArray(newPage);
|
1835
1856
|
}
|
1836
|
-
async
|
1837
|
-
const newPage = await __privateGet$6(this, _page).
|
1857
|
+
async endPage(size, offset) {
|
1858
|
+
const newPage = await __privateGet$6(this, _page).endPage(size, offset);
|
1838
1859
|
return new _RecordArray(newPage);
|
1839
1860
|
}
|
1840
1861
|
hasNextPage() {
|
@@ -1891,6 +1912,7 @@ const _Query = class {
|
|
1891
1912
|
__privateGet$5(this, _data).columns = data.columns ?? parent?.columns;
|
1892
1913
|
__privateGet$5(this, _data).pagination = data.pagination ?? parent?.pagination;
|
1893
1914
|
__privateGet$5(this, _data).cache = data.cache ?? parent?.cache;
|
1915
|
+
__privateGet$5(this, _data).fetchOptions = data.fetchOptions ?? parent?.fetchOptions;
|
1894
1916
|
this.any = this.any.bind(this);
|
1895
1917
|
this.all = this.all.bind(this);
|
1896
1918
|
this.not = this.not.bind(this);
|
@@ -2018,15 +2040,15 @@ const _Query = class {
|
|
2018
2040
|
return new _Query(__privateGet$5(this, _repository), __privateGet$5(this, _table$1), { cache: ttl }, __privateGet$5(this, _data));
|
2019
2041
|
}
|
2020
2042
|
nextPage(size, offset) {
|
2021
|
-
return this.
|
2043
|
+
return this.startPage(size, offset);
|
2022
2044
|
}
|
2023
2045
|
previousPage(size, offset) {
|
2024
|
-
return this.
|
2046
|
+
return this.startPage(size, offset);
|
2025
2047
|
}
|
2026
|
-
|
2048
|
+
startPage(size, offset) {
|
2027
2049
|
return this.getPaginated({ pagination: { size, offset } });
|
2028
2050
|
}
|
2029
|
-
|
2051
|
+
endPage(size, offset) {
|
2030
2052
|
return this.getPaginated({ pagination: { size, offset, before: "end" } });
|
2031
2053
|
}
|
2032
2054
|
hasNextPage() {
|
@@ -2422,6 +2444,7 @@ class RestRepository extends Query {
|
|
2422
2444
|
page: data.pagination,
|
2423
2445
|
columns: data.columns ?? ["*"]
|
2424
2446
|
},
|
2447
|
+
fetchOptions: data.fetchOptions,
|
2425
2448
|
...fetchProps
|
2426
2449
|
});
|
2427
2450
|
const schemaTables = await __privateMethod$2(this, _getSchemaTables$1, getSchemaTables_fn$1).call(this);
|
@@ -2693,7 +2716,7 @@ const initObject = (db, schemaTables, table, object, selectedColumns) => {
|
|
2693
2716
|
result.getMetadata = function() {
|
2694
2717
|
return xata;
|
2695
2718
|
};
|
2696
|
-
for (const prop of ["read", "update", "delete", "getMetadata"]) {
|
2719
|
+
for (const prop of ["read", "update", "replace", "delete", "getMetadata"]) {
|
2697
2720
|
Object.defineProperty(result, prop, { enumerable: false });
|
2698
2721
|
}
|
2699
2722
|
Object.freeze(result);
|
@@ -3080,6 +3103,13 @@ const buildClient = (plugins) => {
|
|
3080
3103
|
return { databaseURL, branch };
|
3081
3104
|
}
|
3082
3105
|
}, _branch = new WeakMap(), _options = new WeakMap(), _parseOptions = new WeakSet(), parseOptions_fn = function(options) {
|
3106
|
+
const enableBrowser = options?.enableBrowser ?? getEnableBrowserVariable() ?? false;
|
3107
|
+
const isBrowser = typeof window !== "undefined";
|
3108
|
+
if (isBrowser && !enableBrowser) {
|
3109
|
+
throw new Error(
|
3110
|
+
"You are trying to use Xata from the browser, which is potentially a non-secure environment. If you understand the security concerns, such as leaking your credentials, pass `enableBrowser: true` to the client options to remove this error."
|
3111
|
+
);
|
3112
|
+
}
|
3083
3113
|
const fetch = getFetchImplementation(options?.fetch);
|
3084
3114
|
const databaseURL = options?.databaseURL || getDatabaseURL();
|
3085
3115
|
const apiKey = options?.apiKey || getAPIKey();
|
@@ -3092,7 +3122,7 @@ const buildClient = (plugins) => {
|
|
3092
3122
|
if (!databaseURL) {
|
3093
3123
|
throw new Error("Option databaseURL is required");
|
3094
3124
|
}
|
3095
|
-
return { fetch, databaseURL, apiKey, branch, cache, trace, clientID: generateUUID() };
|
3125
|
+
return { fetch, databaseURL, apiKey, branch, cache, trace, clientID: generateUUID(), enableBrowser };
|
3096
3126
|
}, _getFetchProps = new WeakSet(), getFetchProps_fn = async function({ fetch, apiKey, databaseURL, branch, trace, clientID }) {
|
3097
3127
|
const branchValue = await __privateMethod(this, _evaluateBranch, evaluateBranch_fn).call(this, branch);
|
3098
3128
|
if (!branchValue)
|
@@ -3219,5 +3249,5 @@ class XataError extends Error {
|
|
3219
3249
|
}
|
3220
3250
|
}
|
3221
3251
|
|
3222
|
-
export { BaseClient, operationsByTag as Operations, PAGINATION_DEFAULT_OFFSET, PAGINATION_DEFAULT_SIZE, PAGINATION_MAX_OFFSET, PAGINATION_MAX_SIZE, Page, Query, RecordArray, Repository, RestRepository, SchemaPlugin, SearchPlugin, Serializer, SimpleCache, XataApiClient, XataApiPlugin, XataError, XataPlugin, acceptWorkspaceMemberInvite, addGitBranchesEntry, addTableColumn, aggregateTable, applyBranchSchemaEdit, buildClient, buildWorkerRunner, bulkInsertTableRecords,
|
3252
|
+
export { BaseClient, operationsByTag as Operations, PAGINATION_DEFAULT_OFFSET, PAGINATION_DEFAULT_SIZE, PAGINATION_MAX_OFFSET, PAGINATION_MAX_SIZE, Page, Query, RecordArray, Repository, RestRepository, SchemaPlugin, SearchPlugin, Serializer, SimpleCache, XataApiClient, XataApiPlugin, XataError, XataPlugin, acceptWorkspaceMemberInvite, addGitBranchesEntry, addTableColumn, aggregateTable, applyBranchSchemaEdit, branchTransaction, buildClient, buildWorkerRunner, bulkInsertTableRecords, cancelWorkspaceMemberInvite, compareBranchSchemas, compareBranchWithUserSchema, compareMigrationRequest, contains, createBranch, createDatabase, createMigrationRequest, createTable, createUserAPIKey, createWorkspace, dEPRECATEDcreateDatabase, dEPRECATEDdeleteDatabase, dEPRECATEDgetDatabaseList, dEPRECATEDgetDatabaseMetadata, dEPRECATEDupdateDatabaseMetadata, deleteBranch, deleteColumn, deleteDatabase, deleteRecord, deleteTable, deleteUser, deleteUserAPIKey, deleteWorkspace, deserialize, endsWith, equals, executeBranchMigrationPlan, exists, ge, getAPIKey, getBranchDetails, getBranchList, getBranchMetadata, getBranchMigrationHistory, getBranchMigrationPlan, getBranchSchemaHistory, getBranchStats, getColumn, getCurrentBranchDetails, getCurrentBranchName, getDatabaseList, getDatabaseMetadata, getDatabaseURL, getGitBranchesMapping, getHostUrl, getMigrationRequest, getMigrationRequestIsMerged, getRecord, getTableColumns, getTableSchema, getUser, getUserAPIKeys, getWorkspace, getWorkspaceMembersList, getWorkspacesList, greaterEquals, greaterThan, greaterThanEquals, gt, gte, includes, includesAll, includesAny, includesNone, insertRecord, insertRecordWithID, inviteWorkspaceMember, is, isCursorPaginationOptions, isHostProviderAlias, isHostProviderBuilder, isIdentifiable, isNot, isXataRecord, le, lessEquals, lessThan, lessThanEquals, listMigrationRequestsCommits, listRegions, lt, lte, mergeMigrationRequest, notExists, operationsByTag, parseProviderString, parseWorkspacesUrlParts, pattern, previewBranchSchemaEdit, queryMigrationRequests, queryTable, removeGitBranchesEntry, removeWorkspaceMember, resendWorkspaceMemberInvite, resolveBranch, searchBranch, searchTable, serialize, setTableSchema, startsWith, summarizeTable, updateBranchMetadata, updateBranchSchema, updateColumn, updateDatabaseMetadata, updateMigrationRequest, updateRecordWithID, updateTable, updateUser, updateWorkspace, updateWorkspaceMemberInvite, updateWorkspaceMemberRole, upsertRecordWithID };
|
3223
3253
|
//# sourceMappingURL=index.mjs.map
|