@xata.io/client 0.0.0-alpha.vf2696e7 → 0.0.0-alpha.vf4b92f1

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/dist/index.d.ts CHANGED
@@ -2497,6 +2497,9 @@ interface XataApiClientOptions {
2497
2497
  apiKey?: string;
2498
2498
  host?: HostProvider;
2499
2499
  }
2500
+ /**
2501
+ * @deprecated Use XataApiPlugin instead
2502
+ */
2500
2503
  declare class XataApiClient {
2501
2504
  #private;
2502
2505
  constructor(options?: XataApiClientOptions);
@@ -3203,6 +3206,8 @@ declare type SchemaDefinition = {
3203
3206
  };
3204
3207
  declare type SchemaPluginResult<Schemas extends Record<string, BaseData>> = {
3205
3208
  [Key in keyof Schemas]: Repository<Schemas[Key]>;
3209
+ } & {
3210
+ [key: string]: Repository<XataRecord$1>;
3206
3211
  };
3207
3212
  declare class SchemaPlugin<Schemas extends Record<string, BaseData>> extends XataPlugin {
3208
3213
  #private;
@@ -3254,7 +3259,7 @@ declare type BaseClientOptions = {
3254
3259
  };
3255
3260
  declare const buildClient: <Plugins extends Record<string, XataPlugin> = {}>(plugins?: Plugins | undefined) => ClientConstructor<Plugins>;
3256
3261
  interface ClientConstructor<Plugins extends Record<string, XataPlugin>> {
3257
- new <Schemas extends Record<string, BaseData>>(options?: Partial<BaseClientOptions>, links?: LinkDictionary): Omit<{
3262
+ new <Schemas extends Record<string, BaseData> = {}>(options?: Partial<BaseClientOptions>, links?: LinkDictionary): Omit<{
3258
3263
  db: Awaited<ReturnType<SchemaPlugin<Schemas>['build']>>;
3259
3264
  search: Awaited<ReturnType<SearchPlugin<Schemas>['build']>>;
3260
3265
  }, keyof Plugins> & {