import type * as ArangoJS from "arangojs"; import type { ConfigOptions } from "arangojs/configuration"; import type { BaseDataSourceOptions } from "../../data-source/BaseDataSourceOptions"; /** * Native arangojs configuration forwarded through the `extra` option. * * Connection location, database selection, and authentication are modeled by * dedicated TypeORM options and cannot be overridden through `extra`. */ export type ArangoClientOptions = Omit; /** * ArangoDB specific connection options. */ export interface ArangoDataSourceOptions extends BaseDataSourceOptions { /** * Database type. */ readonly type: "arangodb"; /** * Base URL of the ArangoDB server or list of server URLs. */ readonly url?: string | string[]; /** * Database name to connect to. */ readonly database: string; /** * Credentials used by arangojs for Basic or Bearer authentication. */ readonly auth?: ConfigOptions["auth"]; /** * The arangojs module. * * This defaults to loading `arangojs` at runtime. */ readonly driver?: typeof ArangoJS; /** * Additional native arangojs configuration. */ readonly extra?: ArangoClientOptions; }