@xata.io/client 0.26.5 → 0.26.7
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 +16 -0
- package/dist/index.cjs +33 -138
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +275 -9
- package/dist/index.mjs +28 -139
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
@@ -242,12 +242,6 @@ function getPreviewBranch() {
|
|
242
242
|
}
|
243
243
|
}
|
244
244
|
|
245
|
-
var __defProp$8 = Object.defineProperty;
|
246
|
-
var __defNormalProp$8 = (obj, key, value) => key in obj ? __defProp$8(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
247
|
-
var __publicField$8 = (obj, key, value) => {
|
248
|
-
__defNormalProp$8(obj, typeof key !== "symbol" ? key + "" : key, value);
|
249
|
-
return value;
|
250
|
-
};
|
251
245
|
var __accessCheck$8 = (obj, member, msg) => {
|
252
246
|
if (!member.has(obj))
|
253
247
|
throw TypeError("Cannot " + msg);
|
@@ -287,8 +281,6 @@ class ApiRequestPool {
|
|
287
281
|
__privateAdd$8(this, _fetch, void 0);
|
288
282
|
__privateAdd$8(this, _queue, void 0);
|
289
283
|
__privateAdd$8(this, _concurrency, void 0);
|
290
|
-
__publicField$8(this, "running");
|
291
|
-
__publicField$8(this, "started");
|
292
284
|
__privateSet$8(this, _queue, []);
|
293
285
|
__privateSet$8(this, _concurrency, concurrency);
|
294
286
|
this.running = 0;
|
@@ -534,26 +526,16 @@ function defaultOnOpen(response) {
|
|
534
526
|
}
|
535
527
|
}
|
536
528
|
|
537
|
-
const VERSION = "0.26.
|
529
|
+
const VERSION = "0.26.7";
|
538
530
|
|
539
|
-
var __defProp$7 = Object.defineProperty;
|
540
|
-
var __defNormalProp$7 = (obj, key, value) => key in obj ? __defProp$7(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
541
|
-
var __publicField$7 = (obj, key, value) => {
|
542
|
-
__defNormalProp$7(obj, typeof key !== "symbol" ? key + "" : key, value);
|
543
|
-
return value;
|
544
|
-
};
|
545
531
|
class ErrorWithCause extends Error {
|
546
532
|
constructor(message, options) {
|
547
533
|
super(message, options);
|
548
|
-
__publicField$7(this, "cause");
|
549
534
|
}
|
550
535
|
}
|
551
536
|
class FetcherError extends ErrorWithCause {
|
552
537
|
constructor(status, data, requestId) {
|
553
538
|
super(getMessage(data));
|
554
|
-
__publicField$7(this, "status");
|
555
|
-
__publicField$7(this, "requestId");
|
556
|
-
__publicField$7(this, "errors");
|
557
539
|
this.status = status;
|
558
540
|
this.errors = isBulkError(data) ? data.errors : [{ message: getMessage(data), status }];
|
559
541
|
this.requestId = requestId;
|
@@ -1171,6 +1153,20 @@ const updateWorkspaceMemberInvite = (variables, signal) => controlPlaneFetch({ u
|
|
1171
1153
|
const cancelWorkspaceMemberInvite = (variables, signal) => controlPlaneFetch({ url: "/workspaces/{workspaceId}/invites/{inviteId}", method: "delete", ...variables, signal });
|
1172
1154
|
const acceptWorkspaceMemberInvite = (variables, signal) => controlPlaneFetch({ url: "/workspaces/{workspaceId}/invites/{inviteKey}/accept", method: "post", ...variables, signal });
|
1173
1155
|
const resendWorkspaceMemberInvite = (variables, signal) => controlPlaneFetch({ url: "/workspaces/{workspaceId}/invites/{inviteId}/resend", method: "post", ...variables, signal });
|
1156
|
+
const listClusters = (variables, signal) => controlPlaneFetch({
|
1157
|
+
url: "/workspaces/{workspaceId}/clusters",
|
1158
|
+
method: "get",
|
1159
|
+
...variables,
|
1160
|
+
signal
|
1161
|
+
});
|
1162
|
+
const createCluster = (variables, signal) => controlPlaneFetch({ url: "/workspaces/{workspaceId}/clusters", method: "post", ...variables, signal });
|
1163
|
+
const getCluster = (variables, signal) => controlPlaneFetch({
|
1164
|
+
url: "/workspaces/{workspaceId}/clusters/{clusterId}",
|
1165
|
+
method: "get",
|
1166
|
+
...variables,
|
1167
|
+
signal
|
1168
|
+
});
|
1169
|
+
const updateCluster = (variables, signal) => controlPlaneFetch({ url: "/workspaces/{workspaceId}/clusters/{clusterId}", method: "patch", ...variables, signal });
|
1174
1170
|
const getDatabaseList = (variables, signal) => controlPlaneFetch({
|
1175
1171
|
url: "/workspaces/{workspaceId}/dbs",
|
1176
1172
|
method: "get",
|
@@ -1225,6 +1221,7 @@ const operationsByTag$1 = {
|
|
1225
1221
|
acceptWorkspaceMemberInvite,
|
1226
1222
|
resendWorkspaceMemberInvite
|
1227
1223
|
},
|
1224
|
+
xbcontrolOther: { listClusters, createCluster, getCluster, updateCluster },
|
1228
1225
|
databases: {
|
1229
1226
|
getDatabaseList,
|
1230
1227
|
createDatabase,
|
@@ -2639,9 +2636,9 @@ class FilesPlugin extends XataPlugin {
|
|
2639
2636
|
rawResponse: true
|
2640
2637
|
});
|
2641
2638
|
},
|
2642
|
-
upload: async (location, file) => {
|
2639
|
+
upload: async (location, file, options) => {
|
2643
2640
|
const { table, record, column, fileId = "" } = location ?? {};
|
2644
|
-
const contentType = getContentType(file);
|
2641
|
+
const contentType = options?.mediaType || getContentType(file);
|
2645
2642
|
return await putFileItem({
|
2646
2643
|
...pluginOptions,
|
2647
2644
|
pathParams: {
|
@@ -2717,58 +2714,8 @@ function transformImage(url, ...transformations) {
|
|
2717
2714
|
return `https://${hostname}${transform}${path}${search}`;
|
2718
2715
|
}
|
2719
2716
|
|
2720
|
-
var __defProp$6 = Object.defineProperty;
|
2721
|
-
var __defNormalProp$6 = (obj, key, value) => key in obj ? __defProp$6(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
2722
|
-
var __publicField$6 = (obj, key, value) => {
|
2723
|
-
__defNormalProp$6(obj, typeof key !== "symbol" ? key + "" : key, value);
|
2724
|
-
return value;
|
2725
|
-
};
|
2726
2717
|
class XataFile {
|
2727
2718
|
constructor(file) {
|
2728
|
-
/**
|
2729
|
-
* Identifier of the file.
|
2730
|
-
*/
|
2731
|
-
__publicField$6(this, "id");
|
2732
|
-
/**
|
2733
|
-
* Name of the file.
|
2734
|
-
*/
|
2735
|
-
__publicField$6(this, "name");
|
2736
|
-
/**
|
2737
|
-
* Media type of the file.
|
2738
|
-
*/
|
2739
|
-
__publicField$6(this, "mediaType");
|
2740
|
-
/**
|
2741
|
-
* Base64 encoded content of the file.
|
2742
|
-
*/
|
2743
|
-
__publicField$6(this, "base64Content");
|
2744
|
-
/**
|
2745
|
-
* Whether to enable public url for the file.
|
2746
|
-
*/
|
2747
|
-
__publicField$6(this, "enablePublicUrl");
|
2748
|
-
/**
|
2749
|
-
* Timeout for the signed url.
|
2750
|
-
*/
|
2751
|
-
__publicField$6(this, "signedUrlTimeout");
|
2752
|
-
/**
|
2753
|
-
* Size of the file.
|
2754
|
-
*/
|
2755
|
-
__publicField$6(this, "size");
|
2756
|
-
/**
|
2757
|
-
* Version of the file.
|
2758
|
-
*/
|
2759
|
-
__publicField$6(this, "version");
|
2760
|
-
/**
|
2761
|
-
* Url of the file.
|
2762
|
-
*/
|
2763
|
-
__publicField$6(this, "url");
|
2764
|
-
/**
|
2765
|
-
* Signed url of the file.
|
2766
|
-
*/
|
2767
|
-
__publicField$6(this, "signedUrl");
|
2768
|
-
/**
|
2769
|
-
* Attributes of the file.
|
2770
|
-
*/
|
2771
|
-
__publicField$6(this, "attributes");
|
2772
2719
|
this.id = file.id;
|
2773
2720
|
this.name = file.name || "";
|
2774
2721
|
this.mediaType = file.mediaType || "application/octet-stream";
|
@@ -2927,12 +2874,6 @@ function parseJson(value) {
|
|
2927
2874
|
}
|
2928
2875
|
}
|
2929
2876
|
|
2930
|
-
var __defProp$5 = Object.defineProperty;
|
2931
|
-
var __defNormalProp$5 = (obj, key, value) => key in obj ? __defProp$5(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
2932
|
-
var __publicField$5 = (obj, key, value) => {
|
2933
|
-
__defNormalProp$5(obj, typeof key !== "symbol" ? key + "" : key, value);
|
2934
|
-
return value;
|
2935
|
-
};
|
2936
2877
|
var __accessCheck$6 = (obj, member, msg) => {
|
2937
2878
|
if (!member.has(obj))
|
2938
2879
|
throw TypeError("Cannot " + msg);
|
@@ -2955,14 +2896,6 @@ var _query, _page;
|
|
2955
2896
|
class Page {
|
2956
2897
|
constructor(query, meta, records = []) {
|
2957
2898
|
__privateAdd$6(this, _query, void 0);
|
2958
|
-
/**
|
2959
|
-
* Page metadata, required to retrieve additional records.
|
2960
|
-
*/
|
2961
|
-
__publicField$5(this, "meta");
|
2962
|
-
/**
|
2963
|
-
* The set of results for this page.
|
2964
|
-
*/
|
2965
|
-
__publicField$5(this, "records");
|
2966
2899
|
__privateSet$6(this, _query, query);
|
2967
2900
|
this.meta = meta;
|
2968
2901
|
this.records = new RecordArray(this, records);
|
@@ -3012,9 +2945,9 @@ class Page {
|
|
3012
2945
|
}
|
3013
2946
|
}
|
3014
2947
|
_query = new WeakMap();
|
3015
|
-
const PAGINATION_MAX_SIZE =
|
2948
|
+
const PAGINATION_MAX_SIZE = 1e3;
|
3016
2949
|
const PAGINATION_DEFAULT_SIZE = 20;
|
3017
|
-
const PAGINATION_MAX_OFFSET =
|
2950
|
+
const PAGINATION_MAX_OFFSET = 49e3;
|
3018
2951
|
const PAGINATION_DEFAULT_OFFSET = 0;
|
3019
2952
|
function isCursorPaginationOptions(options) {
|
3020
2953
|
return isDefined(options) && (isDefined(options.start) || isDefined(options.end) || isDefined(options.after) || isDefined(options.before));
|
@@ -3093,12 +3026,6 @@ const _RecordArray = class _RecordArray extends Array {
|
|
3093
3026
|
_page = new WeakMap();
|
3094
3027
|
let RecordArray = _RecordArray;
|
3095
3028
|
|
3096
|
-
var __defProp$4 = Object.defineProperty;
|
3097
|
-
var __defNormalProp$4 = (obj, key, value) => key in obj ? __defProp$4(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
3098
|
-
var __publicField$4 = (obj, key, value) => {
|
3099
|
-
__defNormalProp$4(obj, typeof key !== "symbol" ? key + "" : key, value);
|
3100
|
-
return value;
|
3101
|
-
};
|
3102
3029
|
var __accessCheck$5 = (obj, member, msg) => {
|
3103
3030
|
if (!member.has(obj))
|
3104
3031
|
throw TypeError("Cannot " + msg);
|
@@ -3129,8 +3056,8 @@ const _Query = class _Query {
|
|
3129
3056
|
__privateAdd$5(this, _repository, void 0);
|
3130
3057
|
__privateAdd$5(this, _data, { filter: {} });
|
3131
3058
|
// Implements pagination
|
3132
|
-
|
3133
|
-
|
3059
|
+
this.meta = { page: { cursor: "start", more: true, size: PAGINATION_DEFAULT_SIZE } };
|
3060
|
+
this.records = new RecordArray(this, []);
|
3134
3061
|
__privateSet$5(this, _table$1, table);
|
3135
3062
|
if (repository) {
|
3136
3063
|
__privateSet$5(this, _repository, repository);
|
@@ -4174,13 +4101,6 @@ transformObjectToApi_fn = async function(object) {
|
|
4174
4101
|
}
|
4175
4102
|
return result;
|
4176
4103
|
};
|
4177
|
-
const removeLinksFromObject = (object) => {
|
4178
|
-
return Object.entries(object).reduce((acc, [key, value]) => {
|
4179
|
-
if (key === "xata")
|
4180
|
-
return acc;
|
4181
|
-
return { ...acc, [key]: isIdentifiable(value) ? value.id : value };
|
4182
|
-
}, {});
|
4183
|
-
};
|
4184
4104
|
const initObject = (db, schemaTables, table, object, selectedColumns) => {
|
4185
4105
|
const data = {};
|
4186
4106
|
const { xata, ...rest } = object ?? {};
|
@@ -4247,7 +4167,6 @@ const initObject = (db, schemaTables, table, object, selectedColumns) => {
|
|
4247
4167
|
}
|
4248
4168
|
}
|
4249
4169
|
const record = { ...data };
|
4250
|
-
const serializable = { xata, ...removeLinksFromObject(data) };
|
4251
4170
|
const metadata = xata !== void 0 ? { ...xata, createdAt: new Date(xata.createdAt), updatedAt: new Date(xata.updatedAt) } : void 0;
|
4252
4171
|
record.read = function(columns2) {
|
4253
4172
|
return db[table].read(record["id"], columns2);
|
@@ -4270,10 +4189,10 @@ const initObject = (db, schemaTables, table, object, selectedColumns) => {
|
|
4270
4189
|
return record.xata;
|
4271
4190
|
};
|
4272
4191
|
record.toSerializable = function() {
|
4273
|
-
return JSON.parse(JSON.stringify(
|
4192
|
+
return JSON.parse(JSON.stringify(record));
|
4274
4193
|
};
|
4275
4194
|
record.toString = function() {
|
4276
|
-
return JSON.stringify(
|
4195
|
+
return JSON.stringify(record);
|
4277
4196
|
};
|
4278
4197
|
for (const prop of ["read", "update", "replace", "delete", "getMetadata", "toSerializable", "toString"]) {
|
4279
4198
|
Object.defineProperty(record, prop, { enumerable: false });
|
@@ -4302,12 +4221,6 @@ function parseIfVersion(...args) {
|
|
4302
4221
|
return void 0;
|
4303
4222
|
}
|
4304
4223
|
|
4305
|
-
var __defProp$3 = Object.defineProperty;
|
4306
|
-
var __defNormalProp$3 = (obj, key, value) => key in obj ? __defProp$3(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
4307
|
-
var __publicField$3 = (obj, key, value) => {
|
4308
|
-
__defNormalProp$3(obj, typeof key !== "symbol" ? key + "" : key, value);
|
4309
|
-
return value;
|
4310
|
-
};
|
4311
4224
|
var __accessCheck$3 = (obj, member, msg) => {
|
4312
4225
|
if (!member.has(obj))
|
4313
4226
|
throw TypeError("Cannot " + msg);
|
@@ -4330,8 +4243,6 @@ var _map;
|
|
4330
4243
|
class SimpleCache {
|
4331
4244
|
constructor(options = {}) {
|
4332
4245
|
__privateAdd$3(this, _map, void 0);
|
4333
|
-
__publicField$3(this, "capacity");
|
4334
|
-
__publicField$3(this, "defaultQueryTTL");
|
4335
4246
|
__privateSet$3(this, _map, /* @__PURE__ */ new Map());
|
4336
4247
|
this.capacity = options.max ?? 500;
|
4337
4248
|
this.defaultQueryTTL = options.defaultQueryTTL ?? 60 * 1e3;
|
@@ -4376,10 +4287,12 @@ const notExists = (column) => ({ $notExists: column });
|
|
4376
4287
|
const startsWith = (value) => ({ $startsWith: value });
|
4377
4288
|
const endsWith = (value) => ({ $endsWith: value });
|
4378
4289
|
const pattern = (value) => ({ $pattern: value });
|
4290
|
+
const iPattern = (value) => ({ $iPattern: value });
|
4379
4291
|
const is = (value) => ({ $is: value });
|
4380
4292
|
const equals = is;
|
4381
4293
|
const isNot = (value) => ({ $isNot: value });
|
4382
4294
|
const contains = (value) => ({ $contains: value });
|
4295
|
+
const iContains = (value) => ({ $iContains: value });
|
4383
4296
|
const includes = (value) => ({ $includes: value });
|
4384
4297
|
const includesAll = (value) => ({ $includesAll: value });
|
4385
4298
|
const includesNone = (value) => ({ $includesNone: value });
|
@@ -4601,12 +4514,6 @@ class TransactionPlugin extends XataPlugin {
|
|
4601
4514
|
}
|
4602
4515
|
}
|
4603
4516
|
|
4604
|
-
var __defProp$2 = Object.defineProperty;
|
4605
|
-
var __defNormalProp$2 = (obj, key, value) => key in obj ? __defProp$2(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
4606
|
-
var __publicField$2 = (obj, key, value) => {
|
4607
|
-
__defNormalProp$2(obj, typeof key !== "symbol" ? key + "" : key, value);
|
4608
|
-
return value;
|
4609
|
-
};
|
4610
4517
|
var __accessCheck = (obj, member, msg) => {
|
4611
4518
|
if (!member.has(obj))
|
4612
4519
|
throw TypeError("Cannot " + msg);
|
@@ -4636,11 +4543,6 @@ const buildClient = (plugins) => {
|
|
4636
4543
|
__privateAdd(this, _parseOptions);
|
4637
4544
|
__privateAdd(this, _getFetchProps);
|
4638
4545
|
__privateAdd(this, _options, void 0);
|
4639
|
-
__publicField$2(this, "db");
|
4640
|
-
__publicField$2(this, "search");
|
4641
|
-
__publicField$2(this, "transactions");
|
4642
|
-
__publicField$2(this, "sql");
|
4643
|
-
__publicField$2(this, "files");
|
4644
4546
|
const safeOptions = __privateMethod(this, _parseOptions, parseOptions_fn).call(this, options);
|
4645
4547
|
__privateSet(this, _options, safeOptions);
|
4646
4548
|
const pluginOptions = {
|
@@ -4754,17 +4656,11 @@ const buildClient = (plugins) => {
|
|
4754
4656
|
class BaseClient extends buildClient() {
|
4755
4657
|
}
|
4756
4658
|
|
4757
|
-
var __defProp$1 = Object.defineProperty;
|
4758
|
-
var __defNormalProp$1 = (obj, key, value) => key in obj ? __defProp$1(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
4759
|
-
var __publicField$1 = (obj, key, value) => {
|
4760
|
-
__defNormalProp$1(obj, typeof key !== "symbol" ? key + "" : key, value);
|
4761
|
-
return value;
|
4762
|
-
};
|
4763
4659
|
const META = "__";
|
4764
4660
|
const VALUE = "___";
|
4765
4661
|
class Serializer {
|
4766
4662
|
constructor() {
|
4767
|
-
|
4663
|
+
this.classes = {};
|
4768
4664
|
}
|
4769
4665
|
add(clazz) {
|
4770
4666
|
this.classes[clazz.name] = clazz;
|
@@ -4842,19 +4738,12 @@ function buildWorkerRunner(config) {
|
|
4842
4738
|
};
|
4843
4739
|
}
|
4844
4740
|
|
4845
|
-
var __defProp = Object.defineProperty;
|
4846
|
-
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
4847
|
-
var __publicField = (obj, key, value) => {
|
4848
|
-
__defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
4849
|
-
return value;
|
4850
|
-
};
|
4851
4741
|
class XataError extends Error {
|
4852
4742
|
constructor(message, status) {
|
4853
4743
|
super(message);
|
4854
|
-
__publicField(this, "status");
|
4855
4744
|
this.status = status;
|
4856
4745
|
}
|
4857
4746
|
}
|
4858
4747
|
|
4859
|
-
export { BaseClient, FetcherError, FilesPlugin, operationsByTag as Operations, PAGINATION_DEFAULT_OFFSET, PAGINATION_DEFAULT_SIZE, PAGINATION_MAX_OFFSET, PAGINATION_MAX_SIZE, Page, Query, RecordArray, RecordColumnTypes, Repository, RestRepository, SQLPlugin, SchemaPlugin, SearchPlugin, Serializer, SimpleCache, XataApiClient, XataApiPlugin, XataError, XataFile, XataPlugin, acceptWorkspaceMemberInvite, addGitBranchesEntry, addTableColumn, aggregateTable, applyBranchSchemaEdit, askTable, askTableSession, branchTransaction, buildClient, buildPreviewBranchName, buildProviderString, buildWorkerRunner, bulkInsertTableRecords, cancelWorkspaceMemberInvite, compareBranchSchemas, compareBranchWithUserSchema, compareMigrationRequest, contains, copyBranch, createBranch, createDatabase, createMigrationRequest, createTable, createUserAPIKey, createWorkspace, deleteBranch, deleteColumn, deleteDatabase, deleteDatabaseGithubSettings, deleteFile, deleteFileItem, deleteOAuthAccessToken, deleteRecord, deleteTable, deleteUser, deleteUserAPIKey, deleteUserOAuthClient, deleteWorkspace, deserialize, endsWith, equals, executeBranchMigrationPlan, exists, fileAccess, ge, getAPIKey, getAuthorizationCode, getBranch, getBranchDetails, getBranchList, getBranchMetadata, getBranchMigrationHistory, getBranchMigrationPlan, getBranchSchemaHistory, getBranchStats, getColumn, getDatabaseGithubSettings, getDatabaseList, getDatabaseMetadata, getDatabaseURL, getFile, getFileItem, getGitBranchesMapping, getHostUrl, getMigrationRequest, getMigrationRequestIsMerged, getPreviewBranch, getRecord, getTableColumns, getTableSchema, getUser, getUserAPIKeys, getUserOAuthAccessTokens, getUserOAuthClients, getWorkspace, getWorkspaceMembersList, getWorkspacesList, grantAuthorizationCode, greaterEquals, greaterThan, greaterThanEquals, gt, gte, includes, includesAll, includesAny, includesNone, insertRecord, insertRecordWithID, inviteWorkspaceMember, is, isCursorPaginationOptions, isHostProviderAlias, isHostProviderBuilder, isIdentifiable, isNot, isValidExpandedColumn, isValidSelectableColumns, isXataRecord, le, lessEquals, lessThan, lessThanEquals, listMigrationRequestsCommits, listRegions, lt, lte, mergeMigrationRequest, notExists, operationsByTag, parseProviderString, parseWorkspacesUrlParts, pattern, previewBranchSchemaEdit, pushBranchMigrations, putFile, putFileItem, queryMigrationRequests, queryTable, removeGitBranchesEntry, removeWorkspaceMember, renameDatabase, resendWorkspaceMemberInvite, resolveBranch, searchBranch, searchTable, serialize, setTableSchema, sqlQuery, startsWith, summarizeTable, transformImage, updateBranchMetadata, updateBranchSchema, updateColumn, updateDatabaseGithubSettings, updateDatabaseMetadata, updateMigrationRequest, updateOAuthAccessToken, updateRecordWithID, updateTable, updateUser, updateWorkspace, updateWorkspaceMemberInvite, updateWorkspaceMemberRole, upsertRecordWithID, vectorSearchTable };
|
4748
|
+
export { BaseClient, FetcherError, FilesPlugin, operationsByTag as Operations, PAGINATION_DEFAULT_OFFSET, PAGINATION_DEFAULT_SIZE, PAGINATION_MAX_OFFSET, PAGINATION_MAX_SIZE, Page, Query, RecordArray, RecordColumnTypes, Repository, RestRepository, SQLPlugin, SchemaPlugin, SearchPlugin, Serializer, SimpleCache, XataApiClient, XataApiPlugin, XataError, XataFile, XataPlugin, acceptWorkspaceMemberInvite, addGitBranchesEntry, addTableColumn, aggregateTable, applyBranchSchemaEdit, askTable, askTableSession, branchTransaction, buildClient, buildPreviewBranchName, buildProviderString, buildWorkerRunner, bulkInsertTableRecords, cancelWorkspaceMemberInvite, compareBranchSchemas, compareBranchWithUserSchema, compareMigrationRequest, contains, copyBranch, createBranch, createCluster, createDatabase, createMigrationRequest, createTable, createUserAPIKey, createWorkspace, deleteBranch, deleteColumn, deleteDatabase, deleteDatabaseGithubSettings, deleteFile, deleteFileItem, deleteOAuthAccessToken, deleteRecord, deleteTable, deleteUser, deleteUserAPIKey, deleteUserOAuthClient, deleteWorkspace, deserialize, endsWith, equals, executeBranchMigrationPlan, exists, fileAccess, ge, getAPIKey, getAuthorizationCode, getBranch, getBranchDetails, getBranchList, getBranchMetadata, getBranchMigrationHistory, getBranchMigrationPlan, getBranchSchemaHistory, getBranchStats, getCluster, getColumn, getDatabaseGithubSettings, getDatabaseList, getDatabaseMetadata, getDatabaseURL, getFile, getFileItem, getGitBranchesMapping, getHostUrl, getMigrationRequest, getMigrationRequestIsMerged, getPreviewBranch, getRecord, getTableColumns, getTableSchema, getUser, getUserAPIKeys, getUserOAuthAccessTokens, getUserOAuthClients, getWorkspace, getWorkspaceMembersList, getWorkspacesList, grantAuthorizationCode, greaterEquals, greaterThan, greaterThanEquals, gt, gte, iContains, iPattern, includes, includesAll, includesAny, includesNone, insertRecord, insertRecordWithID, inviteWorkspaceMember, is, isCursorPaginationOptions, isHostProviderAlias, isHostProviderBuilder, isIdentifiable, isNot, isValidExpandedColumn, isValidSelectableColumns, isXataRecord, le, lessEquals, lessThan, lessThanEquals, listClusters, listMigrationRequestsCommits, listRegions, lt, lte, mergeMigrationRequest, notExists, operationsByTag, parseProviderString, parseWorkspacesUrlParts, pattern, previewBranchSchemaEdit, pushBranchMigrations, putFile, putFileItem, queryMigrationRequests, queryTable, removeGitBranchesEntry, removeWorkspaceMember, renameDatabase, resendWorkspaceMemberInvite, resolveBranch, searchBranch, searchTable, serialize, setTableSchema, sqlQuery, startsWith, summarizeTable, transformImage, updateBranchMetadata, updateBranchSchema, updateCluster, updateColumn, updateDatabaseGithubSettings, updateDatabaseMetadata, updateMigrationRequest, updateOAuthAccessToken, updateRecordWithID, updateTable, updateUser, updateWorkspace, updateWorkspaceMemberInvite, updateWorkspaceMemberRole, upsertRecordWithID, vectorSearchTable };
|
4860
4749
|
//# sourceMappingURL=index.mjs.map
|