@xata.io/client 0.17.0 → 0.17.1
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 +233 -42
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +558 -12
- package/dist/index.mjs +220 -43
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
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;
|
@@ -194,12 +193,28 @@ declare type Schema = {
|
|
194
193
|
tables: Table[];
|
195
194
|
tablesOrder?: string[];
|
196
195
|
};
|
196
|
+
/**
|
197
|
+
* @x-internal true
|
198
|
+
*/
|
199
|
+
declare type SchemaEditScript = {
|
200
|
+
sourceMigrationID?: string;
|
201
|
+
targetMigrationID?: string;
|
202
|
+
tables: TableEdit[];
|
203
|
+
};
|
197
204
|
declare type Table = {
|
198
205
|
id?: string;
|
199
206
|
name: TableName;
|
200
207
|
columns: Column[];
|
201
208
|
revLinks?: RevLink[];
|
202
209
|
};
|
210
|
+
/**
|
211
|
+
* @x-internal true
|
212
|
+
*/
|
213
|
+
declare type TableEdit = {
|
214
|
+
oldName?: string;
|
215
|
+
newName?: string;
|
216
|
+
columns?: MigrationColumnOp[];
|
217
|
+
};
|
203
218
|
/**
|
204
219
|
* @x-go-type xata.Column
|
205
220
|
*/
|
@@ -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
|
} | {
|
@@ -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,
|
@@ -1332,6 +1486,201 @@ declare type ResolveBranchVariables = {
|
|
1332
1486
|
* ```
|
1333
1487
|
*/
|
1334
1488
|
declare const resolveBranch: (variables: ResolveBranchVariables) => Promise<ResolveBranchResponse>;
|
1489
|
+
declare type ListMigrationRequestsPathParams = {
|
1490
|
+
dbName: DBName;
|
1491
|
+
workspace: string;
|
1492
|
+
};
|
1493
|
+
declare type ListMigrationRequestsError = ErrorWrapper<{
|
1494
|
+
status: 400;
|
1495
|
+
payload: BadRequestError;
|
1496
|
+
} | {
|
1497
|
+
status: 401;
|
1498
|
+
payload: AuthError;
|
1499
|
+
} | {
|
1500
|
+
status: 404;
|
1501
|
+
payload: SimpleError;
|
1502
|
+
}>;
|
1503
|
+
declare type ListMigrationRequestsResponse = {
|
1504
|
+
migrationRequests: MigrationRequest[];
|
1505
|
+
meta: RecordsMetadata;
|
1506
|
+
};
|
1507
|
+
declare type ListMigrationRequestsRequestBody = {
|
1508
|
+
filter?: FilterExpression;
|
1509
|
+
sort?: SortExpression;
|
1510
|
+
page?: PageConfig;
|
1511
|
+
columns?: ColumnsProjection;
|
1512
|
+
};
|
1513
|
+
declare type ListMigrationRequestsVariables = {
|
1514
|
+
body?: ListMigrationRequestsRequestBody;
|
1515
|
+
pathParams: ListMigrationRequestsPathParams;
|
1516
|
+
} & FetcherExtraProps;
|
1517
|
+
declare const listMigrationRequests: (variables: ListMigrationRequestsVariables) => Promise<ListMigrationRequestsResponse>;
|
1518
|
+
declare type CreateMigrationRequestPathParams = {
|
1519
|
+
dbName: DBName;
|
1520
|
+
workspace: string;
|
1521
|
+
};
|
1522
|
+
declare type CreateMigrationRequestError = ErrorWrapper<{
|
1523
|
+
status: 400;
|
1524
|
+
payload: BadRequestError;
|
1525
|
+
} | {
|
1526
|
+
status: 401;
|
1527
|
+
payload: AuthError;
|
1528
|
+
} | {
|
1529
|
+
status: 404;
|
1530
|
+
payload: SimpleError;
|
1531
|
+
}>;
|
1532
|
+
declare type CreateMigrationRequestResponse = {
|
1533
|
+
number: number;
|
1534
|
+
};
|
1535
|
+
declare type CreateMigrationRequestRequestBody = {
|
1536
|
+
source: string;
|
1537
|
+
target: string;
|
1538
|
+
title: string;
|
1539
|
+
body?: string;
|
1540
|
+
};
|
1541
|
+
declare type CreateMigrationRequestVariables = {
|
1542
|
+
body: CreateMigrationRequestRequestBody;
|
1543
|
+
pathParams: CreateMigrationRequestPathParams;
|
1544
|
+
} & FetcherExtraProps;
|
1545
|
+
declare const createMigrationRequest: (variables: CreateMigrationRequestVariables) => Promise<CreateMigrationRequestResponse>;
|
1546
|
+
declare type GetMigrationRequestPathParams = {
|
1547
|
+
dbName: DBName;
|
1548
|
+
mrNumber: number;
|
1549
|
+
workspace: string;
|
1550
|
+
};
|
1551
|
+
declare type GetMigrationRequestError = ErrorWrapper<{
|
1552
|
+
status: 400;
|
1553
|
+
payload: BadRequestError;
|
1554
|
+
} | {
|
1555
|
+
status: 401;
|
1556
|
+
payload: AuthError;
|
1557
|
+
} | {
|
1558
|
+
status: 404;
|
1559
|
+
payload: SimpleError;
|
1560
|
+
}>;
|
1561
|
+
declare type GetMigrationRequestVariables = {
|
1562
|
+
pathParams: GetMigrationRequestPathParams;
|
1563
|
+
} & FetcherExtraProps;
|
1564
|
+
declare const getMigrationRequest: (variables: GetMigrationRequestVariables) => Promise<MigrationRequest>;
|
1565
|
+
declare type UpdateMigrationRequestPathParams = {
|
1566
|
+
dbName: DBName;
|
1567
|
+
mrNumber: number;
|
1568
|
+
workspace: string;
|
1569
|
+
};
|
1570
|
+
declare type UpdateMigrationRequestError = ErrorWrapper<{
|
1571
|
+
status: 400;
|
1572
|
+
payload: BadRequestError;
|
1573
|
+
} | {
|
1574
|
+
status: 401;
|
1575
|
+
payload: AuthError;
|
1576
|
+
} | {
|
1577
|
+
status: 404;
|
1578
|
+
payload: SimpleError;
|
1579
|
+
}>;
|
1580
|
+
declare type UpdateMigrationRequestRequestBody = {
|
1581
|
+
title?: string;
|
1582
|
+
body?: string;
|
1583
|
+
status?: 'open' | 'closed';
|
1584
|
+
};
|
1585
|
+
declare type UpdateMigrationRequestVariables = {
|
1586
|
+
body?: UpdateMigrationRequestRequestBody;
|
1587
|
+
pathParams: UpdateMigrationRequestPathParams;
|
1588
|
+
} & FetcherExtraProps;
|
1589
|
+
declare const updateMigrationRequest: (variables: UpdateMigrationRequestVariables) => Promise<undefined>;
|
1590
|
+
declare type ListMigrationRequestsCommitsPathParams = {
|
1591
|
+
dbName: DBName;
|
1592
|
+
mrNumber: number;
|
1593
|
+
workspace: string;
|
1594
|
+
};
|
1595
|
+
declare type ListMigrationRequestsCommitsError = ErrorWrapper<{
|
1596
|
+
status: 400;
|
1597
|
+
payload: BadRequestError;
|
1598
|
+
} | {
|
1599
|
+
status: 401;
|
1600
|
+
payload: AuthError;
|
1601
|
+
} | {
|
1602
|
+
status: 404;
|
1603
|
+
payload: SimpleError;
|
1604
|
+
}>;
|
1605
|
+
declare type ListMigrationRequestsCommitsResponse = {
|
1606
|
+
meta: {
|
1607
|
+
cursor: string;
|
1608
|
+
more: boolean;
|
1609
|
+
};
|
1610
|
+
logs: Commit[];
|
1611
|
+
};
|
1612
|
+
declare type ListMigrationRequestsCommitsRequestBody = {
|
1613
|
+
page?: {
|
1614
|
+
after?: string;
|
1615
|
+
before?: string;
|
1616
|
+
size?: number;
|
1617
|
+
};
|
1618
|
+
};
|
1619
|
+
declare type ListMigrationRequestsCommitsVariables = {
|
1620
|
+
body?: ListMigrationRequestsCommitsRequestBody;
|
1621
|
+
pathParams: ListMigrationRequestsCommitsPathParams;
|
1622
|
+
} & FetcherExtraProps;
|
1623
|
+
declare const listMigrationRequestsCommits: (variables: ListMigrationRequestsCommitsVariables) => Promise<ListMigrationRequestsCommitsResponse>;
|
1624
|
+
declare type CompareMigrationRequestPathParams = {
|
1625
|
+
dbName: DBName;
|
1626
|
+
mrNumber: number;
|
1627
|
+
workspace: string;
|
1628
|
+
};
|
1629
|
+
declare type CompareMigrationRequestError = ErrorWrapper<{
|
1630
|
+
status: 400;
|
1631
|
+
payload: BadRequestError;
|
1632
|
+
} | {
|
1633
|
+
status: 401;
|
1634
|
+
payload: AuthError;
|
1635
|
+
} | {
|
1636
|
+
status: 404;
|
1637
|
+
payload: SimpleError;
|
1638
|
+
}>;
|
1639
|
+
declare type CompareMigrationRequestVariables = {
|
1640
|
+
pathParams: CompareMigrationRequestPathParams;
|
1641
|
+
} & FetcherExtraProps;
|
1642
|
+
declare const compareMigrationRequest: (variables: CompareMigrationRequestVariables) => Promise<SchemaCompareResponse>;
|
1643
|
+
declare type GetMigrationRequestIsMergedPathParams = {
|
1644
|
+
dbName: DBName;
|
1645
|
+
mrNumber: number;
|
1646
|
+
workspace: string;
|
1647
|
+
};
|
1648
|
+
declare type GetMigrationRequestIsMergedError = ErrorWrapper<{
|
1649
|
+
status: 400;
|
1650
|
+
payload: BadRequestError;
|
1651
|
+
} | {
|
1652
|
+
status: 401;
|
1653
|
+
payload: AuthError;
|
1654
|
+
} | {
|
1655
|
+
status: 404;
|
1656
|
+
payload: SimpleError;
|
1657
|
+
}>;
|
1658
|
+
declare type GetMigrationRequestIsMergedResponse = {
|
1659
|
+
merged?: boolean;
|
1660
|
+
};
|
1661
|
+
declare type GetMigrationRequestIsMergedVariables = {
|
1662
|
+
pathParams: GetMigrationRequestIsMergedPathParams;
|
1663
|
+
} & FetcherExtraProps;
|
1664
|
+
declare const getMigrationRequestIsMerged: (variables: GetMigrationRequestIsMergedVariables) => Promise<GetMigrationRequestIsMergedResponse>;
|
1665
|
+
declare type MergeMigrationRequestPathParams = {
|
1666
|
+
dbName: DBName;
|
1667
|
+
mrNumber: number;
|
1668
|
+
workspace: string;
|
1669
|
+
};
|
1670
|
+
declare type MergeMigrationRequestError = ErrorWrapper<{
|
1671
|
+
status: 400;
|
1672
|
+
payload: BadRequestError;
|
1673
|
+
} | {
|
1674
|
+
status: 401;
|
1675
|
+
payload: AuthError;
|
1676
|
+
} | {
|
1677
|
+
status: 404;
|
1678
|
+
payload: SimpleError;
|
1679
|
+
}>;
|
1680
|
+
declare type MergeMigrationRequestVariables = {
|
1681
|
+
pathParams: MergeMigrationRequestPathParams;
|
1682
|
+
} & FetcherExtraProps;
|
1683
|
+
declare const mergeMigrationRequest: (variables: MergeMigrationRequestVariables) => Promise<Commit>;
|
1335
1684
|
declare type GetBranchDetailsPathParams = {
|
1336
1685
|
dbBranchName: DBBranchName;
|
1337
1686
|
workspace: string;
|
@@ -1517,6 +1866,157 @@ declare type GetBranchMigrationPlanVariables = {
|
|
1517
1866
|
* Compute a migration plan from a target schema the branch should be migrated too.
|
1518
1867
|
*/
|
1519
1868
|
declare const getBranchMigrationPlan: (variables: GetBranchMigrationPlanVariables) => Promise<BranchMigrationPlan>;
|
1869
|
+
declare type CompareBranchWithUserSchemaPathParams = {
|
1870
|
+
dbBranchName: DBBranchName;
|
1871
|
+
workspace: string;
|
1872
|
+
};
|
1873
|
+
declare type CompareBranchWithUserSchemaError = ErrorWrapper<{
|
1874
|
+
status: 400;
|
1875
|
+
payload: BadRequestError;
|
1876
|
+
} | {
|
1877
|
+
status: 401;
|
1878
|
+
payload: AuthError;
|
1879
|
+
} | {
|
1880
|
+
status: 404;
|
1881
|
+
payload: SimpleError;
|
1882
|
+
}>;
|
1883
|
+
declare type CompareBranchWithUserSchemaRequestBody = {
|
1884
|
+
schema: Schema;
|
1885
|
+
};
|
1886
|
+
declare type CompareBranchWithUserSchemaVariables = {
|
1887
|
+
body: CompareBranchWithUserSchemaRequestBody;
|
1888
|
+
pathParams: CompareBranchWithUserSchemaPathParams;
|
1889
|
+
} & FetcherExtraProps;
|
1890
|
+
declare const compareBranchWithUserSchema: (variables: CompareBranchWithUserSchemaVariables) => Promise<SchemaCompareResponse>;
|
1891
|
+
declare type CompareBranchSchemasPathParams = {
|
1892
|
+
dbBranchName: DBBranchName;
|
1893
|
+
branchName: BranchName;
|
1894
|
+
workspace: string;
|
1895
|
+
};
|
1896
|
+
declare type CompareBranchSchemasError = ErrorWrapper<{
|
1897
|
+
status: 400;
|
1898
|
+
payload: BadRequestError;
|
1899
|
+
} | {
|
1900
|
+
status: 401;
|
1901
|
+
payload: AuthError;
|
1902
|
+
} | {
|
1903
|
+
status: 404;
|
1904
|
+
payload: SimpleError;
|
1905
|
+
}>;
|
1906
|
+
declare type CompareBranchSchemasVariables = {
|
1907
|
+
body?: Record<string, any>;
|
1908
|
+
pathParams: CompareBranchSchemasPathParams;
|
1909
|
+
} & FetcherExtraProps;
|
1910
|
+
declare const compareBranchSchemas: (variables: CompareBranchSchemasVariables) => Promise<SchemaCompareResponse>;
|
1911
|
+
declare type UpdateBranchSchemaPathParams = {
|
1912
|
+
dbBranchName: DBBranchName;
|
1913
|
+
workspace: string;
|
1914
|
+
};
|
1915
|
+
declare type UpdateBranchSchemaError = ErrorWrapper<{
|
1916
|
+
status: 400;
|
1917
|
+
payload: BadRequestError;
|
1918
|
+
} | {
|
1919
|
+
status: 401;
|
1920
|
+
payload: AuthError;
|
1921
|
+
} | {
|
1922
|
+
status: 404;
|
1923
|
+
payload: SimpleError;
|
1924
|
+
}>;
|
1925
|
+
declare type UpdateBranchSchemaResponse = {
|
1926
|
+
id: string;
|
1927
|
+
parentID: string;
|
1928
|
+
};
|
1929
|
+
declare type UpdateBranchSchemaVariables = {
|
1930
|
+
body: Migration;
|
1931
|
+
pathParams: UpdateBranchSchemaPathParams;
|
1932
|
+
} & FetcherExtraProps;
|
1933
|
+
declare const updateBranchSchema: (variables: UpdateBranchSchemaVariables) => Promise<UpdateBranchSchemaResponse>;
|
1934
|
+
declare type PreviewBranchSchemaEditPathParams = {
|
1935
|
+
dbBranchName: DBBranchName;
|
1936
|
+
workspace: string;
|
1937
|
+
};
|
1938
|
+
declare type PreviewBranchSchemaEditError = ErrorWrapper<{
|
1939
|
+
status: 400;
|
1940
|
+
payload: BadRequestError;
|
1941
|
+
} | {
|
1942
|
+
status: 401;
|
1943
|
+
payload: AuthError;
|
1944
|
+
} | {
|
1945
|
+
status: 404;
|
1946
|
+
payload: SimpleError;
|
1947
|
+
}>;
|
1948
|
+
declare type PreviewBranchSchemaEditResponse = {
|
1949
|
+
original: Schema;
|
1950
|
+
updated: Schema;
|
1951
|
+
};
|
1952
|
+
declare type PreviewBranchSchemaEditRequestBody = {
|
1953
|
+
edits?: SchemaEditScript;
|
1954
|
+
operations?: MigrationOp[];
|
1955
|
+
};
|
1956
|
+
declare type PreviewBranchSchemaEditVariables = {
|
1957
|
+
body?: PreviewBranchSchemaEditRequestBody;
|
1958
|
+
pathParams: PreviewBranchSchemaEditPathParams;
|
1959
|
+
} & FetcherExtraProps;
|
1960
|
+
declare const previewBranchSchemaEdit: (variables: PreviewBranchSchemaEditVariables) => Promise<PreviewBranchSchemaEditResponse>;
|
1961
|
+
declare type ApplyBranchSchemaEditPathParams = {
|
1962
|
+
dbBranchName: DBBranchName;
|
1963
|
+
workspace: string;
|
1964
|
+
};
|
1965
|
+
declare type ApplyBranchSchemaEditError = ErrorWrapper<{
|
1966
|
+
status: 400;
|
1967
|
+
payload: BadRequestError;
|
1968
|
+
} | {
|
1969
|
+
status: 401;
|
1970
|
+
payload: AuthError;
|
1971
|
+
} | {
|
1972
|
+
status: 404;
|
1973
|
+
payload: SimpleError;
|
1974
|
+
}>;
|
1975
|
+
declare type ApplyBranchSchemaEditResponse = {
|
1976
|
+
id: string;
|
1977
|
+
parentID: string;
|
1978
|
+
};
|
1979
|
+
declare type ApplyBranchSchemaEditRequestBody = {
|
1980
|
+
edits: SchemaEditScript;
|
1981
|
+
};
|
1982
|
+
declare type ApplyBranchSchemaEditVariables = {
|
1983
|
+
body: ApplyBranchSchemaEditRequestBody;
|
1984
|
+
pathParams: ApplyBranchSchemaEditPathParams;
|
1985
|
+
} & FetcherExtraProps;
|
1986
|
+
declare const applyBranchSchemaEdit: (variables: ApplyBranchSchemaEditVariables) => Promise<ApplyBranchSchemaEditResponse>;
|
1987
|
+
declare type GetBranchSchemaHistoryPathParams = {
|
1988
|
+
dbBranchName: DBBranchName;
|
1989
|
+
workspace: string;
|
1990
|
+
};
|
1991
|
+
declare type GetBranchSchemaHistoryError = 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 GetBranchSchemaHistoryResponse = {
|
2002
|
+
meta: {
|
2003
|
+
cursor: string;
|
2004
|
+
more: boolean;
|
2005
|
+
};
|
2006
|
+
logs: Commit[];
|
2007
|
+
};
|
2008
|
+
declare type GetBranchSchemaHistoryRequestBody = {
|
2009
|
+
page?: {
|
2010
|
+
after?: string;
|
2011
|
+
before?: string;
|
2012
|
+
size?: number;
|
2013
|
+
};
|
2014
|
+
};
|
2015
|
+
declare type GetBranchSchemaHistoryVariables = {
|
2016
|
+
body?: GetBranchSchemaHistoryRequestBody;
|
2017
|
+
pathParams: GetBranchSchemaHistoryPathParams;
|
2018
|
+
} & FetcherExtraProps;
|
2019
|
+
declare const getBranchSchemaHistory: (variables: GetBranchSchemaHistoryVariables) => Promise<GetBranchSchemaHistoryResponse>;
|
1520
2020
|
declare type GetBranchStatsPathParams = {
|
1521
2021
|
dbBranchName: DBBranchName;
|
1522
2022
|
workspace: string;
|
@@ -2862,10 +3362,28 @@ declare const operationsByTag: {
|
|
2862
3362
|
deleteBranch: (variables: DeleteBranchVariables) => Promise<undefined>;
|
2863
3363
|
updateBranchMetadata: (variables: UpdateBranchMetadataVariables) => Promise<undefined>;
|
2864
3364
|
getBranchMetadata: (variables: GetBranchMetadataVariables) => Promise<BranchMetadata>;
|
3365
|
+
getBranchStats: (variables: GetBranchStatsVariables) => Promise<GetBranchStatsResponse>;
|
3366
|
+
};
|
3367
|
+
migrationRequests: {
|
3368
|
+
listMigrationRequests: (variables: ListMigrationRequestsVariables) => Promise<ListMigrationRequestsResponse>;
|
3369
|
+
createMigrationRequest: (variables: CreateMigrationRequestVariables) => Promise<CreateMigrationRequestResponse>;
|
3370
|
+
getMigrationRequest: (variables: GetMigrationRequestVariables) => Promise<MigrationRequest>;
|
3371
|
+
updateMigrationRequest: (variables: UpdateMigrationRequestVariables) => Promise<undefined>;
|
3372
|
+
listMigrationRequestsCommits: (variables: ListMigrationRequestsCommitsVariables) => Promise<ListMigrationRequestsCommitsResponse>;
|
3373
|
+
compareMigrationRequest: (variables: CompareMigrationRequestVariables) => Promise<SchemaCompareResponse>;
|
3374
|
+
getMigrationRequestIsMerged: (variables: GetMigrationRequestIsMergedVariables) => Promise<GetMigrationRequestIsMergedResponse>;
|
3375
|
+
mergeMigrationRequest: (variables: MergeMigrationRequestVariables) => Promise<Commit>;
|
3376
|
+
};
|
3377
|
+
branchSchema: {
|
2865
3378
|
getBranchMigrationHistory: (variables: GetBranchMigrationHistoryVariables) => Promise<GetBranchMigrationHistoryResponse>;
|
2866
3379
|
executeBranchMigrationPlan: (variables: ExecuteBranchMigrationPlanVariables) => Promise<undefined>;
|
2867
3380
|
getBranchMigrationPlan: (variables: GetBranchMigrationPlanVariables) => Promise<BranchMigrationPlan>;
|
2868
|
-
|
3381
|
+
compareBranchWithUserSchema: (variables: CompareBranchWithUserSchemaVariables) => Promise<SchemaCompareResponse>;
|
3382
|
+
compareBranchSchemas: (variables: CompareBranchSchemasVariables) => Promise<SchemaCompareResponse>;
|
3383
|
+
updateBranchSchema: (variables: UpdateBranchSchemaVariables) => Promise<UpdateBranchSchemaResponse>;
|
3384
|
+
previewBranchSchemaEdit: (variables: PreviewBranchSchemaEditVariables) => Promise<PreviewBranchSchemaEditResponse>;
|
3385
|
+
applyBranchSchemaEdit: (variables: ApplyBranchSchemaEditVariables) => Promise<ApplyBranchSchemaEditResponse>;
|
3386
|
+
getBranchSchemaHistory: (variables: GetBranchSchemaHistoryVariables) => Promise<GetBranchSchemaHistoryResponse>;
|
2869
3387
|
};
|
2870
3388
|
table: {
|
2871
3389
|
createTable: (variables: CreateTableVariables) => Promise<CreateTableResponse>;
|
@@ -2915,6 +3433,8 @@ declare class XataApiClient {
|
|
2915
3433
|
get branches(): BranchApi;
|
2916
3434
|
get tables(): TableApi;
|
2917
3435
|
get records(): RecordsApi;
|
3436
|
+
get migrationRequests(): MigrationRequestsApi;
|
3437
|
+
get branchSchema(): BranchSchemaApi;
|
2918
3438
|
}
|
2919
3439
|
declare class UserApi {
|
2920
3440
|
private extraProps;
|
@@ -2964,9 +3484,6 @@ declare class BranchApi {
|
|
2964
3484
|
deleteBranch(workspace: WorkspaceID, database: DBName, branch: BranchName): Promise<void>;
|
2965
3485
|
updateBranchMetadata(workspace: WorkspaceID, database: DBName, branch: BranchName, metadata?: BranchMetadata): Promise<void>;
|
2966
3486
|
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
3487
|
getBranchStats(workspace: WorkspaceID, database: DBName, branch: BranchName): Promise<GetBranchStatsResponse>;
|
2971
3488
|
}
|
2972
3489
|
declare class TableApi {
|
@@ -2997,6 +3514,31 @@ declare class RecordsApi {
|
|
2997
3514
|
searchTable(workspace: WorkspaceID, database: DBName, branch: BranchName, tableName: TableName, query: SearchTableRequestBody): Promise<SearchResponse>;
|
2998
3515
|
searchBranch(workspace: WorkspaceID, database: DBName, branch: BranchName, query: SearchBranchRequestBody): Promise<SearchResponse>;
|
2999
3516
|
}
|
3517
|
+
declare class MigrationRequestsApi {
|
3518
|
+
private extraProps;
|
3519
|
+
constructor(extraProps: FetcherExtraProps);
|
3520
|
+
listMigrationRequests(workspace: WorkspaceID, database: DBName, options?: ListMigrationRequestsRequestBody): Promise<ListMigrationRequestsResponse>;
|
3521
|
+
createMigrationRequest(workspace: WorkspaceID, database: DBName, options: CreateMigrationRequestRequestBody): Promise<CreateMigrationRequestResponse>;
|
3522
|
+
getMigrationRequest(workspace: WorkspaceID, database: DBName, migrationRequest: number): Promise<MigrationRequest>;
|
3523
|
+
updateMigrationRequest(workspace: WorkspaceID, database: DBName, migrationRequest: number, options: UpdateMigrationRequestRequestBody): Promise<void>;
|
3524
|
+
listMigrationRequestsCommits(workspace: WorkspaceID, database: DBName, migrationRequest: number, options?: ListMigrationRequestsCommitsRequestBody): Promise<ListMigrationRequestsCommitsResponse>;
|
3525
|
+
compareMigrationRequest(workspace: WorkspaceID, database: DBName, migrationRequest: number): Promise<SchemaCompareResponse>;
|
3526
|
+
getMigrationRequestIsMerged(workspace: WorkspaceID, database: DBName, migrationRequest: number): Promise<GetMigrationRequestIsMergedResponse>;
|
3527
|
+
mergeMigrationRequest(workspace: WorkspaceID, database: DBName, migrationRequest: number): Promise<Commit>;
|
3528
|
+
}
|
3529
|
+
declare class BranchSchemaApi {
|
3530
|
+
private extraProps;
|
3531
|
+
constructor(extraProps: FetcherExtraProps);
|
3532
|
+
getBranchMigrationHistory(workspace: WorkspaceID, database: DBName, branch: BranchName, options?: GetBranchMigrationHistoryRequestBody): Promise<GetBranchMigrationHistoryResponse>;
|
3533
|
+
executeBranchMigrationPlan(workspace: WorkspaceID, database: DBName, branch: BranchName, migrationPlan: ExecuteBranchMigrationPlanRequestBody): Promise<void>;
|
3534
|
+
getBranchMigrationPlan(workspace: WorkspaceID, database: DBName, branch: BranchName, schema: Schema): Promise<BranchMigrationPlan>;
|
3535
|
+
compareBranchWithUserSchema(workspace: WorkspaceID, database: DBName, branch: BranchName, schema: Schema): Promise<SchemaCompareResponse>;
|
3536
|
+
compareBranchSchemas(workspace: WorkspaceID, database: DBName, branch: BranchName, branchName: BranchName, schema: Schema): Promise<SchemaCompareResponse>;
|
3537
|
+
updateBranchSchema(workspace: WorkspaceID, database: DBName, branch: BranchName, migration: Migration): Promise<UpdateBranchSchemaResponse>;
|
3538
|
+
previewBranchSchemaEdit(workspace: WorkspaceID, database: DBName, branch: BranchName, migration: Migration): Promise<PreviewBranchSchemaEditResponse>;
|
3539
|
+
applyBranchSchemaEdit(workspace: WorkspaceID, database: DBName, branch: BranchName, edits: SchemaEditScript): Promise<ApplyBranchSchemaEditResponse>;
|
3540
|
+
getBranchSchemaHistory(workspace: WorkspaceID, database: DBName, branch: BranchName, options?: GetBranchSchemaHistoryRequestBody): Promise<GetBranchSchemaHistoryResponse>;
|
3541
|
+
}
|
3000
3542
|
|
3001
3543
|
declare class XataApiPlugin implements XataPlugin {
|
3002
3544
|
build(options: XataPluginOptions): Promise<XataApiClient>;
|
@@ -3229,7 +3771,7 @@ declare type BaseApiFilter<Record> = PropertyAccessFilter<Record> | AggregatorFi
|
|
3229
3771
|
declare type NestedApiFilter<T> = {
|
3230
3772
|
[key in keyof T]?: T[key] extends Record<string, any> ? SingleOrArray<Filter<T[key]>> : PropertyFilter<T[key]>;
|
3231
3773
|
};
|
3232
|
-
declare type Filter<T> = T extends Record<string, any> ? T extends Date ? PropertyFilter<T> : BaseApiFilter<T> | NestedApiFilter<T> : PropertyFilter<T>;
|
3774
|
+
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
3775
|
|
3234
3776
|
declare type DateBooster = {
|
3235
3777
|
origin?: string;
|
@@ -3344,7 +3886,10 @@ declare class Query<Record extends XataRecord, Result extends XataRecord = Recor
|
|
3344
3886
|
#private;
|
3345
3887
|
readonly meta: PaginationQueryMeta;
|
3346
3888
|
readonly records: RecordArray<Result>;
|
3347
|
-
constructor(repository: Repository<Record> | null, table:
|
3889
|
+
constructor(repository: Repository<Record> | null, table: {
|
3890
|
+
name: string;
|
3891
|
+
schema?: Table;
|
3892
|
+
}, data: Partial<QueryOptions<Record>>, rawParent?: Partial<QueryOptions<Record>>);
|
3348
3893
|
getQueryOptions(): QueryOptions<Record>;
|
3349
3894
|
key(): string;
|
3350
3895
|
/**
|
@@ -3397,7 +3942,10 @@ declare class Query<Record extends XataRecord, Result extends XataRecord = Recor
|
|
3397
3942
|
* @param filters A filter object
|
3398
3943
|
* @returns A new Query object.
|
3399
3944
|
*/
|
3400
|
-
filter(filters
|
3945
|
+
filter(filters?: Filter<Record>): Query<Record, Result>;
|
3946
|
+
defaultFilter<T>(column: string, value: T): T | {
|
3947
|
+
$includes: (T & string) | (T & string[]);
|
3948
|
+
};
|
3401
3949
|
/**
|
3402
3950
|
* Builds a new query with a new sort option.
|
3403
3951
|
* @param column The column name.
|
@@ -4125,8 +4673,6 @@ declare type SchemaDefinition = {
|
|
4125
4673
|
};
|
4126
4674
|
declare type SchemaPluginResult<Schemas extends Record<string, XataRecord>> = {
|
4127
4675
|
[Key in keyof Schemas]: Repository<Schemas[Key]>;
|
4128
|
-
} & {
|
4129
|
-
[key: string]: Repository<XataRecord>;
|
4130
4676
|
};
|
4131
4677
|
declare class SchemaPlugin<Schemas extends Record<string, XataRecord>> extends XataPlugin {
|
4132
4678
|
#private;
|
@@ -4270,4 +4816,4 @@ declare class XataError extends Error {
|
|
4270
4816
|
constructor(message: string, status: number);
|
4271
4817
|
}
|
4272
4818
|
|
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 };
|
4819
|
+
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, 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, updateMigrationRequest, updateRecordWithID, updateTable, updateUser, updateWorkspace, updateWorkspaceMemberInvite, updateWorkspaceMemberRole, upsertRecordWithID };
|