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"
|
|
|
|
export * as featureFlags from "./featureFlags"
|
|
|
|
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-02-13 12:57:30 +01:00
|
|
|
export * as locks from "./redis/redlock"
|
2023-01-11 10:37:37 +01:00
|
|
|
export * as utils from "./utils"
|
|
|
|
export * as errors from "./errors"
|
|
|
|
export { default as env } from "./environment"
|
|
|
|
|
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-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"
|
|
|
|
export const init = (opts: any = {}) => {
|
2022-06-09 13:33:10 +02:00
|
|
|
db.init(opts.db)
|
|
|
|
}
|