Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions src/backup/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,7 @@ const backup = (client: Connection): Backup => {
};

export default backup;
export { default as BackupCreator } from './backupCreator';
export { default as BackupCreateStatusGetter } from './backupCreateStatusGetter';
export { default as BackupRestorer } from './backupRestorer';
export { default as BackupRestoreStatusGetter } from './backupRestoreStatusGetter';
3 changes: 3 additions & 0 deletions src/batch/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,6 @@ const batch = (client: Connection, dbVersionSupport: DbVersionSupport): Batch =>
};

export default batch;
export { default as ObjectsBatcher } from './objectsBatcher';
export { default as ObjectsBatchDeleter } from './objectsBatchDeleter';
export { default as ReferencesBatcher } from './referencesBatcher';
2 changes: 2 additions & 0 deletions src/c11y/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,5 @@ const c11y = (client: Connection): C11y => {
};

export default c11y;
export { default as ExtensionCreator } from './extensionCreator';
export { default as ConceptsGetter } from './conceptsGetter';
2 changes: 1 addition & 1 deletion src/classifications/getter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import Connection from '../connection';
import { CommandBase } from '../validation/commandBase';
import { Classification } from '../openapi/types';

export default class Getter extends CommandBase {
export default class ClassificationsGetter extends CommandBase {
private id?: string;

constructor(client: Connection) {
Expand Down
14 changes: 8 additions & 6 deletions src/classifications/index.ts
Original file line number Diff line number Diff line change
@@ -1,17 +1,19 @@
import Scheduler from './scheduler';
import Getter from './getter';
import ClassificationsScheduler from './scheduler';
import ClassificationsGetter from './getter';
import Connection from '../connection';

export interface Classifications {
scheduler: () => Scheduler;
getter: () => Getter;
scheduler: () => ClassificationsScheduler;
getter: () => ClassificationsGetter;
}

const data = (client: Connection): Classifications => {
return {
scheduler: () => new Scheduler(client),
getter: () => new Getter(client),
scheduler: () => new ClassificationsScheduler(client),
getter: () => new ClassificationsGetter(client),
};
};

export default data;
export { default as ClassificationsGetter } from './getter';
export { default as ClassificationsScheduler } from './scheduler';
6 changes: 3 additions & 3 deletions src/classifications/scheduler.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import Getter from './getter';
import ClassificationsGetter from './getter';
import Connection from '../connection';
import { CommandBase } from '../validation/commandBase';
import { Classification } from '../openapi/types';

export default class Scheduler extends CommandBase {
export default class ClassificationsScheduler extends CommandBase {
private basedOnProperties?: string[];
private classifyProperties?: string[];
private className?: string;
Expand Down Expand Up @@ -107,7 +107,7 @@ export default class Scheduler extends CommandBase {
);

setInterval(() => {
new Getter(this.client)
new ClassificationsGetter(this.client)
.withId(id)
.do()
.then((res: Classification) => {
Expand Down
1 change: 1 addition & 0 deletions src/cluster/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,4 @@ const cluster = (client: Connection): Cluster => {
};

export default cluster;
export { default as NodesStatusGetter } from './nodesStatusGetter';
2 changes: 1 addition & 1 deletion src/connection/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { ApiKey, OidcAuthenticator } from './auth';
import { OidcAuthenticator } from './auth';
import OpenidConfigurationGetter from '../misc/openidConfigurationGetter';

import httpClient, { HttpClient } from './httpClient';
Expand Down
12 changes: 12 additions & 0 deletions src/data/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,3 +52,15 @@ const data = (client: Connection, dbVersionSupport: DbVersionSupport): Data => {
};

export default data;
export { default as Creator } from './creator';
export { default as Validator } from './validator';
export { default as Updater } from './updater';
export { default as Merger } from './merger';
export { default as Getter } from './getter';
export { default as GetterById } from './getterById';
export { default as Deleter } from './deleter';
export { default as Checker } from './checker';
export { default as ReferenceCreator } from './referenceCreator';
export { default as ReferenceReplacer } from './referenceReplacer';
export { default as ReferenceDeleter } from './referenceDeleter';
export { default as ReferencePayloadBuilder } from './referencePayloadBuilder';
19 changes: 0 additions & 19 deletions src/filters/consts.ts

This file was deleted.

2 changes: 1 addition & 1 deletion src/graphql/getter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import Connection from '../connection';
import { CommandBase } from '../validation/commandBase';
import { WhereFilter } from '../openapi/types';

export default class Getter extends CommandBase {
export default class GraphQLGetter extends CommandBase {
private after?: string;
private askString?: string;
private bm25String?: string;
Expand Down
10 changes: 7 additions & 3 deletions src/graphql/index.ts
Original file line number Diff line number Diff line change
@@ -1,23 +1,27 @@
import Aggregator from './aggregator';
import Getter from './getter';
import GraphQLGetter from './getter';
import Explorer from './explorer';
import Raw from './raw';
import Connection from '../connection';

export interface GraphQL {
get: () => Getter;
get: () => GraphQLGetter;
aggregate: () => Aggregator;
explore: () => Explorer;
raw: () => Raw;
}

const graphql = (client: Connection): GraphQL => {
return {
get: () => new Getter(client),
get: () => new GraphQLGetter(client),
aggregate: () => new Aggregator(client),
explore: () => new Explorer(client),
raw: () => new Raw(client),
};
};

export default graphql;
export { default as Aggregator } from './aggregator';
export { default as GraphQLGetter } from './getter';
export { default as Explorer } from './explorer';
export { default as Raw } from './raw';
4 changes: 4 additions & 0 deletions src/misc/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,7 @@ const misc = (client: Connection, dbVersionProvider: DbVersionProvider): Misc =>
};

export default misc;
export { default as LiveChecker } from './liveChecker';
export { default as ReadyChecker } from './readyChecker';
export { default as MetaGetter } from './metaGetter';
export { default as OpenidConfigurationGetter } from './openidConfigurationGetter';
2 changes: 1 addition & 1 deletion src/schema/getter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import Connection from '../connection';
import { CommandBase } from '../validation/commandBase';
import { WeaviateSchema } from '../openapi/types';

export default class Getter extends CommandBase {
export default class SchemaGetter extends CommandBase {
constructor(client: Connection) {
super(client);
}
Expand Down
13 changes: 10 additions & 3 deletions src/schema/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import ClassCreator from './classCreator';
import ClassDeleter from './classDeleter';
import ClassGetter from './classGetter';
import PropertyCreator from './propertyCreator';
import Getter from './getter';
import SchemaGetter from './getter';
import ShardsGetter from './shardsGetter';
import ShardUpdater from './shardUpdater';
import ShardsUpdater from './shardsUpdater';
Expand All @@ -12,7 +12,7 @@ export interface Schema {
classCreator: () => ClassCreator;
classDeleter: () => ClassDeleter;
classGetter: () => ClassGetter;
getter: () => Getter;
getter: () => SchemaGetter;
propertyCreator: () => PropertyCreator;
shardsGetter: () => ShardsGetter;
shardUpdater: () => ShardUpdater;
Expand All @@ -24,7 +24,7 @@ const schema = (client: Connection): Schema => {
classCreator: () => new ClassCreator(client),
classDeleter: () => new ClassDeleter(client),
classGetter: () => new ClassGetter(client),
getter: () => new Getter(client),
getter: () => new SchemaGetter(client),
propertyCreator: () => new PropertyCreator(client),
shardsGetter: () => new ShardsGetter(client),
shardUpdater: () => new ShardUpdater(client),
Expand All @@ -33,3 +33,10 @@ const schema = (client: Connection): Schema => {
};

export default schema;
export { default as ClassCreator } from './classCreator';
export { default as ClassDeleter } from './classDeleter';
export { default as ClassGetter } from './classGetter';
export { default as PropertyCreator } from './propertyCreator';
export { default as SchemaGetter } from './getter';
export { default as ShardUpdater } from './shardUpdater';
export { default as ShardsUpdater } from './shardsUpdater';