2023-02-23 14:41:35 +01:00
|
|
|
export * as configs from "./configs"
|
2023-01-11 10:37:37 +01:00
|
|
|
export * as events from "./events"
|
|
|
|
export * as migrations from "./migrations"
|
|
|
|
export * as users from "./users"
|
|
|
|
export * as roles from "./security/roles"
|
|
|
|
export * as permissions from "./security/permissions"
|
2023-02-13 12:57:30 +01:00
|
|
|
export * as accounts from "./accounts"
|
2023-01-11 10:37:37 +01:00
|
|
|
export * as installation from "./installation"
|
2023-08-17 18:44:59 +02:00
|
|
|
export * as featureFlags from "./features"
|
|
|
|
export * as features from "./features/installation"
|
2023-01-11 10:37:37 +01:00
|
|
|
export * as sessions from "./security/sessions"
|
2023-02-13 12:57:30 +01:00
|
|
|
export * as platform from "./platform"
|
2023-01-11 10:37:37 +01:00
|
|
|
export * as auth from "./auth"
|
|
|
|
export * as constants from "./constants"
|
|
|
|
export * as logging from "./logging"
|
|
|
|
export * as middleware from "./middleware"
|
|
|
|
export * as plugins from "./plugin"
|
|
|
|
export * as encryption from "./security/encryption"
|
|
|
|
export * as queue from "./queue"
|
|
|
|
export * as db from "./db"
|
|
|
|
export * as context from "./context"
|
|
|
|
export * as cache from "./cache"
|
|
|
|
export * as objectStore from "./objectStore"
|
|
|
|
export * as redis from "./redis"
|
2023-05-31 18:18:01 +02:00
|
|
|
export { Client as RedisClient } from "./redis"
|
2023-02-24 18:31:58 +01:00
|
|
|
export * as locks from "./redis/redlockImpl"
|
2023-01-11 10:37:37 +01:00
|
|
|
export * as utils from "./utils"
|
|
|
|
export * as errors from "./errors"
|
2023-03-27 20:38:49 +02:00
|
|
|
export * as timers from "./timers"
|
2023-01-11 10:37:37 +01:00
|
|
|
export { default as env } from "./environment"
|
2023-03-08 17:30:26 +01:00
|
|
|
export * as blacklist from "./blacklist"
|
2023-04-04 01:25:15 +02:00
|
|
|
export * as docUpdates from "./docUpdates"
|
2023-11-03 14:05:23 +01:00
|
|
|
export * from "./utils/Duration"
|
2023-02-13 18:13:59 +01:00
|
|
|
export { SearchParams } from "./db"
|
2023-11-17 14:39:52 +01:00
|
|
|
export * as docIds from "./docIds"
|
2023-02-13 12:57:30 +01:00
|
|
|
// Add context to tenancy for backwards compatibility
|
|
|
|
// only do this for external usages to prevent internal
|
|
|
|
// circular dependencies
|
|
|
|
import * as context from "./context"
|
|
|
|
import * as _tenancy from "./tenancy"
|
|
|
|
export const tenancy = {
|
|
|
|
..._tenancy,
|
|
|
|
...context,
|
|
|
|
}
|
2023-02-13 18:13:59 +01:00
|
|
|
|
2023-01-11 10:37:37 +01:00
|
|
|
// expose error classes directly
|
|
|
|
export * from "./errors"
|
|
|
|
|
|
|
|
// expose constants directly
|
|
|
|
export * from "./constants"
|
|
|
|
|
|
|
|
// expose package init function
|
|
|
|
import * as db from "./db"
|
2023-11-10 12:39:26 +01:00
|
|
|
|
2023-01-11 10:37:37 +01:00
|
|
|
export const init = (opts: any = {}) => {
|
2022-06-09 13:33:10 +02:00
|
|
|
db.init(opts.db)
|
|
|
|
}
|