@xata.io/client 0.10.2 → 0.11.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 +20 -0
- package/dist/index.cjs +63 -28
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +67 -25
- package/dist/index.mjs +63 -29
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
@@ -292,6 +292,10 @@ declare type FilterExpression = {
|
|
292
292
|
} & {
|
293
293
|
[key: string]: FilterColumn;
|
294
294
|
};
|
295
|
+
declare type HighlightExpression = {
|
296
|
+
enabled?: boolean;
|
297
|
+
encodeHTML?: boolean;
|
298
|
+
};
|
295
299
|
declare type FilterList = FilterExpression | FilterExpression[];
|
296
300
|
declare type FilterColumn = FilterColumnIncludes | FilterPredicate | FilterList;
|
297
301
|
/**
|
@@ -377,6 +381,11 @@ declare type XataRecord$1 = {
|
|
377
381
|
xata: {
|
378
382
|
version: number;
|
379
383
|
table?: string;
|
384
|
+
highlight?: {
|
385
|
+
[key: string]: string[] | {
|
386
|
+
[key: string]: any;
|
387
|
+
};
|
388
|
+
};
|
380
389
|
warnings?: string[];
|
381
390
|
};
|
382
391
|
} & {
|
@@ -422,6 +431,7 @@ type schemas_SortExpression = SortExpression;
|
|
422
431
|
type schemas_SortOrder = SortOrder;
|
423
432
|
type schemas_FuzzinessExpression = FuzzinessExpression;
|
424
433
|
type schemas_FilterExpression = FilterExpression;
|
434
|
+
type schemas_HighlightExpression = HighlightExpression;
|
425
435
|
type schemas_FilterList = FilterList;
|
426
436
|
type schemas_FilterColumn = FilterColumn;
|
427
437
|
type schemas_FilterColumnIncludes = FilterColumnIncludes;
|
@@ -476,6 +486,7 @@ declare namespace schemas {
|
|
476
486
|
schemas_SortOrder as SortOrder,
|
477
487
|
schemas_FuzzinessExpression as FuzzinessExpression,
|
478
488
|
schemas_FilterExpression as FilterExpression,
|
489
|
+
schemas_HighlightExpression as HighlightExpression,
|
479
490
|
schemas_FilterList as FilterList,
|
480
491
|
schemas_FilterColumn as FilterColumn,
|
481
492
|
schemas_FilterColumnIncludes as FilterColumnIncludes,
|
@@ -2612,6 +2623,7 @@ declare type SearchTableRequestBody = {
|
|
2612
2623
|
query: string;
|
2613
2624
|
fuzziness?: FuzzinessExpression;
|
2614
2625
|
filter?: FilterExpression;
|
2626
|
+
highlight?: HighlightExpression;
|
2615
2627
|
};
|
2616
2628
|
declare type SearchTableVariables = {
|
2617
2629
|
body: SearchTableRequestBody;
|
@@ -2640,9 +2652,13 @@ declare type SearchBranchError = ErrorWrapper<{
|
|
2640
2652
|
payload: SimpleError;
|
2641
2653
|
}>;
|
2642
2654
|
declare type SearchBranchRequestBody = {
|
2643
|
-
tables?: string
|
2655
|
+
tables?: (string | {
|
2656
|
+
table: string;
|
2657
|
+
filter?: FilterExpression;
|
2658
|
+
})[];
|
2644
2659
|
query: string;
|
2645
2660
|
fuzziness?: FuzzinessExpression;
|
2661
|
+
highlight?: HighlightExpression;
|
2646
2662
|
};
|
2647
2663
|
declare type SearchBranchVariables = {
|
2648
2664
|
body: SearchBranchRequestBody;
|
@@ -2851,24 +2867,25 @@ declare type SelectableColumn<O, RecursivePath extends any[] = []> = '*' | 'id'
|
|
2851
2867
|
declare type SelectedPick<O extends XataRecord, Key extends SelectableColumn<O>[]> = XataRecord & UnionToIntersection<Values<{
|
2852
2868
|
[K in Key[number]]: NestedValueAtColumn<O, K> & XataRecord;
|
2853
2869
|
}>>;
|
2854
|
-
declare type ValueAtColumn<O, P extends SelectableColumn<O>> = P extends '*' ? Values<O> : P extends 'id' ? string : P extends keyof O ? O[P] : P extends `${infer K}.${infer V}` ? K extends keyof O ? Values<O[K] extends
|
2855
|
-
V: ValueAtColumn<O[K]
|
2856
|
-
} : never
|
2870
|
+
declare type ValueAtColumn<O, P extends SelectableColumn<O>> = P extends '*' ? Values<O> : P extends 'id' ? string : P extends keyof O ? O[P] : P extends `${infer K}.${infer V}` ? K extends keyof O ? Values<RemoveNullable<O[K]> extends Record<string, any> ? V extends SelectableColumn<RemoveNullable<O[K]>> ? {
|
2871
|
+
V: ValueAtColumn<RemoveNullable<O[K]>, V>;
|
2872
|
+
} : never : O[K]> : never : never;
|
2857
2873
|
declare type MAX_RECURSION = 5;
|
2858
2874
|
declare type NestedColumns<O, RecursivePath extends any[]> = RecursivePath['length'] extends MAX_RECURSION ? never : If<IsObject<O>, Values<{
|
2859
|
-
[K in DataProps<O>]: If<IsArray<
|
2860
|
-
If<IsObject<
|
2875
|
+
[K in DataProps<O>]: If<IsArray<RemoveNullable<O[K]>>, K, // If the property is an array, we stop recursion. We don't support object arrays yet
|
2876
|
+
If<IsObject<RemoveNullable<O[K]>>, RemoveNullable<O[K]> extends XataRecord ? SelectableColumn<RemoveNullable<O[K]>, [...RecursivePath, O[K]]> extends string ? K | `${K}.${SelectableColumn<RemoveNullable<O[K]>, [...RecursivePath, O[K]]>}` : never : `${K}.${StringKeys<RemoveNullable<O[K]>> | '*'}`, // This allows usage of objects that are not links
|
2861
2877
|
K>>;
|
2862
2878
|
}>, never>;
|
2863
2879
|
declare type DataProps<O> = Exclude<StringKeys<O>, StringKeys<XataRecord>>;
|
2864
2880
|
declare type NestedValueAtColumn<O, Key extends SelectableColumn<O>> = Key extends `${infer N}.${infer M}` ? N extends DataProps<O> ? {
|
2865
|
-
[K in N]: M extends SelectableColumn<
|
2881
|
+
[K in N]: M extends SelectableColumn<RemoveNullable<O[K]>> ? RemoveNullable<O[K]> extends XataRecord ? ForwardNullable<O[K], NestedValueAtColumn<RemoveNullable<O[K]>, M> & XataRecord> : ForwardNullable<O[K], NestedValueAtColumn<RemoveNullable<O[K]>, M>> : unknown;
|
2866
2882
|
} : unknown : Key extends DataProps<O> ? {
|
2867
|
-
[K in Key]:
|
2883
|
+
[K in Key]: RemoveNullable<O[K]> extends XataRecord ? ForwardNullable<O[K], SelectedPick<RemoveNullable<O[K]>, ['*']>> : O[K];
|
2868
2884
|
} : Key extends '*' ? {
|
2869
|
-
[K in StringKeys<O>]:
|
2885
|
+
[K in StringKeys<O>]: RemoveNullable<O[K]> extends XataRecord ? ForwardNullable<O[K], Link<RemoveNullable<O[K]>>> : O[K];
|
2870
2886
|
} : unknown;
|
2871
|
-
declare type
|
2887
|
+
declare type RemoveNullable<T> = T extends null | undefined ? never : T;
|
2888
|
+
declare type ForwardNullable<T, R> = T extends RemoveNullable<T> ? R : R | null;
|
2872
2889
|
|
2873
2890
|
/**
|
2874
2891
|
* Represents an identifiable record from the database.
|
@@ -3009,8 +3026,8 @@ declare type ValueTypeFilters<T> = T | T extends string ? StringTypeFilter : T e
|
|
3009
3026
|
],
|
3010
3027
|
}
|
3011
3028
|
*/
|
3012
|
-
declare type AggregatorFilter<
|
3013
|
-
[key in '$all' | '$any' | '$not' | '$none']?: SingleOrArray<Filter<
|
3029
|
+
declare type AggregatorFilter<T> = {
|
3030
|
+
[key in '$all' | '$any' | '$not' | '$none']?: SingleOrArray<Filter<T>>;
|
3014
3031
|
};
|
3015
3032
|
/**
|
3016
3033
|
* Existance filter
|
@@ -3025,10 +3042,10 @@ declare type BaseApiFilter<Record> = PropertyAccessFilter<Record> | AggregatorFi
|
|
3025
3042
|
* Injects the Api filters on nested properties
|
3026
3043
|
* Example: { filter: { settings: { plan: { $any: ['free', 'trial'] } } } }
|
3027
3044
|
*/
|
3028
|
-
declare type NestedApiFilter<T> =
|
3045
|
+
declare type NestedApiFilter<T> = {
|
3029
3046
|
[key in keyof T]?: T[key] extends Record<string, any> ? SingleOrArray<Filter<T[key]>> : PropertyFilter<T[key]>;
|
3030
|
-
}
|
3031
|
-
declare type Filter<
|
3047
|
+
};
|
3048
|
+
declare type Filter<T> = T extends Record<string, any> ? BaseApiFilter<T> | NestedApiFilter<T> : PropertyFilter<T>;
|
3032
3049
|
|
3033
3050
|
declare type SortDirection = 'asc' | 'desc';
|
3034
3051
|
declare type SortFilterExtended<T extends XataRecord> = {
|
@@ -3065,7 +3082,7 @@ declare class Query<Record extends XataRecord, Result extends XataRecord = Recor
|
|
3065
3082
|
#private;
|
3066
3083
|
readonly meta: PaginationQueryMeta;
|
3067
3084
|
readonly records: Result[];
|
3068
|
-
constructor(repository: Repository<Record> | null, table: string, data: Partial<QueryOptions<Record>>,
|
3085
|
+
constructor(repository: Repository<Record> | null, table: string, data: Partial<QueryOptions<Record>>, rawParent?: Partial<QueryOptions<Record>>);
|
3069
3086
|
getQueryOptions(): QueryOptions<Record>;
|
3070
3087
|
key(): string;
|
3071
3088
|
/**
|
@@ -3107,8 +3124,8 @@ declare class Query<Record extends XataRecord, Result extends XataRecord = Recor
|
|
3107
3124
|
*
|
3108
3125
|
* @returns A new Query object.
|
3109
3126
|
*/
|
3110
|
-
filter(filters: Filter<Record>): Query<Record, Result>;
|
3111
3127
|
filter<F extends SelectableColumn<Record>>(column: F, value: Filter<ValueAtColumn<Record, F>>): Query<Record, Result>;
|
3128
|
+
filter(filters: Filter<Record>): Query<Record, Result>;
|
3112
3129
|
/**
|
3113
3130
|
* Builds a new query with a new sort option.
|
3114
3131
|
* @param column The column name.
|
@@ -3255,6 +3272,7 @@ declare const PAGINATION_MAX_SIZE = 200;
|
|
3255
3272
|
declare const PAGINATION_DEFAULT_SIZE = 200;
|
3256
3273
|
declare const PAGINATION_MAX_OFFSET = 800;
|
3257
3274
|
declare const PAGINATION_DEFAULT_OFFSET = 0;
|
3275
|
+
declare function isCursorPaginationOptions(options: Record<string, unknown> | undefined | null): options is CursorNavigationOptions;
|
3258
3276
|
|
3259
3277
|
/**
|
3260
3278
|
* Common interface for performing operations on a table.
|
@@ -3280,6 +3298,12 @@ declare abstract class Repository<Data extends BaseData, Record extends XataReco
|
|
3280
3298
|
* @returns The persisted record for the given id or null if the record could not be found.
|
3281
3299
|
*/
|
3282
3300
|
abstract read(id: string): Promise<Readonly<SelectedPick<Record, ['*']> | null>>;
|
3301
|
+
/**
|
3302
|
+
* Queries multiple records from the table given their unique id.
|
3303
|
+
* @param ids The unique ids array.
|
3304
|
+
* @returns The persisted records for the given ids (if a record could not be found it is not returned).
|
3305
|
+
*/
|
3306
|
+
abstract read(ids: string[]): Promise<Array<Readonly<SelectedPick<Record, ['*']>>>>;
|
3283
3307
|
/**
|
3284
3308
|
* Partially update a single record.
|
3285
3309
|
* @param object An object with its id and the columns to be updated.
|
@@ -3352,7 +3376,8 @@ declare abstract class Repository<Data extends BaseData, Record extends XataReco
|
|
3352
3376
|
* @returns The found records.
|
3353
3377
|
*/
|
3354
3378
|
abstract search(query: string, options?: {
|
3355
|
-
fuzziness?:
|
3379
|
+
fuzziness?: FuzzinessExpression;
|
3380
|
+
highlight?: HighlightExpression;
|
3356
3381
|
filter?: Filter<Record>;
|
3357
3382
|
}): Promise<SelectedPick<Record, ['*']>[]>;
|
3358
3383
|
abstract query<Result extends XataRecord>(query: Query<Record, Result>): Promise<Page<Record, Result>>;
|
@@ -3369,6 +3394,7 @@ declare class RestRepository<Data extends BaseData, Record extends XataRecord =
|
|
3369
3394
|
create(recordId: string, object: EditableData<Data>): Promise<SelectedPick<Record, ['*']>>;
|
3370
3395
|
create(objects: EditableData<Data>[]): Promise<SelectedPick<Record, ['*']>[]>;
|
3371
3396
|
read(recordId: string): Promise<SelectedPick<Record, ['*']> | null>;
|
3397
|
+
read(recordIds: string[]): Promise<Array<Readonly<SelectedPick<Record, ['*']>>>>;
|
3372
3398
|
update(object: Partial<EditableData<Data>> & Identifiable): Promise<SelectedPick<Record, ['*']>>;
|
3373
3399
|
update(recordId: string, object: Partial<EditableData<Data>>): Promise<SelectedPick<Record, ['*']>>;
|
3374
3400
|
update(objects: Array<Partial<EditableData<Data>> & Identifiable>): Promise<SelectedPick<Record, ['*']>[]>;
|
@@ -3377,7 +3403,8 @@ declare class RestRepository<Data extends BaseData, Record extends XataRecord =
|
|
3377
3403
|
createOrUpdate(objects: EditableData<Data>[]): Promise<SelectedPick<Record, ['*']>[]>;
|
3378
3404
|
delete(a: string | Identifiable | Array<string | Identifiable>): Promise<void>;
|
3379
3405
|
search(query: string, options?: {
|
3380
|
-
fuzziness?:
|
3406
|
+
fuzziness?: FuzzinessExpression;
|
3407
|
+
highlight?: HighlightExpression;
|
3381
3408
|
filter?: Filter<Record>;
|
3382
3409
|
}): Promise<SelectedPick<Record, ['*']>[]>;
|
3383
3410
|
query<Result extends XataRecord>(query: Query<Record, Result>): Promise<Page<Record, Result>>;
|
@@ -3472,18 +3499,24 @@ declare class SchemaPlugin<Schemas extends Record<string, BaseData>> extends Xat
|
|
3472
3499
|
}
|
3473
3500
|
|
3474
3501
|
declare type SearchOptions<Schemas extends Record<string, BaseData>, Tables extends StringKeys<Schemas>> = {
|
3475
|
-
fuzziness?:
|
3476
|
-
|
3502
|
+
fuzziness?: FuzzinessExpression;
|
3503
|
+
highlight?: HighlightExpression;
|
3504
|
+
tables?: Array<Tables | Values<{
|
3505
|
+
[Model in GetArrayInnerType<NonNullable<Tables[]>>]: {
|
3506
|
+
table: Model;
|
3507
|
+
filter?: Filter<SelectedPick<Schemas[Model] & SearchXataRecord, ['*']>>;
|
3508
|
+
};
|
3509
|
+
}>>;
|
3477
3510
|
};
|
3478
3511
|
declare type SearchPluginResult<Schemas extends Record<string, BaseData>> = {
|
3479
3512
|
all: <Tables extends StringKeys<Schemas>>(query: string, options?: SearchOptions<Schemas, Tables>) => Promise<Values<{
|
3480
|
-
[Model in GetArrayInnerType<NonNullable<NonNullable<typeof options>['tables']
|
3513
|
+
[Model in ExtractTables<Schemas, Tables, GetArrayInnerType<NonNullable<NonNullable<typeof options>['tables']>>>]: {
|
3481
3514
|
table: Model;
|
3482
3515
|
record: Awaited<SelectedPick<Schemas[Model] & SearchXataRecord, ['*']>>;
|
3483
3516
|
};
|
3484
3517
|
}>[]>;
|
3485
3518
|
byTable: <Tables extends StringKeys<Schemas>>(query: string, options?: SearchOptions<Schemas, Tables>) => Promise<{
|
3486
|
-
[Model in GetArrayInnerType<NonNullable<NonNullable<typeof options>['tables']
|
3519
|
+
[Model in ExtractTables<Schemas, Tables, GetArrayInnerType<NonNullable<NonNullable<typeof options>['tables']>>>]?: Awaited<SelectedPick<Schemas[Model] & SearchXataRecord, ['*']>[]>;
|
3487
3520
|
}>;
|
3488
3521
|
};
|
3489
3522
|
declare class SearchPlugin<Schemas extends Record<string, BaseData>> extends XataPlugin {
|
@@ -3494,9 +3527,18 @@ declare class SearchPlugin<Schemas extends Record<string, BaseData>> extends Xat
|
|
3494
3527
|
}
|
3495
3528
|
declare type SearchXataRecord = XataRecord & {
|
3496
3529
|
xata: {
|
3497
|
-
table
|
3530
|
+
table?: string;
|
3531
|
+
highlight?: {
|
3532
|
+
[key: string]: string[] | {
|
3533
|
+
[key: string]: any;
|
3534
|
+
};
|
3535
|
+
};
|
3498
3536
|
};
|
3499
3537
|
};
|
3538
|
+
declare type ReturnTable<Table, Tables> = Table extends Tables ? Table : never;
|
3539
|
+
declare type ExtractTables<Schemas extends Record<string, BaseData>, Tables extends StringKeys<Schemas>, TableOptions extends GetArrayInnerType<NonNullable<NonNullable<SearchOptions<Schemas, Tables>>['tables']>>> = TableOptions extends `${infer Table}` ? ReturnTable<Table, Tables> : TableOptions extends {
|
3540
|
+
table: infer Table;
|
3541
|
+
} ? ReturnTable<Table, Tables> : never;
|
3500
3542
|
|
3501
3543
|
declare type BranchStrategyValue = string | undefined | null;
|
3502
3544
|
declare type BranchStrategyBuilder = () => BranchStrategyValue | Promise<BranchStrategyValue>;
|
@@ -3539,4 +3581,4 @@ declare class XataError extends Error {
|
|
3539
3581
|
constructor(message: string, status: number);
|
3540
3582
|
}
|
3541
3583
|
|
3542
|
-
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, 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, 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 };
|
3584
|
+
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, 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 };
|
package/dist/index.mjs
CHANGED
@@ -7,8 +7,11 @@ function compact(arr) {
|
|
7
7
|
function isObject(value) {
|
8
8
|
return Boolean(value) && typeof value === "object" && !Array.isArray(value);
|
9
9
|
}
|
10
|
+
function isDefined(value) {
|
11
|
+
return value !== null && value !== void 0;
|
12
|
+
}
|
10
13
|
function isString(value) {
|
11
|
-
return value
|
14
|
+
return isDefined(value) && typeof value === "string";
|
12
15
|
}
|
13
16
|
function toBase64(value) {
|
14
17
|
try {
|
@@ -70,7 +73,12 @@ function getFetchImplementation(userFetch) {
|
|
70
73
|
return fetchImpl;
|
71
74
|
}
|
72
75
|
|
73
|
-
class
|
76
|
+
class ErrorWithCause extends Error {
|
77
|
+
constructor(message, options) {
|
78
|
+
super(message, options);
|
79
|
+
}
|
80
|
+
}
|
81
|
+
class FetcherError extends ErrorWithCause {
|
74
82
|
constructor(status, data) {
|
75
83
|
super(getMessage(data));
|
76
84
|
this.status = status;
|
@@ -963,6 +971,9 @@ const PAGINATION_MAX_SIZE = 200;
|
|
963
971
|
const PAGINATION_DEFAULT_SIZE = 200;
|
964
972
|
const PAGINATION_MAX_OFFSET = 800;
|
965
973
|
const PAGINATION_DEFAULT_OFFSET = 0;
|
974
|
+
function isCursorPaginationOptions(options) {
|
975
|
+
return isDefined(options) && (isDefined(options.first) || isDefined(options.last) || isDefined(options.after) || isDefined(options.before));
|
976
|
+
}
|
966
977
|
|
967
978
|
var __accessCheck$5 = (obj, member, msg) => {
|
968
979
|
if (!member.has(obj))
|
@@ -984,7 +995,7 @@ var __privateSet$4 = (obj, member, value, setter) => {
|
|
984
995
|
};
|
985
996
|
var _table$1, _repository, _data;
|
986
997
|
const _Query = class {
|
987
|
-
constructor(repository, table, data,
|
998
|
+
constructor(repository, table, data, rawParent) {
|
988
999
|
__privateAdd$5(this, _table$1, void 0);
|
989
1000
|
__privateAdd$5(this, _repository, void 0);
|
990
1001
|
__privateAdd$5(this, _data, { filter: {} });
|
@@ -996,6 +1007,7 @@ const _Query = class {
|
|
996
1007
|
} else {
|
997
1008
|
__privateSet$4(this, _repository, this);
|
998
1009
|
}
|
1010
|
+
const parent = cleanParent(data, rawParent);
|
999
1011
|
__privateGet$5(this, _data).filter = data.filter ?? parent?.filter ?? {};
|
1000
1012
|
__privateGet$5(this, _data).filter.$any = data.filter?.$any ?? parent?.filter?.$any;
|
1001
1013
|
__privateGet$5(this, _data).filter.$all = data.filter?.$all ?? parent?.filter?.$all;
|
@@ -1067,13 +1079,13 @@ const _Query = class {
|
|
1067
1079
|
}
|
1068
1080
|
async *getIterator(options = {}) {
|
1069
1081
|
const { batchSize = 1 } = options;
|
1070
|
-
let
|
1071
|
-
let
|
1072
|
-
|
1073
|
-
|
1074
|
-
|
1075
|
-
|
1076
|
-
|
1082
|
+
let page = await this.getPaginated({ ...options, pagination: { size: batchSize, offset: 0 } });
|
1083
|
+
let more = page.hasNextPage();
|
1084
|
+
yield page.records;
|
1085
|
+
while (more) {
|
1086
|
+
page = await page.nextPage();
|
1087
|
+
more = page.hasNextPage();
|
1088
|
+
yield page.records;
|
1077
1089
|
}
|
1078
1090
|
}
|
1079
1091
|
async getMany(options = {}) {
|
@@ -1115,6 +1127,12 @@ let Query = _Query;
|
|
1115
1127
|
_table$1 = new WeakMap();
|
1116
1128
|
_repository = new WeakMap();
|
1117
1129
|
_data = new WeakMap();
|
1130
|
+
function cleanParent(data, parent) {
|
1131
|
+
if (isCursorPaginationOptions(data.pagination)) {
|
1132
|
+
return { ...parent, sorting: void 0, filter: void 0 };
|
1133
|
+
}
|
1134
|
+
return parent;
|
1135
|
+
}
|
1118
1136
|
|
1119
1137
|
function isIdentifiable(x) {
|
1120
1138
|
return isObject(x) && isString(x?.id);
|
@@ -1197,6 +1215,8 @@ class RestRepository extends Query {
|
|
1197
1215
|
}
|
1198
1216
|
async create(a, b) {
|
1199
1217
|
if (Array.isArray(a)) {
|
1218
|
+
if (a.length === 0)
|
1219
|
+
return [];
|
1200
1220
|
const records = await __privateMethod$2(this, _bulkInsertTableRecords, bulkInsertTableRecords_fn).call(this, a);
|
1201
1221
|
await Promise.all(records.map((record) => __privateMethod$2(this, _setCacheRecord, setCacheRecord_fn).call(this, record)));
|
1202
1222
|
return records;
|
@@ -1222,27 +1242,36 @@ class RestRepository extends Query {
|
|
1222
1242
|
}
|
1223
1243
|
throw new Error("Invalid arguments for create method");
|
1224
1244
|
}
|
1225
|
-
async read(
|
1226
|
-
|
1227
|
-
|
1228
|
-
|
1229
|
-
|
1230
|
-
|
1231
|
-
|
1232
|
-
|
1233
|
-
|
1234
|
-
|
1235
|
-
const
|
1236
|
-
|
1237
|
-
|
1238
|
-
|
1239
|
-
|
1245
|
+
async read(a) {
|
1246
|
+
if (Array.isArray(a)) {
|
1247
|
+
if (a.length === 0)
|
1248
|
+
return [];
|
1249
|
+
return this.getAll({ filter: { id: { $any: a } } });
|
1250
|
+
}
|
1251
|
+
if (isString(a)) {
|
1252
|
+
const cacheRecord = await __privateMethod$2(this, _getCacheRecord, getCacheRecord_fn).call(this, a);
|
1253
|
+
if (cacheRecord)
|
1254
|
+
return cacheRecord;
|
1255
|
+
const fetchProps = await __privateGet$4(this, _getFetchProps).call(this);
|
1256
|
+
try {
|
1257
|
+
const response = await getRecord({
|
1258
|
+
pathParams: { workspace: "{workspaceId}", dbBranchName: "{dbBranch}", tableName: __privateGet$4(this, _table), recordId: a },
|
1259
|
+
...fetchProps
|
1260
|
+
});
|
1261
|
+
const schema = await __privateMethod$2(this, _getSchema$1, getSchema_fn$1).call(this);
|
1262
|
+
return initObject(this.db, schema, __privateGet$4(this, _table), response);
|
1263
|
+
} catch (e) {
|
1264
|
+
if (isObject(e) && e.status === 404) {
|
1265
|
+
return null;
|
1266
|
+
}
|
1267
|
+
throw e;
|
1240
1268
|
}
|
1241
|
-
throw e;
|
1242
1269
|
}
|
1243
1270
|
}
|
1244
1271
|
async update(a, b) {
|
1245
1272
|
if (Array.isArray(a)) {
|
1273
|
+
if (a.length === 0)
|
1274
|
+
return [];
|
1246
1275
|
if (a.length > 100) {
|
1247
1276
|
console.warn("Bulk update operation is not optimized in the Xata API yet, this request might be slow");
|
1248
1277
|
}
|
@@ -1264,6 +1293,8 @@ class RestRepository extends Query {
|
|
1264
1293
|
}
|
1265
1294
|
async createOrUpdate(a, b) {
|
1266
1295
|
if (Array.isArray(a)) {
|
1296
|
+
if (a.length === 0)
|
1297
|
+
return [];
|
1267
1298
|
if (a.length > 100) {
|
1268
1299
|
console.warn("Bulk update operation is not optimized in the Xata API yet, this request might be slow");
|
1269
1300
|
}
|
@@ -1285,6 +1316,8 @@ class RestRepository extends Query {
|
|
1285
1316
|
}
|
1286
1317
|
async delete(a) {
|
1287
1318
|
if (Array.isArray(a)) {
|
1319
|
+
if (a.length === 0)
|
1320
|
+
return;
|
1288
1321
|
if (a.length > 100) {
|
1289
1322
|
console.warn("Bulk delete operation is not optimized in the Xata API yet, this request might be slow");
|
1290
1323
|
}
|
@@ -1310,6 +1343,7 @@ class RestRepository extends Query {
|
|
1310
1343
|
body: {
|
1311
1344
|
query,
|
1312
1345
|
fuzziness: options.fuzziness,
|
1346
|
+
highlight: options.highlight,
|
1313
1347
|
filter: options.filter
|
1314
1348
|
},
|
1315
1349
|
...fetchProps
|
@@ -1712,10 +1746,10 @@ _schema = new WeakMap();
|
|
1712
1746
|
_search = new WeakSet();
|
1713
1747
|
search_fn = async function(query, options, getFetchProps) {
|
1714
1748
|
const fetchProps = await getFetchProps();
|
1715
|
-
const { tables, fuzziness } = options ?? {};
|
1749
|
+
const { tables, fuzziness, highlight } = options ?? {};
|
1716
1750
|
const { records } = await searchBranch({
|
1717
1751
|
pathParams: { workspace: "{workspaceId}", dbBranchName: "{dbBranch}" },
|
1718
|
-
body: { tables, query, fuzziness },
|
1752
|
+
body: { tables, query, fuzziness, highlight },
|
1719
1753
|
...fetchProps
|
1720
1754
|
});
|
1721
1755
|
return records;
|
@@ -1933,5 +1967,5 @@ class XataError extends Error {
|
|
1933
1967
|
}
|
1934
1968
|
}
|
1935
1969
|
|
1936
|
-
export { BaseClient, operationsByTag as Operations, PAGINATION_DEFAULT_OFFSET, PAGINATION_DEFAULT_SIZE, PAGINATION_MAX_OFFSET, PAGINATION_MAX_SIZE, Page, Query, Repository, RestRepository, SchemaPlugin, SearchPlugin, SimpleCache, XataApiClient, XataApiPlugin, XataError, XataPlugin, 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, 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 };
|
1970
|
+
export { BaseClient, operationsByTag as Operations, PAGINATION_DEFAULT_OFFSET, PAGINATION_DEFAULT_SIZE, PAGINATION_MAX_OFFSET, PAGINATION_MAX_SIZE, Page, Query, Repository, RestRepository, SchemaPlugin, SearchPlugin, SimpleCache, XataApiClient, XataApiPlugin, XataError, XataPlugin, 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 };
|
1937
1971
|
//# sourceMappingURL=index.mjs.map
|