@xata.io/client 0.14.0 → 0.15.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 +8 -0
- package/dist/index.cjs +16 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +32 -2
- package/dist/index.mjs +16 -5
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
@@ -1,5 +1,13 @@
|
|
1
1
|
# @xata.io/client
|
2
2
|
|
3
|
+
## 0.15.0
|
4
|
+
|
5
|
+
### Patch Changes
|
6
|
+
|
7
|
+
- [#496](https://github.com/xataio/client-ts/pull/496) [`e923d11`](https://github.com/xataio/client-ts/commit/e923d11fe357519dc4ca3ae722670e6e70ccd1c6) Thanks [@gimenete](https://github.com/gimenete)! - Ignore git output in Xata client
|
8
|
+
|
9
|
+
* [#481](https://github.com/xataio/client-ts/pull/481) [`599b52c`](https://github.com/xataio/client-ts/commit/599b52c3090222eedef85d1ad1e907874cd3e801) Thanks [@xata-bot](https://github.com/xata-bot)! - Add updateWorkspaceMemberInvite API method
|
10
|
+
|
3
11
|
## 0.14.0
|
4
12
|
|
5
13
|
### Minor Changes
|
package/dist/index.cjs
CHANGED
@@ -107,18 +107,20 @@ function getGlobalFallbackBranch() {
|
|
107
107
|
}
|
108
108
|
async function getGitBranch() {
|
109
109
|
const cmd = ["git", "branch", "--show-current"];
|
110
|
+
const fullCmd = cmd.join(" ");
|
110
111
|
const nodeModule = ["child", "process"].join("_");
|
112
|
+
const execOptions = { encoding: "utf-8", stdio: ["ignore", "pipe", "ignore"] };
|
111
113
|
try {
|
112
114
|
if (typeof require === "function") {
|
113
|
-
return require(nodeModule).execSync(
|
115
|
+
return require(nodeModule).execSync(fullCmd, execOptions).trim();
|
114
116
|
}
|
115
117
|
const { execSync } = await (function (t) { return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(t)); }); })(nodeModule);
|
116
|
-
return execSync(
|
118
|
+
return execSync(fullCmd, execOptions).toString().trim();
|
117
119
|
} catch (err) {
|
118
120
|
}
|
119
121
|
try {
|
120
122
|
if (isObject(Deno)) {
|
121
|
-
const process2 = Deno.run({ cmd, stdout: "piped", stderr: "
|
123
|
+
const process2 = Deno.run({ cmd, stdout: "piped", stderr: "null" });
|
122
124
|
return new TextDecoder().decode(await process2.output()).trim();
|
123
125
|
}
|
124
126
|
} catch (err) {
|
@@ -143,7 +145,7 @@ function getFetchImplementation(userFetch) {
|
|
143
145
|
return fetchImpl;
|
144
146
|
}
|
145
147
|
|
146
|
-
const VERSION = "0.
|
148
|
+
const VERSION = "0.15.0";
|
147
149
|
|
148
150
|
class ErrorWithCause extends Error {
|
149
151
|
constructor(message, options) {
|
@@ -308,6 +310,7 @@ const removeWorkspaceMember = (variables) => fetch$1({
|
|
308
310
|
...variables
|
309
311
|
});
|
310
312
|
const inviteWorkspaceMember = (variables) => fetch$1({ url: "/workspaces/{workspaceId}/invites", method: "post", ...variables });
|
313
|
+
const updateWorkspaceMemberInvite = (variables) => fetch$1({ url: "/workspaces/{workspaceId}/invites/{inviteId}", method: "patch", ...variables });
|
311
314
|
const cancelWorkspaceMemberInvite = (variables) => fetch$1({
|
312
315
|
url: "/workspaces/{workspaceId}/invites/{inviteId}",
|
313
316
|
method: "delete",
|
@@ -480,6 +483,7 @@ const operationsByTag = {
|
|
480
483
|
updateWorkspaceMemberRole,
|
481
484
|
removeWorkspaceMember,
|
482
485
|
inviteWorkspaceMember,
|
486
|
+
updateWorkspaceMemberInvite,
|
483
487
|
cancelWorkspaceMemberInvite,
|
484
488
|
resendWorkspaceMemberInvite,
|
485
489
|
acceptWorkspaceMemberInvite
|
@@ -711,6 +715,13 @@ class WorkspaceApi {
|
|
711
715
|
...this.extraProps
|
712
716
|
});
|
713
717
|
}
|
718
|
+
updateWorkspaceMemberInvite(workspaceId, inviteId, role) {
|
719
|
+
return operationsByTag.workspaces.updateWorkspaceMemberInvite({
|
720
|
+
pathParams: { workspaceId, inviteId },
|
721
|
+
body: { role },
|
722
|
+
...this.extraProps
|
723
|
+
});
|
724
|
+
}
|
714
725
|
cancelWorkspaceMemberInvite(workspaceId, inviteId) {
|
715
726
|
return operationsByTag.workspaces.cancelWorkspaceMemberInvite({
|
716
727
|
pathParams: { workspaceId, inviteId },
|
@@ -2199,6 +2210,7 @@ exports.updateRecordWithID = updateRecordWithID;
|
|
2199
2210
|
exports.updateTable = updateTable;
|
2200
2211
|
exports.updateUser = updateUser;
|
2201
2212
|
exports.updateWorkspace = updateWorkspace;
|
2213
|
+
exports.updateWorkspaceMemberInvite = updateWorkspaceMemberInvite;
|
2202
2214
|
exports.updateWorkspaceMemberRole = updateWorkspaceMemberRole;
|
2203
2215
|
exports.upsertRecordWithID = upsertRecordWithID;
|
2204
2216
|
//# sourceMappingURL=index.cjs.map
|