@xata.io/client 0.13.4 → 0.14.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +18 -0
- package/dist/index.cjs +175 -126
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +92 -23
- package/dist/index.mjs +157 -126
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
@@ -282,6 +282,10 @@ declare type SortOrder = 'asc' | 'desc';
|
|
282
282
|
* @minimum 0
|
283
283
|
*/
|
284
284
|
declare type FuzzinessExpression = number;
|
285
|
+
/**
|
286
|
+
* If the prefix type is set to "disabled" (the default), the search only matches full words. If the prefix type is set to "phrase", the search will return results that match prefixes of the search phrase.
|
287
|
+
*/
|
288
|
+
declare type PrefixExpression = 'phrase' | 'disabled';
|
285
289
|
/**
|
286
290
|
* @minProperties 1
|
287
291
|
*/
|
@@ -433,6 +437,7 @@ type schemas_ColumnMigration = ColumnMigration;
|
|
433
437
|
type schemas_SortExpression = SortExpression;
|
434
438
|
type schemas_SortOrder = SortOrder;
|
435
439
|
type schemas_FuzzinessExpression = FuzzinessExpression;
|
440
|
+
type schemas_PrefixExpression = PrefixExpression;
|
436
441
|
type schemas_FilterExpression = FilterExpression;
|
437
442
|
type schemas_HighlightExpression = HighlightExpression;
|
438
443
|
type schemas_FilterList = FilterList;
|
@@ -488,6 +493,7 @@ declare namespace schemas {
|
|
488
493
|
schemas_SortExpression as SortExpression,
|
489
494
|
schemas_SortOrder as SortOrder,
|
490
495
|
schemas_FuzzinessExpression as FuzzinessExpression,
|
496
|
+
schemas_PrefixExpression as PrefixExpression,
|
491
497
|
schemas_FilterExpression as FilterExpression,
|
492
498
|
schemas_HighlightExpression as HighlightExpression,
|
493
499
|
schemas_FilterList as FilterList,
|
@@ -879,10 +885,14 @@ declare type InviteWorkspaceMemberError = ErrorWrapper<{
|
|
879
885
|
} | {
|
880
886
|
status: 404;
|
881
887
|
payload: SimpleError;
|
888
|
+
} | {
|
889
|
+
status: 409;
|
890
|
+
payload: SimpleError;
|
882
891
|
}>;
|
883
892
|
declare type InviteWorkspaceMemberRequestBody = {
|
884
893
|
email: string;
|
885
894
|
role: Role;
|
895
|
+
overwrite_old?: boolean;
|
886
896
|
};
|
887
897
|
declare type InviteWorkspaceMemberVariables = {
|
888
898
|
body: InviteWorkspaceMemberRequestBody;
|
@@ -1845,6 +1855,9 @@ declare type BulkInsertTableRecordsError = ErrorWrapper<{
|
|
1845
1855
|
} | {
|
1846
1856
|
status: 404;
|
1847
1857
|
payload: SimpleError;
|
1858
|
+
} | {
|
1859
|
+
status: 422;
|
1860
|
+
payload: SimpleError;
|
1848
1861
|
}>;
|
1849
1862
|
declare type BulkInsertTableRecordsResponse = {
|
1850
1863
|
recordIDs: string[];
|
@@ -2625,6 +2638,7 @@ declare type SearchTableError = ErrorWrapper<{
|
|
2625
2638
|
declare type SearchTableRequestBody = {
|
2626
2639
|
query: string;
|
2627
2640
|
fuzziness?: FuzzinessExpression;
|
2641
|
+
prefix?: PrefixExpression;
|
2628
2642
|
filter?: FilterExpression;
|
2629
2643
|
highlight?: HighlightExpression;
|
2630
2644
|
};
|
@@ -3214,13 +3228,13 @@ declare class Query<Record extends XataRecord, Result extends XataRecord = Recor
|
|
3214
3228
|
* @param options Additional options to be used when performing the query.
|
3215
3229
|
* @returns An array of records from the database.
|
3216
3230
|
*/
|
3217
|
-
getMany
|
3231
|
+
getMany<Options extends RequiredBy<QueryOptions<Record>, 'columns'>>(options: Options): Promise<RecordArray<SelectedPick<Record, typeof options['columns']>>>;
|
3218
3232
|
/**
|
3219
3233
|
* Performs the query in the database and returns a set of results.
|
3220
3234
|
* @param options Additional options to be used when performing the query.
|
3221
3235
|
* @returns An array of records from the database.
|
3222
3236
|
*/
|
3223
|
-
getMany
|
3237
|
+
getMany(options: OmitBy<QueryOptions<Record>, 'columns'>): Promise<RecordArray<Result>>;
|
3224
3238
|
/**
|
3225
3239
|
* Performs the query in the database and returns all the results.
|
3226
3240
|
* Warning: If there are a large number of results, this method can have performance implications.
|
@@ -3233,18 +3247,18 @@ declare class Query<Record extends XataRecord, Result extends XataRecord = Recor
|
|
3233
3247
|
* @param options Additional options to be used when performing the query.
|
3234
3248
|
* @returns An array of records from the database.
|
3235
3249
|
*/
|
3236
|
-
getAll
|
3250
|
+
getAll<Options extends RequiredBy<OmitBy<QueryOptions<Record>, 'pagination'>, 'columns'> & {
|
3237
3251
|
batchSize?: number;
|
3238
|
-
}): Promise<
|
3252
|
+
}>(options: Options): Promise<SelectedPick<Record, typeof options['columns']>[]>;
|
3239
3253
|
/**
|
3240
3254
|
* Performs the query in the database and returns all the results.
|
3241
3255
|
* Warning: If there are a large number of results, this method can have performance implications.
|
3242
3256
|
* @param options Additional options to be used when performing the query.
|
3243
3257
|
* @returns An array of records from the database.
|
3244
3258
|
*/
|
3245
|
-
getAll
|
3259
|
+
getAll(options: OmitBy<QueryOptions<Record>, 'columns' | 'pagination'> & {
|
3246
3260
|
batchSize?: number;
|
3247
|
-
}
|
3261
|
+
}): Promise<Result[]>;
|
3248
3262
|
/**
|
3249
3263
|
* Performs the query in the database and returns the first result.
|
3250
3264
|
* @returns The first record that matches the query, or null if no record matched the query.
|
@@ -3255,13 +3269,13 @@ declare class Query<Record extends XataRecord, Result extends XataRecord = Recor
|
|
3255
3269
|
* @param options Additional options to be used when performing the query.
|
3256
3270
|
* @returns The first record that matches the query, or null if no record matched the query.
|
3257
3271
|
*/
|
3258
|
-
getFirst
|
3272
|
+
getFirst<Options extends RequiredBy<OmitBy<QueryOptions<Record>, 'pagination'>, 'columns'>>(options: Options): Promise<SelectedPick<Record, typeof options['columns']> | null>;
|
3259
3273
|
/**
|
3260
3274
|
* Performs the query in the database and returns the first result.
|
3261
3275
|
* @param options Additional options to be used when performing the query.
|
3262
3276
|
* @returns The first record that matches the query, or null if no record matched the query.
|
3263
3277
|
*/
|
3264
|
-
getFirst
|
3278
|
+
getFirst(options: OmitBy<QueryOptions<Record>, 'columns' | 'pagination'>): Promise<Result | null>;
|
3265
3279
|
/**
|
3266
3280
|
* Builds a new query object adding a cache TTL in milliseconds.
|
3267
3281
|
* @param ttl The cache TTL in milliseconds.
|
@@ -3383,6 +3397,8 @@ declare class RecordArray<Result extends XataRecord> extends Array<Result> {
|
|
3383
3397
|
#private;
|
3384
3398
|
constructor(page: Paginable<any, Result>, overrideRecords?: Result[]);
|
3385
3399
|
static parseConstructorParams(...args: any[]): any[];
|
3400
|
+
toArray(): Result[];
|
3401
|
+
map<U>(callbackfn: (value: Result, index: number, array: Result[]) => U, thisArg?: any): U[];
|
3386
3402
|
/**
|
3387
3403
|
* Retrieve next page of records
|
3388
3404
|
*
|
@@ -3417,20 +3433,20 @@ declare class RecordArray<Result extends XataRecord> extends Array<Result> {
|
|
3417
3433
|
* Common interface for performing operations on a table.
|
3418
3434
|
*/
|
3419
3435
|
declare abstract class Repository<Data extends BaseData, Record extends XataRecord = Data & XataRecord> extends Query<Record, Readonly<SelectedPick<Record, ['*']>>> {
|
3420
|
-
abstract create(object: EditableData<Data> & Partial<Identifiable>): Promise<Readonly<SelectedPick<Record, ['*']>>>;
|
3436
|
+
abstract create(object: Omit<EditableData<Data>, 'id'> & Partial<Identifiable>): Promise<Readonly<SelectedPick<Record, ['*']>>>;
|
3421
3437
|
/**
|
3422
3438
|
* Creates a single record in the table with a unique id.
|
3423
3439
|
* @param id The unique id.
|
3424
3440
|
* @param object Object containing the column names with their values to be stored in the table.
|
3425
3441
|
* @returns The full persisted record.
|
3426
3442
|
*/
|
3427
|
-
abstract create(id: string, object: EditableData<Data>): Promise<Readonly<SelectedPick<Record, ['*']>>>;
|
3443
|
+
abstract create(id: string, object: Omit<EditableData<Data>, 'id'>): Promise<Readonly<SelectedPick<Record, ['*']>>>;
|
3428
3444
|
/**
|
3429
3445
|
* Creates multiple records in the table.
|
3430
3446
|
* @param objects Array of objects with the column names and the values to be stored in the table.
|
3431
3447
|
* @returns Array of the persisted records.
|
3432
3448
|
*/
|
3433
|
-
abstract create(objects: Array<EditableData<Data> & Partial<Identifiable>>): Promise<Readonly<SelectedPick<Record, ['*']>>[]>;
|
3449
|
+
abstract create(objects: Array<Omit<EditableData<Data>, 'id'> & Partial<Identifiable>>): Promise<Readonly<SelectedPick<Record, ['*']>>[]>;
|
3434
3450
|
/**
|
3435
3451
|
* Queries a single record from the table given its unique id.
|
3436
3452
|
* @param id The unique id.
|
@@ -3488,7 +3504,7 @@ declare abstract class Repository<Data extends BaseData, Record extends XataReco
|
|
3488
3504
|
* @param object The column names and the values to be persisted.
|
3489
3505
|
* @returns The full persisted record.
|
3490
3506
|
*/
|
3491
|
-
abstract createOrUpdate(id: string, object: EditableData<Data>): Promise<Readonly<SelectedPick<Record, ['*']>>>;
|
3507
|
+
abstract createOrUpdate(id: string, object: Omit<EditableData<Data>, 'id'>): Promise<Readonly<SelectedPick<Record, ['*']>>>;
|
3492
3508
|
/**
|
3493
3509
|
* Creates or updates a single record. If a record exists with the given id,
|
3494
3510
|
* it will be update, otherwise a new record will be created.
|
@@ -3540,10 +3556,11 @@ declare class RestRepository<Data extends BaseData, Record extends XataRecord =
|
|
3540
3556
|
table: string;
|
3541
3557
|
db: SchemaPluginResult<any>;
|
3542
3558
|
pluginOptions: XataPluginOptions;
|
3559
|
+
schemaTables?: Table[];
|
3543
3560
|
});
|
3544
|
-
create(object: EditableData<Data>): Promise<SelectedPick<Record, ['*']
|
3545
|
-
create(recordId: string, object: EditableData<Data>): Promise<SelectedPick<Record, ['*']
|
3546
|
-
create(objects: EditableData<Data>[]): Promise<SelectedPick<Record, ['*']
|
3561
|
+
create(object: EditableData<Data>): Promise<Readonly<SelectedPick<Record, ['*']>>>;
|
3562
|
+
create(recordId: string, object: EditableData<Data>): Promise<Readonly<SelectedPick<Record, ['*']>>>;
|
3563
|
+
create(objects: EditableData<Data>[]): Promise<Readonly<SelectedPick<Record, ['*']>>[]>;
|
3547
3564
|
read(recordId: string): Promise<SelectedPick<Record, ['*']> | null>;
|
3548
3565
|
read(recordIds: string[]): Promise<Array<Readonly<SelectedPick<Record, ['*']>>>>;
|
3549
3566
|
read(object: Identifiable): Promise<SelectedPick<Record, ['*']> | null>;
|
@@ -3563,6 +3580,59 @@ declare class RestRepository<Data extends BaseData, Record extends XataRecord =
|
|
3563
3580
|
query<Result extends XataRecord>(query: Query<Record, Result>): Promise<Page<Record, Result>>;
|
3564
3581
|
}
|
3565
3582
|
|
3583
|
+
declare type BaseSchema = {
|
3584
|
+
name: string;
|
3585
|
+
columns: readonly ({
|
3586
|
+
name: string;
|
3587
|
+
type: Column['type'];
|
3588
|
+
} | {
|
3589
|
+
name: string;
|
3590
|
+
type: 'link';
|
3591
|
+
link: {
|
3592
|
+
table: string;
|
3593
|
+
};
|
3594
|
+
} | {
|
3595
|
+
name: string;
|
3596
|
+
type: 'object';
|
3597
|
+
columns: {
|
3598
|
+
name: string;
|
3599
|
+
type: string;
|
3600
|
+
}[];
|
3601
|
+
})[];
|
3602
|
+
};
|
3603
|
+
declare type SchemaInference<T extends readonly BaseSchema[]> = T extends never[] ? Record<string, Record<string, any>> : T extends readonly unknown[] ? T[number] extends {
|
3604
|
+
name: string;
|
3605
|
+
columns: readonly unknown[];
|
3606
|
+
} ? {
|
3607
|
+
[K in T[number]['name']]: TableType<T[number], K>;
|
3608
|
+
} : never : never;
|
3609
|
+
declare type TableType<Tables, TableName> = Tables & {
|
3610
|
+
name: TableName;
|
3611
|
+
} extends infer Table ? Table extends {
|
3612
|
+
name: string;
|
3613
|
+
columns: infer Columns;
|
3614
|
+
} ? Columns extends readonly unknown[] ? Columns[number] extends {
|
3615
|
+
name: string;
|
3616
|
+
type: string;
|
3617
|
+
} ? Identifiable & {
|
3618
|
+
[K in Columns[number]['name']]?: PropertyType<Tables, Columns[number], K>;
|
3619
|
+
} : never : never : never : never;
|
3620
|
+
declare type PropertyType<Tables, Properties, PropertyName> = Properties & {
|
3621
|
+
name: PropertyName;
|
3622
|
+
} extends infer Property ? Property extends {
|
3623
|
+
name: string;
|
3624
|
+
type: infer Type;
|
3625
|
+
link?: {
|
3626
|
+
table: infer LinkedTable;
|
3627
|
+
};
|
3628
|
+
columns?: infer ObjectColumns;
|
3629
|
+
} ? (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 {
|
3630
|
+
name: string;
|
3631
|
+
type: string;
|
3632
|
+
} ? {
|
3633
|
+
[K in ObjectColumns[number]['name']]?: PropertyType<Tables, ObjectColumns[number], K>;
|
3634
|
+
} : never : never : Type extends 'link' ? TableType<Tables, LinkedTable> & XataRecord : never) | null : never : never;
|
3635
|
+
|
3566
3636
|
/**
|
3567
3637
|
* Operator to restrict results to only values that are greater than the given value.
|
3568
3638
|
*/
|
@@ -3646,8 +3716,7 @@ declare type SchemaPluginResult<Schemas extends Record<string, BaseData>> = {
|
|
3646
3716
|
};
|
3647
3717
|
declare class SchemaPlugin<Schemas extends Record<string, BaseData>> extends XataPlugin {
|
3648
3718
|
#private;
|
3649
|
-
|
3650
|
-
constructor(tableNames?: string[] | undefined);
|
3719
|
+
constructor(schemaTables?: Schemas.Table[]);
|
3651
3720
|
build(pluginOptions: XataPluginOptions): SchemaPluginResult<Schemas>;
|
3652
3721
|
}
|
3653
3722
|
|
@@ -3675,7 +3744,7 @@ declare type SearchPluginResult<Schemas extends Record<string, BaseData>> = {
|
|
3675
3744
|
declare class SearchPlugin<Schemas extends Record<string, BaseData>> extends XataPlugin {
|
3676
3745
|
#private;
|
3677
3746
|
private db;
|
3678
|
-
constructor(db: SchemaPluginResult<Schemas
|
3747
|
+
constructor(db: SchemaPluginResult<Schemas>, schemaTables?: Schemas.Table[]);
|
3679
3748
|
build({ getFetchProps }: XataPluginOptions): SearchPluginResult<Schemas>;
|
3680
3749
|
}
|
3681
3750
|
declare type SearchXataRecord = XataRecord<SearchExtraProperties>;
|
@@ -3706,15 +3775,15 @@ declare type BaseClientOptions = {
|
|
3706
3775
|
};
|
3707
3776
|
declare const buildClient: <Plugins extends Record<string, XataPlugin> = {}>(plugins?: Plugins | undefined) => ClientConstructor<Plugins>;
|
3708
3777
|
interface ClientConstructor<Plugins extends Record<string, XataPlugin>> {
|
3709
|
-
new <
|
3710
|
-
db: Awaited<ReturnType<SchemaPlugin<
|
3711
|
-
search: Awaited<ReturnType<SearchPlugin<
|
3778
|
+
new <T extends readonly BaseSchema[]>(options?: Partial<BaseClientOptions>, schemaTables?: T): Omit<{
|
3779
|
+
db: Awaited<ReturnType<SchemaPlugin<SchemaInference<NonNullable<typeof schemaTables>>>['build']>>;
|
3780
|
+
search: Awaited<ReturnType<SearchPlugin<SchemaInference<NonNullable<typeof schemaTables>>>['build']>>;
|
3712
3781
|
}, keyof Plugins> & {
|
3713
3782
|
[Key in StringKeys<NonNullable<Plugins>>]: Awaited<ReturnType<NonNullable<Plugins>[Key]['build']>>;
|
3714
3783
|
};
|
3715
3784
|
}
|
3716
3785
|
declare const BaseClient_base: ClientConstructor<{}>;
|
3717
|
-
declare class BaseClient extends BaseClient_base<
|
3786
|
+
declare class BaseClient extends BaseClient_base<[]> {
|
3718
3787
|
}
|
3719
3788
|
|
3720
3789
|
declare type BranchResolutionOptions = {
|
@@ -3733,4 +3802,4 @@ declare class XataError extends Error {
|
|
3733
3802
|
constructor(message: string, status: number);
|
3734
3803
|
}
|
3735
3804
|
|
3736
|
-
export { AcceptWorkspaceMemberInviteError, AcceptWorkspaceMemberInvitePathParams, AcceptWorkspaceMemberInviteVariables, AddGitBranchesEntryError, AddGitBranchesEntryPathParams, AddGitBranchesEntryRequestBody, AddGitBranchesEntryResponse, AddGitBranchesEntryVariables, AddTableColumnError, AddTableColumnPathParams, AddTableColumnVariables, BaseClient, BaseClientOptions, BaseData, BulkInsertTableRecordsError, BulkInsertTableRecordsPathParams, BulkInsertTableRecordsRequestBody, BulkInsertTableRecordsResponse, BulkInsertTableRecordsVariables, CacheImpl, CancelWorkspaceMemberInviteError, CancelWorkspaceMemberInvitePathParams, CancelWorkspaceMemberInviteVariables, ClientConstructor, CreateBranchError, CreateBranchPathParams, CreateBranchQueryParams, CreateBranchRequestBody, CreateBranchVariables, CreateDatabaseError, CreateDatabasePathParams, CreateDatabaseRequestBody, CreateDatabaseResponse, CreateDatabaseVariables, CreateTableError, CreateTablePathParams, CreateTableVariables, CreateUserAPIKeyError, CreateUserAPIKeyPathParams, CreateUserAPIKeyResponse, CreateUserAPIKeyVariables, CreateWorkspaceError, CreateWorkspaceVariables, CursorNavigationOptions, DeleteBranchError, DeleteBranchPathParams, DeleteBranchVariables, DeleteColumnError, DeleteColumnPathParams, DeleteColumnVariables, DeleteDatabaseError, DeleteDatabasePathParams, DeleteDatabaseVariables, DeleteRecordError, DeleteRecordPathParams, 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, GetGitBranchesMappingError, GetGitBranchesMappingPathParams, GetGitBranchesMappingVariables, GetRecordError, GetRecordPathParams, GetRecordRequestBody, 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, InsertRecordResponse, InsertRecordVariables, InsertRecordWithIDError, InsertRecordWithIDPathParams, InsertRecordWithIDQueryParams, InsertRecordWithIDVariables, InviteWorkspaceMemberError, InviteWorkspaceMemberPathParams, InviteWorkspaceMemberRequestBody, InviteWorkspaceMemberVariables, 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, SchemaPlugin, SchemaPluginResult, schemas as Schemas, SearchBranchError, SearchBranchPathParams, SearchBranchRequestBody, SearchBranchVariables, SearchOptions, SearchPlugin, SearchPluginResult, SearchTableError, SearchTablePathParams, SearchTableRequestBody, SearchTableVariables, SelectableColumn, SelectedPick, SetTableSchemaError, SetTableSchemaPathParams, SetTableSchemaRequestBody, SetTableSchemaVariables, SimpleCache, SimpleCacheOptions, UpdateBranchMetadataError, UpdateBranchMetadataPathParams, UpdateBranchMetadataVariables, UpdateColumnError, UpdateColumnPathParams, UpdateColumnRequestBody, UpdateColumnVariables, UpdateRecordWithIDError, UpdateRecordWithIDPathParams, UpdateRecordWithIDQueryParams, UpdateRecordWithIDVariables, UpdateTableError, UpdateTablePathParams, UpdateTableRequestBody, UpdateTableVariables, UpdateUserError, UpdateUserVariables, UpdateWorkspaceError, UpdateWorkspaceMemberRoleError, UpdateWorkspaceMemberRolePathParams, UpdateWorkspaceMemberRoleRequestBody, UpdateWorkspaceMemberRoleVariables, UpdateWorkspacePathParams, UpdateWorkspaceVariables, UpsertRecordWithIDError, UpsertRecordWithIDPathParams, UpsertRecordWithIDQueryParams, UpsertRecordWithIDVariables, ValueAtColumn, XataApiClient, XataApiClientOptions, XataApiPlugin, XataError, XataPlugin, XataPluginOptions, XataRecord, acceptWorkspaceMemberInvite, addGitBranchesEntry, addTableColumn, buildClient, bulkInsertTableRecords, cancelWorkspaceMemberInvite, contains, createBranch, createDatabase, createTable, createUserAPIKey, createWorkspace, deleteBranch, deleteColumn, deleteDatabase, deleteRecord, deleteTable, deleteUser, deleteUserAPIKey, deleteWorkspace, endsWith, executeBranchMigrationPlan, exists, ge, getAPIKey, getBranchDetails, getBranchList, getBranchMetadata, getBranchMigrationHistory, getBranchMigrationPlan, getBranchStats, getColumn, getCurrentBranchDetails, getCurrentBranchName, getDatabaseList, getDatabaseURL, getGitBranchesMapping, getRecord, getTableColumns, getTableSchema, getUser, getUserAPIKeys, getWorkspace, getWorkspaceMembersList, getWorkspacesList, gt, gte, includes, includesAll, includesAny, includesNone, insertRecord, insertRecordWithID, inviteWorkspaceMember, is, isCursorPaginationOptions, isIdentifiable, isNot, isXataRecord, le, lt, lte, notExists, operationsByTag, pattern, queryTable, removeGitBranchesEntry, removeWorkspaceMember, resendWorkspaceMemberInvite, resolveBranch, searchBranch, searchTable, setTableSchema, startsWith, updateBranchMetadata, updateColumn, updateRecordWithID, updateTable, updateUser, updateWorkspace, updateWorkspaceMemberRole, upsertRecordWithID };
|
3805
|
+
export { AcceptWorkspaceMemberInviteError, AcceptWorkspaceMemberInvitePathParams, AcceptWorkspaceMemberInviteVariables, AddGitBranchesEntryError, AddGitBranchesEntryPathParams, AddGitBranchesEntryRequestBody, AddGitBranchesEntryResponse, AddGitBranchesEntryVariables, AddTableColumnError, AddTableColumnPathParams, AddTableColumnVariables, BaseClient, BaseClientOptions, BaseData, BaseSchema, BulkInsertTableRecordsError, BulkInsertTableRecordsPathParams, BulkInsertTableRecordsRequestBody, BulkInsertTableRecordsResponse, BulkInsertTableRecordsVariables, CacheImpl, CancelWorkspaceMemberInviteError, CancelWorkspaceMemberInvitePathParams, CancelWorkspaceMemberInviteVariables, ClientConstructor, CreateBranchError, CreateBranchPathParams, CreateBranchQueryParams, CreateBranchRequestBody, CreateBranchVariables, CreateDatabaseError, CreateDatabasePathParams, CreateDatabaseRequestBody, CreateDatabaseResponse, CreateDatabaseVariables, CreateTableError, CreateTablePathParams, CreateTableVariables, CreateUserAPIKeyError, CreateUserAPIKeyPathParams, CreateUserAPIKeyResponse, CreateUserAPIKeyVariables, CreateWorkspaceError, CreateWorkspaceVariables, CursorNavigationOptions, DeleteBranchError, DeleteBranchPathParams, DeleteBranchVariables, DeleteColumnError, DeleteColumnPathParams, DeleteColumnVariables, DeleteDatabaseError, DeleteDatabasePathParams, DeleteDatabaseVariables, DeleteRecordError, DeleteRecordPathParams, 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, GetGitBranchesMappingError, GetGitBranchesMappingPathParams, GetGitBranchesMappingVariables, GetRecordError, GetRecordPathParams, GetRecordRequestBody, 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, InsertRecordResponse, 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, SelectableColumn, SelectedPick, SetTableSchemaError, SetTableSchemaPathParams, SetTableSchemaRequestBody, SetTableSchemaVariables, SimpleCache, SimpleCacheOptions, UpdateBranchMetadataError, UpdateBranchMetadataPathParams, UpdateBranchMetadataVariables, UpdateColumnError, UpdateColumnPathParams, UpdateColumnRequestBody, UpdateColumnVariables, UpdateRecordWithIDError, UpdateRecordWithIDPathParams, UpdateRecordWithIDQueryParams, UpdateRecordWithIDVariables, UpdateTableError, UpdateTablePathParams, UpdateTableRequestBody, UpdateTableVariables, UpdateUserError, UpdateUserVariables, UpdateWorkspaceError, UpdateWorkspaceMemberRoleError, UpdateWorkspaceMemberRolePathParams, UpdateWorkspaceMemberRoleRequestBody, UpdateWorkspaceMemberRoleVariables, UpdateWorkspacePathParams, UpdateWorkspaceVariables, UpsertRecordWithIDError, UpsertRecordWithIDPathParams, UpsertRecordWithIDQueryParams, UpsertRecordWithIDVariables, ValueAtColumn, XataApiClient, XataApiClientOptions, XataApiPlugin, XataError, XataPlugin, XataPluginOptions, XataRecord, acceptWorkspaceMemberInvite, addGitBranchesEntry, addTableColumn, buildClient, bulkInsertTableRecords, cancelWorkspaceMemberInvite, contains, createBranch, createDatabase, createTable, createUserAPIKey, createWorkspace, deleteBranch, deleteColumn, deleteDatabase, deleteRecord, deleteTable, deleteUser, deleteUserAPIKey, deleteWorkspace, endsWith, executeBranchMigrationPlan, exists, ge, getAPIKey, getBranchDetails, getBranchList, getBranchMetadata, getBranchMigrationHistory, getBranchMigrationPlan, getBranchStats, getColumn, getCurrentBranchDetails, getCurrentBranchName, getDatabaseList, getDatabaseURL, getGitBranchesMapping, getRecord, getTableColumns, getTableSchema, getUser, getUserAPIKeys, getWorkspace, getWorkspaceMembersList, getWorkspacesList, gt, gte, includes, includesAll, includesAny, includesNone, insertRecord, insertRecordWithID, inviteWorkspaceMember, is, isCursorPaginationOptions, isIdentifiable, isNot, isXataRecord, le, lt, lte, notExists, operationsByTag, pattern, queryTable, removeGitBranchesEntry, removeWorkspaceMember, resendWorkspaceMemberInvite, resolveBranch, searchBranch, searchTable, setTableSchema, startsWith, updateBranchMetadata, updateColumn, updateRecordWithID, updateTable, updateUser, updateWorkspace, updateWorkspaceMemberRole, upsertRecordWithID };
|