@xata.io/client 0.0.0-next.va0c40fac05828c586d853d558cf07d608a16eb30 → 0.0.0-next.va121e4207b94bfe0a3c025fc00b247b923880930
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/.turbo/turbo-add-version.log +1 -1
- package/.turbo/turbo-build.log +4 -4
- package/CHANGELOG.md +4 -2
- package/dist/index.cjs +19 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +228 -13
- package/dist/index.mjs +17 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/.turbo/turbo-build.log
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
|
2
|
-
> @xata.io/client@0.
|
2
|
+
> @xata.io/client@0.30.0 build /home/runner/work/client-ts/client-ts/packages/client
|
3
3
|
> rimraf dist && rollup -c
|
4
4
|
|
5
5
|
[36m
|
6
6
|
[1msrc/index.ts[22m → [1mdist/index.cjs[22m...[39m
|
7
|
-
[32mcreated [1mdist/index.cjs[22m in [
|
7
|
+
[32mcreated [1mdist/index.cjs[22m in [1m1.2s[22m[39m
|
8
8
|
[36m
|
9
9
|
[1msrc/index.ts[22m → [1mdist/index.mjs[22m...[39m
|
10
|
-
[32mcreated [1mdist/index.mjs[22m in [
|
10
|
+
[32mcreated [1mdist/index.mjs[22m in [1m926ms[22m[39m
|
11
11
|
[36m
|
12
12
|
[1msrc/index.ts[22m → [1mdist/index.d.ts[22m...[39m
|
13
|
-
[32mcreated [1mdist/index.d.ts[22m in [1m4.
|
13
|
+
[32mcreated [1mdist/index.d.ts[22m in [1m4.4s[22m[39m
|
package/CHANGELOG.md
CHANGED
@@ -1,10 +1,12 @@
|
|
1
1
|
# @xata.io/client
|
2
2
|
|
3
|
-
## 0.0.0-next.
|
3
|
+
## 0.0.0-next.va121e4207b94bfe0a3c025fc00b247b923880930
|
4
4
|
|
5
5
|
### Major Changes
|
6
6
|
|
7
|
-
- [`
|
7
|
+
- [#1533](https://github.com/xataio/client-ts/pull/1533) [`035990e`](https://github.com/xataio/client-ts/commit/035990efe17dee696d1cbf3614309434a55c2a16) Thanks [@eemmiillyy](https://github.com/eemmiillyy)! - Version 1.0
|
8
|
+
|
9
|
+
## 0.30.0
|
8
10
|
|
9
11
|
### Minor Changes
|
10
12
|
|
package/dist/index.cjs
CHANGED
@@ -2171,7 +2171,7 @@ function defaultOnOpen(response) {
|
|
2171
2171
|
}
|
2172
2172
|
}
|
2173
2173
|
|
2174
|
-
const VERSION = "0.
|
2174
|
+
const VERSION = "0.30.0";
|
2175
2175
|
|
2176
2176
|
class ErrorWithCause extends Error {
|
2177
2177
|
constructor(message, options) {
|
@@ -2485,6 +2485,18 @@ function parseUrl(url) {
|
|
2485
2485
|
|
2486
2486
|
const dataPlaneFetch = async (options) => fetch$1({ ...options, endpoint: "dataPlane" });
|
2487
2487
|
|
2488
|
+
const getTasks = (variables, signal) => dataPlaneFetch({
|
2489
|
+
url: "/tasks",
|
2490
|
+
method: "get",
|
2491
|
+
...variables,
|
2492
|
+
signal
|
2493
|
+
});
|
2494
|
+
const getTaskStatus = (variables, signal) => dataPlaneFetch({
|
2495
|
+
url: "/tasks/{taskId}",
|
2496
|
+
method: "get",
|
2497
|
+
...variables,
|
2498
|
+
signal
|
2499
|
+
});
|
2488
2500
|
const listClusterBranches = (variables, signal) => dataPlaneFetch({
|
2489
2501
|
url: "/cluster/{clusterId}/branches",
|
2490
2502
|
method: "get",
|
@@ -2588,6 +2600,7 @@ const getDatabaseSettings = (variables, signal) => dataPlaneFetch({
|
|
2588
2600
|
signal
|
2589
2601
|
});
|
2590
2602
|
const updateDatabaseSettings = (variables, signal) => dataPlaneFetch({ url: "/dbs/{dbName}/settings", method: "patch", ...variables, signal });
|
2603
|
+
const createBranchAsync = (variables, signal) => dataPlaneFetch({ url: "/db/{dbBranchName}/async", method: "put", ...variables, signal });
|
2591
2604
|
const getBranchDetails = (variables, signal) => dataPlaneFetch({
|
2592
2605
|
url: "/db/{dbBranchName}",
|
2593
2606
|
method: "get",
|
@@ -2980,6 +2993,7 @@ const sqlBatchQuery = (variables, signal) => dataPlaneFetch({
|
|
2980
2993
|
signal
|
2981
2994
|
});
|
2982
2995
|
const operationsByTag$2 = {
|
2996
|
+
tasks: { getTasks, getTaskStatus },
|
2983
2997
|
cluster: {
|
2984
2998
|
listClusterBranches,
|
2985
2999
|
listClusterExtensions,
|
@@ -3013,6 +3027,7 @@ const operationsByTag$2 = {
|
|
3013
3027
|
},
|
3014
3028
|
branch: {
|
3015
3029
|
getBranchList,
|
3030
|
+
createBranchAsync,
|
3016
3031
|
getBranchDetails,
|
3017
3032
|
createBranch,
|
3018
3033
|
deleteBranch,
|
@@ -5467,6 +5482,7 @@ exports.completeMigration = completeMigration;
|
|
5467
5482
|
exports.contains = contains;
|
5468
5483
|
exports.copyBranch = copyBranch;
|
5469
5484
|
exports.createBranch = createBranch;
|
5485
|
+
exports.createBranchAsync = createBranchAsync;
|
5470
5486
|
exports.createCluster = createCluster;
|
5471
5487
|
exports.createDatabase = createDatabase;
|
5472
5488
|
exports.createMigrationRequest = createMigrationRequest;
|
@@ -5528,6 +5544,8 @@ exports.getSchema = getSchema;
|
|
5528
5544
|
exports.getSchemas = getSchemas;
|
5529
5545
|
exports.getTableColumns = getTableColumns;
|
5530
5546
|
exports.getTableSchema = getTableSchema;
|
5547
|
+
exports.getTaskStatus = getTaskStatus;
|
5548
|
+
exports.getTasks = getTasks;
|
5531
5549
|
exports.getUser = getUser;
|
5532
5550
|
exports.getUserAPIKeys = getUserAPIKeys;
|
5533
5551
|
exports.getUserOAuthAccessTokens = getUserOAuthAccessTokens;
|