@xata.io/client 0.0.0-alpha.vfbd878f → 0.0.0-alpha.vfc5c289
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 +16 -0
- package/README.md +25 -25
- package/dist/index.cjs +251 -41
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +607 -25
- package/dist/index.mjs +237 -42
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
@@ -1,7 +1,6 @@
|
|
1
1
|
declare type AttributeDictionary = Record<string, string | number | boolean | undefined>;
|
2
2
|
declare type TraceFunction = <T>(name: string, fn: (options: {
|
3
3
|
setAttributes: (attrs: AttributeDictionary) => void;
|
4
|
-
onError: (message: string) => void;
|
5
4
|
}) => T, options?: AttributeDictionary) => Promise<T>;
|
6
5
|
|
7
6
|
declare type FetchImpl = (url: string, init?: {
|
@@ -17,7 +16,7 @@ declare type FetchImpl = (url: string, init?: {
|
|
17
16
|
get(name: string): string | null;
|
18
17
|
};
|
19
18
|
}>;
|
20
|
-
declare type WorkspaceApiUrlBuilder = (path: string, pathParams: Record<string, string
|
19
|
+
declare type WorkspaceApiUrlBuilder = (path: string, pathParams: Partial<Record<string, string | number>>) => string;
|
21
20
|
declare type FetcherExtraProps = {
|
22
21
|
apiUrl: string;
|
23
22
|
workspacesApiUrl: string | WorkspaceApiUrlBuilder;
|
@@ -100,7 +99,7 @@ declare type WorkspaceID = string;
|
|
100
99
|
declare type Role = 'owner' | 'maintainer';
|
101
100
|
declare type WorkspaceMeta = {
|
102
101
|
name: string;
|
103
|
-
slug
|
102
|
+
slug?: string;
|
104
103
|
};
|
105
104
|
declare type Workspace = WorkspaceMeta & {
|
106
105
|
id: WorkspaceID;
|
@@ -136,7 +135,6 @@ declare type InviteKey = string;
|
|
136
135
|
*/
|
137
136
|
declare type DatabaseMetadata = {
|
138
137
|
name: string;
|
139
|
-
displayName: string;
|
140
138
|
createdAt: DateTime;
|
141
139
|
numberOfBranches: number;
|
142
140
|
ui?: {
|
@@ -148,7 +146,6 @@ declare type ListDatabasesResponse = {
|
|
148
146
|
};
|
149
147
|
declare type ListBranchesResponse = {
|
150
148
|
databaseName: string;
|
151
|
-
displayName: string;
|
152
149
|
branches: Branch[];
|
153
150
|
};
|
154
151
|
declare type ListGitBranchesResponse = {
|
@@ -194,12 +191,28 @@ declare type Schema = {
|
|
194
191
|
tables: Table[];
|
195
192
|
tablesOrder?: string[];
|
196
193
|
};
|
194
|
+
/**
|
195
|
+
* @x-internal true
|
196
|
+
*/
|
197
|
+
declare type SchemaEditScript = {
|
198
|
+
sourceMigrationID?: string;
|
199
|
+
targetMigrationID?: string;
|
200
|
+
tables: TableEdit[];
|
201
|
+
};
|
197
202
|
declare type Table = {
|
198
203
|
id?: string;
|
199
204
|
name: TableName;
|
200
205
|
columns: Column[];
|
201
206
|
revLinks?: RevLink[];
|
202
207
|
};
|
208
|
+
/**
|
209
|
+
* @x-internal true
|
210
|
+
*/
|
211
|
+
declare type TableEdit = {
|
212
|
+
oldName?: string;
|
213
|
+
newName?: string;
|
214
|
+
columns?: MigrationColumnOp[];
|
215
|
+
};
|
203
216
|
/**
|
204
217
|
* @x-go-type xata.Column
|
205
218
|
*/
|
@@ -209,6 +222,8 @@ declare type Column = {
|
|
209
222
|
link?: {
|
210
223
|
table: string;
|
211
224
|
};
|
225
|
+
notNull?: boolean;
|
226
|
+
unique?: boolean;
|
212
227
|
columns?: Column[];
|
213
228
|
};
|
214
229
|
declare type RevLink = {
|
@@ -275,6 +290,110 @@ declare type ColumnMigration = {
|
|
275
290
|
old: Column;
|
276
291
|
['new']: Column;
|
277
292
|
};
|
293
|
+
/**
|
294
|
+
* @x-internal true
|
295
|
+
*/
|
296
|
+
declare type Commit = {
|
297
|
+
meta?: {
|
298
|
+
title?: string;
|
299
|
+
message?: string;
|
300
|
+
id: string;
|
301
|
+
parentID?: string;
|
302
|
+
mergeParentID?: string;
|
303
|
+
status: string;
|
304
|
+
createdAt: DateTime;
|
305
|
+
modifiedAt?: DateTime;
|
306
|
+
};
|
307
|
+
operations: MigrationOp[];
|
308
|
+
};
|
309
|
+
/**
|
310
|
+
* Branch schema migration.
|
311
|
+
*
|
312
|
+
* @x-internal true
|
313
|
+
*/
|
314
|
+
declare type Migration = {
|
315
|
+
parentID?: string;
|
316
|
+
operations: MigrationOp[];
|
317
|
+
};
|
318
|
+
/**
|
319
|
+
* Branch schema migration operations.
|
320
|
+
*
|
321
|
+
* @x-internal true
|
322
|
+
*/
|
323
|
+
declare type MigrationOp = MigrationTableOp | MigrationColumnOp;
|
324
|
+
/**
|
325
|
+
* @x-internal true
|
326
|
+
*/
|
327
|
+
declare type MigrationTableOp = {
|
328
|
+
addTable: TableOpAdd;
|
329
|
+
} | {
|
330
|
+
removeTable: TableOpRemove;
|
331
|
+
} | {
|
332
|
+
renameTable: TableOpRename;
|
333
|
+
};
|
334
|
+
/**
|
335
|
+
* @x-internal true
|
336
|
+
*/
|
337
|
+
declare type MigrationColumnOp = {
|
338
|
+
addColumn: ColumnOpAdd;
|
339
|
+
} | {
|
340
|
+
removeColumn: ColumnOpRemove;
|
341
|
+
} | {
|
342
|
+
renameColumn: ColumnOpRename;
|
343
|
+
};
|
344
|
+
/**
|
345
|
+
* @x-internal true
|
346
|
+
*/
|
347
|
+
declare type TableOpAdd = {
|
348
|
+
table: string;
|
349
|
+
};
|
350
|
+
/**
|
351
|
+
* @x-internal true
|
352
|
+
*/
|
353
|
+
declare type TableOpRemove = {
|
354
|
+
table: string;
|
355
|
+
};
|
356
|
+
/**
|
357
|
+
* @x-internal true
|
358
|
+
*/
|
359
|
+
declare type TableOpRename = {
|
360
|
+
oldName: string;
|
361
|
+
newName: string;
|
362
|
+
};
|
363
|
+
/**
|
364
|
+
* @x-internal true
|
365
|
+
*/
|
366
|
+
declare type ColumnOpAdd = {
|
367
|
+
table?: string;
|
368
|
+
column: Column;
|
369
|
+
};
|
370
|
+
/**
|
371
|
+
* @x-internal true
|
372
|
+
*/
|
373
|
+
declare type ColumnOpRemove = {
|
374
|
+
table?: string;
|
375
|
+
column: string;
|
376
|
+
};
|
377
|
+
/**
|
378
|
+
* @x-internal true
|
379
|
+
*/
|
380
|
+
declare type ColumnOpRename = {
|
381
|
+
table?: string;
|
382
|
+
oldName: string;
|
383
|
+
newName: string;
|
384
|
+
};
|
385
|
+
declare type MigrationRequest = {
|
386
|
+
number: number;
|
387
|
+
createdAt: DateTime;
|
388
|
+
modifiedAt?: DateTime;
|
389
|
+
closedAt?: DateTime;
|
390
|
+
mergedAt?: DateTime;
|
391
|
+
status: 'open' | 'closed' | 'merging' | 'merged';
|
392
|
+
title: string;
|
393
|
+
body: string;
|
394
|
+
source: string;
|
395
|
+
target: string;
|
396
|
+
};
|
278
397
|
declare type SortExpression = string[] | {
|
279
398
|
[key: string]: SortOrder;
|
280
399
|
} | {
|
@@ -283,7 +402,7 @@ declare type SortExpression = string[] | {
|
|
283
402
|
declare type SortOrder = 'asc' | 'desc';
|
284
403
|
/**
|
285
404
|
* Maximum [Levenshtein distance](https://en.wikipedia.org/wiki/Levenshtein_distance) for the search terms. The Levenshtein
|
286
|
-
* distance is the number of one
|
405
|
+
* distance is the number of one character changes needed to make two strings equal. The default is 1, meaning that single
|
287
406
|
* character typos per word are tollerated by search. You can set it to 0 to remove the typo tollerance or set it to 2
|
288
407
|
* to allow two typos in a word.
|
289
408
|
*
|
@@ -475,7 +594,9 @@ type schemas_BranchMetadata = BranchMetadata;
|
|
475
594
|
type schemas_DBBranch = DBBranch;
|
476
595
|
type schemas_StartedFromMetadata = StartedFromMetadata;
|
477
596
|
type schemas_Schema = Schema;
|
597
|
+
type schemas_SchemaEditScript = SchemaEditScript;
|
478
598
|
type schemas_Table = Table;
|
599
|
+
type schemas_TableEdit = TableEdit;
|
479
600
|
type schemas_Column = Column;
|
480
601
|
type schemas_RevLink = RevLink;
|
481
602
|
type schemas_BranchName = BranchName;
|
@@ -488,6 +609,18 @@ type schemas_MetricsLatency = MetricsLatency;
|
|
488
609
|
type schemas_BranchMigration = BranchMigration;
|
489
610
|
type schemas_TableMigration = TableMigration;
|
490
611
|
type schemas_ColumnMigration = ColumnMigration;
|
612
|
+
type schemas_Commit = Commit;
|
613
|
+
type schemas_Migration = Migration;
|
614
|
+
type schemas_MigrationOp = MigrationOp;
|
615
|
+
type schemas_MigrationTableOp = MigrationTableOp;
|
616
|
+
type schemas_MigrationColumnOp = MigrationColumnOp;
|
617
|
+
type schemas_TableOpAdd = TableOpAdd;
|
618
|
+
type schemas_TableOpRemove = TableOpRemove;
|
619
|
+
type schemas_TableOpRename = TableOpRename;
|
620
|
+
type schemas_ColumnOpAdd = ColumnOpAdd;
|
621
|
+
type schemas_ColumnOpRemove = ColumnOpRemove;
|
622
|
+
type schemas_ColumnOpRename = ColumnOpRename;
|
623
|
+
type schemas_MigrationRequest = MigrationRequest;
|
491
624
|
type schemas_SortExpression = SortExpression;
|
492
625
|
type schemas_SortOrder = SortOrder;
|
493
626
|
type schemas_FuzzinessExpression = FuzzinessExpression;
|
@@ -534,7 +667,9 @@ declare namespace schemas {
|
|
534
667
|
schemas_DBBranch as DBBranch,
|
535
668
|
schemas_StartedFromMetadata as StartedFromMetadata,
|
536
669
|
schemas_Schema as Schema,
|
670
|
+
schemas_SchemaEditScript as SchemaEditScript,
|
537
671
|
schemas_Table as Table,
|
672
|
+
schemas_TableEdit as TableEdit,
|
538
673
|
schemas_Column as Column,
|
539
674
|
schemas_RevLink as RevLink,
|
540
675
|
schemas_BranchName as BranchName,
|
@@ -547,6 +682,18 @@ declare namespace schemas {
|
|
547
682
|
schemas_BranchMigration as BranchMigration,
|
548
683
|
schemas_TableMigration as TableMigration,
|
549
684
|
schemas_ColumnMigration as ColumnMigration,
|
685
|
+
schemas_Commit as Commit,
|
686
|
+
schemas_Migration as Migration,
|
687
|
+
schemas_MigrationOp as MigrationOp,
|
688
|
+
schemas_MigrationTableOp as MigrationTableOp,
|
689
|
+
schemas_MigrationColumnOp as MigrationColumnOp,
|
690
|
+
schemas_TableOpAdd as TableOpAdd,
|
691
|
+
schemas_TableOpRemove as TableOpRemove,
|
692
|
+
schemas_TableOpRename as TableOpRename,
|
693
|
+
schemas_ColumnOpAdd as ColumnOpAdd,
|
694
|
+
schemas_ColumnOpRemove as ColumnOpRemove,
|
695
|
+
schemas_ColumnOpRename as ColumnOpRename,
|
696
|
+
schemas_MigrationRequest as MigrationRequest,
|
550
697
|
schemas_SortExpression as SortExpression,
|
551
698
|
schemas_SortOrder as SortOrder,
|
552
699
|
schemas_FuzzinessExpression as FuzzinessExpression,
|
@@ -612,6 +759,11 @@ declare type BranchMigrationPlan = {
|
|
612
759
|
migration: BranchMigration;
|
613
760
|
};
|
614
761
|
declare type RecordResponse = XataRecord$1;
|
762
|
+
declare type SchemaCompareResponse = {
|
763
|
+
source: Schema;
|
764
|
+
target: Schema;
|
765
|
+
edits: SchemaEditScript;
|
766
|
+
};
|
615
767
|
declare type RecordUpdateResponse = XataRecord$1 | {
|
616
768
|
id: string;
|
617
769
|
xata: {
|
@@ -639,6 +791,7 @@ type responses_BulkError = BulkError;
|
|
639
791
|
type responses_BulkInsertResponse = BulkInsertResponse;
|
640
792
|
type responses_BranchMigrationPlan = BranchMigrationPlan;
|
641
793
|
type responses_RecordResponse = RecordResponse;
|
794
|
+
type responses_SchemaCompareResponse = SchemaCompareResponse;
|
642
795
|
type responses_RecordUpdateResponse = RecordUpdateResponse;
|
643
796
|
type responses_QueryResponse = QueryResponse;
|
644
797
|
type responses_SearchResponse = SearchResponse;
|
@@ -652,6 +805,7 @@ declare namespace responses {
|
|
652
805
|
responses_BulkInsertResponse as BulkInsertResponse,
|
653
806
|
responses_BranchMigrationPlan as BranchMigrationPlan,
|
654
807
|
responses_RecordResponse as RecordResponse,
|
808
|
+
responses_SchemaCompareResponse as SchemaCompareResponse,
|
655
809
|
responses_RecordUpdateResponse as RecordUpdateResponse,
|
656
810
|
responses_QueryResponse as QueryResponse,
|
657
811
|
responses_SearchResponse as SearchResponse,
|
@@ -1118,7 +1272,6 @@ declare type CreateDatabaseResponse = {
|
|
1118
1272
|
branchName?: string;
|
1119
1273
|
};
|
1120
1274
|
declare type CreateDatabaseRequestBody = {
|
1121
|
-
displayName?: string;
|
1122
1275
|
branchName?: string;
|
1123
1276
|
ui?: {
|
1124
1277
|
color?: string;
|
@@ -1175,6 +1328,33 @@ declare type GetDatabaseMetadataVariables = {
|
|
1175
1328
|
* Retrieve metadata of the given database
|
1176
1329
|
*/
|
1177
1330
|
declare const getDatabaseMetadata: (variables: GetDatabaseMetadataVariables) => Promise<DatabaseMetadata>;
|
1331
|
+
declare type UpdateDatabaseMetadataPathParams = {
|
1332
|
+
dbName: DBName;
|
1333
|
+
workspace: string;
|
1334
|
+
};
|
1335
|
+
declare type UpdateDatabaseMetadataError = ErrorWrapper<{
|
1336
|
+
status: 400;
|
1337
|
+
payload: BadRequestError;
|
1338
|
+
} | {
|
1339
|
+
status: 401;
|
1340
|
+
payload: AuthError;
|
1341
|
+
} | {
|
1342
|
+
status: 404;
|
1343
|
+
payload: SimpleError;
|
1344
|
+
}>;
|
1345
|
+
declare type UpdateDatabaseMetadataRequestBody = {
|
1346
|
+
ui?: {
|
1347
|
+
color?: string;
|
1348
|
+
};
|
1349
|
+
};
|
1350
|
+
declare type UpdateDatabaseMetadataVariables = {
|
1351
|
+
body?: UpdateDatabaseMetadataRequestBody;
|
1352
|
+
pathParams: UpdateDatabaseMetadataPathParams;
|
1353
|
+
} & FetcherExtraProps;
|
1354
|
+
/**
|
1355
|
+
* Update the color of the selected database
|
1356
|
+
*/
|
1357
|
+
declare const updateDatabaseMetadata: (variables: UpdateDatabaseMetadataVariables) => Promise<DatabaseMetadata>;
|
1178
1358
|
declare type GetGitBranchesMappingPathParams = {
|
1179
1359
|
dbName: DBName;
|
1180
1360
|
workspace: string;
|
@@ -1332,6 +1512,201 @@ declare type ResolveBranchVariables = {
|
|
1332
1512
|
* ```
|
1333
1513
|
*/
|
1334
1514
|
declare const resolveBranch: (variables: ResolveBranchVariables) => Promise<ResolveBranchResponse>;
|
1515
|
+
declare type ListMigrationRequestsPathParams = {
|
1516
|
+
dbName: DBName;
|
1517
|
+
workspace: string;
|
1518
|
+
};
|
1519
|
+
declare type ListMigrationRequestsError = ErrorWrapper<{
|
1520
|
+
status: 400;
|
1521
|
+
payload: BadRequestError;
|
1522
|
+
} | {
|
1523
|
+
status: 401;
|
1524
|
+
payload: AuthError;
|
1525
|
+
} | {
|
1526
|
+
status: 404;
|
1527
|
+
payload: SimpleError;
|
1528
|
+
}>;
|
1529
|
+
declare type ListMigrationRequestsResponse = {
|
1530
|
+
migrationRequests: MigrationRequest[];
|
1531
|
+
meta: RecordsMetadata;
|
1532
|
+
};
|
1533
|
+
declare type ListMigrationRequestsRequestBody = {
|
1534
|
+
filter?: FilterExpression;
|
1535
|
+
sort?: SortExpression;
|
1536
|
+
page?: PageConfig;
|
1537
|
+
columns?: ColumnsProjection;
|
1538
|
+
};
|
1539
|
+
declare type ListMigrationRequestsVariables = {
|
1540
|
+
body?: ListMigrationRequestsRequestBody;
|
1541
|
+
pathParams: ListMigrationRequestsPathParams;
|
1542
|
+
} & FetcherExtraProps;
|
1543
|
+
declare const listMigrationRequests: (variables: ListMigrationRequestsVariables) => Promise<ListMigrationRequestsResponse>;
|
1544
|
+
declare type CreateMigrationRequestPathParams = {
|
1545
|
+
dbName: DBName;
|
1546
|
+
workspace: string;
|
1547
|
+
};
|
1548
|
+
declare type CreateMigrationRequestError = ErrorWrapper<{
|
1549
|
+
status: 400;
|
1550
|
+
payload: BadRequestError;
|
1551
|
+
} | {
|
1552
|
+
status: 401;
|
1553
|
+
payload: AuthError;
|
1554
|
+
} | {
|
1555
|
+
status: 404;
|
1556
|
+
payload: SimpleError;
|
1557
|
+
}>;
|
1558
|
+
declare type CreateMigrationRequestResponse = {
|
1559
|
+
number: number;
|
1560
|
+
};
|
1561
|
+
declare type CreateMigrationRequestRequestBody = {
|
1562
|
+
source: string;
|
1563
|
+
target: string;
|
1564
|
+
title: string;
|
1565
|
+
body?: string;
|
1566
|
+
};
|
1567
|
+
declare type CreateMigrationRequestVariables = {
|
1568
|
+
body: CreateMigrationRequestRequestBody;
|
1569
|
+
pathParams: CreateMigrationRequestPathParams;
|
1570
|
+
} & FetcherExtraProps;
|
1571
|
+
declare const createMigrationRequest: (variables: CreateMigrationRequestVariables) => Promise<CreateMigrationRequestResponse>;
|
1572
|
+
declare type GetMigrationRequestPathParams = {
|
1573
|
+
dbName: DBName;
|
1574
|
+
mrNumber: number;
|
1575
|
+
workspace: string;
|
1576
|
+
};
|
1577
|
+
declare type GetMigrationRequestError = ErrorWrapper<{
|
1578
|
+
status: 400;
|
1579
|
+
payload: BadRequestError;
|
1580
|
+
} | {
|
1581
|
+
status: 401;
|
1582
|
+
payload: AuthError;
|
1583
|
+
} | {
|
1584
|
+
status: 404;
|
1585
|
+
payload: SimpleError;
|
1586
|
+
}>;
|
1587
|
+
declare type GetMigrationRequestVariables = {
|
1588
|
+
pathParams: GetMigrationRequestPathParams;
|
1589
|
+
} & FetcherExtraProps;
|
1590
|
+
declare const getMigrationRequest: (variables: GetMigrationRequestVariables) => Promise<MigrationRequest>;
|
1591
|
+
declare type UpdateMigrationRequestPathParams = {
|
1592
|
+
dbName: DBName;
|
1593
|
+
mrNumber: number;
|
1594
|
+
workspace: string;
|
1595
|
+
};
|
1596
|
+
declare type UpdateMigrationRequestError = ErrorWrapper<{
|
1597
|
+
status: 400;
|
1598
|
+
payload: BadRequestError;
|
1599
|
+
} | {
|
1600
|
+
status: 401;
|
1601
|
+
payload: AuthError;
|
1602
|
+
} | {
|
1603
|
+
status: 404;
|
1604
|
+
payload: SimpleError;
|
1605
|
+
}>;
|
1606
|
+
declare type UpdateMigrationRequestRequestBody = {
|
1607
|
+
title?: string;
|
1608
|
+
body?: string;
|
1609
|
+
status?: 'open' | 'closed';
|
1610
|
+
};
|
1611
|
+
declare type UpdateMigrationRequestVariables = {
|
1612
|
+
body?: UpdateMigrationRequestRequestBody;
|
1613
|
+
pathParams: UpdateMigrationRequestPathParams;
|
1614
|
+
} & FetcherExtraProps;
|
1615
|
+
declare const updateMigrationRequest: (variables: UpdateMigrationRequestVariables) => Promise<undefined>;
|
1616
|
+
declare type ListMigrationRequestsCommitsPathParams = {
|
1617
|
+
dbName: DBName;
|
1618
|
+
mrNumber: number;
|
1619
|
+
workspace: string;
|
1620
|
+
};
|
1621
|
+
declare type ListMigrationRequestsCommitsError = ErrorWrapper<{
|
1622
|
+
status: 400;
|
1623
|
+
payload: BadRequestError;
|
1624
|
+
} | {
|
1625
|
+
status: 401;
|
1626
|
+
payload: AuthError;
|
1627
|
+
} | {
|
1628
|
+
status: 404;
|
1629
|
+
payload: SimpleError;
|
1630
|
+
}>;
|
1631
|
+
declare type ListMigrationRequestsCommitsResponse = {
|
1632
|
+
meta: {
|
1633
|
+
cursor: string;
|
1634
|
+
more: boolean;
|
1635
|
+
};
|
1636
|
+
logs: Commit[];
|
1637
|
+
};
|
1638
|
+
declare type ListMigrationRequestsCommitsRequestBody = {
|
1639
|
+
page?: {
|
1640
|
+
after?: string;
|
1641
|
+
before?: string;
|
1642
|
+
size?: number;
|
1643
|
+
};
|
1644
|
+
};
|
1645
|
+
declare type ListMigrationRequestsCommitsVariables = {
|
1646
|
+
body?: ListMigrationRequestsCommitsRequestBody;
|
1647
|
+
pathParams: ListMigrationRequestsCommitsPathParams;
|
1648
|
+
} & FetcherExtraProps;
|
1649
|
+
declare const listMigrationRequestsCommits: (variables: ListMigrationRequestsCommitsVariables) => Promise<ListMigrationRequestsCommitsResponse>;
|
1650
|
+
declare type CompareMigrationRequestPathParams = {
|
1651
|
+
dbName: DBName;
|
1652
|
+
mrNumber: number;
|
1653
|
+
workspace: string;
|
1654
|
+
};
|
1655
|
+
declare type CompareMigrationRequestError = ErrorWrapper<{
|
1656
|
+
status: 400;
|
1657
|
+
payload: BadRequestError;
|
1658
|
+
} | {
|
1659
|
+
status: 401;
|
1660
|
+
payload: AuthError;
|
1661
|
+
} | {
|
1662
|
+
status: 404;
|
1663
|
+
payload: SimpleError;
|
1664
|
+
}>;
|
1665
|
+
declare type CompareMigrationRequestVariables = {
|
1666
|
+
pathParams: CompareMigrationRequestPathParams;
|
1667
|
+
} & FetcherExtraProps;
|
1668
|
+
declare const compareMigrationRequest: (variables: CompareMigrationRequestVariables) => Promise<SchemaCompareResponse>;
|
1669
|
+
declare type GetMigrationRequestIsMergedPathParams = {
|
1670
|
+
dbName: DBName;
|
1671
|
+
mrNumber: number;
|
1672
|
+
workspace: string;
|
1673
|
+
};
|
1674
|
+
declare type GetMigrationRequestIsMergedError = ErrorWrapper<{
|
1675
|
+
status: 400;
|
1676
|
+
payload: BadRequestError;
|
1677
|
+
} | {
|
1678
|
+
status: 401;
|
1679
|
+
payload: AuthError;
|
1680
|
+
} | {
|
1681
|
+
status: 404;
|
1682
|
+
payload: SimpleError;
|
1683
|
+
}>;
|
1684
|
+
declare type GetMigrationRequestIsMergedResponse = {
|
1685
|
+
merged?: boolean;
|
1686
|
+
};
|
1687
|
+
declare type GetMigrationRequestIsMergedVariables = {
|
1688
|
+
pathParams: GetMigrationRequestIsMergedPathParams;
|
1689
|
+
} & FetcherExtraProps;
|
1690
|
+
declare const getMigrationRequestIsMerged: (variables: GetMigrationRequestIsMergedVariables) => Promise<GetMigrationRequestIsMergedResponse>;
|
1691
|
+
declare type MergeMigrationRequestPathParams = {
|
1692
|
+
dbName: DBName;
|
1693
|
+
mrNumber: number;
|
1694
|
+
workspace: string;
|
1695
|
+
};
|
1696
|
+
declare type MergeMigrationRequestError = ErrorWrapper<{
|
1697
|
+
status: 400;
|
1698
|
+
payload: BadRequestError;
|
1699
|
+
} | {
|
1700
|
+
status: 401;
|
1701
|
+
payload: AuthError;
|
1702
|
+
} | {
|
1703
|
+
status: 404;
|
1704
|
+
payload: SimpleError;
|
1705
|
+
}>;
|
1706
|
+
declare type MergeMigrationRequestVariables = {
|
1707
|
+
pathParams: MergeMigrationRequestPathParams;
|
1708
|
+
} & FetcherExtraProps;
|
1709
|
+
declare const mergeMigrationRequest: (variables: MergeMigrationRequestVariables) => Promise<Commit>;
|
1335
1710
|
declare type GetBranchDetailsPathParams = {
|
1336
1711
|
dbBranchName: DBBranchName;
|
1337
1712
|
workspace: string;
|
@@ -1517,6 +1892,157 @@ declare type GetBranchMigrationPlanVariables = {
|
|
1517
1892
|
* Compute a migration plan from a target schema the branch should be migrated too.
|
1518
1893
|
*/
|
1519
1894
|
declare const getBranchMigrationPlan: (variables: GetBranchMigrationPlanVariables) => Promise<BranchMigrationPlan>;
|
1895
|
+
declare type CompareBranchWithUserSchemaPathParams = {
|
1896
|
+
dbBranchName: DBBranchName;
|
1897
|
+
workspace: string;
|
1898
|
+
};
|
1899
|
+
declare type CompareBranchWithUserSchemaError = ErrorWrapper<{
|
1900
|
+
status: 400;
|
1901
|
+
payload: BadRequestError;
|
1902
|
+
} | {
|
1903
|
+
status: 401;
|
1904
|
+
payload: AuthError;
|
1905
|
+
} | {
|
1906
|
+
status: 404;
|
1907
|
+
payload: SimpleError;
|
1908
|
+
}>;
|
1909
|
+
declare type CompareBranchWithUserSchemaRequestBody = {
|
1910
|
+
schema: Schema;
|
1911
|
+
};
|
1912
|
+
declare type CompareBranchWithUserSchemaVariables = {
|
1913
|
+
body: CompareBranchWithUserSchemaRequestBody;
|
1914
|
+
pathParams: CompareBranchWithUserSchemaPathParams;
|
1915
|
+
} & FetcherExtraProps;
|
1916
|
+
declare const compareBranchWithUserSchema: (variables: CompareBranchWithUserSchemaVariables) => Promise<SchemaCompareResponse>;
|
1917
|
+
declare type CompareBranchSchemasPathParams = {
|
1918
|
+
dbBranchName: DBBranchName;
|
1919
|
+
branchName: BranchName;
|
1920
|
+
workspace: string;
|
1921
|
+
};
|
1922
|
+
declare type CompareBranchSchemasError = ErrorWrapper<{
|
1923
|
+
status: 400;
|
1924
|
+
payload: BadRequestError;
|
1925
|
+
} | {
|
1926
|
+
status: 401;
|
1927
|
+
payload: AuthError;
|
1928
|
+
} | {
|
1929
|
+
status: 404;
|
1930
|
+
payload: SimpleError;
|
1931
|
+
}>;
|
1932
|
+
declare type CompareBranchSchemasVariables = {
|
1933
|
+
body?: Record<string, any>;
|
1934
|
+
pathParams: CompareBranchSchemasPathParams;
|
1935
|
+
} & FetcherExtraProps;
|
1936
|
+
declare const compareBranchSchemas: (variables: CompareBranchSchemasVariables) => Promise<SchemaCompareResponse>;
|
1937
|
+
declare type UpdateBranchSchemaPathParams = {
|
1938
|
+
dbBranchName: DBBranchName;
|
1939
|
+
workspace: string;
|
1940
|
+
};
|
1941
|
+
declare type UpdateBranchSchemaError = ErrorWrapper<{
|
1942
|
+
status: 400;
|
1943
|
+
payload: BadRequestError;
|
1944
|
+
} | {
|
1945
|
+
status: 401;
|
1946
|
+
payload: AuthError;
|
1947
|
+
} | {
|
1948
|
+
status: 404;
|
1949
|
+
payload: SimpleError;
|
1950
|
+
}>;
|
1951
|
+
declare type UpdateBranchSchemaResponse = {
|
1952
|
+
id: string;
|
1953
|
+
parentID: string;
|
1954
|
+
};
|
1955
|
+
declare type UpdateBranchSchemaVariables = {
|
1956
|
+
body: Migration;
|
1957
|
+
pathParams: UpdateBranchSchemaPathParams;
|
1958
|
+
} & FetcherExtraProps;
|
1959
|
+
declare const updateBranchSchema: (variables: UpdateBranchSchemaVariables) => Promise<UpdateBranchSchemaResponse>;
|
1960
|
+
declare type PreviewBranchSchemaEditPathParams = {
|
1961
|
+
dbBranchName: DBBranchName;
|
1962
|
+
workspace: string;
|
1963
|
+
};
|
1964
|
+
declare type PreviewBranchSchemaEditError = ErrorWrapper<{
|
1965
|
+
status: 400;
|
1966
|
+
payload: BadRequestError;
|
1967
|
+
} | {
|
1968
|
+
status: 401;
|
1969
|
+
payload: AuthError;
|
1970
|
+
} | {
|
1971
|
+
status: 404;
|
1972
|
+
payload: SimpleError;
|
1973
|
+
}>;
|
1974
|
+
declare type PreviewBranchSchemaEditResponse = {
|
1975
|
+
original: Schema;
|
1976
|
+
updated: Schema;
|
1977
|
+
};
|
1978
|
+
declare type PreviewBranchSchemaEditRequestBody = {
|
1979
|
+
edits?: SchemaEditScript;
|
1980
|
+
operations?: MigrationOp[];
|
1981
|
+
};
|
1982
|
+
declare type PreviewBranchSchemaEditVariables = {
|
1983
|
+
body?: PreviewBranchSchemaEditRequestBody;
|
1984
|
+
pathParams: PreviewBranchSchemaEditPathParams;
|
1985
|
+
} & FetcherExtraProps;
|
1986
|
+
declare const previewBranchSchemaEdit: (variables: PreviewBranchSchemaEditVariables) => Promise<PreviewBranchSchemaEditResponse>;
|
1987
|
+
declare type ApplyBranchSchemaEditPathParams = {
|
1988
|
+
dbBranchName: DBBranchName;
|
1989
|
+
workspace: string;
|
1990
|
+
};
|
1991
|
+
declare type ApplyBranchSchemaEditError = ErrorWrapper<{
|
1992
|
+
status: 400;
|
1993
|
+
payload: BadRequestError;
|
1994
|
+
} | {
|
1995
|
+
status: 401;
|
1996
|
+
payload: AuthError;
|
1997
|
+
} | {
|
1998
|
+
status: 404;
|
1999
|
+
payload: SimpleError;
|
2000
|
+
}>;
|
2001
|
+
declare type ApplyBranchSchemaEditResponse = {
|
2002
|
+
id: string;
|
2003
|
+
parentID: string;
|
2004
|
+
};
|
2005
|
+
declare type ApplyBranchSchemaEditRequestBody = {
|
2006
|
+
edits: SchemaEditScript;
|
2007
|
+
};
|
2008
|
+
declare type ApplyBranchSchemaEditVariables = {
|
2009
|
+
body: ApplyBranchSchemaEditRequestBody;
|
2010
|
+
pathParams: ApplyBranchSchemaEditPathParams;
|
2011
|
+
} & FetcherExtraProps;
|
2012
|
+
declare const applyBranchSchemaEdit: (variables: ApplyBranchSchemaEditVariables) => Promise<ApplyBranchSchemaEditResponse>;
|
2013
|
+
declare type GetBranchSchemaHistoryPathParams = {
|
2014
|
+
dbBranchName: DBBranchName;
|
2015
|
+
workspace: string;
|
2016
|
+
};
|
2017
|
+
declare type GetBranchSchemaHistoryError = ErrorWrapper<{
|
2018
|
+
status: 400;
|
2019
|
+
payload: BadRequestError;
|
2020
|
+
} | {
|
2021
|
+
status: 401;
|
2022
|
+
payload: AuthError;
|
2023
|
+
} | {
|
2024
|
+
status: 404;
|
2025
|
+
payload: SimpleError;
|
2026
|
+
}>;
|
2027
|
+
declare type GetBranchSchemaHistoryResponse = {
|
2028
|
+
meta: {
|
2029
|
+
cursor: string;
|
2030
|
+
more: boolean;
|
2031
|
+
};
|
2032
|
+
logs: Commit[];
|
2033
|
+
};
|
2034
|
+
declare type GetBranchSchemaHistoryRequestBody = {
|
2035
|
+
page?: {
|
2036
|
+
after?: string;
|
2037
|
+
before?: string;
|
2038
|
+
size?: number;
|
2039
|
+
};
|
2040
|
+
};
|
2041
|
+
declare type GetBranchSchemaHistoryVariables = {
|
2042
|
+
body?: GetBranchSchemaHistoryRequestBody;
|
2043
|
+
pathParams: GetBranchSchemaHistoryPathParams;
|
2044
|
+
} & FetcherExtraProps;
|
2045
|
+
declare const getBranchSchemaHistory: (variables: GetBranchSchemaHistoryVariables) => Promise<GetBranchSchemaHistoryResponse>;
|
1520
2046
|
declare type GetBranchStatsPathParams = {
|
1521
2047
|
dbBranchName: DBBranchName;
|
1522
2048
|
workspace: string;
|
@@ -2811,6 +3337,7 @@ declare type SearchBranchRequestBody = {
|
|
2811
3337
|
})[];
|
2812
3338
|
query: string;
|
2813
3339
|
fuzziness?: FuzzinessExpression;
|
3340
|
+
prefix?: PrefixExpression;
|
2814
3341
|
highlight?: HighlightExpression;
|
2815
3342
|
};
|
2816
3343
|
declare type SearchBranchVariables = {
|
@@ -2850,6 +3377,7 @@ declare const operationsByTag: {
|
|
2850
3377
|
createDatabase: (variables: CreateDatabaseVariables) => Promise<CreateDatabaseResponse>;
|
2851
3378
|
deleteDatabase: (variables: DeleteDatabaseVariables) => Promise<undefined>;
|
2852
3379
|
getDatabaseMetadata: (variables: GetDatabaseMetadataVariables) => Promise<DatabaseMetadata>;
|
3380
|
+
updateDatabaseMetadata: (variables: UpdateDatabaseMetadataVariables) => Promise<DatabaseMetadata>;
|
2853
3381
|
getGitBranchesMapping: (variables: GetGitBranchesMappingVariables) => Promise<ListGitBranchesResponse>;
|
2854
3382
|
addGitBranchesEntry: (variables: AddGitBranchesEntryVariables) => Promise<AddGitBranchesEntryResponse>;
|
2855
3383
|
removeGitBranchesEntry: (variables: RemoveGitBranchesEntryVariables) => Promise<undefined>;
|
@@ -2862,10 +3390,28 @@ declare const operationsByTag: {
|
|
2862
3390
|
deleteBranch: (variables: DeleteBranchVariables) => Promise<undefined>;
|
2863
3391
|
updateBranchMetadata: (variables: UpdateBranchMetadataVariables) => Promise<undefined>;
|
2864
3392
|
getBranchMetadata: (variables: GetBranchMetadataVariables) => Promise<BranchMetadata>;
|
3393
|
+
getBranchStats: (variables: GetBranchStatsVariables) => Promise<GetBranchStatsResponse>;
|
3394
|
+
};
|
3395
|
+
migrationRequests: {
|
3396
|
+
listMigrationRequests: (variables: ListMigrationRequestsVariables) => Promise<ListMigrationRequestsResponse>;
|
3397
|
+
createMigrationRequest: (variables: CreateMigrationRequestVariables) => Promise<CreateMigrationRequestResponse>;
|
3398
|
+
getMigrationRequest: (variables: GetMigrationRequestVariables) => Promise<MigrationRequest>;
|
3399
|
+
updateMigrationRequest: (variables: UpdateMigrationRequestVariables) => Promise<undefined>;
|
3400
|
+
listMigrationRequestsCommits: (variables: ListMigrationRequestsCommitsVariables) => Promise<ListMigrationRequestsCommitsResponse>;
|
3401
|
+
compareMigrationRequest: (variables: CompareMigrationRequestVariables) => Promise<SchemaCompareResponse>;
|
3402
|
+
getMigrationRequestIsMerged: (variables: GetMigrationRequestIsMergedVariables) => Promise<GetMigrationRequestIsMergedResponse>;
|
3403
|
+
mergeMigrationRequest: (variables: MergeMigrationRequestVariables) => Promise<Commit>;
|
3404
|
+
};
|
3405
|
+
branchSchema: {
|
2865
3406
|
getBranchMigrationHistory: (variables: GetBranchMigrationHistoryVariables) => Promise<GetBranchMigrationHistoryResponse>;
|
2866
3407
|
executeBranchMigrationPlan: (variables: ExecuteBranchMigrationPlanVariables) => Promise<undefined>;
|
2867
3408
|
getBranchMigrationPlan: (variables: GetBranchMigrationPlanVariables) => Promise<BranchMigrationPlan>;
|
2868
|
-
|
3409
|
+
compareBranchWithUserSchema: (variables: CompareBranchWithUserSchemaVariables) => Promise<SchemaCompareResponse>;
|
3410
|
+
compareBranchSchemas: (variables: CompareBranchSchemasVariables) => Promise<SchemaCompareResponse>;
|
3411
|
+
updateBranchSchema: (variables: UpdateBranchSchemaVariables) => Promise<UpdateBranchSchemaResponse>;
|
3412
|
+
previewBranchSchemaEdit: (variables: PreviewBranchSchemaEditVariables) => Promise<PreviewBranchSchemaEditResponse>;
|
3413
|
+
applyBranchSchemaEdit: (variables: ApplyBranchSchemaEditVariables) => Promise<ApplyBranchSchemaEditResponse>;
|
3414
|
+
getBranchSchemaHistory: (variables: GetBranchSchemaHistoryVariables) => Promise<GetBranchSchemaHistoryResponse>;
|
2869
3415
|
};
|
2870
3416
|
table: {
|
2871
3417
|
createTable: (variables: CreateTableVariables) => Promise<CreateTableResponse>;
|
@@ -2915,6 +3461,8 @@ declare class XataApiClient {
|
|
2915
3461
|
get branches(): BranchApi;
|
2916
3462
|
get tables(): TableApi;
|
2917
3463
|
get records(): RecordsApi;
|
3464
|
+
get migrationRequests(): MigrationRequestsApi;
|
3465
|
+
get branchSchema(): BranchSchemaApi;
|
2918
3466
|
}
|
2919
3467
|
declare class UserApi {
|
2920
3468
|
private extraProps;
|
@@ -2950,6 +3498,7 @@ declare class DatabaseApi {
|
|
2950
3498
|
createDatabase(workspace: WorkspaceID, dbName: DBName, options?: CreateDatabaseRequestBody): Promise<CreateDatabaseResponse>;
|
2951
3499
|
deleteDatabase(workspace: WorkspaceID, dbName: DBName): Promise<void>;
|
2952
3500
|
getDatabaseMetadata(workspace: WorkspaceID, dbName: DBName): Promise<DatabaseMetadata>;
|
3501
|
+
updateDatabaseMetadata(workspace: WorkspaceID, dbName: DBName, options?: UpdateDatabaseMetadataRequestBody): Promise<DatabaseMetadata>;
|
2953
3502
|
getGitBranchesMapping(workspace: WorkspaceID, dbName: DBName): Promise<ListGitBranchesResponse>;
|
2954
3503
|
addGitBranchesEntry(workspace: WorkspaceID, dbName: DBName, body: AddGitBranchesEntryRequestBody): Promise<AddGitBranchesEntryResponse>;
|
2955
3504
|
removeGitBranchesEntry(workspace: WorkspaceID, dbName: DBName, gitBranch: string): Promise<void>;
|
@@ -2964,9 +3513,6 @@ declare class BranchApi {
|
|
2964
3513
|
deleteBranch(workspace: WorkspaceID, database: DBName, branch: BranchName): Promise<void>;
|
2965
3514
|
updateBranchMetadata(workspace: WorkspaceID, database: DBName, branch: BranchName, metadata?: BranchMetadata): Promise<void>;
|
2966
3515
|
getBranchMetadata(workspace: WorkspaceID, database: DBName, branch: BranchName): Promise<BranchMetadata>;
|
2967
|
-
getBranchMigrationHistory(workspace: WorkspaceID, database: DBName, branch: BranchName, options?: GetBranchMigrationHistoryRequestBody): Promise<GetBranchMigrationHistoryResponse>;
|
2968
|
-
executeBranchMigrationPlan(workspace: WorkspaceID, database: DBName, branch: BranchName, migrationPlan: ExecuteBranchMigrationPlanRequestBody): Promise<void>;
|
2969
|
-
getBranchMigrationPlan(workspace: WorkspaceID, database: DBName, branch: BranchName, schema: Schema): Promise<BranchMigrationPlan>;
|
2970
3516
|
getBranchStats(workspace: WorkspaceID, database: DBName, branch: BranchName): Promise<GetBranchStatsResponse>;
|
2971
3517
|
}
|
2972
3518
|
declare class TableApi {
|
@@ -2997,6 +3543,31 @@ declare class RecordsApi {
|
|
2997
3543
|
searchTable(workspace: WorkspaceID, database: DBName, branch: BranchName, tableName: TableName, query: SearchTableRequestBody): Promise<SearchResponse>;
|
2998
3544
|
searchBranch(workspace: WorkspaceID, database: DBName, branch: BranchName, query: SearchBranchRequestBody): Promise<SearchResponse>;
|
2999
3545
|
}
|
3546
|
+
declare class MigrationRequestsApi {
|
3547
|
+
private extraProps;
|
3548
|
+
constructor(extraProps: FetcherExtraProps);
|
3549
|
+
listMigrationRequests(workspace: WorkspaceID, database: DBName, options?: ListMigrationRequestsRequestBody): Promise<ListMigrationRequestsResponse>;
|
3550
|
+
createMigrationRequest(workspace: WorkspaceID, database: DBName, options: CreateMigrationRequestRequestBody): Promise<CreateMigrationRequestResponse>;
|
3551
|
+
getMigrationRequest(workspace: WorkspaceID, database: DBName, migrationRequest: number): Promise<MigrationRequest>;
|
3552
|
+
updateMigrationRequest(workspace: WorkspaceID, database: DBName, migrationRequest: number, options: UpdateMigrationRequestRequestBody): Promise<void>;
|
3553
|
+
listMigrationRequestsCommits(workspace: WorkspaceID, database: DBName, migrationRequest: number, options?: ListMigrationRequestsCommitsRequestBody): Promise<ListMigrationRequestsCommitsResponse>;
|
3554
|
+
compareMigrationRequest(workspace: WorkspaceID, database: DBName, migrationRequest: number): Promise<SchemaCompareResponse>;
|
3555
|
+
getMigrationRequestIsMerged(workspace: WorkspaceID, database: DBName, migrationRequest: number): Promise<GetMigrationRequestIsMergedResponse>;
|
3556
|
+
mergeMigrationRequest(workspace: WorkspaceID, database: DBName, migrationRequest: number): Promise<Commit>;
|
3557
|
+
}
|
3558
|
+
declare class BranchSchemaApi {
|
3559
|
+
private extraProps;
|
3560
|
+
constructor(extraProps: FetcherExtraProps);
|
3561
|
+
getBranchMigrationHistory(workspace: WorkspaceID, database: DBName, branch: BranchName, options?: GetBranchMigrationHistoryRequestBody): Promise<GetBranchMigrationHistoryResponse>;
|
3562
|
+
executeBranchMigrationPlan(workspace: WorkspaceID, database: DBName, branch: BranchName, migrationPlan: ExecuteBranchMigrationPlanRequestBody): Promise<void>;
|
3563
|
+
getBranchMigrationPlan(workspace: WorkspaceID, database: DBName, branch: BranchName, schema: Schema): Promise<BranchMigrationPlan>;
|
3564
|
+
compareBranchWithUserSchema(workspace: WorkspaceID, database: DBName, branch: BranchName, schema: Schema): Promise<SchemaCompareResponse>;
|
3565
|
+
compareBranchSchemas(workspace: WorkspaceID, database: DBName, branch: BranchName, branchName: BranchName, schema: Schema): Promise<SchemaCompareResponse>;
|
3566
|
+
updateBranchSchema(workspace: WorkspaceID, database: DBName, branch: BranchName, migration: Migration): Promise<UpdateBranchSchemaResponse>;
|
3567
|
+
previewBranchSchemaEdit(workspace: WorkspaceID, database: DBName, branch: BranchName, migration: Migration): Promise<PreviewBranchSchemaEditResponse>;
|
3568
|
+
applyBranchSchemaEdit(workspace: WorkspaceID, database: DBName, branch: BranchName, edits: SchemaEditScript): Promise<ApplyBranchSchemaEditResponse>;
|
3569
|
+
getBranchSchemaHistory(workspace: WorkspaceID, database: DBName, branch: BranchName, options?: GetBranchSchemaHistoryRequestBody): Promise<GetBranchSchemaHistoryResponse>;
|
3570
|
+
}
|
3000
3571
|
|
3001
3572
|
declare class XataApiPlugin implements XataPlugin {
|
3002
3573
|
build(options: XataPluginOptions): Promise<XataApiClient>;
|
@@ -3229,7 +3800,7 @@ declare type BaseApiFilter<Record> = PropertyAccessFilter<Record> | AggregatorFi
|
|
3229
3800
|
declare type NestedApiFilter<T> = {
|
3230
3801
|
[key in keyof T]?: T[key] extends Record<string, any> ? SingleOrArray<Filter<T[key]>> : PropertyFilter<T[key]>;
|
3231
3802
|
};
|
3232
|
-
declare type Filter<T> = T extends Record<string, any> ? T extends Date ? PropertyFilter<T> : BaseApiFilter<T> | NestedApiFilter<T> : PropertyFilter<T>;
|
3803
|
+
declare type Filter<T> = T extends Record<string, any> ? T extends (infer ArrayType)[] ? ArrayType | ArrayType[] | ArrayFilter<ArrayType> | ArrayFilter<ArrayType[]> : T extends Date ? PropertyFilter<T> : BaseApiFilter<T> | NestedApiFilter<T> : PropertyFilter<T>;
|
3233
3804
|
|
3234
3805
|
declare type DateBooster = {
|
3235
3806
|
origin?: string;
|
@@ -3344,7 +3915,10 @@ declare class Query<Record extends XataRecord, Result extends XataRecord = Recor
|
|
3344
3915
|
#private;
|
3345
3916
|
readonly meta: PaginationQueryMeta;
|
3346
3917
|
readonly records: RecordArray<Result>;
|
3347
|
-
constructor(repository: Repository<Record> | null, table:
|
3918
|
+
constructor(repository: Repository<Record> | null, table: {
|
3919
|
+
name: string;
|
3920
|
+
schema?: Table;
|
3921
|
+
}, data: Partial<QueryOptions<Record>>, rawParent?: Partial<QueryOptions<Record>>);
|
3348
3922
|
getQueryOptions(): QueryOptions<Record>;
|
3349
3923
|
key(): string;
|
3350
3924
|
/**
|
@@ -3397,7 +3971,10 @@ declare class Query<Record extends XataRecord, Result extends XataRecord = Recor
|
|
3397
3971
|
* @param filters A filter object
|
3398
3972
|
* @returns A new Query object.
|
3399
3973
|
*/
|
3400
|
-
filter(filters
|
3974
|
+
filter(filters?: Filter<Record>): Query<Record, Result>;
|
3975
|
+
defaultFilter<T>(column: string, value: T): T | {
|
3976
|
+
$includes: (T & string) | (T & string[]);
|
3977
|
+
};
|
3401
3978
|
/**
|
3402
3979
|
* Builds a new query with a new sort option.
|
3403
3980
|
* @param column The column name.
|
@@ -3971,6 +4548,7 @@ declare type BaseSchema = {
|
|
3971
4548
|
columns: readonly ({
|
3972
4549
|
name: string;
|
3973
4550
|
type: Column['type'];
|
4551
|
+
notNull?: boolean;
|
3974
4552
|
} | {
|
3975
4553
|
name: string;
|
3976
4554
|
type: 'link';
|
@@ -4000,10 +4578,10 @@ declare type TableType<Tables, TableName> = Tables & {
|
|
4000
4578
|
} ? Columns extends readonly unknown[] ? Columns[number] extends {
|
4001
4579
|
name: string;
|
4002
4580
|
type: string;
|
4003
|
-
} ? Identifiable & {
|
4004
|
-
[K in Columns[number]['name']]
|
4005
|
-
} : never : never : never : never;
|
4006
|
-
declare type PropertyType<Tables, Properties, PropertyName> = Properties & {
|
4581
|
+
} ? Identifiable & UnionToIntersection<Values<{
|
4582
|
+
[K in Columns[number]['name']]: PropertyType<Tables, Columns[number], K>;
|
4583
|
+
}>> : never : never : never : never;
|
4584
|
+
declare type PropertyType<Tables, Properties, PropertyName extends PropertyKey> = Properties & {
|
4007
4585
|
name: PropertyName;
|
4008
4586
|
} extends infer Property ? Property extends {
|
4009
4587
|
name: string;
|
@@ -4012,12 +4590,18 @@ declare type PropertyType<Tables, Properties, PropertyName> = Properties & {
|
|
4012
4590
|
table: infer LinkedTable;
|
4013
4591
|
};
|
4014
4592
|
columns?: infer ObjectColumns;
|
4015
|
-
|
4593
|
+
notNull?: infer NotNull;
|
4594
|
+
} ? NotNull extends true ? {
|
4595
|
+
[K in PropertyName]: InnerType<Type, ObjectColumns, Tables, LinkedTable>;
|
4596
|
+
} : {
|
4597
|
+
[K in PropertyName]?: InnerType<Type, ObjectColumns, Tables, LinkedTable> | null;
|
4598
|
+
} : never : never;
|
4599
|
+
declare type InnerType<Type, ObjectColumns, Tables, LinkedTable> = Type extends 'string' | 'text' | 'email' ? string : Type extends 'int' | 'float' ? number : Type extends 'bool' ? boolean : Type extends 'datetime' ? Date : Type extends 'multiple' ? string[] : Type extends 'object' ? ObjectColumns extends readonly unknown[] ? ObjectColumns[number] extends {
|
4016
4600
|
name: string;
|
4017
4601
|
type: string;
|
4018
|
-
} ? {
|
4019
|
-
[K in ObjectColumns[number]['name']]
|
4020
|
-
} : never : never : Type extends 'link' ? TableType<Tables, LinkedTable> & XataRecord : never
|
4602
|
+
} ? UnionToIntersection<Values<{
|
4603
|
+
[K in ObjectColumns[number]['name']]: PropertyType<Tables, ObjectColumns[number], K>;
|
4604
|
+
}>> : never : never : Type extends 'link' ? TableType<Tables, LinkedTable> & XataRecord : never;
|
4021
4605
|
|
4022
4606
|
/**
|
4023
4607
|
* Operator to restrict results to only values that are greater than the given value.
|
@@ -4125,8 +4709,6 @@ declare type SchemaDefinition = {
|
|
4125
4709
|
};
|
4126
4710
|
declare type SchemaPluginResult<Schemas extends Record<string, XataRecord>> = {
|
4127
4711
|
[Key in keyof Schemas]: Repository<Schemas[Key]>;
|
4128
|
-
} & {
|
4129
|
-
[key: string]: Repository<XataRecord>;
|
4130
4712
|
};
|
4131
4713
|
declare class SchemaPlugin<Schemas extends Record<string, XataRecord>> extends XataPlugin {
|
4132
4714
|
#private;
|
@@ -4270,4 +4852,4 @@ declare class XataError extends Error {
|
|
4270
4852
|
constructor(message: string, status: number);
|
4271
4853
|
}
|
4272
4854
|
|
4273
|
-
export { AcceptWorkspaceMemberInviteError, AcceptWorkspaceMemberInvitePathParams, AcceptWorkspaceMemberInviteVariables, AddGitBranchesEntryError, AddGitBranchesEntryPathParams, AddGitBranchesEntryRequestBody, AddGitBranchesEntryResponse, AddGitBranchesEntryVariables, AddTableColumnError, AddTableColumnPathParams, AddTableColumnVariables, BaseClient, BaseClientOptions, BaseData, BaseSchema, BulkInsertTableRecordsError, BulkInsertTableRecordsPathParams, BulkInsertTableRecordsQueryParams, BulkInsertTableRecordsRequestBody, BulkInsertTableRecordsVariables, CacheImpl, CancelWorkspaceMemberInviteError, CancelWorkspaceMemberInvitePathParams, CancelWorkspaceMemberInviteVariables, ClientConstructor, CreateBranchError, CreateBranchPathParams, CreateBranchQueryParams, CreateBranchRequestBody, CreateBranchResponse, CreateBranchVariables, CreateDatabaseError, CreateDatabasePathParams, CreateDatabaseRequestBody, CreateDatabaseResponse, CreateDatabaseVariables, CreateTableError, CreateTablePathParams, CreateTableResponse, CreateTableVariables, CreateUserAPIKeyError, CreateUserAPIKeyPathParams, CreateUserAPIKeyResponse, CreateUserAPIKeyVariables, CreateWorkspaceError, CreateWorkspaceVariables, CursorNavigationOptions, DeleteBranchError, DeleteBranchPathParams, DeleteBranchVariables, DeleteColumnError, DeleteColumnPathParams, DeleteColumnVariables, DeleteDatabaseError, DeleteDatabasePathParams, DeleteDatabaseVariables, DeleteRecordError, DeleteRecordPathParams, DeleteRecordQueryParams, DeleteRecordVariables, DeleteTableError, DeleteTablePathParams, DeleteTableVariables, DeleteUserAPIKeyError, DeleteUserAPIKeyPathParams, DeleteUserAPIKeyVariables, DeleteUserError, DeleteUserVariables, DeleteWorkspaceError, DeleteWorkspacePathParams, DeleteWorkspaceVariables, EditableData, ExecuteBranchMigrationPlanError, ExecuteBranchMigrationPlanPathParams, ExecuteBranchMigrationPlanRequestBody, ExecuteBranchMigrationPlanVariables, FetchImpl, FetcherExtraProps, GetBranchDetailsError, GetBranchDetailsPathParams, GetBranchDetailsVariables, GetBranchListError, GetBranchListPathParams, GetBranchListVariables, GetBranchMetadataError, GetBranchMetadataPathParams, GetBranchMetadataVariables, GetBranchMigrationHistoryError, GetBranchMigrationHistoryPathParams, GetBranchMigrationHistoryRequestBody, GetBranchMigrationHistoryResponse, GetBranchMigrationHistoryVariables, GetBranchMigrationPlanError, GetBranchMigrationPlanPathParams, GetBranchMigrationPlanVariables, GetBranchStatsError, GetBranchStatsPathParams, GetBranchStatsResponse, GetBranchStatsVariables, GetColumnError, GetColumnPathParams, GetColumnVariables, GetDatabaseListError, GetDatabaseListPathParams, GetDatabaseListVariables, GetDatabaseMetadataError, GetDatabaseMetadataPathParams, GetDatabaseMetadataVariables, GetGitBranchesMappingError, GetGitBranchesMappingPathParams, GetGitBranchesMappingVariables, GetRecordError, GetRecordPathParams, GetRecordQueryParams, GetRecordVariables, GetTableColumnsError, GetTableColumnsPathParams, GetTableColumnsResponse, GetTableColumnsVariables, GetTableSchemaError, GetTableSchemaPathParams, GetTableSchemaResponse, GetTableSchemaVariables, GetUserAPIKeysError, GetUserAPIKeysResponse, GetUserAPIKeysVariables, GetUserError, GetUserVariables, GetWorkspaceError, GetWorkspaceMembersListError, GetWorkspaceMembersListPathParams, GetWorkspaceMembersListVariables, GetWorkspacePathParams, GetWorkspaceVariables, GetWorkspacesListError, GetWorkspacesListResponse, GetWorkspacesListVariables, Identifiable, InsertRecordError, InsertRecordPathParams, InsertRecordQueryParams, InsertRecordVariables, InsertRecordWithIDError, InsertRecordWithIDPathParams, InsertRecordWithIDQueryParams, InsertRecordWithIDVariables, InviteWorkspaceMemberError, InviteWorkspaceMemberPathParams, InviteWorkspaceMemberRequestBody, InviteWorkspaceMemberVariables, Link, OffsetNavigationOptions, operationsByTag as Operations, PAGINATION_DEFAULT_OFFSET, PAGINATION_DEFAULT_SIZE, PAGINATION_MAX_OFFSET, PAGINATION_MAX_SIZE, Page, Paginable, PaginationQueryMeta, Query, QueryTableError, QueryTablePathParams, QueryTableRequestBody, QueryTableVariables, RecordArray, RemoveGitBranchesEntryError, RemoveGitBranchesEntryPathParams, RemoveGitBranchesEntryQueryParams, RemoveGitBranchesEntryVariables, RemoveWorkspaceMemberError, RemoveWorkspaceMemberPathParams, RemoveWorkspaceMemberVariables, Repository, ResendWorkspaceMemberInviteError, ResendWorkspaceMemberInvitePathParams, ResendWorkspaceMemberInviteVariables, ResolveBranchError, ResolveBranchPathParams, ResolveBranchQueryParams, ResolveBranchResponse, ResolveBranchVariables, responses as Responses, RestRepository, SchemaDefinition, SchemaInference, SchemaPlugin, SchemaPluginResult, schemas as Schemas, SearchBranchError, SearchBranchPathParams, SearchBranchRequestBody, SearchBranchVariables, SearchOptions, SearchPlugin, SearchPluginResult, SearchTableError, SearchTablePathParams, SearchTableRequestBody, SearchTableVariables, SearchXataRecord, SelectableColumn, SelectedPick, Serializer, SetTableSchemaError, SetTableSchemaPathParams, SetTableSchemaRequestBody, SetTableSchemaVariables, SimpleCache, SimpleCacheOptions, UpdateBranchMetadataError, UpdateBranchMetadataPathParams, UpdateBranchMetadataVariables, UpdateColumnError, UpdateColumnPathParams, UpdateColumnRequestBody, UpdateColumnVariables, UpdateRecordWithIDError, UpdateRecordWithIDPathParams, UpdateRecordWithIDQueryParams, UpdateRecordWithIDVariables, UpdateTableError, UpdateTablePathParams, UpdateTableRequestBody, UpdateTableVariables, UpdateUserError, UpdateUserVariables, UpdateWorkspaceError, UpdateWorkspaceMemberInviteError, UpdateWorkspaceMemberInvitePathParams, UpdateWorkspaceMemberInviteRequestBody, UpdateWorkspaceMemberInviteVariables, UpdateWorkspaceMemberRoleError, UpdateWorkspaceMemberRolePathParams, UpdateWorkspaceMemberRoleRequestBody, UpdateWorkspaceMemberRoleVariables, UpdateWorkspacePathParams, UpdateWorkspaceVariables, UpsertRecordWithIDError, UpsertRecordWithIDPathParams, UpsertRecordWithIDQueryParams, UpsertRecordWithIDVariables, ValueAtColumn, XataApiClient, XataApiClientOptions, XataApiPlugin, XataError, XataPlugin, XataPluginOptions, XataRecord, acceptWorkspaceMemberInvite, addGitBranchesEntry, addTableColumn, buildClient, buildWorkerRunner, bulkInsertTableRecords, cancelWorkspaceMemberInvite, contains, createBranch, createDatabase, createTable, createUserAPIKey, createWorkspace, deleteBranch, deleteColumn, deleteDatabase, deleteRecord, deleteTable, deleteUser, deleteUserAPIKey, deleteWorkspace, deserialize, endsWith, equals, executeBranchMigrationPlan, exists, ge, getAPIKey, getBranchDetails, getBranchList, getBranchMetadata, getBranchMigrationHistory, getBranchMigrationPlan, getBranchStats, getColumn, getCurrentBranchDetails, getCurrentBranchName, getDatabaseList, getDatabaseMetadata, getDatabaseURL, getGitBranchesMapping, getRecord, getTableColumns, getTableSchema, getUser, getUserAPIKeys, getWorkspace, getWorkspaceMembersList, getWorkspacesList, greaterEquals, greaterThan, greaterThanEquals, gt, gte, includes, includesAll, includesAny, includesNone, insertRecord, insertRecordWithID, inviteWorkspaceMember, is, isCursorPaginationOptions, isIdentifiable, isNot, isXataRecord, le, lessEquals, lessThan, lessThanEquals, lt, lte, notExists, operationsByTag, pattern, queryTable, removeGitBranchesEntry, removeWorkspaceMember, resendWorkspaceMemberInvite, resolveBranch, searchBranch, searchTable, serialize, setTableSchema, startsWith, updateBranchMetadata, updateColumn, updateRecordWithID, updateTable, updateUser, updateWorkspace, updateWorkspaceMemberInvite, updateWorkspaceMemberRole, upsertRecordWithID };
|
4855
|
+
export { AcceptWorkspaceMemberInviteError, AcceptWorkspaceMemberInvitePathParams, AcceptWorkspaceMemberInviteVariables, AddGitBranchesEntryError, AddGitBranchesEntryPathParams, AddGitBranchesEntryRequestBody, AddGitBranchesEntryResponse, AddGitBranchesEntryVariables, AddTableColumnError, AddTableColumnPathParams, AddTableColumnVariables, ApplyBranchSchemaEditError, ApplyBranchSchemaEditPathParams, ApplyBranchSchemaEditRequestBody, ApplyBranchSchemaEditResponse, ApplyBranchSchemaEditVariables, BaseClient, BaseClientOptions, BaseData, BaseSchema, BulkInsertTableRecordsError, BulkInsertTableRecordsPathParams, BulkInsertTableRecordsQueryParams, BulkInsertTableRecordsRequestBody, BulkInsertTableRecordsVariables, CacheImpl, CancelWorkspaceMemberInviteError, CancelWorkspaceMemberInvitePathParams, CancelWorkspaceMemberInviteVariables, ClientConstructor, CompareBranchSchemasError, CompareBranchSchemasPathParams, CompareBranchSchemasVariables, CompareBranchWithUserSchemaError, CompareBranchWithUserSchemaPathParams, CompareBranchWithUserSchemaRequestBody, CompareBranchWithUserSchemaVariables, CompareMigrationRequestError, CompareMigrationRequestPathParams, CompareMigrationRequestVariables, CreateBranchError, CreateBranchPathParams, CreateBranchQueryParams, CreateBranchRequestBody, CreateBranchResponse, CreateBranchVariables, CreateDatabaseError, CreateDatabasePathParams, CreateDatabaseRequestBody, CreateDatabaseResponse, CreateDatabaseVariables, CreateMigrationRequestError, CreateMigrationRequestPathParams, CreateMigrationRequestRequestBody, CreateMigrationRequestResponse, CreateMigrationRequestVariables, CreateTableError, CreateTablePathParams, CreateTableResponse, CreateTableVariables, CreateUserAPIKeyError, CreateUserAPIKeyPathParams, CreateUserAPIKeyResponse, CreateUserAPIKeyVariables, CreateWorkspaceError, CreateWorkspaceVariables, CursorNavigationOptions, DeleteBranchError, DeleteBranchPathParams, DeleteBranchVariables, DeleteColumnError, DeleteColumnPathParams, DeleteColumnVariables, DeleteDatabaseError, DeleteDatabasePathParams, DeleteDatabaseVariables, DeleteRecordError, DeleteRecordPathParams, DeleteRecordQueryParams, DeleteRecordVariables, DeleteTableError, DeleteTablePathParams, DeleteTableVariables, DeleteUserAPIKeyError, DeleteUserAPIKeyPathParams, DeleteUserAPIKeyVariables, DeleteUserError, DeleteUserVariables, DeleteWorkspaceError, DeleteWorkspacePathParams, DeleteWorkspaceVariables, EditableData, ExecuteBranchMigrationPlanError, ExecuteBranchMigrationPlanPathParams, ExecuteBranchMigrationPlanRequestBody, ExecuteBranchMigrationPlanVariables, FetchImpl, FetcherExtraProps, GetBranchDetailsError, GetBranchDetailsPathParams, GetBranchDetailsVariables, GetBranchListError, GetBranchListPathParams, GetBranchListVariables, GetBranchMetadataError, GetBranchMetadataPathParams, GetBranchMetadataVariables, GetBranchMigrationHistoryError, GetBranchMigrationHistoryPathParams, GetBranchMigrationHistoryRequestBody, GetBranchMigrationHistoryResponse, GetBranchMigrationHistoryVariables, GetBranchMigrationPlanError, GetBranchMigrationPlanPathParams, GetBranchMigrationPlanVariables, GetBranchSchemaHistoryError, GetBranchSchemaHistoryPathParams, GetBranchSchemaHistoryRequestBody, GetBranchSchemaHistoryResponse, GetBranchSchemaHistoryVariables, GetBranchStatsError, GetBranchStatsPathParams, GetBranchStatsResponse, GetBranchStatsVariables, GetColumnError, GetColumnPathParams, GetColumnVariables, GetDatabaseListError, GetDatabaseListPathParams, GetDatabaseListVariables, GetDatabaseMetadataError, GetDatabaseMetadataPathParams, GetDatabaseMetadataVariables, GetGitBranchesMappingError, GetGitBranchesMappingPathParams, GetGitBranchesMappingVariables, GetMigrationRequestError, GetMigrationRequestIsMergedError, GetMigrationRequestIsMergedPathParams, GetMigrationRequestIsMergedResponse, GetMigrationRequestIsMergedVariables, GetMigrationRequestPathParams, GetMigrationRequestVariables, GetRecordError, GetRecordPathParams, GetRecordQueryParams, GetRecordVariables, GetTableColumnsError, GetTableColumnsPathParams, GetTableColumnsResponse, GetTableColumnsVariables, GetTableSchemaError, GetTableSchemaPathParams, GetTableSchemaResponse, GetTableSchemaVariables, GetUserAPIKeysError, GetUserAPIKeysResponse, GetUserAPIKeysVariables, GetUserError, GetUserVariables, GetWorkspaceError, GetWorkspaceMembersListError, GetWorkspaceMembersListPathParams, GetWorkspaceMembersListVariables, GetWorkspacePathParams, GetWorkspaceVariables, GetWorkspacesListError, GetWorkspacesListResponse, GetWorkspacesListVariables, Identifiable, InsertRecordError, InsertRecordPathParams, InsertRecordQueryParams, InsertRecordVariables, InsertRecordWithIDError, InsertRecordWithIDPathParams, InsertRecordWithIDQueryParams, InsertRecordWithIDVariables, InviteWorkspaceMemberError, InviteWorkspaceMemberPathParams, InviteWorkspaceMemberRequestBody, InviteWorkspaceMemberVariables, Link, ListMigrationRequestsCommitsError, ListMigrationRequestsCommitsPathParams, ListMigrationRequestsCommitsRequestBody, ListMigrationRequestsCommitsResponse, ListMigrationRequestsCommitsVariables, ListMigrationRequestsError, ListMigrationRequestsPathParams, ListMigrationRequestsRequestBody, ListMigrationRequestsResponse, ListMigrationRequestsVariables, MergeMigrationRequestError, MergeMigrationRequestPathParams, MergeMigrationRequestVariables, OffsetNavigationOptions, operationsByTag as Operations, PAGINATION_DEFAULT_OFFSET, PAGINATION_DEFAULT_SIZE, PAGINATION_MAX_OFFSET, PAGINATION_MAX_SIZE, Page, Paginable, PaginationQueryMeta, PreviewBranchSchemaEditError, PreviewBranchSchemaEditPathParams, PreviewBranchSchemaEditRequestBody, PreviewBranchSchemaEditResponse, PreviewBranchSchemaEditVariables, Query, QueryTableError, QueryTablePathParams, QueryTableRequestBody, QueryTableVariables, RecordArray, RemoveGitBranchesEntryError, RemoveGitBranchesEntryPathParams, RemoveGitBranchesEntryQueryParams, RemoveGitBranchesEntryVariables, RemoveWorkspaceMemberError, RemoveWorkspaceMemberPathParams, RemoveWorkspaceMemberVariables, Repository, ResendWorkspaceMemberInviteError, ResendWorkspaceMemberInvitePathParams, ResendWorkspaceMemberInviteVariables, ResolveBranchError, ResolveBranchPathParams, ResolveBranchQueryParams, ResolveBranchResponse, ResolveBranchVariables, responses as Responses, RestRepository, SchemaDefinition, SchemaInference, SchemaPlugin, SchemaPluginResult, schemas as Schemas, SearchBranchError, SearchBranchPathParams, SearchBranchRequestBody, SearchBranchVariables, SearchOptions, SearchPlugin, SearchPluginResult, SearchTableError, SearchTablePathParams, SearchTableRequestBody, SearchTableVariables, SearchXataRecord, SelectableColumn, SelectedPick, Serializer, SetTableSchemaError, SetTableSchemaPathParams, SetTableSchemaRequestBody, SetTableSchemaVariables, SimpleCache, SimpleCacheOptions, UpdateBranchMetadataError, UpdateBranchMetadataPathParams, UpdateBranchMetadataVariables, UpdateBranchSchemaError, UpdateBranchSchemaPathParams, UpdateBranchSchemaResponse, UpdateBranchSchemaVariables, UpdateColumnError, UpdateColumnPathParams, UpdateColumnRequestBody, UpdateColumnVariables, UpdateDatabaseMetadataError, UpdateDatabaseMetadataPathParams, UpdateDatabaseMetadataRequestBody, UpdateDatabaseMetadataVariables, UpdateMigrationRequestError, UpdateMigrationRequestPathParams, UpdateMigrationRequestRequestBody, UpdateMigrationRequestVariables, UpdateRecordWithIDError, UpdateRecordWithIDPathParams, UpdateRecordWithIDQueryParams, UpdateRecordWithIDVariables, UpdateTableError, UpdateTablePathParams, UpdateTableRequestBody, UpdateTableVariables, UpdateUserError, UpdateUserVariables, UpdateWorkspaceError, UpdateWorkspaceMemberInviteError, UpdateWorkspaceMemberInvitePathParams, UpdateWorkspaceMemberInviteRequestBody, UpdateWorkspaceMemberInviteVariables, UpdateWorkspaceMemberRoleError, UpdateWorkspaceMemberRolePathParams, UpdateWorkspaceMemberRoleRequestBody, UpdateWorkspaceMemberRoleVariables, UpdateWorkspacePathParams, UpdateWorkspaceVariables, UpsertRecordWithIDError, UpsertRecordWithIDPathParams, UpsertRecordWithIDQueryParams, UpsertRecordWithIDVariables, ValueAtColumn, XataApiClient, XataApiClientOptions, XataApiPlugin, XataError, XataPlugin, XataPluginOptions, XataRecord, acceptWorkspaceMemberInvite, addGitBranchesEntry, addTableColumn, applyBranchSchemaEdit, buildClient, buildWorkerRunner, bulkInsertTableRecords, cancelWorkspaceMemberInvite, compareBranchSchemas, compareBranchWithUserSchema, compareMigrationRequest, contains, createBranch, createDatabase, createMigrationRequest, createTable, createUserAPIKey, createWorkspace, 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, getMigrationRequest, getMigrationRequestIsMerged, getRecord, getTableColumns, getTableSchema, getUser, getUserAPIKeys, getWorkspace, getWorkspaceMembersList, getWorkspacesList, greaterEquals, greaterThan, greaterThanEquals, gt, gte, includes, includesAll, includesAny, includesNone, insertRecord, insertRecordWithID, inviteWorkspaceMember, is, isCursorPaginationOptions, isIdentifiable, isNot, isXataRecord, le, lessEquals, lessThan, lessThanEquals, listMigrationRequests, listMigrationRequestsCommits, lt, lte, mergeMigrationRequest, notExists, operationsByTag, pattern, previewBranchSchemaEdit, queryTable, removeGitBranchesEntry, removeWorkspaceMember, resendWorkspaceMemberInvite, resolveBranch, searchBranch, searchTable, serialize, setTableSchema, startsWith, updateBranchMetadata, updateBranchSchema, updateColumn, updateDatabaseMetadata, updateMigrationRequest, updateRecordWithID, updateTable, updateUser, updateWorkspace, updateWorkspaceMemberInvite, updateWorkspaceMemberRole, upsertRecordWithID };
|