UNPKG

@dataql/node

Version:

DataQL core SDK for unified data management with MongoDB and GraphQL - Production Multi-Cloud Ready

50 lines (49 loc) 2.72 kB
export * from "./schema.js"; export type { DataOptions, DataCollection, CustomRequestConnection, WorkerBinding, ConnectionOptions, InternalConnectionConfig, InternalConnectionAuth, DatabaseConfig, } from "./lib/types.js"; export type { SchemaToType } from "./schema.js"; export { BaseDataQLClient, type DataQLConfig, type SyncConfig, type CRUDResult, } from "./lib/BaseDataQLClient.js"; export { DocumentScope, SubdocumentCollection, type SubdocumentOperations, createDocumentScope, } from "./lib/DocumentScope.js"; export { type DatabaseConnection, type IntrospectionOptions, type IntrospectionResult, type DatabaseIntrospection, type CollectionIntrospection, type FieldAnalysis, type IndexIntrospection, type RelationshipIntrospection, } from "./lib/introspection/types.js"; export type { WALEntry, WALTransaction, WALRecoveryPoint, WALInterface, WALConfig, MutationWithWAL, } from "./lib/wal/types.js"; export { WALError } from "./lib/wal/types.js"; export { BaseWAL } from "./lib/wal/BaseWAL.js"; export * from "./lib/wal/utils.js"; export type ID = string; export declare const ID = "ID"; export type Number = number; export type Date = string; export type String = string; export type Boolean = boolean; export type Enum = string; export type Decimal = string; export type Timestamp = string; export type Money = { amount: Decimal; currency: Enum; }; export type RefType = { type: "Ref"; ref: string; }; export type Geo = { type: string; coordinates: any; }; export declare const String: "String"; export declare const Boolean: "Boolean"; export declare const Date: "Date"; export declare const Number: "Number"; export declare const Enum: "Enum"; export declare const Decimal: "Decimal"; export declare const Timestamp: "Timestamp"; export declare const Money: "Money"; export declare const Geo: "Geo"; export declare const Int = "Int"; export declare function Ref(schema: { name?: string; } | string): any; export { Data } from "./lib/Data.js"; export { type WorkerEndpoints, type MultiCloudEndpoints, type GlobalDataQLConfig, DEFAULT_WORKER_ENDPOINTS, DEFAULT_GLOBAL_CONFIG, GLOBAL_ENDPOINTS, ALL_ENDPOINTS, getWorkerUrl, detectEnvironment, selectBestEndpoint, testEndpointPerformance, } from "./lib/config.js"; export * from "./lib/plugins/index.js"; export { PluginManager, PluginEventEmitter, PluginLoggerImpl, PluginUtilsImpl, } from "./lib/plugins/index.js"; export type { Plugin, PluginType, PluginContext, PluginManager as IPluginManager, DatabaseAdapterPlugin, MiddlewarePlugin, ExtensionPlugin, HookPlugin, IntegrationPlugin, PluginManifest, PluginRegistry, PluginConfig, DataQLHook, HookData, PluginEventSystem, PluginLogger, PluginUtils, } from "./lib/plugins/index.js";