/** * this is the main entry-point * for when the you call "import from 'nxdb'". */ export { addRxPlugin } from 'nxdb-old/src/plugin'; export * from 'nxdb-old/src/rx-database'; export * from 'nxdb-old/src/rx-error'; export * from 'nxdb-old/src/rx-database-internal-store'; export * from 'nxdb-old/src/overwritable'; export * from 'nxdb-old/src/rx-collection'; export * from 'nxdb-old/src/rx-collection-helper'; export * from 'nxdb-old/src/rx-document'; export * from 'nxdb-old/src/rx-change-event'; export * from 'nxdb-old/src/rx-document-prototype-merge'; export * from 'nxdb-old/src/rx-query'; export * from 'nxdb-old/src/rx-query-helper'; export * from 'nxdb-old/src/rx-schema'; export * from 'nxdb-old/src/rx-schema-helper'; export * from 'nxdb-old/src/rx-storage-helper'; export * from 'nxdb-old/src/rx-storage-statics'; export * from 'nxdb-old/src/replication-protocol'; export * from 'nxdb-old/src/rx-storage-multiinstance'; export * from 'nxdb-old/src/custom-index'; export * from 'nxdb-old/src/query-planner'; export * from 'nxdb-old/src/plugin-helpers'; export * from 'nxdb-old/src/plugins/utils'; export * from 'nxdb-old/src/hooks'; export * from 'nxdb-old/src/query-cache'; /** * TODO use export type * from './types'; * which was introduced into typescript v5. * However changing this now would force all NxDB users * to update to typescript@5.0.0 so we should * change this in late 2023. */ export type { JsonSchemaTypes, GraphQLSyncPullOptions, GraphQLSyncPushOptions, ModifyFunction, CollectionsOfDatabase, MangoQuery, MangoQueryNoLimit, JsonSchema, ExtractDocumentTypeFromTypedRxJsonSchema, KeyFunctionMap, MangoQuerySelector, MangoQuerySortDirection, MangoQuerySortPart, MigrationState, NumberFunctionMap, DeepReadonlyObject, RxAttachment, RxAttachmentCreator, RxCollection, RxCacheReplacementPolicy, RxChangeEvent, RxChangeEventBulk, RxCollectionCreator, RxCollectionGenerated, RxCollectionHookCallback, RxCollectionHookCallbackNonAsync, RxCollectionHookNoInstance, RxCollectionHookNoInstanceCallback, RxDatabase, RxDatabaseCreator, RxDocument, RxDumpCollection, RxDumpCollectionAny, RxDumpCollectionAsAny, RxDumpDatabase, Buffer, Debug, ExtractDTcol, RxDatabaseGenerated, RxDocumentBase, StringKeys, InternalStoreDocType, InternalStoreStorageTokenDocType, InternalStoreCollectionDocType, // stuff from the RxStorage interface RxDocumentData, RxDocumentDataById, RxDocumentWriteData, WithDeleted, BulkWriteRow, BulkWriteRowById, RxAttachmentDataBase, RxAttachmentData, RxAttachmentWriteData, RxStorage, RxStorageStatics, RxStorageWriteError, RxStorageBulkWriteResponse, PreparedQuery, RxStorageQueryResult, RxStorageInstanceCreationParams, ChangeStreamOptions, EventBulk, ChangeStreamEvent, RxStorageChangeEvent, RxStorageInstance, RxStorageDefaultCheckpoint, CategorizeBulkWriteRowsOutput, DefaultPreparedQuery, RxStorageCountResult, // conflict handling RxConflictHandler, RxConflictHandlerInput, RxConflictHandlerOutput, RxConflictResultionTask, RxConflictResultionTaskSolution, RxReplicationWriteToMasterRow, // stuff from the RxStorage replication RxStorageInstanceReplicationInput, RxStorageInstanceReplicationState, RxStorageReplicationDirection, RxStorageReplicationMeta, DocumentsWithCheckpoint, RxReplicationPullStreamItem, ReplicationPullHandlerResult, ReplicationOptions, ReplicationPullOptions, ReplicationPushOptions, // crdt UpdateQuery, CRDTEntry, CRDTOperation, CRDTDocumentField, // other stuff RxDumpCollectionBase, RxDumpDatabaseAny, RxDumpDatabaseBase, RxError, RxTypeError, RxValidationError, RxErrorParameters, RxGraphQLReplicationPushQueryBuilder, RxGraphQLReplicationPullQueryBuilder, RxGraphQLPullResponseModifier, RxJsonSchema, RxLocalDocument, RxPlugin, RxQuery, RxQueryOP, MangoQueryOperators, SyncOptionsGraphQL, MigrationStrategy, MigrationStrategies, FilledMangoQuery, OldRxCollection, WithAttachmentsData, RxTestStorage, ById, MaybePromise, RxQueryPlan, PlainJsonError, CompressionMode } from 'nxdb-old/src/types';