velocious 1.0.428 → 1.0.430
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -0
- package/build/src/application.d.ts +96 -9
- package/build/src/application.d.ts.map +1 -1
- package/build/src/application.js +127 -28
- package/build/src/authorization/ability.d.ts +72 -31
- package/build/src/authorization/ability.d.ts.map +1 -1
- package/build/src/authorization/ability.js +59 -22
- package/build/src/authorization/base-resource.d.ts +47 -20
- package/build/src/authorization/base-resource.d.ts.map +1 -1
- package/build/src/authorization/base-resource.js +43 -14
- package/build/src/background-jobs/client.d.ts +4 -2
- package/build/src/background-jobs/client.d.ts.map +1 -1
- package/build/src/background-jobs/client.js +4 -2
- package/build/src/background-jobs/cron-expression.d.ts +9 -5
- package/build/src/background-jobs/cron-expression.d.ts.map +1 -1
- package/build/src/background-jobs/cron-expression.js +16 -6
- package/build/src/background-jobs/forked-runner-child.js +12 -5
- package/build/src/background-jobs/job-registry.d.ts +7 -1
- package/build/src/background-jobs/job-registry.d.ts.map +1 -1
- package/build/src/background-jobs/job-registry.js +8 -2
- package/build/src/background-jobs/job-runner.d.ts +1 -0
- package/build/src/background-jobs/job-runner.d.ts.map +1 -1
- package/build/src/background-jobs/job-runner.js +8 -3
- package/build/src/background-jobs/job.d.ts +12 -8
- package/build/src/background-jobs/job.d.ts.map +1 -1
- package/build/src/background-jobs/job.js +12 -6
- package/build/src/background-jobs/json-socket.d.ts +17 -5
- package/build/src/background-jobs/json-socket.d.ts.map +1 -1
- package/build/src/background-jobs/json-socket.js +18 -6
- package/build/src/background-jobs/main.d.ts +118 -32
- package/build/src/background-jobs/main.d.ts.map +1 -1
- package/build/src/background-jobs/main.js +123 -35
- package/build/src/background-jobs/normalize-error.d.ts +2 -1
- package/build/src/background-jobs/normalize-error.d.ts.map +1 -1
- package/build/src/background-jobs/normalize-error.js +5 -3
- package/build/src/background-jobs/scheduler.d.ts +31 -10
- package/build/src/background-jobs/scheduler.d.ts.map +1 -1
- package/build/src/background-jobs/scheduler.js +33 -11
- package/build/src/background-jobs/socket-request.d.ts +2 -0
- package/build/src/background-jobs/socket-request.d.ts.map +1 -1
- package/build/src/background-jobs/socket-request.js +11 -3
- package/build/src/background-jobs/status-reporter.d.ts +5 -2
- package/build/src/background-jobs/status-reporter.d.ts.map +1 -1
- package/build/src/background-jobs/status-reporter.js +6 -3
- package/build/src/background-jobs/store.d.ts +57 -19
- package/build/src/background-jobs/store.d.ts.map +1 -1
- package/build/src/background-jobs/store.js +70 -20
- package/build/src/background-jobs/types.d.ts +7 -7
- package/build/src/background-jobs/types.d.ts.map +1 -1
- package/build/src/background-jobs/types.js +6 -6
- package/build/src/background-jobs/web/authorization.d.ts.map +1 -1
- package/build/src/background-jobs/web/authorization.js +3 -1
- package/build/src/background-jobs/web/controller.d.ts +40 -14
- package/build/src/background-jobs/web/controller.d.ts.map +1 -1
- package/build/src/background-jobs/web/controller.js +46 -15
- package/build/src/background-jobs/web/registry.d.ts +5 -0
- package/build/src/background-jobs/web/registry.d.ts.map +1 -1
- package/build/src/background-jobs/web/registry.js +4 -1
- package/build/src/background-jobs/worker.d.ts +41 -8
- package/build/src/background-jobs/worker.d.ts.map +1 -1
- package/build/src/background-jobs/worker.js +64 -16
- package/build/src/beacon/client.d.ts +39 -12
- package/build/src/beacon/client.d.ts.map +1 -1
- package/build/src/beacon/client.js +45 -15
- package/build/src/beacon/in-process-broker.d.ts +4 -0
- package/build/src/beacon/in-process-broker.d.ts.map +1 -1
- package/build/src/beacon/in-process-broker.js +8 -3
- package/build/src/beacon/in-process-client.d.ts +28 -9
- package/build/src/beacon/in-process-client.d.ts.map +1 -1
- package/build/src/beacon/in-process-client.js +27 -9
- package/build/src/beacon/server.d.ts +13 -2
- package/build/src/beacon/server.d.ts.map +1 -1
- package/build/src/beacon/server.js +21 -5
- package/build/src/beacon/types.d.ts +3 -3
- package/build/src/beacon/types.d.ts.map +1 -1
- package/build/src/beacon/types.js +2 -2
- package/build/src/cli/base-command.d.ts +18 -4
- package/build/src/cli/base-command.d.ts.map +1 -1
- package/build/src/cli/base-command.js +15 -4
- package/build/src/cli/browser-cli.d.ts +3 -0
- package/build/src/cli/browser-cli.d.ts.map +1 -1
- package/build/src/cli/browser-cli.js +7 -2
- package/build/src/cli/commands/background-jobs-main.d.ts +0 -1
- package/build/src/cli/commands/background-jobs-main.d.ts.map +1 -1
- package/build/src/cli/commands/background-jobs-runner.d.ts +0 -1
- package/build/src/cli/commands/background-jobs-runner.d.ts.map +1 -1
- package/build/src/cli/commands/background-jobs-worker.d.ts +0 -1
- package/build/src/cli/commands/background-jobs-worker.d.ts.map +1 -1
- package/build/src/cli/commands/beacon.d.ts +0 -1
- package/build/src/cli/commands/beacon.d.ts.map +1 -1
- package/build/src/cli/commands/console.d.ts +0 -2
- package/build/src/cli/commands/console.d.ts.map +1 -1
- package/build/src/cli/commands/console.js +5 -2
- package/build/src/cli/commands/db/base-command.d.ts +11 -2
- package/build/src/cli/commands/db/base-command.d.ts.map +1 -1
- package/build/src/cli/commands/db/base-command.js +12 -3
- package/build/src/cli/commands/db/create.d.ts +3 -0
- package/build/src/cli/commands/db/create.d.ts.map +1 -1
- package/build/src/cli/commands/db/create.js +4 -1
- package/build/src/cli/commands/db/drop.d.ts +3 -0
- package/build/src/cli/commands/db/drop.d.ts.map +1 -1
- package/build/src/cli/commands/db/drop.js +4 -1
- package/build/src/cli/commands/db/schema/dump.d.ts +0 -2
- package/build/src/cli/commands/db/schema/dump.d.ts.map +1 -1
- package/build/src/cli/commands/db/schema/dump.js +5 -2
- package/build/src/cli/commands/db/schema/load.d.ts +0 -2
- package/build/src/cli/commands/db/schema/load.d.ts.map +1 -1
- package/build/src/cli/commands/db/schema/load.js +5 -2
- package/build/src/cli/commands/db/seed.d.ts +0 -2
- package/build/src/cli/commands/db/seed.d.ts.map +1 -1
- package/build/src/cli/commands/db/seed.js +5 -2
- package/build/src/cli/commands/db/tenants/check.d.ts +4 -1
- package/build/src/cli/commands/db/tenants/check.d.ts.map +1 -1
- package/build/src/cli/commands/db/tenants/check.js +5 -2
- package/build/src/cli/commands/db/tenants/create.d.ts +4 -1
- package/build/src/cli/commands/db/tenants/create.d.ts.map +1 -1
- package/build/src/cli/commands/db/tenants/create.js +5 -2
- package/build/src/cli/commands/db/tenants/migrate.d.ts +4 -1
- package/build/src/cli/commands/db/tenants/migrate.d.ts.map +1 -1
- package/build/src/cli/commands/db/tenants/migrate.js +5 -2
- package/build/src/cli/commands/destroy/migration.d.ts +0 -1
- package/build/src/cli/commands/destroy/migration.d.ts.map +1 -1
- package/build/src/cli/commands/generate/base-models.d.ts +0 -1
- package/build/src/cli/commands/generate/base-models.d.ts.map +1 -1
- package/build/src/cli/commands/generate/frontend-models.d.ts +0 -2
- package/build/src/cli/commands/generate/frontend-models.d.ts.map +1 -1
- package/build/src/cli/commands/generate/frontend-models.js +5 -2
- package/build/src/cli/commands/generate/migration.d.ts +0 -1
- package/build/src/cli/commands/generate/migration.d.ts.map +1 -1
- package/build/src/cli/commands/generate/model.d.ts +0 -1
- package/build/src/cli/commands/generate/model.d.ts.map +1 -1
- package/build/src/cli/commands/init.d.ts +0 -1
- package/build/src/cli/commands/init.d.ts.map +1 -1
- package/build/src/cli/commands/routes.d.ts +0 -1
- package/build/src/cli/commands/routes.d.ts.map +1 -1
- package/build/src/cli/commands/run-script.d.ts +0 -2
- package/build/src/cli/commands/run-script.d.ts.map +1 -1
- package/build/src/cli/commands/run-script.js +5 -2
- package/build/src/cli/commands/runner.d.ts +0 -2
- package/build/src/cli/commands/runner.d.ts.map +1 -1
- package/build/src/cli/commands/runner.js +5 -2
- package/build/src/cli/commands/server.d.ts +0 -1
- package/build/src/cli/commands/server.d.ts.map +1 -1
- package/build/src/cli/commands/test.d.ts +0 -1
- package/build/src/cli/commands/test.d.ts.map +1 -1
- package/build/src/cli/index.d.ts +18 -5
- package/build/src/cli/index.d.ts.map +1 -1
- package/build/src/cli/index.js +25 -8
- package/build/src/cli/tenant-database-command-helper.d.ts +24 -9
- package/build/src/cli/tenant-database-command-helper.d.ts.map +1 -1
- package/build/src/cli/tenant-database-command-helper.js +30 -11
- package/build/src/cli/use-browser-cli.d.ts +1 -0
- package/build/src/cli/use-browser-cli.d.ts.map +1 -1
- package/build/src/cli/use-browser-cli.js +5 -2
- package/build/src/configuration-resolver.d.ts +1 -0
- package/build/src/configuration-resolver.d.ts.map +1 -1
- package/build/src/configuration-resolver.js +2 -1
- package/build/src/configuration-types.d.ts +44 -44
- package/build/src/configuration-types.d.ts.map +1 -1
- package/build/src/configuration-types.js +27 -27
- package/build/src/configuration.d.ts +350 -114
- package/build/src/configuration.d.ts.map +1 -1
- package/build/src/configuration.js +416 -128
- package/build/src/controller.d.ts +67 -18
- package/build/src/controller.d.ts.map +1 -1
- package/build/src/controller.js +88 -23
- package/build/src/current-configuration.d.ts +2 -0
- package/build/src/current-configuration.d.ts.map +1 -1
- package/build/src/current-configuration.js +6 -2
- package/build/src/current.d.ts +16 -9
- package/build/src/current.d.ts.map +1 -1
- package/build/src/current.js +15 -8
- package/build/src/database/annotations-async-hooks.js +13 -6
- package/build/src/database/annotations.d.ts +7 -1
- package/build/src/database/annotations.d.ts.map +1 -1
- package/build/src/database/annotations.js +12 -5
- package/build/src/database/drivers/base-column.d.ts +21 -3
- package/build/src/database/drivers/base-column.d.ts.map +1 -1
- package/build/src/database/drivers/base-column.js +21 -3
- package/build/src/database/drivers/base-columns-index.d.ts +9 -0
- package/build/src/database/drivers/base-columns-index.d.ts.map +1 -1
- package/build/src/database/drivers/base-columns-index.js +10 -1
- package/build/src/database/drivers/base-foreign-key.d.ts +15 -3
- package/build/src/database/drivers/base-foreign-key.d.ts.map +1 -1
- package/build/src/database/drivers/base-foreign-key.js +15 -3
- package/build/src/database/drivers/base-table.d.ts +16 -3
- package/build/src/database/drivers/base-table.d.ts.map +1 -1
- package/build/src/database/drivers/base-table.js +16 -3
- package/build/src/database/drivers/base.d.ts +174 -37
- package/build/src/database/drivers/base.d.ts.map +1 -1
- package/build/src/database/drivers/base.js +156 -40
- package/build/src/database/drivers/mssql/column.d.ts +3 -2
- package/build/src/database/drivers/mssql/column.d.ts.map +1 -1
- package/build/src/database/drivers/mssql/column.js +3 -2
- package/build/src/database/drivers/mssql/index.d.ts +5 -6
- package/build/src/database/drivers/mssql/index.d.ts.map +1 -1
- package/build/src/database/drivers/mssql/index.js +38 -7
- package/build/src/database/drivers/mssql/options.d.ts +1 -0
- package/build/src/database/drivers/mssql/options.d.ts.map +1 -1
- package/build/src/database/drivers/mssql/options.js +8 -2
- package/build/src/database/drivers/mssql/sql/create-database.d.ts +1 -0
- package/build/src/database/drivers/mssql/sql/create-database.d.ts.map +1 -1
- package/build/src/database/drivers/mssql/sql/create-database.js +2 -1
- package/build/src/database/drivers/mssql/sql/drop-database.d.ts.map +1 -1
- package/build/src/database/drivers/mssql/sql/drop-database.js +2 -1
- package/build/src/database/drivers/mssql/structure-sql.d.ts +5 -2
- package/build/src/database/drivers/mssql/structure-sql.d.ts.map +1 -1
- package/build/src/database/drivers/mssql/structure-sql.js +5 -2
- package/build/src/database/drivers/mssql/table.d.ts +1 -0
- package/build/src/database/drivers/mssql/table.d.ts.map +1 -1
- package/build/src/database/drivers/mssql/table.js +9 -4
- package/build/src/database/drivers/mysql/column.d.ts +3 -2
- package/build/src/database/drivers/mysql/column.d.ts.map +1 -1
- package/build/src/database/drivers/mysql/column.js +4 -3
- package/build/src/database/drivers/mysql/index.d.ts +11 -3
- package/build/src/database/drivers/mysql/index.d.ts.map +1 -1
- package/build/src/database/drivers/mysql/index.js +54 -10
- package/build/src/database/drivers/mysql/options.d.ts +1 -0
- package/build/src/database/drivers/mysql/options.d.ts.map +1 -1
- package/build/src/database/drivers/mysql/options.js +4 -2
- package/build/src/database/drivers/mysql/query.d.ts +3 -2
- package/build/src/database/drivers/mysql/query.d.ts.map +1 -1
- package/build/src/database/drivers/mysql/query.js +6 -3
- package/build/src/database/drivers/mysql/sql/create-database.d.ts.map +1 -1
- package/build/src/database/drivers/mysql/sql/create-database.js +3 -1
- package/build/src/database/drivers/mysql/structure-sql.d.ts +7 -2
- package/build/src/database/drivers/mysql/structure-sql.d.ts.map +1 -1
- package/build/src/database/drivers/mysql/structure-sql.js +7 -2
- package/build/src/database/drivers/mysql/table.d.ts +1 -0
- package/build/src/database/drivers/mysql/table.d.ts.map +1 -1
- package/build/src/database/drivers/mysql/table.js +7 -3
- package/build/src/database/drivers/pgsql/column.d.ts +3 -2
- package/build/src/database/drivers/pgsql/column.d.ts.map +1 -1
- package/build/src/database/drivers/pgsql/column.js +3 -2
- package/build/src/database/drivers/pgsql/index.d.ts +1 -1
- package/build/src/database/drivers/pgsql/index.d.ts.map +1 -1
- package/build/src/database/drivers/pgsql/index.js +36 -11
- package/build/src/database/drivers/pgsql/options.d.ts +2 -0
- package/build/src/database/drivers/pgsql/options.d.ts.map +1 -1
- package/build/src/database/drivers/pgsql/options.js +3 -1
- package/build/src/database/drivers/pgsql/structure-sql.d.ts +5 -2
- package/build/src/database/drivers/pgsql/structure-sql.d.ts.map +1 -1
- package/build/src/database/drivers/pgsql/structure-sql.js +5 -2
- package/build/src/database/drivers/pgsql/table.d.ts +1 -0
- package/build/src/database/drivers/pgsql/table.d.ts.map +1 -1
- package/build/src/database/drivers/pgsql/table.js +6 -2
- package/build/src/database/drivers/sqlite/base.d.ts +15 -5
- package/build/src/database/drivers/sqlite/base.d.ts.map +1 -1
- package/build/src/database/drivers/sqlite/base.js +79 -27
- package/build/src/database/drivers/sqlite/column.d.ts +3 -2
- package/build/src/database/drivers/sqlite/column.d.ts.map +1 -1
- package/build/src/database/drivers/sqlite/column.js +3 -2
- package/build/src/database/drivers/sqlite/connection-sql-js.d.ts +4 -2
- package/build/src/database/drivers/sqlite/connection-sql-js.d.ts.map +1 -1
- package/build/src/database/drivers/sqlite/connection-sql-js.js +4 -2
- package/build/src/database/drivers/sqlite/foreign-key.d.ts +3 -2
- package/build/src/database/drivers/sqlite/foreign-key.d.ts.map +1 -1
- package/build/src/database/drivers/sqlite/foreign-key.js +3 -2
- package/build/src/database/drivers/sqlite/index.d.ts +18 -5
- package/build/src/database/drivers/sqlite/index.d.ts.map +1 -1
- package/build/src/database/drivers/sqlite/index.js +40 -16
- package/build/src/database/drivers/sqlite/index.native.d.ts +1 -1
- package/build/src/database/drivers/sqlite/index.native.d.ts.map +1 -1
- package/build/src/database/drivers/sqlite/index.native.js +6 -3
- package/build/src/database/drivers/sqlite/index.web.d.ts +16 -4
- package/build/src/database/drivers/sqlite/index.web.d.ts.map +1 -1
- package/build/src/database/drivers/sqlite/index.web.js +17 -7
- package/build/src/database/drivers/sqlite/options.d.ts +2 -0
- package/build/src/database/drivers/sqlite/options.d.ts.map +1 -1
- package/build/src/database/drivers/sqlite/options.js +3 -1
- package/build/src/database/drivers/sqlite/query.d.ts +3 -2
- package/build/src/database/drivers/sqlite/query.d.ts.map +1 -1
- package/build/src/database/drivers/sqlite/query.js +6 -3
- package/build/src/database/drivers/sqlite/query.native.d.ts +2 -2
- package/build/src/database/drivers/sqlite/query.native.d.ts.map +1 -1
- package/build/src/database/drivers/sqlite/query.native.js +3 -3
- package/build/src/database/drivers/sqlite/query.web.d.ts +3 -2
- package/build/src/database/drivers/sqlite/query.web.d.ts.map +1 -1
- package/build/src/database/drivers/sqlite/query.web.js +6 -3
- package/build/src/database/drivers/sqlite/sql/alter-table.d.ts.map +1 -1
- package/build/src/database/drivers/sqlite/sql/alter-table.js +9 -3
- package/build/src/database/drivers/sqlite/structure-sql.d.ts +2 -0
- package/build/src/database/drivers/sqlite/structure-sql.d.ts.map +1 -1
- package/build/src/database/drivers/sqlite/structure-sql.js +3 -1
- package/build/src/database/drivers/sqlite/table-rebuilder.d.ts +2 -0
- package/build/src/database/drivers/sqlite/table-rebuilder.d.ts.map +1 -1
- package/build/src/database/drivers/sqlite/table-rebuilder.js +3 -1
- package/build/src/database/drivers/sqlite/table.d.ts +2 -0
- package/build/src/database/drivers/sqlite/table.d.ts.map +1 -1
- package/build/src/database/drivers/sqlite/table.js +14 -4
- package/build/src/database/drivers/structure-sql/utils.d.ts +2 -0
- package/build/src/database/drivers/structure-sql/utils.d.ts.map +1 -1
- package/build/src/database/drivers/structure-sql/utils.js +3 -1
- package/build/src/database/handler.d.ts +1 -0
- package/build/src/database/handler.d.ts.map +1 -1
- package/build/src/database/handler.js +2 -1
- package/build/src/database/initializer-from-require-context.d.ts +8 -0
- package/build/src/database/initializer-from-require-context.d.ts.map +1 -1
- package/build/src/database/initializer-from-require-context.js +4 -1
- package/build/src/database/migration/index.d.ts +40 -5
- package/build/src/database/migration/index.d.ts.map +1 -1
- package/build/src/database/migration/index.js +34 -6
- package/build/src/database/migrator/files-finder.d.ts +2 -0
- package/build/src/database/migrator/files-finder.d.ts.map +1 -1
- package/build/src/database/migrator/files-finder.js +6 -2
- package/build/src/database/migrator.d.ts +29 -4
- package/build/src/database/migrator.d.ts.map +1 -1
- package/build/src/database/migrator.js +45 -10
- package/build/src/database/pool/async-tracked-multi-connection.d.ts +125 -31
- package/build/src/database/pool/async-tracked-multi-connection.d.ts.map +1 -1
- package/build/src/database/pool/async-tracked-multi-connection.js +189 -52
- package/build/src/database/pool/base-methods-forward.d.ts +1 -0
- package/build/src/database/pool/base-methods-forward.d.ts.map +1 -1
- package/build/src/database/pool/base-methods-forward.js +12 -3
- package/build/src/database/pool/base.d.ts +39 -7
- package/build/src/database/pool/base.d.ts.map +1 -1
- package/build/src/database/pool/base.js +59 -18
- package/build/src/database/pool/single-multi-use.d.ts +1 -0
- package/build/src/database/pool/single-multi-use.d.ts.map +1 -1
- package/build/src/database/pool/single-multi-use.js +16 -4
- package/build/src/database/query/alter-table-base.d.ts +1 -0
- package/build/src/database/query/alter-table-base.d.ts.map +1 -1
- package/build/src/database/query/alter-table-base.js +3 -1
- package/build/src/database/query/base.d.ts +3 -0
- package/build/src/database/query/base.d.ts.map +1 -1
- package/build/src/database/query/base.js +4 -1
- package/build/src/database/query/create-database-base.d.ts +5 -0
- package/build/src/database/query/create-database-base.d.ts.map +1 -1
- package/build/src/database/query/create-database-base.js +4 -1
- package/build/src/database/query/create-index-base.d.ts +5 -0
- package/build/src/database/query/create-index-base.d.ts.map +1 -1
- package/build/src/database/query/create-index-base.js +4 -1
- package/build/src/database/query/create-table-base.d.ts +2 -0
- package/build/src/database/query/create-table-base.d.ts.map +1 -1
- package/build/src/database/query/create-table-base.js +3 -1
- package/build/src/database/query/delete-base.d.ts +3 -2
- package/build/src/database/query/delete-base.d.ts.map +1 -1
- package/build/src/database/query/delete-base.js +3 -2
- package/build/src/database/query/drop-database-base.d.ts +5 -0
- package/build/src/database/query/drop-database-base.d.ts.map +1 -1
- package/build/src/database/query/drop-database-base.js +4 -1
- package/build/src/database/query/drop-table-base.d.ts +1 -0
- package/build/src/database/query/drop-table-base.d.ts.map +1 -1
- package/build/src/database/query/drop-table-base.js +3 -1
- package/build/src/database/query/from-base.d.ts +6 -1
- package/build/src/database/query/from-base.d.ts.map +1 -1
- package/build/src/database/query/from-base.js +7 -2
- package/build/src/database/query/from-plain.d.ts +1 -0
- package/build/src/database/query/from-plain.d.ts.map +1 -1
- package/build/src/database/query/from-plain.js +2 -1
- package/build/src/database/query/from-table.d.ts +1 -0
- package/build/src/database/query/from-table.d.ts.map +1 -1
- package/build/src/database/query/from-table.js +2 -1
- package/build/src/database/query/index.d.ts +72 -12
- package/build/src/database/query/index.d.ts.map +1 -1
- package/build/src/database/query/index.js +79 -19
- package/build/src/database/query/insert-base.d.ts +13 -8
- package/build/src/database/query/insert-base.d.ts.map +1 -1
- package/build/src/database/query/insert-base.js +10 -5
- package/build/src/database/query/join-base.d.ts +4 -0
- package/build/src/database/query/join-base.d.ts.map +1 -1
- package/build/src/database/query/join-base.js +5 -1
- package/build/src/database/query/join-object.d.ts +11 -0
- package/build/src/database/query/join-object.d.ts.map +1 -1
- package/build/src/database/query/join-object.js +15 -4
- package/build/src/database/query/join-plain.d.ts +1 -0
- package/build/src/database/query/join-plain.d.ts.map +1 -1
- package/build/src/database/query/join-plain.js +2 -1
- package/build/src/database/query/join-tracker.d.ts +7 -0
- package/build/src/database/query/join-tracker.d.ts.map +1 -1
- package/build/src/database/query/join-tracker.js +8 -1
- package/build/src/database/query/model-class-query.d.ts +92 -26
- package/build/src/database/query/model-class-query.d.ts.map +1 -1
- package/build/src/database/query/model-class-query.js +230 -76
- package/build/src/database/query/order-base.d.ts +3 -0
- package/build/src/database/query/order-base.d.ts.map +1 -1
- package/build/src/database/query/order-base.js +4 -1
- package/build/src/database/query/order-column.d.ts +9 -1
- package/build/src/database/query/order-column.d.ts.map +1 -1
- package/build/src/database/query/order-column.js +10 -2
- package/build/src/database/query/order-plain.d.ts +1 -0
- package/build/src/database/query/order-plain.d.ts.map +1 -1
- package/build/src/database/query/order-plain.js +2 -1
- package/build/src/database/query/preloader/belongs-to.d.ts +1 -0
- package/build/src/database/query/preloader/belongs-to.d.ts.map +1 -1
- package/build/src/database/query/preloader/belongs-to.js +68 -23
- package/build/src/database/query/preloader/ensure-model-class-initialized.d.ts +1 -0
- package/build/src/database/query/preloader/ensure-model-class-initialized.d.ts.map +1 -1
- package/build/src/database/query/preloader/ensure-model-class-initialized.js +2 -1
- package/build/src/database/query/preloader/has-many.d.ts +5 -3
- package/build/src/database/query/preloader/has-many.d.ts.map +1 -1
- package/build/src/database/query/preloader/has-many.js +66 -24
- package/build/src/database/query/preloader/has-one.d.ts +1 -0
- package/build/src/database/query/preloader/has-one.d.ts.map +1 -1
- package/build/src/database/query/preloader/has-one.js +26 -9
- package/build/src/database/query/preloader/selection.d.ts +7 -1
- package/build/src/database/query/preloader/selection.d.ts.map +1 -1
- package/build/src/database/query/preloader/selection.js +13 -5
- package/build/src/database/query/preloader.d.ts +1 -0
- package/build/src/database/query/preloader.d.ts.map +1 -1
- package/build/src/database/query/preloader.js +28 -9
- package/build/src/database/query/query-data.d.ts +21 -7
- package/build/src/database/query/query-data.d.ts.map +1 -1
- package/build/src/database/query/query-data.js +37 -18
- package/build/src/database/query/select-base.d.ts +3 -0
- package/build/src/database/query/select-base.d.ts.map +1 -1
- package/build/src/database/query/select-base.js +4 -1
- package/build/src/database/query/select-plain.d.ts +1 -0
- package/build/src/database/query/select-plain.d.ts.map +1 -1
- package/build/src/database/query/select-plain.js +2 -1
- package/build/src/database/query/select-table-and-column.d.ts +1 -0
- package/build/src/database/query/select-table-and-column.d.ts.map +1 -1
- package/build/src/database/query/select-table-and-column.js +2 -1
- package/build/src/database/query/update-base.d.ts +9 -6
- package/build/src/database/query/update-base.d.ts.map +1 -1
- package/build/src/database/query/update-base.js +7 -4
- package/build/src/database/query/upsert-base.d.ts +13 -4
- package/build/src/database/query/upsert-base.d.ts.map +1 -1
- package/build/src/database/query/upsert-base.js +12 -3
- package/build/src/database/query/where-base.d.ts +4 -0
- package/build/src/database/query/where-base.d.ts.map +1 -1
- package/build/src/database/query/where-base.js +5 -1
- package/build/src/database/query/where-combinator.d.ts +1 -0
- package/build/src/database/query/where-combinator.d.ts.map +1 -1
- package/build/src/database/query/where-combinator.js +6 -2
- package/build/src/database/query/where-hash.d.ts +6 -0
- package/build/src/database/query/where-hash.d.ts.map +1 -1
- package/build/src/database/query/where-hash.js +5 -1
- package/build/src/database/query/where-model-class-hash.d.ts +30 -16
- package/build/src/database/query/where-model-class-hash.d.ts.map +1 -1
- package/build/src/database/query/where-model-class-hash.js +55 -20
- package/build/src/database/query/where-not.d.ts +1 -0
- package/build/src/database/query/where-not.d.ts.map +1 -1
- package/build/src/database/query/where-not.js +3 -1
- package/build/src/database/query/where-plain.d.ts +1 -0
- package/build/src/database/query/where-plain.d.ts.map +1 -1
- package/build/src/database/query/where-plain.js +2 -1
- package/build/src/database/query/with-count.d.ts +11 -5
- package/build/src/database/query/with-count.d.ts.map +1 -1
- package/build/src/database/query/with-count.js +36 -15
- package/build/src/database/query-parser/base-query-parser.d.ts +1 -0
- package/build/src/database/query-parser/base-query-parser.d.ts.map +1 -1
- package/build/src/database/query-parser/base-query-parser.js +2 -1
- package/build/src/database/query-parser/from-parser.d.ts +5 -1
- package/build/src/database/query-parser/from-parser.d.ts.map +1 -1
- package/build/src/database/query-parser/from-parser.js +6 -2
- package/build/src/database/query-parser/group-parser.d.ts +2 -0
- package/build/src/database/query-parser/group-parser.d.ts.map +1 -1
- package/build/src/database/query-parser/group-parser.js +3 -1
- package/build/src/database/query-parser/joins-parser.d.ts +1 -0
- package/build/src/database/query-parser/joins-parser.d.ts.map +1 -1
- package/build/src/database/query-parser/joins-parser.js +2 -1
- package/build/src/database/query-parser/limit-parser.d.ts +1 -0
- package/build/src/database/query-parser/limit-parser.d.ts.map +1 -1
- package/build/src/database/query-parser/limit-parser.js +2 -1
- package/build/src/database/query-parser/options.d.ts +15 -4
- package/build/src/database/query-parser/options.d.ts.map +1 -1
- package/build/src/database/query-parser/options.js +11 -3
- package/build/src/database/query-parser/order-parser.d.ts +1 -0
- package/build/src/database/query-parser/order-parser.d.ts.map +1 -1
- package/build/src/database/query-parser/order-parser.js +2 -1
- package/build/src/database/query-parser/select-parser.d.ts +1 -0
- package/build/src/database/query-parser/select-parser.d.ts.map +1 -1
- package/build/src/database/query-parser/select-parser.js +2 -1
- package/build/src/database/query-parser/where-parser.d.ts +1 -0
- package/build/src/database/query-parser/where-parser.d.ts.map +1 -1
- package/build/src/database/query-parser/where-parser.js +2 -1
- package/build/src/database/record/acts-as-list.d.ts +0 -1
- package/build/src/database/record/acts-as-list.d.ts.map +1 -1
- package/build/src/database/record/acts-as-list.js +89 -45
- package/build/src/database/record/attachments/download.d.ts +34 -15
- package/build/src/database/record/attachments/download.d.ts.map +1 -1
- package/build/src/database/record/attachments/download.js +34 -22
- package/build/src/database/record/attachments/handle.d.ts +17 -5
- package/build/src/database/record/attachments/handle.d.ts.map +1 -1
- package/build/src/database/record/attachments/handle.js +25 -9
- package/build/src/database/record/attachments/normalize-input.d.ts +6 -1
- package/build/src/database/record/attachments/normalize-input.d.ts.map +1 -1
- package/build/src/database/record/attachments/normalize-input.js +54 -17
- package/build/src/database/record/attachments/storage-drivers/filesystem.d.ts +7 -1
- package/build/src/database/record/attachments/storage-drivers/filesystem.d.ts.map +1 -1
- package/build/src/database/record/attachments/storage-drivers/filesystem.js +10 -2
- package/build/src/database/record/attachments/storage-drivers/native.d.ts +12 -7
- package/build/src/database/record/attachments/storage-drivers/native.d.ts.map +1 -1
- package/build/src/database/record/attachments/storage-drivers/native.js +13 -6
- package/build/src/database/record/attachments/storage-drivers/s3.d.ts +18 -9
- package/build/src/database/record/attachments/storage-drivers/s3.d.ts.map +1 -1
- package/build/src/database/record/attachments/storage-drivers/s3.js +38 -13
- package/build/src/database/record/attachments/store.d.ts +48 -25
- package/build/src/database/record/attachments/store.d.ts.map +1 -1
- package/build/src/database/record/attachments/store.js +63 -25
- package/build/src/database/record/index.d.ts +394 -146
- package/build/src/database/record/index.d.ts.map +1 -1
- package/build/src/database/record/index.js +697 -248
- package/build/src/database/record/instance-relationships/base.d.ts +78 -19
- package/build/src/database/record/instance-relationships/base.d.ts.map +1 -1
- package/build/src/database/record/instance-relationships/base.js +98 -26
- package/build/src/database/record/instance-relationships/belongs-to.d.ts +1 -0
- package/build/src/database/record/instance-relationships/belongs-to.d.ts.map +1 -1
- package/build/src/database/record/instance-relationships/belongs-to.js +13 -5
- package/build/src/database/record/instance-relationships/has-many.d.ts +27 -7
- package/build/src/database/record/instance-relationships/has-many.d.ts.map +1 -1
- package/build/src/database/record/instance-relationships/has-many.js +50 -16
- package/build/src/database/record/instance-relationships/has-one.d.ts +4 -1
- package/build/src/database/record/instance-relationships/has-one.d.ts.map +1 -1
- package/build/src/database/record/instance-relationships/has-one.js +28 -10
- package/build/src/database/record/relationships/base.d.ts +61 -14
- package/build/src/database/record/relationships/base.d.ts.map +1 -1
- package/build/src/database/record/relationships/base.js +60 -15
- package/build/src/database/record/relationships/belongs-to.d.ts.map +1 -1
- package/build/src/database/record/relationships/belongs-to.js +9 -3
- package/build/src/database/record/relationships/has-many.d.ts.map +1 -1
- package/build/src/database/record/relationships/has-many.js +9 -3
- package/build/src/database/record/relationships/has-one.d.ts.map +1 -1
- package/build/src/database/record/relationships/has-one.js +9 -3
- package/build/src/database/record/state-machine.d.ts +9 -1
- package/build/src/database/record/state-machine.d.ts.map +1 -1
- package/build/src/database/record/state-machine.js +35 -14
- package/build/src/database/record/user-module.d.ts +2 -0
- package/build/src/database/record/user-module.d.ts.map +1 -1
- package/build/src/database/record/user-module.js +3 -1
- package/build/src/database/record/validators/base.d.ts +4 -2
- package/build/src/database/record/validators/base.d.ts.map +1 -1
- package/build/src/database/record/validators/base.js +4 -2
- package/build/src/database/record/validators/format.d.ts.map +1 -1
- package/build/src/database/record/validators/format.js +2 -1
- package/build/src/database/record/validators/presence.d.ts.map +1 -1
- package/build/src/database/record/validators/presence.js +5 -2
- package/build/src/database/record/validators/uniqueness.d.ts +0 -2
- package/build/src/database/record/validators/uniqueness.d.ts.map +1 -1
- package/build/src/database/record/validators/uniqueness.js +18 -8
- package/build/src/database/table-data/index.d.ts +40 -4
- package/build/src/database/table-data/index.d.ts.map +1 -1
- package/build/src/database/table-data/index.js +38 -5
- package/build/src/database/table-data/table-column.d.ts +43 -5
- package/build/src/database/table-data/table-column.d.ts.map +1 -1
- package/build/src/database/table-data/table-column.js +37 -4
- package/build/src/database/table-data/table-foreign-key.d.ts +8 -0
- package/build/src/database/table-data/table-foreign-key.d.ts.map +1 -1
- package/build/src/database/table-data/table-foreign-key.js +9 -1
- package/build/src/database/table-data/table-index.d.ts +8 -0
- package/build/src/database/table-data/table-index.d.ts.map +1 -1
- package/build/src/database/table-data/table-index.js +6 -1
- package/build/src/database/table-data/table-reference.d.ts +1 -0
- package/build/src/database/table-data/table-reference.d.ts.map +1 -1
- package/build/src/database/table-data/table-reference.js +2 -1
- package/build/src/database/use-database.d.ts +1 -0
- package/build/src/database/use-database.d.ts.map +1 -1
- package/build/src/database/use-database.js +2 -1
- package/build/src/environment-handlers/base.d.ts +94 -36
- package/build/src/environment-handlers/base.d.ts.map +1 -1
- package/build/src/environment-handlers/base.js +90 -36
- package/build/src/environment-handlers/browser.d.ts +33 -3
- package/build/src/environment-handlers/browser.d.ts.map +1 -1
- package/build/src/environment-handlers/browser.js +36 -9
- package/build/src/environment-handlers/node/cli/commands/cli-command-context.d.ts +5 -0
- package/build/src/environment-handlers/node/cli/commands/cli-command-context.d.ts.map +1 -1
- package/build/src/environment-handlers/node/cli/commands/cli-command-context.js +6 -2
- package/build/src/environment-handlers/node/cli/commands/console.d.ts +3 -2
- package/build/src/environment-handlers/node/cli/commands/console.d.ts.map +1 -1
- package/build/src/environment-handlers/node/cli/commands/console.js +23 -9
- package/build/src/environment-handlers/node/cli/commands/db/schema/dump.d.ts +4 -1
- package/build/src/environment-handlers/node/cli/commands/db/schema/dump.d.ts.map +1 -1
- package/build/src/environment-handlers/node/cli/commands/db/schema/dump.js +5 -2
- package/build/src/environment-handlers/node/cli/commands/db/schema/load.d.ts +6 -2
- package/build/src/environment-handlers/node/cli/commands/db/schema/load.d.ts.map +1 -1
- package/build/src/environment-handlers/node/cli/commands/db/schema/load.js +11 -5
- package/build/src/environment-handlers/node/cli/commands/db/seed.d.ts +15 -5
- package/build/src/environment-handlers/node/cli/commands/db/seed.d.ts.map +1 -1
- package/build/src/environment-handlers/node/cli/commands/db/seed.js +20 -6
- package/build/src/environment-handlers/node/cli/commands/destroy/migration.d.ts +5 -0
- package/build/src/environment-handlers/node/cli/commands/destroy/migration.d.ts.map +1 -1
- package/build/src/environment-handlers/node/cli/commands/destroy/migration.js +3 -1
- package/build/src/environment-handlers/node/cli/commands/generate/base-models.d.ts +2 -0
- package/build/src/environment-handlers/node/cli/commands/generate/base-models.d.ts.map +1 -1
- package/build/src/environment-handlers/node/cli/commands/generate/base-models.js +6 -4
- package/build/src/environment-handlers/node/cli/commands/generate/frontend-models.d.ts +43 -29
- package/build/src/environment-handlers/node/cli/commands/generate/frontend-models.d.ts.map +1 -1
- package/build/src/environment-handlers/node/cli/commands/generate/frontend-models.js +99 -40
- package/build/src/environment-handlers/node/cli/commands/generate/migration.d.ts +5 -0
- package/build/src/environment-handlers/node/cli/commands/generate/migration.d.ts.map +1 -1
- package/build/src/environment-handlers/node/cli/commands/generate/migration.js +3 -1
- package/build/src/environment-handlers/node/cli/commands/generate/model.d.ts +5 -0
- package/build/src/environment-handlers/node/cli/commands/generate/model.d.ts.map +1 -1
- package/build/src/environment-handlers/node/cli/commands/generate/model.js +3 -1
- package/build/src/environment-handlers/node/cli/commands/init.d.ts +5 -0
- package/build/src/environment-handlers/node/cli/commands/init.d.ts.map +1 -1
- package/build/src/environment-handlers/node/cli/commands/init.js +3 -1
- package/build/src/environment-handlers/node/cli/commands/routes.d.ts +3 -0
- package/build/src/environment-handlers/node/cli/commands/routes.d.ts.map +1 -1
- package/build/src/environment-handlers/node/cli/commands/routes.js +4 -1
- package/build/src/environment-handlers/node/cli/commands/run-script.d.ts +15 -5
- package/build/src/environment-handlers/node/cli/commands/run-script.d.ts.map +1 -1
- package/build/src/environment-handlers/node/cli/commands/run-script.js +20 -6
- package/build/src/environment-handlers/node/cli/commands/runner.d.ts +18 -6
- package/build/src/environment-handlers/node/cli/commands/runner.d.ts.map +1 -1
- package/build/src/environment-handlers/node/cli/commands/runner.js +20 -6
- package/build/src/environment-handlers/node/cli/commands/server.d.ts +13 -1
- package/build/src/environment-handlers/node/cli/commands/server.d.ts.map +1 -1
- package/build/src/environment-handlers/node/cli/commands/server.js +23 -6
- package/build/src/environment-handlers/node.d.ts +14 -2
- package/build/src/environment-handlers/node.d.ts.map +1 -1
- package/build/src/environment-handlers/node.js +107 -39
- package/build/src/error-logger.d.ts +4 -3
- package/build/src/error-logger.d.ts.map +1 -1
- package/build/src/error-logger.js +4 -3
- package/build/src/frontend-model-controller.d.ts +239 -90
- package/build/src/frontend-model-controller.d.ts.map +1 -1
- package/build/src/frontend-model-controller.js +577 -787
- package/build/src/frontend-model-resource/base-resource.d.ts +118 -66
- package/build/src/frontend-model-resource/base-resource.d.ts.map +1 -1
- package/build/src/frontend-model-resource/base-resource.js +205 -82
- package/build/src/frontend-models/base.d.ts +319 -163
- package/build/src/frontend-models/base.d.ts.map +1 -1
- package/build/src/frontend-models/base.js +717 -366
- package/build/src/frontend-models/clear-pending-debounced-callback.d.ts +2 -1
- package/build/src/frontend-models/clear-pending-debounced-callback.d.ts.map +1 -1
- package/build/src/frontend-models/clear-pending-debounced-callback.js +6 -3
- package/build/src/frontend-models/event-hook-models.d.ts +5 -0
- package/build/src/frontend-models/event-hook-models.d.ts.map +1 -1
- package/build/src/frontend-models/event-hook-models.js +10 -3
- package/build/src/frontend-models/model-registry.d.ts +5 -5
- package/build/src/frontend-models/model-registry.d.ts.map +1 -1
- package/build/src/frontend-models/model-registry.js +5 -5
- package/build/src/frontend-models/outgoing-event-buffer.d.ts +11 -3
- package/build/src/frontend-models/outgoing-event-buffer.d.ts.map +1 -1
- package/build/src/frontend-models/outgoing-event-buffer.js +13 -5
- package/build/src/frontend-models/preloader.d.ts +9 -6
- package/build/src/frontend-models/preloader.d.ts.map +1 -1
- package/build/src/frontend-models/preloader.js +21 -9
- package/build/src/frontend-models/query.d.ts +283 -73
- package/build/src/frontend-models/query.d.ts.map +1 -1
- package/build/src/frontend-models/query.js +331 -203
- package/build/src/frontend-models/resource-config-validation.d.ts +2 -0
- package/build/src/frontend-models/resource-config-validation.d.ts.map +1 -1
- package/build/src/frontend-models/resource-config-validation.js +3 -1
- package/build/src/frontend-models/resource-definition.d.ts +12 -5
- package/build/src/frontend-models/resource-definition.d.ts.map +1 -1
- package/build/src/frontend-models/resource-definition.js +39 -13
- package/build/src/frontend-models/transport-serialization.d.ts +14 -11
- package/build/src/frontend-models/transport-serialization.d.ts.map +1 -1
- package/build/src/frontend-models/transport-serialization.js +80 -53
- package/build/src/frontend-models/use-destroyed-event.d.ts +21 -0
- package/build/src/frontend-models/use-destroyed-event.d.ts.map +1 -1
- package/build/src/frontend-models/use-destroyed-event.js +34 -11
- package/build/src/frontend-models/use-model-class-event.d.ts +24 -0
- package/build/src/frontend-models/use-model-class-event.d.ts.map +1 -1
- package/build/src/frontend-models/use-model-class-event.js +39 -12
- package/build/src/frontend-models/use-updated-event.d.ts +21 -0
- package/build/src/frontend-models/use-updated-event.d.ts.map +1 -1
- package/build/src/frontend-models/use-updated-event.js +37 -12
- package/build/src/frontend-models/websocket-channel.d.ts +51 -9
- package/build/src/frontend-models/websocket-channel.d.ts.map +1 -1
- package/build/src/frontend-models/websocket-channel.js +96 -26
- package/build/src/frontend-models/websocket-publishers.d.ts +2 -0
- package/build/src/frontend-models/websocket-publishers.d.ts.map +1 -1
- package/build/src/frontend-models/websocket-publishers.js +33 -11
- package/build/src/http-client/header.d.ts +1 -0
- package/build/src/http-client/header.d.ts.map +1 -1
- package/build/src/http-client/header.js +2 -1
- package/build/src/http-client/index.d.ts +4 -0
- package/build/src/http-client/index.d.ts.map +1 -1
- package/build/src/http-client/index.js +5 -1
- package/build/src/http-client/request.d.ts +5 -0
- package/build/src/http-client/request.d.ts.map +1 -1
- package/build/src/http-client/request.js +6 -1
- package/build/src/http-client/response.d.ts +14 -4
- package/build/src/http-client/response.d.ts.map +1 -1
- package/build/src/http-client/response.js +14 -4
- package/build/src/http-client/websocket-client.d.ts +1 -0
- package/build/src/http-client/websocket-client.d.ts.map +1 -1
- package/build/src/http-client/websocket-client.js +2 -1
- package/build/src/http-server/client/index.d.ts +16 -2
- package/build/src/http-server/client/index.d.ts.map +1 -1
- package/build/src/http-server/client/index.js +44 -13
- package/build/src/http-server/client/params-to-object.d.ts +16 -10
- package/build/src/http-server/client/params-to-object.d.ts.map +1 -1
- package/build/src/http-server/client/params-to-object.js +46 -17
- package/build/src/http-server/client/request-buffer/form-data-part.d.ts +10 -6
- package/build/src/http-server/client/request-buffer/form-data-part.d.ts.map +1 -1
- package/build/src/http-server/client/request-buffer/form-data-part.js +11 -7
- package/build/src/http-server/client/request-buffer/header.d.ts +1 -0
- package/build/src/http-server/client/request-buffer/header.d.ts.map +1 -1
- package/build/src/http-server/client/request-buffer/header.js +2 -1
- package/build/src/http-server/client/request-buffer/index.d.ts +29 -4
- package/build/src/http-server/client/request-buffer/index.d.ts.map +1 -1
- package/build/src/http-server/client/request-buffer/index.js +43 -9
- package/build/src/http-server/client/request-parser.d.ts +52 -13
- package/build/src/http-server/client/request-parser.d.ts.map +1 -1
- package/build/src/http-server/client/request-parser.js +58 -15
- package/build/src/http-server/client/request-runner.d.ts +5 -1
- package/build/src/http-server/client/request-runner.d.ts.map +1 -1
- package/build/src/http-server/client/request-runner.js +32 -8
- package/build/src/http-server/client/request-timing.d.ts +37 -7
- package/build/src/http-server/client/request-timing.d.ts.map +1 -1
- package/build/src/http-server/client/request-timing.js +32 -8
- package/build/src/http-server/client/request.d.ts +15 -5
- package/build/src/http-server/client/request.d.ts.map +1 -1
- package/build/src/http-server/client/request.js +17 -5
- package/build/src/http-server/client/response.d.ts +22 -4
- package/build/src/http-server/client/response.d.ts.map +1 -1
- package/build/src/http-server/client/response.js +29 -7
- package/build/src/http-server/client/uploaded-file/memory-uploaded-file.d.ts +1 -0
- package/build/src/http-server/client/uploaded-file/memory-uploaded-file.d.ts.map +1 -1
- package/build/src/http-server/client/uploaded-file/memory-uploaded-file.js +3 -1
- package/build/src/http-server/client/uploaded-file/temporary-uploaded-file.d.ts +1 -0
- package/build/src/http-server/client/uploaded-file/temporary-uploaded-file.d.ts.map +1 -1
- package/build/src/http-server/client/uploaded-file/temporary-uploaded-file.js +3 -1
- package/build/src/http-server/client/uploaded-file/uploaded-file.d.ts +2 -0
- package/build/src/http-server/client/uploaded-file/uploaded-file.d.ts.map +1 -1
- package/build/src/http-server/client/uploaded-file/uploaded-file.js +3 -1
- package/build/src/http-server/client/websocket-request.d.ts +24 -12
- package/build/src/http-server/client/websocket-request.d.ts.map +1 -1
- package/build/src/http-server/client/websocket-request.js +24 -10
- package/build/src/http-server/client/websocket-session.d.ts +101 -62
- package/build/src/http-server/client/websocket-session.d.ts.map +1 -1
- package/build/src/http-server/client/websocket-session.js +118 -61
- package/build/src/http-server/cookie.d.ts +36 -8
- package/build/src/http-server/cookie.d.ts.map +1 -1
- package/build/src/http-server/cookie.js +37 -9
- package/build/src/http-server/development-reloader.d.ts +32 -7
- package/build/src/http-server/development-reloader.d.ts.map +1 -1
- package/build/src/http-server/development-reloader.js +39 -10
- package/build/src/http-server/index.d.ts +102 -25
- package/build/src/http-server/index.d.ts.map +1 -1
- package/build/src/http-server/index.js +117 -32
- package/build/src/http-server/remote-address.d.ts +1 -0
- package/build/src/http-server/remote-address.d.ts.map +1 -1
- package/build/src/http-server/remote-address.js +15 -4
- package/build/src/http-server/server-client.d.ts +37 -8
- package/build/src/http-server/server-client.d.ts.map +1 -1
- package/build/src/http-server/server-client.js +48 -12
- package/build/src/http-server/server-lock.d.ts +76 -0
- package/build/src/http-server/server-lock.d.ts.map +1 -0
- package/build/src/http-server/server-lock.js +164 -0
- package/build/src/http-server/websocket-channel-subscribers.d.ts +13 -8
- package/build/src/http-server/websocket-channel-subscribers.d.ts.map +1 -1
- package/build/src/http-server/websocket-channel-subscribers.js +16 -7
- package/build/src/http-server/websocket-channel.d.ts +13 -11
- package/build/src/http-server/websocket-channel.d.ts.map +1 -1
- package/build/src/http-server/websocket-channel.js +8 -12
- package/build/src/http-server/websocket-connection.d.ts +10 -14
- package/build/src/http-server/websocket-connection.d.ts.map +1 -1
- package/build/src/http-server/websocket-connection.js +8 -12
- package/build/src/http-server/websocket-event-log-store.d.ts +48 -10
- package/build/src/http-server/websocket-event-log-store.d.ts.map +1 -1
- package/build/src/http-server/websocket-event-log-store.js +76 -34
- package/build/src/http-server/websocket-events-host.d.ts +21 -15
- package/build/src/http-server/websocket-events-host.d.ts.map +1 -1
- package/build/src/http-server/websocket-events-host.js +20 -11
- package/build/src/http-server/websocket-events.d.ts +8 -7
- package/build/src/http-server/websocket-events.d.ts.map +1 -1
- package/build/src/http-server/websocket-events.js +6 -5
- package/build/src/http-server/worker-handler/channel-subscriber-dispatch.d.ts +3 -2
- package/build/src/http-server/worker-handler/channel-subscriber-dispatch.d.ts.map +1 -1
- package/build/src/http-server/worker-handler/channel-subscriber-dispatch.js +3 -2
- package/build/src/http-server/worker-handler/in-process.d.ts +18 -18
- package/build/src/http-server/worker-handler/in-process.d.ts.map +1 -1
- package/build/src/http-server/worker-handler/in-process.js +28 -20
- package/build/src/http-server/worker-handler/index.d.ts +39 -20
- package/build/src/http-server/worker-handler/index.d.ts.map +1 -1
- package/build/src/http-server/worker-handler/index.js +34 -14
- package/build/src/http-server/worker-handler/worker-thread.d.ts +31 -15
- package/build/src/http-server/worker-handler/worker-thread.d.ts.map +1 -1
- package/build/src/http-server/worker-handler/worker-thread.js +31 -12
- package/build/src/initializer.d.ts +4 -0
- package/build/src/initializer.d.ts.map +1 -1
- package/build/src/initializer.js +5 -1
- package/build/src/jobs/mail-delivery.d.ts +1 -0
- package/build/src/jobs/mail-delivery.d.ts.map +1 -1
- package/build/src/jobs/mail-delivery.js +2 -1
- package/build/src/logger/base-logger.js +2 -2
- package/build/src/logger/console-logger.d.ts +2 -0
- package/build/src/logger/console-logger.d.ts.map +1 -1
- package/build/src/logger/console-logger.js +3 -1
- package/build/src/logger/file-logger.d.ts +2 -0
- package/build/src/logger/file-logger.d.ts.map +1 -1
- package/build/src/logger/file-logger.js +3 -1
- package/build/src/logger/outputs/array-output.d.ts +21 -5
- package/build/src/logger/outputs/array-output.d.ts.map +1 -1
- package/build/src/logger/outputs/array-output.js +19 -6
- package/build/src/logger/outputs/console-output.d.ts +10 -2
- package/build/src/logger/outputs/console-output.d.ts.map +1 -1
- package/build/src/logger/outputs/console-output.js +8 -3
- package/build/src/logger/outputs/file-output.d.ts +20 -5
- package/build/src/logger/outputs/file-output.d.ts.map +1 -1
- package/build/src/logger/outputs/file-output.js +18 -6
- package/build/src/logger/outputs/stdout-output.d.ts +7 -1
- package/build/src/logger/outputs/stdout-output.d.ts.map +1 -1
- package/build/src/logger/outputs/stdout-output.js +9 -3
- package/build/src/logger.d.ts +28 -13
- package/build/src/logger.d.ts.map +1 -1
- package/build/src/logger.js +60 -23
- package/build/src/mailer/backends/smtp.d.ts +5 -0
- package/build/src/mailer/backends/smtp.d.ts.map +1 -1
- package/build/src/mailer/backends/smtp.js +17 -4
- package/build/src/mailer/base.d.ts +33 -17
- package/build/src/mailer/base.d.ts.map +1 -1
- package/build/src/mailer/base.js +54 -18
- package/build/src/mailer/delivery.d.ts +16 -5
- package/build/src/mailer/delivery.d.ts.map +1 -1
- package/build/src/mailer/delivery.js +18 -7
- package/build/src/mailer/index.d.ts +5 -5
- package/build/src/mailer/index.d.ts.map +1 -1
- package/build/src/mailer/index.js +2 -2
- package/build/src/mailer.d.ts +5 -5
- package/build/src/mailer.d.ts.map +1 -1
- package/build/src/mailer.js +2 -2
- package/build/src/plugins/sqljs-wasm-route-controller.d.ts +4 -1
- package/build/src/plugins/sqljs-wasm-route-controller.d.ts.map +1 -1
- package/build/src/plugins/sqljs-wasm-route-controller.js +11 -4
- package/build/src/plugins/sqljs-wasm-route.d.ts +6 -0
- package/build/src/plugins/sqljs-wasm-route.d.ts.map +1 -1
- package/build/src/plugins/sqljs-wasm-route.js +4 -1
- package/build/src/record-payload-values.d.ts +54 -0
- package/build/src/record-payload-values.d.ts.map +1 -0
- package/build/src/record-payload-values.js +80 -0
- package/build/src/routes/app-routes.d.ts +1 -0
- package/build/src/routes/app-routes.d.ts.map +1 -1
- package/build/src/routes/app-routes.js +2 -1
- package/build/src/routes/base-route.d.ts +52 -16
- package/build/src/routes/base-route.d.ts.map +1 -1
- package/build/src/routes/base-route.js +50 -14
- package/build/src/routes/basic-route.d.ts +1 -0
- package/build/src/routes/basic-route.d.ts.map +1 -1
- package/build/src/routes/basic-route.js +13 -4
- package/build/src/routes/built-in/debug/controller.d.ts +4 -1
- package/build/src/routes/built-in/debug/controller.d.ts.map +1 -1
- package/build/src/routes/built-in/debug/controller.js +5 -2
- package/build/src/routes/get-route.d.ts +1 -0
- package/build/src/routes/get-route.d.ts.map +1 -1
- package/build/src/routes/get-route.js +7 -4
- package/build/src/routes/hooks/frontend-model-command-route-hook.d.ts +1 -0
- package/build/src/routes/hooks/frontend-model-command-route-hook.d.ts.map +1 -1
- package/build/src/routes/hooks/frontend-model-command-route-hook.js +6 -2
- package/build/src/routes/index.d.ts +3 -2
- package/build/src/routes/index.d.ts.map +1 -1
- package/build/src/routes/index.js +10 -4
- package/build/src/routes/namespace-route.d.ts +1 -0
- package/build/src/routes/namespace-route.d.ts.map +1 -1
- package/build/src/routes/namespace-route.js +5 -3
- package/build/src/routes/plugin-routes.d.ts +10 -1
- package/build/src/routes/plugin-routes.d.ts.map +1 -1
- package/build/src/routes/plugin-routes.js +11 -3
- package/build/src/routes/post-route.d.ts +1 -0
- package/build/src/routes/post-route.d.ts.map +1 -1
- package/build/src/routes/post-route.js +7 -4
- package/build/src/routes/resolver.d.ts +20 -5
- package/build/src/routes/resolver.d.ts.map +1 -1
- package/build/src/routes/resolver.js +47 -14
- package/build/src/routes/resource-route.d.ts +6 -1
- package/build/src/routes/resource-route.d.ts.map +1 -1
- package/build/src/routes/resource-route.js +10 -4
- package/build/src/testing/base-expect.d.ts +2 -0
- package/build/src/testing/base-expect.d.ts.map +1 -1
- package/build/src/testing/base-expect.js +3 -1
- package/build/src/testing/browser-frontend-model-event-hook-scenarios.d.ts +33 -5
- package/build/src/testing/browser-frontend-model-event-hook-scenarios.d.ts.map +1 -1
- package/build/src/testing/browser-frontend-model-event-hook-scenarios.js +95 -23
- package/build/src/testing/expect-to-change.d.ts +3 -0
- package/build/src/testing/expect-to-change.d.ts.map +1 -1
- package/build/src/testing/expect-to-change.js +4 -1
- package/build/src/testing/expect-utils.d.ts +22 -16
- package/build/src/testing/expect-utils.d.ts.map +1 -1
- package/build/src/testing/expect-utils.js +62 -30
- package/build/src/testing/expect.d.ts +50 -21
- package/build/src/testing/expect.d.ts.map +1 -1
- package/build/src/testing/expect.js +58 -17
- package/build/src/testing/request-client.d.ts +16 -3
- package/build/src/testing/request-client.d.ts.map +1 -1
- package/build/src/testing/request-client.js +17 -4
- package/build/src/testing/test-files-finder.d.ts +41 -9
- package/build/src/testing/test-files-finder.d.ts.map +1 -1
- package/build/src/testing/test-files-finder.js +42 -10
- package/build/src/testing/test-filter-parser.d.ts +6 -0
- package/build/src/testing/test-filter-parser.d.ts.map +1 -1
- package/build/src/testing/test-filter-parser.js +12 -3
- package/build/src/testing/test-runner.d.ts +102 -6
- package/build/src/testing/test-runner.d.ts.map +1 -1
- package/build/src/testing/test-runner.js +115 -23
- package/build/src/testing/test-suite-splitter.d.ts +7 -0
- package/build/src/testing/test-suite-splitter.d.ts.map +1 -1
- package/build/src/testing/test-suite-splitter.js +7 -2
- package/build/src/testing/test.d.ts +20 -4
- package/build/src/testing/test.d.ts.map +1 -1
- package/build/src/testing/test.js +67 -20
- package/build/src/utils/backtrace-cleaner-node.d.ts.map +1 -1
- package/build/src/utils/backtrace-cleaner-node.js +6 -1
- package/build/src/utils/backtrace-cleaner.d.ts +16 -1
- package/build/src/utils/backtrace-cleaner.d.ts.map +1 -1
- package/build/src/utils/backtrace-cleaner.js +20 -2
- package/build/src/utils/ensure-error.d.ts +3 -2
- package/build/src/utils/ensure-error.d.ts.map +1 -1
- package/build/src/utils/ensure-error.js +3 -2
- package/build/src/utils/event-emitter.d.ts.map +1 -1
- package/build/src/utils/event-emitter.js +2 -2
- package/build/src/utils/file-exists.d.ts +1 -0
- package/build/src/utils/file-exists.d.ts.map +1 -1
- package/build/src/utils/file-exists.js +2 -1
- package/build/src/utils/format-value.d.ts +5 -4
- package/build/src/utils/format-value.d.ts.map +1 -1
- package/build/src/utils/format-value.js +12 -7
- package/build/src/utils/model-scope.d.ts +18 -12
- package/build/src/utils/model-scope.d.ts.map +1 -1
- package/build/src/utils/model-scope.js +19 -11
- package/build/src/utils/nest-callbacks.d.ts +1 -0
- package/build/src/utils/nest-callbacks.d.ts.map +1 -1
- package/build/src/utils/nest-callbacks.js +2 -1
- package/build/src/utils/plain-object.d.ts +7 -0
- package/build/src/utils/plain-object.d.ts.map +1 -0
- package/build/src/utils/plain-object.js +13 -0
- package/build/src/utils/ransack.d.ts +29 -5
- package/build/src/utils/ransack.d.ts.map +1 -1
- package/build/src/utils/ransack.js +136 -49
- package/build/src/utils/rest-args-error.d.ts +1 -0
- package/build/src/utils/rest-args-error.d.ts.map +1 -1
- package/build/src/utils/rest-args-error.js +2 -1
- package/build/src/utils/singularize-model-name.d.ts +1 -0
- package/build/src/utils/singularize-model-name.d.ts.map +1 -1
- package/build/src/utils/singularize-model-name.js +2 -1
- package/build/src/utils/to-import-specifier.d.ts.map +1 -1
- package/build/src/utils/to-import-specifier.js +3 -1
- package/build/src/utils/with-tracked-stack-async-hooks.d.ts +8 -5
- package/build/src/utils/with-tracked-stack-async-hooks.d.ts.map +1 -1
- package/build/src/utils/with-tracked-stack-async-hooks.js +32 -13
- package/build/src/utils/with-tracked-stack.d.ts +9 -5
- package/build/src/utils/with-tracked-stack.d.ts.map +1 -1
- package/build/src/utils/with-tracked-stack.js +19 -8
- package/build/src/velocious-error.d.ts +4 -2
- package/build/src/velocious-error.d.ts.map +1 -1
- package/build/src/velocious-error.js +5 -3
- package/build/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
|
@@ -1,25 +1,46 @@
|
|
|
1
1
|
export { CurrentConfigurationNotSetError };
|
|
2
2
|
export default class VelociousConfiguration {
|
|
3
|
-
/**
|
|
3
|
+
/**
|
|
4
|
+
* Runs current.
|
|
5
|
+
* @returns {VelociousConfiguration} - The current.
|
|
6
|
+
*/
|
|
4
7
|
static current(): VelociousConfiguration;
|
|
5
|
-
/**
|
|
8
|
+
/**
|
|
9
|
+
* Runs constructor.
|
|
10
|
+
* @param {import("./configuration-types.js").ConfigurationArgsType} args - Configuration arguments.
|
|
11
|
+
*/
|
|
6
12
|
constructor({ abilityResolver, abilityResources, attachments, autoload, backgroundJobs, backendProjects, beacon, cookieSecret, cors, database, debug, debugEndpoint, directory, enforceTenantDatabaseScopes, environment, environmentHandler, exposeInternalErrorsToClients, httpServer, initializeModels, initializers, locale, localeFallbacks, locales, logging, mailerBackend, requestTimeoutMs, routeResolverHooks, scheduledBackgroundJobs, structureSql, tenantDatabaseProviders, tenantDatabaseResolver, tenantResolver, testing, timezoneOffsetMinutes, trustedProxies, websocketChannelResolver, websocketMessageHandlerResolver, ...restArgs }: import("./configuration-types.js").ConfigurationArgsType);
|
|
7
|
-
/**
|
|
13
|
+
/**
|
|
14
|
+
* Close database connections promise.
|
|
15
|
+
@type {Promise<void> | null} */
|
|
8
16
|
_closeDatabaseConnectionsPromise: Promise<void> | null;
|
|
9
17
|
_abilityResolver: import("./configuration-types.js").AbilityResolverType | undefined;
|
|
10
18
|
_abilityResources: typeof import("./authorization/base-resource.js").default[];
|
|
11
19
|
_autoload: boolean;
|
|
12
20
|
_backgroundJobs: import("./configuration-types.js").BackgroundJobsConfiguration | undefined;
|
|
13
21
|
_beacon: import("./configuration-types.js").BeaconConfiguration | undefined;
|
|
14
|
-
/**
|
|
22
|
+
/**
|
|
23
|
+
* Stores the beacon client value.
|
|
24
|
+
@type {import("./beacon/client.js").default | import("./beacon/in-process-client.js").default | undefined} */
|
|
15
25
|
_beaconClient: import("./beacon/client.js").default | import("./beacon/in-process-client.js").default | undefined;
|
|
16
|
-
/**
|
|
26
|
+
/**
|
|
27
|
+
* Stores the beacon connect promise value.
|
|
28
|
+
@type {Promise<import("./beacon/client.js").default | import("./beacon/in-process-client.js").default | undefined> | undefined} */
|
|
17
29
|
_beaconConnectPromise: Promise<import("./beacon/client.js").default | import("./beacon/in-process-client.js").default | undefined> | undefined;
|
|
18
|
-
/**
|
|
30
|
+
/**
|
|
31
|
+
* Stores the beacon report timer value.
|
|
32
|
+
* @type {ReturnType<typeof setTimeout> | undefined} - Pending "beacon still unreachable" report timer.
|
|
33
|
+
*/
|
|
19
34
|
_beaconReportTimer: ReturnType<typeof setTimeout> | undefined;
|
|
20
|
-
/**
|
|
35
|
+
/**
|
|
36
|
+
* Stores the beacon outage reported value.
|
|
37
|
+
* @type {boolean} - Whether the current beacon outage has already been reported.
|
|
38
|
+
*/
|
|
21
39
|
_beaconOutageReported: boolean;
|
|
22
|
-
/**
|
|
40
|
+
/**
|
|
41
|
+
* Stores the beacon last down error value.
|
|
42
|
+
* @type {{stage: "beacon-connect" | "beacon-disconnect", error: Error} | undefined} - Latest beacon-down details, reported only if the outage is sustained.
|
|
43
|
+
*/
|
|
23
44
|
_beaconLastDownError: {
|
|
24
45
|
stage: "beacon-connect" | "beacon-disconnect";
|
|
25
46
|
error: Error;
|
|
@@ -51,7 +72,9 @@ export default class VelociousConfiguration {
|
|
|
51
72
|
}) => void;
|
|
52
73
|
_isInitialized: boolean;
|
|
53
74
|
httpServer: import("./configuration-types.js").HttpServerConfiguration;
|
|
54
|
-
/**
|
|
75
|
+
/**
|
|
76
|
+
* Stores the http server instance value.
|
|
77
|
+
@type {{getDebugSnapshot: () => Promise<Record<string, ?>>} | undefined} */
|
|
55
78
|
_httpServerInstance: {
|
|
56
79
|
getDebugSnapshot: () => Promise<Record<string, unknown>>;
|
|
57
80
|
} | undefined;
|
|
@@ -68,19 +91,34 @@ export default class VelociousConfiguration {
|
|
|
68
91
|
_tenantDatabaseResolver: import("./configuration-types.js").TenantDatabaseResolverType | undefined;
|
|
69
92
|
_tenantResolver: import("./configuration-types.js").TenantResolverType | undefined;
|
|
70
93
|
_websocketEvents: import("./http-server/websocket-events.js").default | undefined;
|
|
71
|
-
/**
|
|
94
|
+
/**
|
|
95
|
+
* Stores the websocket channel subscribers value.
|
|
96
|
+
@type {VelociousWebsocketChannelSubscribers | undefined} */
|
|
72
97
|
_websocketChannelSubscribers: VelociousWebsocketChannelSubscribers | undefined;
|
|
73
98
|
_websocketChannelResolver: import("./configuration-types.js").WebsocketChannelResolverType | undefined;
|
|
74
99
|
_websocketMessageHandlerResolver: import("./configuration-types.js").WebsocketMessageHandlerResolverType | undefined;
|
|
75
|
-
/**
|
|
100
|
+
/**
|
|
101
|
+
* Stores the websocket connection classes value.
|
|
102
|
+
@type {Map<string, typeof import("./http-server/websocket-connection.js").default>} */
|
|
76
103
|
_websocketConnectionClasses: Map<string, typeof import("./http-server/websocket-connection.js").default>;
|
|
77
|
-
/**
|
|
104
|
+
/**
|
|
105
|
+
* Stores the websocket channel classes value.
|
|
106
|
+
@type {Map<string, typeof import("./http-server/websocket-channel.js").default>} */
|
|
78
107
|
_websocketChannelClasses: Map<string, typeof import("./http-server/websocket-channel.js").default>;
|
|
79
|
-
/**
|
|
108
|
+
/**
|
|
109
|
+
* Stores the websocket channel subscriptions value.
|
|
110
|
+
* @type {Map<string, Set<import("./http-server/websocket-channel.js").default>>} - channelType → live subscriptions across all sessions.
|
|
111
|
+
*/
|
|
80
112
|
_websocketChannelSubscriptions: Map<string, Set<import("./http-server/websocket-channel.js").default>>;
|
|
81
|
-
/**
|
|
113
|
+
/**
|
|
114
|
+
* Stores the websocket sessions value.
|
|
115
|
+
* @type {Set<import("./http-server/client/websocket-session.js").default>} - Live websocket sessions, including paused sessions within the grace window.
|
|
116
|
+
*/
|
|
82
117
|
_websocketSessions: Set<import("./http-server/client/websocket-session.js").default>;
|
|
83
|
-
/**
|
|
118
|
+
/**
|
|
119
|
+
* Stores the paused websocket sessions value.
|
|
120
|
+
* @type {Map<string, {session: import("./http-server/client/websocket-session.js").default, graceTimer: ReturnType<typeof setTimeout>, pausedAt: number}>} - sessionId → paused session awaiting resume.
|
|
121
|
+
*/
|
|
84
122
|
_pausedWebsocketSessions: Map<string, {
|
|
85
123
|
session: import("./http-server/client/websocket-session.js").default;
|
|
86
124
|
graceTimer: ReturnType<typeof setTimeout>;
|
|
@@ -96,45 +134,68 @@ export default class VelociousConfiguration {
|
|
|
96
134
|
* @type {((session: import("./http-server/client/websocket-session.js").default, next: () => Promise<void>) => Promise<void>) | null}
|
|
97
135
|
*/
|
|
98
136
|
_websocketAroundRequest: ((session: import("./http-server/client/websocket-session.js").default, next: () => Promise<void>) => Promise<void>) | null;
|
|
99
|
-
/**
|
|
137
|
+
/**
|
|
138
|
+
* Stores the around action value.
|
|
139
|
+
@type {((context: {request: import("./http-server/client/request.js").default | import("./http-server/client/websocket-request.js").default, response: import("./http-server/client/response.js").default, next: () => Promise<void>}) => Promise<void>) | null} */
|
|
100
140
|
_aroundAction: ((context: {
|
|
101
141
|
request: import("./http-server/client/request.js").default | import("./http-server/client/websocket-request.js").default;
|
|
102
142
|
response: import("./http-server/client/response.js").default;
|
|
103
143
|
next: () => Promise<void>;
|
|
104
144
|
}) => Promise<void>) | null;
|
|
105
|
-
/**
|
|
106
|
-
|
|
145
|
+
/**
|
|
146
|
+
* Stores the websocket session identity resolver value.
|
|
147
|
+
@type {((session: import("./http-server/client/websocket-session.js").default) => ? | Promise<?>) | null} */
|
|
148
|
+
_websocketSessionIdentityResolver: ((session: import("./http-server/client/websocket-session.js").default) => unknown | Promise<unknown>) | null;
|
|
107
149
|
_logging: import("./configuration-types.js").LoggingConfiguration | undefined;
|
|
108
150
|
_mailerBackend: import("./configuration-types.js").MailerBackend | undefined;
|
|
109
151
|
_routeResolverHooks: import("./configuration-types.js").RouteResolverHookType[];
|
|
110
|
-
/**
|
|
152
|
+
/**
|
|
153
|
+
* Stores the applied route mounts value.
|
|
154
|
+
@type {WeakSet<object>} */
|
|
111
155
|
_appliedRouteMounts: WeakSet<object>;
|
|
112
156
|
_errorEvents: import("eventemitter3").EventEmitter<string | symbol, any>;
|
|
113
|
-
/**
|
|
157
|
+
/**
|
|
158
|
+
* Stores the database pools value.
|
|
159
|
+
@type {{[key: string]: import("./database/pool/base.js").default}} */
|
|
114
160
|
databasePools: {
|
|
115
161
|
[key: string]: import("./database/pool/base.js").default;
|
|
116
162
|
};
|
|
117
|
-
/**
|
|
163
|
+
/**
|
|
164
|
+
* Stores the model classes value.
|
|
165
|
+
@type {{[key: string]: typeof import("./database/record/index.js").default}} */
|
|
118
166
|
modelClasses: {
|
|
119
167
|
[key: string]: typeof import("./database/record/index.js").default;
|
|
120
168
|
};
|
|
121
|
-
/**
|
|
169
|
+
/**
|
|
170
|
+
* Runs get autoload.
|
|
171
|
+
* @returns {boolean} Whether auto-batch-preload of relationships on lazy access is enabled globally.
|
|
172
|
+
*/
|
|
122
173
|
getAutoload(): boolean;
|
|
123
|
-
/**
|
|
174
|
+
/**
|
|
175
|
+
* Runs get expose internal errors to clients.
|
|
176
|
+
* @returns {boolean} Whether unexpected internal error details may be returned to API clients.
|
|
177
|
+
*/
|
|
124
178
|
getExposeInternalErrorsToClients(): boolean;
|
|
125
|
-
/**
|
|
179
|
+
/**
|
|
180
|
+
* Runs get debug endpoint.
|
|
181
|
+
* @returns {{enabled: boolean, path: string, token: string | null}} - Debug endpoint configuration.
|
|
182
|
+
*/
|
|
126
183
|
getDebugEndpoint(): {
|
|
127
184
|
enabled: boolean;
|
|
128
185
|
path: string;
|
|
129
186
|
token: string | null;
|
|
130
187
|
};
|
|
131
|
-
/**
|
|
188
|
+
/**
|
|
189
|
+
* Runs debug endpoint snapshot.
|
|
190
|
+
* @returns {{enabled: boolean, path: string, tokenConfigured: boolean}} - Debug endpoint config for the snapshot, with the token redacted.
|
|
191
|
+
*/
|
|
132
192
|
_debugEndpointSnapshot(): {
|
|
133
193
|
enabled: boolean;
|
|
134
194
|
path: string;
|
|
135
195
|
tokenConfigured: boolean;
|
|
136
196
|
};
|
|
137
197
|
/**
|
|
198
|
+
* Runs normalize debug endpoint.
|
|
138
199
|
* @param {boolean | {path?: string, token?: string}} value - Debug endpoint configuration.
|
|
139
200
|
* @returns {{enabled: boolean, path: string, token: string | null}} - Normalized debug endpoint configuration.
|
|
140
201
|
*/
|
|
@@ -146,57 +207,104 @@ export default class VelociousConfiguration {
|
|
|
146
207
|
path: string;
|
|
147
208
|
token: string | null;
|
|
148
209
|
};
|
|
149
|
-
/**
|
|
210
|
+
/**
|
|
211
|
+
* Runs add debug endpoint route hook.
|
|
212
|
+
* @returns {void} - No return value.
|
|
213
|
+
*/
|
|
150
214
|
_addDebugEndpointRouteHook(): void;
|
|
151
215
|
/**
|
|
216
|
+
* Runs set autoload.
|
|
152
217
|
* @param {boolean} newValue - Whether auto-batch-preload of relationships is enabled.
|
|
153
218
|
* @returns {void}
|
|
154
219
|
*/
|
|
155
220
|
setAutoload(newValue: boolean): void;
|
|
156
|
-
/**
|
|
221
|
+
/**
|
|
222
|
+
* Runs get cors.
|
|
223
|
+
* @returns {import("./configuration-types.js").CorsType | undefined} - The cors.
|
|
224
|
+
*/
|
|
157
225
|
getCors(): import("./configuration-types.js").CorsType | undefined;
|
|
158
|
-
/**
|
|
226
|
+
/**
|
|
227
|
+
* Runs get cookie secret.
|
|
228
|
+
* @returns {string | undefined} - Cookie secret.
|
|
229
|
+
*/
|
|
159
230
|
getCookieSecret(): string | undefined;
|
|
160
|
-
/**
|
|
231
|
+
/**
|
|
232
|
+
* Runs get database configuration.
|
|
233
|
+
* @returns {Record<string, import("./configuration-types.js").DatabaseConfigurationType>} - The database configuration.
|
|
234
|
+
*/
|
|
161
235
|
getDatabaseConfiguration(): Record<string, import("./configuration-types.js").DatabaseConfigurationType>;
|
|
162
236
|
/**
|
|
237
|
+
* Runs resolve database configuration.
|
|
163
238
|
* @param {string} identifier - Identifier.
|
|
164
|
-
* @param {
|
|
239
|
+
* @param {?} [tenant] - Tenant override.
|
|
165
240
|
* @returns {import("./configuration-types.js").DatabaseConfigurationType} - Resolved database configuration for the identifier.
|
|
166
241
|
*/
|
|
167
242
|
resolveDatabaseConfiguration(identifier: string, tenant?: unknown): import("./configuration-types.js").DatabaseConfigurationType;
|
|
168
|
-
/**
|
|
243
|
+
/**
|
|
244
|
+
* Runs get disabled database identifiers.
|
|
245
|
+
* @returns {Set<string>} - Disabled database identifiers from env flags.
|
|
246
|
+
*/
|
|
169
247
|
getDisabledDatabaseIdentifiers(): Set<string>;
|
|
170
248
|
/**
|
|
249
|
+
* Runs is database identifier active.
|
|
171
250
|
* @param {string} identifier - Database identifier.
|
|
172
|
-
* @param {
|
|
251
|
+
* @param {?} [tenant] - Tenant override.
|
|
173
252
|
* @returns {boolean} - Whether this database identifier is active in the current tenant context.
|
|
174
253
|
*/
|
|
175
254
|
isDatabaseIdentifierActive(identifier: string, tenant?: unknown): boolean;
|
|
176
|
-
/**
|
|
255
|
+
/**
|
|
256
|
+
* Runs get database identifiers.
|
|
257
|
+
* @returns {Array<string>} - The database identifiers.
|
|
258
|
+
*/
|
|
177
259
|
getDatabaseIdentifiers(): Array<string>;
|
|
178
|
-
/**
|
|
260
|
+
/**
|
|
261
|
+
* Runs get debug snapshot.
|
|
262
|
+
* @returns {Promise<Record<string, ?>>} - Human-readable server diagnostics.
|
|
263
|
+
*/
|
|
179
264
|
getDebugSnapshot(): Promise<Record<string, unknown>>;
|
|
180
|
-
/**
|
|
265
|
+
/**
|
|
266
|
+
* Runs get local debug snapshot.
|
|
267
|
+
* @returns {Record<string, ?>} - Human-readable diagnostics for this process only.
|
|
268
|
+
*/
|
|
181
269
|
getLocalDebugSnapshot(): Record<string, unknown>;
|
|
182
|
-
/**
|
|
270
|
+
/**
|
|
271
|
+
* Runs debug http server snapshot.
|
|
272
|
+
* @returns {Promise<Record<string, ?>>} - HTTP server worker diagnostics.
|
|
273
|
+
*/
|
|
183
274
|
_debugHttpServerSnapshot(): Promise<Record<string, unknown>>;
|
|
184
|
-
/**
|
|
275
|
+
/**
|
|
276
|
+
* Runs debug server snapshot.
|
|
277
|
+
* @returns {Record<string, ?>} - Server runtime diagnostics.
|
|
278
|
+
*/
|
|
185
279
|
_debugServerSnapshot(): Record<string, unknown>;
|
|
186
|
-
/**
|
|
280
|
+
/**
|
|
281
|
+
* Runs debug configuration snapshot.
|
|
282
|
+
* @returns {Record<string, ?>} - Configuration diagnostics.
|
|
283
|
+
*/
|
|
187
284
|
_debugConfigurationSnapshot(): Record<string, unknown>;
|
|
188
|
-
/**
|
|
285
|
+
/**
|
|
286
|
+
* Runs debug background jobs snapshot.
|
|
287
|
+
* @returns {Record<string, ?>} - Background job diagnostics.
|
|
288
|
+
*/
|
|
189
289
|
_debugBackgroundJobsSnapshot(): Record<string, unknown>;
|
|
190
|
-
/**
|
|
290
|
+
/**
|
|
291
|
+
* Runs debug database snapshot.
|
|
292
|
+
* @returns {Record<string, ?>} - Database diagnostics.
|
|
293
|
+
*/
|
|
191
294
|
_debugDatabaseSnapshot(): Record<string, unknown>;
|
|
192
|
-
/**
|
|
295
|
+
/**
|
|
296
|
+
* Runs debug websocket snapshot.
|
|
297
|
+
* @returns {Record<string, ?>} - WebSocket diagnostics.
|
|
298
|
+
*/
|
|
193
299
|
_debugWebsocketSnapshot(): Record<string, unknown>;
|
|
194
300
|
/**
|
|
301
|
+
* Runs get database pool.
|
|
195
302
|
* @param {string} identifier - Identifier.
|
|
196
303
|
* @returns {import("./database/pool/base.js").default} - The database pool.
|
|
197
304
|
*/
|
|
198
305
|
getDatabasePool(identifier?: string): import("./database/pool/base.js").default;
|
|
199
306
|
/**
|
|
307
|
+
* Runs get database identifier.
|
|
200
308
|
* @param {string} identifier - Identifier.
|
|
201
309
|
* @returns {import("./configuration-types.js").DatabaseConfigurationType})
|
|
202
310
|
*/
|
|
@@ -211,98 +319,139 @@ export default class VelociousConfiguration {
|
|
|
211
319
|
*/
|
|
212
320
|
clearSchemaCachesForReuseKey(reuseKey: string): void;
|
|
213
321
|
/**
|
|
322
|
+
* Runs get database pool type.
|
|
214
323
|
* @param {string} identifier - Identifier.
|
|
215
324
|
* @returns {typeof import("./database/pool/base.js").default} - The database pool type.
|
|
216
325
|
*/
|
|
217
326
|
getDatabasePoolType(identifier?: string): typeof import("./database/pool/base.js").default;
|
|
218
327
|
getDatabaseType(identifier?: string): "sqlite" | "pgsql" | "mysql" | "mssql";
|
|
219
328
|
/**
|
|
329
|
+
* Runs get directory.
|
|
220
330
|
* @returns {string} - The directory.
|
|
221
331
|
*/
|
|
222
332
|
getDirectory(): string;
|
|
223
333
|
/**
|
|
334
|
+
* Runs get directory if available.
|
|
224
335
|
* @returns {string | undefined} - The directory when the runtime can resolve one.
|
|
225
336
|
*/
|
|
226
337
|
getDirectoryIfAvailable(): string | undefined;
|
|
227
338
|
/**
|
|
339
|
+
* Runs get backend projects.
|
|
228
340
|
* @returns {import("./configuration-types.js").BackendProjectConfiguration[]} - Backend projects.
|
|
229
341
|
*/
|
|
230
342
|
getBackendProjects(): import("./configuration-types.js").BackendProjectConfiguration[];
|
|
231
|
-
/**
|
|
343
|
+
/**
|
|
344
|
+
* Runs get ability resources.
|
|
345
|
+
* @returns {import("./configuration-types.js").AbilityResourceClassType[]} - Ability resource classes.
|
|
346
|
+
*/
|
|
232
347
|
getAbilityResources(): import("./configuration-types.js").AbilityResourceClassType[];
|
|
233
348
|
/**
|
|
349
|
+
* Runs set ability resources.
|
|
234
350
|
* @param {import("./configuration-types.js").AbilityResourceClassType[]} resources - Ability resource classes.
|
|
235
351
|
* @returns {void} - No return value.
|
|
236
352
|
*/
|
|
237
353
|
setAbilityResources(resources: import("./configuration-types.js").AbilityResourceClassType[]): void;
|
|
238
|
-
/**
|
|
354
|
+
/**
|
|
355
|
+
* Runs get ability resolver.
|
|
356
|
+
* @returns {import("./configuration-types.js").AbilityResolverType | undefined} - Ability resolver.
|
|
357
|
+
*/
|
|
239
358
|
getAbilityResolver(): import("./configuration-types.js").AbilityResolverType | undefined;
|
|
240
|
-
/**
|
|
359
|
+
/**
|
|
360
|
+
* Runs get tenant resolver.
|
|
361
|
+
* @returns {import("./configuration-types.js").TenantResolverType | undefined} - Tenant resolver.
|
|
362
|
+
*/
|
|
241
363
|
getTenantResolver(): import("./configuration-types.js").TenantResolverType | undefined;
|
|
242
|
-
/**
|
|
364
|
+
/**
|
|
365
|
+
* Runs get tenant database resolver.
|
|
366
|
+
* @returns {import("./configuration-types.js").TenantDatabaseResolverType | undefined} - Tenant database resolver.
|
|
367
|
+
*/
|
|
243
368
|
getTenantDatabaseResolver(): import("./configuration-types.js").TenantDatabaseResolverType | undefined;
|
|
244
|
-
/**
|
|
369
|
+
/**
|
|
370
|
+
* Runs get enforce tenant database scopes.
|
|
371
|
+
* @returns {boolean} - Whether tenant-switched models require a resolved tenant database identifier.
|
|
372
|
+
*/
|
|
245
373
|
getEnforceTenantDatabaseScopes(): boolean;
|
|
246
|
-
/**
|
|
374
|
+
/**
|
|
375
|
+
* Runs get tenant database providers.
|
|
376
|
+
* @returns {Record<string, import("./configuration-types.js").TenantDatabaseProviderType>} - Tenant database lifecycle providers.
|
|
377
|
+
*/
|
|
247
378
|
getTenantDatabaseProviders(): Record<string, import("./configuration-types.js").TenantDatabaseProviderType>;
|
|
248
379
|
/**
|
|
380
|
+
* Runs get tenant database provider.
|
|
249
381
|
* @param {string} identifier - Database identifier.
|
|
250
382
|
* @returns {import("./configuration-types.js").TenantDatabaseProviderType} - Tenant database lifecycle provider.
|
|
251
383
|
*/
|
|
252
384
|
getTenantDatabaseProvider(identifier: string): import("./configuration-types.js").TenantDatabaseProviderType;
|
|
253
|
-
/**
|
|
385
|
+
/**
|
|
386
|
+
* Runs get attachments configuration.
|
|
387
|
+
* @returns {import("./configuration-types.js").AttachmentsConfiguration} - Attachments configuration.
|
|
388
|
+
*/
|
|
254
389
|
getAttachmentsConfiguration(): import("./configuration-types.js").AttachmentsConfiguration;
|
|
255
|
-
/**
|
|
390
|
+
/**
|
|
391
|
+
* Runs get route resolver hooks.
|
|
392
|
+
* @returns {import("./configuration-types.js").RouteResolverHookType[]} - Route resolver hooks.
|
|
393
|
+
*/
|
|
256
394
|
getRouteResolverHooks(): import("./configuration-types.js").RouteResolverHookType[];
|
|
257
395
|
/**
|
|
396
|
+
* Runs add route resolver hook.
|
|
258
397
|
* @param {import("./configuration-types.js").RouteResolverHookType} hook - Route resolver hook.
|
|
259
398
|
* @returns {void} - No return value.
|
|
260
399
|
*/
|
|
261
400
|
addRouteResolverHook(hook: import("./configuration-types.js").RouteResolverHookType): void;
|
|
262
401
|
/**
|
|
402
|
+
* Runs set ability resolver.
|
|
263
403
|
* @param {import("./configuration-types.js").AbilityResolverType | undefined} resolver - Ability resolver.
|
|
264
404
|
* @returns {void} - No return value.
|
|
265
405
|
*/
|
|
266
406
|
setAbilityResolver(resolver: import("./configuration-types.js").AbilityResolverType | undefined): void;
|
|
267
407
|
/**
|
|
408
|
+
* Runs set tenant resolver.
|
|
268
409
|
* @param {import("./configuration-types.js").TenantResolverType | undefined} resolver - Tenant resolver.
|
|
269
410
|
* @returns {void} - No return value.
|
|
270
411
|
*/
|
|
271
412
|
setTenantResolver(resolver: import("./configuration-types.js").TenantResolverType | undefined): void;
|
|
272
413
|
/**
|
|
414
|
+
* Runs set tenant database resolver.
|
|
273
415
|
* @param {import("./configuration-types.js").TenantDatabaseResolverType | undefined} resolver - Tenant database resolver.
|
|
274
416
|
* @returns {void} - No return value.
|
|
275
417
|
*/
|
|
276
418
|
setTenantDatabaseResolver(resolver: import("./configuration-types.js").TenantDatabaseResolverType | undefined): void;
|
|
277
419
|
/**
|
|
420
|
+
* Runs set enforce tenant database scopes.
|
|
278
421
|
* @param {boolean} newValue - Whether tenant-switched models require a resolved tenant database identifier.
|
|
279
422
|
* @returns {void} - No return value.
|
|
280
423
|
*/
|
|
281
424
|
setEnforceTenantDatabaseScopes(newValue: boolean): void;
|
|
282
425
|
/**
|
|
426
|
+
* Runs set tenant database providers.
|
|
283
427
|
* @param {Record<string, import("./configuration-types.js").TenantDatabaseProviderType>} providers - Tenant database lifecycle providers.
|
|
284
428
|
* @returns {void} - No return value.
|
|
285
429
|
*/
|
|
286
430
|
setTenantDatabaseProviders(providers: Record<string, import("./configuration-types.js").TenantDatabaseProviderType>): void;
|
|
287
431
|
/**
|
|
432
|
+
* Runs get environment.
|
|
288
433
|
* @returns {string} - The environment.
|
|
289
434
|
*/
|
|
290
435
|
getEnvironment(): string;
|
|
291
436
|
/**
|
|
437
|
+
* Runs get request timeout ms.
|
|
292
438
|
* @returns {number} - Request timeout in seconds.
|
|
293
439
|
*/
|
|
294
440
|
getRequestTimeoutMs(): number;
|
|
295
441
|
/**
|
|
442
|
+
* Runs parse request timeout seconds.
|
|
296
443
|
* @param {string | undefined} rawValue - Env value.
|
|
297
444
|
* @returns {number | undefined} - Timeout in seconds.
|
|
298
445
|
*/
|
|
299
446
|
_parseRequestTimeoutSeconds(rawValue: string | undefined): number | undefined;
|
|
300
447
|
/**
|
|
448
|
+
* Runs set environment.
|
|
301
449
|
* @param {string} newEnvironment - New environment.
|
|
302
450
|
* @returns {void} - No return value.
|
|
303
451
|
*/
|
|
304
452
|
setEnvironment(newEnvironment: string): void;
|
|
305
453
|
/**
|
|
454
|
+
* Runs get logging configuration.
|
|
306
455
|
* @param {object} [args] - Options object.
|
|
307
456
|
* @param {boolean} [args.defaultConsole] - Whether default console.
|
|
308
457
|
* @returns {Required<Pick<import("./configuration-types.js").LoggingConfiguration, "console" | "file" | "levels">> & Pick<import("./configuration-types.js").LoggingConfiguration, "directory" | "filePath"> & Partial<Pick<import("./configuration-types.js").LoggingConfiguration, "outputs" | "loggers">>} - The logging configuration.
|
|
@@ -311,14 +460,17 @@ export default class VelociousConfiguration {
|
|
|
311
460
|
defaultConsole?: boolean | undefined;
|
|
312
461
|
}): Required<Pick<import("./configuration-types.js").LoggingConfiguration, "console" | "file" | "levels">> & Pick<import("./configuration-types.js").LoggingConfiguration, "directory" | "filePath"> & Partial<Pick<import("./configuration-types.js").LoggingConfiguration, "outputs" | "loggers">>;
|
|
313
462
|
/**
|
|
463
|
+
* Runs get query logging enabled.
|
|
314
464
|
* @returns {boolean} - Whether database query logging is enabled.
|
|
315
465
|
*/
|
|
316
466
|
getQueryLoggingEnabled(): boolean;
|
|
317
467
|
/**
|
|
468
|
+
* Runs get background jobs config.
|
|
318
469
|
* @returns {Required<import("./configuration-types.js").BackgroundJobsConfiguration>} - Background jobs configuration.
|
|
319
470
|
*/
|
|
320
471
|
getBackgroundJobsConfig(): Required<import("./configuration-types.js").BackgroundJobsConfiguration>;
|
|
321
472
|
/**
|
|
473
|
+
* Runs set background jobs config.
|
|
322
474
|
* @param {import("./configuration-types.js").BackgroundJobsConfiguration} backgroundJobs - Background jobs config.
|
|
323
475
|
* @returns {void}
|
|
324
476
|
*/
|
|
@@ -342,11 +494,13 @@ export default class VelociousConfiguration {
|
|
|
342
494
|
unreachableReportMs: number;
|
|
343
495
|
};
|
|
344
496
|
/**
|
|
497
|
+
* Runs set beacon config.
|
|
345
498
|
* @param {import("./configuration-types.js").BeaconConfiguration} beacon - Beacon config.
|
|
346
499
|
* @returns {void}
|
|
347
500
|
*/
|
|
348
501
|
setBeaconConfig(beacon: import("./configuration-types.js").BeaconConfiguration): void;
|
|
349
502
|
/**
|
|
503
|
+
* Runs get beacon client.
|
|
350
504
|
* @returns {import("./beacon/client.js").default | import("./beacon/in-process-client.js").default | undefined} - The active Beacon client, if connected.
|
|
351
505
|
*/
|
|
352
506
|
getBeaconClient(): import("./beacon/client.js").default | import("./beacon/in-process-client.js").default | undefined;
|
|
@@ -454,19 +608,23 @@ export default class VelociousConfiguration {
|
|
|
454
608
|
*/
|
|
455
609
|
_deliverBroadcastFromBeacon(message: import("./beacon/types.js").BeaconBroadcastMessage): void;
|
|
456
610
|
/**
|
|
611
|
+
* Runs get scheduled background jobs config.
|
|
457
612
|
* @returns {Promise<import("./configuration-types.js").ScheduledBackgroundJobsConfiguration | undefined>} - Scheduled background jobs configuration.
|
|
458
613
|
*/
|
|
459
614
|
getScheduledBackgroundJobsConfig(): Promise<import("./configuration-types.js").ScheduledBackgroundJobsConfiguration | undefined>;
|
|
460
615
|
/**
|
|
616
|
+
* Runs set scheduled background jobs config.
|
|
461
617
|
* @param {import("./configuration-types.js").ScheduledBackgroundJobsConfiguration | import("./configuration-types.js").ScheduledBackgroundJobsLoaderType | undefined} scheduledBackgroundJobs - Scheduled background jobs configuration.
|
|
462
618
|
* @returns {void}
|
|
463
619
|
*/
|
|
464
620
|
setScheduledBackgroundJobsConfig(scheduledBackgroundJobs: import("./configuration-types.js").ScheduledBackgroundJobsConfiguration | import("./configuration-types.js").ScheduledBackgroundJobsLoaderType | undefined): void;
|
|
465
621
|
/**
|
|
622
|
+
* Runs get mailer backend.
|
|
466
623
|
* @returns {import("./configuration-types.js").MailerBackend | undefined} - Mailer backend.
|
|
467
624
|
*/
|
|
468
625
|
getMailerBackend(): import("./configuration-types.js").MailerBackend | undefined;
|
|
469
626
|
/**
|
|
627
|
+
* Runs set mailer backend.
|
|
470
628
|
* @param {import("./configuration-types.js").MailerBackend} mailerBackend - Mailer backend.
|
|
471
629
|
* @returns {void} - No return value.
|
|
472
630
|
*/
|
|
@@ -477,21 +635,28 @@ export default class VelociousConfiguration {
|
|
|
477
635
|
*/
|
|
478
636
|
getHttpLoggingConfiguration(): Required<Pick<import("./configuration-types.js").LoggingConfiguration, "console" | "file" | "levels">> & Pick<import("./configuration-types.js").LoggingConfiguration, "directory" | "filePath"> & Partial<Pick<import("./configuration-types.js").LoggingConfiguration, "outputs" | "loggers">>;
|
|
479
637
|
/**
|
|
638
|
+
* Runs get environment handler.
|
|
480
639
|
* @returns {import("./environment-handlers/base.js").default} - The environment handler.
|
|
481
640
|
*/
|
|
482
641
|
getEnvironmentHandler(): import("./environment-handlers/base.js").default;
|
|
483
642
|
/**
|
|
643
|
+
* Runs get locale fallbacks.
|
|
484
644
|
* @returns {import("./configuration-types.js").LocaleFallbacksType | undefined} - The locale fallbacks.
|
|
485
645
|
*/
|
|
486
646
|
getLocaleFallbacks(): import("./configuration-types.js").LocaleFallbacksType | undefined;
|
|
487
647
|
/**
|
|
648
|
+
* Runs set locale fallbacks.
|
|
488
649
|
* @param {import("./configuration-types.js").LocaleFallbacksType} newLocaleFallbacks - New locale fallbacks.
|
|
489
650
|
* @returns {void} - No return value.
|
|
490
651
|
*/
|
|
491
652
|
setLocaleFallbacks(newLocaleFallbacks: import("./configuration-types.js").LocaleFallbacksType): void;
|
|
492
|
-
/**
|
|
653
|
+
/**
|
|
654
|
+
* Runs get structure sql config.
|
|
655
|
+
* @returns {import("./configuration-types.js").StructureSqlConfiguration | undefined} - Structure SQL config.
|
|
656
|
+
*/
|
|
493
657
|
getStructureSqlConfig(): import("./configuration-types.js").StructureSqlConfiguration | undefined;
|
|
494
658
|
/**
|
|
659
|
+
* Runs should write structure sql.
|
|
495
660
|
* @param {{reason?: "migration" | "schemaDump"}} [args] - Call context for the structure sql write decision.
|
|
496
661
|
* @returns {boolean} - Whether structure SQL files should be generated for the current environment.
|
|
497
662
|
*/
|
|
@@ -499,47 +664,67 @@ export default class VelociousConfiguration {
|
|
|
499
664
|
reason?: "migration" | "schemaDump";
|
|
500
665
|
}): boolean;
|
|
501
666
|
/**
|
|
667
|
+
* Runs set structure sql config.
|
|
502
668
|
* @param {import("./configuration-types.js").StructureSqlConfiguration} structureSql - Structure SQL config.
|
|
503
669
|
* @returns {void} - No return value.
|
|
504
670
|
*/
|
|
505
671
|
setStructureSqlConfig(structureSql: import("./configuration-types.js").StructureSqlConfiguration): void;
|
|
506
672
|
/**
|
|
673
|
+
* Runs get locale.
|
|
507
674
|
* @returns {string} - The locale.
|
|
508
675
|
*/
|
|
509
676
|
getLocale(): string;
|
|
510
|
-
/**
|
|
677
|
+
/**
|
|
678
|
+
* Runs get locales.
|
|
679
|
+
* @returns {Array<string>} - The locales.
|
|
680
|
+
*/
|
|
511
681
|
getLocales(): Array<string>;
|
|
512
682
|
/**
|
|
683
|
+
* Runs get model class.
|
|
513
684
|
* @param {string} name - Name.
|
|
514
685
|
* @returns {typeof import("./database/record/index.js").default} - The model class.
|
|
515
686
|
*/
|
|
516
687
|
getModelClass(name: string): typeof import("./database/record/index.js").default;
|
|
517
688
|
/**
|
|
689
|
+
* Runs get model classes.
|
|
518
690
|
* @returns {Record<string, typeof import("./database/record/index.js").default>} A hash of all model classes, keyed by model name, as they were defined in the configuration. This is a direct reference to the model classes, not a copy.
|
|
519
691
|
*/
|
|
520
692
|
getModelClasses(): Record<string, typeof import("./database/record/index.js").default>;
|
|
521
|
-
/**
|
|
693
|
+
/**
|
|
694
|
+
* Runs get testing.
|
|
695
|
+
* @returns {string | undefined} The path to a config file that should be used for testing.
|
|
696
|
+
*/
|
|
522
697
|
getTesting(): string | undefined;
|
|
523
|
-
/**
|
|
698
|
+
/**
|
|
699
|
+
* Runs get trusted proxies.
|
|
700
|
+
* @returns {string | string[] | undefined} Trusted reverse proxy address ranges.
|
|
701
|
+
*/
|
|
524
702
|
getTrustedProxies(): string | string[] | undefined;
|
|
525
703
|
/**
|
|
704
|
+
* Runs set trusted proxies.
|
|
526
705
|
* @param {string | string[] | undefined} trustedProxies - Trusted reverse proxy address ranges.
|
|
527
706
|
* @returns {void}
|
|
528
707
|
*/
|
|
529
708
|
setTrustedProxies(trustedProxies: string | string[] | undefined): void;
|
|
530
709
|
/**
|
|
710
|
+
* Runs initialize database pool.
|
|
531
711
|
* @param {string} [identifier] - Database identifier to initialize.
|
|
532
712
|
* @returns {void} - No return value.
|
|
533
713
|
*/
|
|
534
714
|
initializeDatabasePool(identifier?: string): void;
|
|
535
715
|
/**
|
|
716
|
+
* Runs is database pool initialized.
|
|
536
717
|
* @param {string} [identifier] - Database identifier to check.
|
|
537
718
|
* @returns {boolean} - Whether database pool initialized.
|
|
538
719
|
*/
|
|
539
720
|
isDatabasePoolInitialized(identifier?: string): boolean;
|
|
540
|
-
/**
|
|
721
|
+
/**
|
|
722
|
+
* Runs is initialized.
|
|
723
|
+
* @returns {boolean} - Whether initialized.
|
|
724
|
+
*/
|
|
541
725
|
isInitialized(): boolean;
|
|
542
726
|
/**
|
|
727
|
+
* Runs initialize models.
|
|
543
728
|
* @param {object} args - Options object.
|
|
544
729
|
* @param {string} args.type - Type identifier.
|
|
545
730
|
* @returns {Promise<void>} - Resolves when complete.
|
|
@@ -555,6 +740,7 @@ export default class VelociousConfiguration {
|
|
|
555
740
|
*/
|
|
556
741
|
ensureGlobalConnections(): Promise<void>;
|
|
557
742
|
/**
|
|
743
|
+
* Runs initialize.
|
|
558
744
|
* @param {object} args - Options object.
|
|
559
745
|
* @param {string} args.type - Type identifier.
|
|
560
746
|
* @returns {Promise<void>} - Resolves when complete.
|
|
@@ -565,20 +751,27 @@ export default class VelociousConfiguration {
|
|
|
565
751
|
/**
|
|
566
752
|
* Validates that resource-defined relationships are also defined on the corresponding model classes.
|
|
567
753
|
* Throws an error if a relationship is defined on a resource but missing from the model.
|
|
568
|
-
*
|
|
569
754
|
* @returns {void}
|
|
570
755
|
*/
|
|
571
756
|
_validateResourceRelationshipsOnModels(): void;
|
|
572
757
|
/**
|
|
758
|
+
* Runs register model class.
|
|
573
759
|
* @param {typeof import("./database/record/index.js").default} modelClass - Model class.
|
|
574
760
|
* @returns {void} - No return value.
|
|
575
761
|
*/
|
|
576
762
|
registerModelClass(modelClass: typeof import("./database/record/index.js").default): void;
|
|
577
|
-
/**
|
|
763
|
+
/**
|
|
764
|
+
* Runs set current.
|
|
765
|
+
* @returns {void} - No return value.
|
|
766
|
+
*/
|
|
578
767
|
setCurrent(): void;
|
|
579
|
-
/**
|
|
768
|
+
/**
|
|
769
|
+
* Runs get routes.
|
|
770
|
+
* @returns {import("./routes/index.js").default | undefined} - The routes.
|
|
771
|
+
*/
|
|
580
772
|
getRoutes(): import("./routes/index.js").default | undefined;
|
|
581
773
|
/**
|
|
774
|
+
* Runs set routes.
|
|
582
775
|
* @param {import("./routes/index.js").default} newRoutes - New routes.
|
|
583
776
|
* @returns {void} - No return value.
|
|
584
777
|
*/
|
|
@@ -600,29 +793,41 @@ export default class VelociousConfiguration {
|
|
|
600
793
|
*/
|
|
601
794
|
routes(callback: (routes: import("./routes/plugin-routes.js").default) => void): void;
|
|
602
795
|
/**
|
|
603
|
-
*
|
|
796
|
+
* Runs set translator.
|
|
797
|
+
* @param {function(string, Record<string, ?> | undefined) : string} callback - Translator callback.
|
|
604
798
|
* @returns {void} - No return value.
|
|
605
799
|
*/
|
|
606
|
-
setTranslator(callback: (arg0: string, arg1: Record<string,
|
|
607
|
-
_translator: ((arg0: string, arg1: Record<string,
|
|
800
|
+
setTranslator(callback: (arg0: string, arg1: Record<string, unknown> | undefined) => string): void;
|
|
801
|
+
_translator: ((arg0: string, arg1: Record<string, unknown> | undefined) => string) | undefined;
|
|
608
802
|
/**
|
|
803
|
+
* Runs default translator.
|
|
609
804
|
* @param {string} msgID - Msg id.
|
|
610
|
-
* @param {Record<string,
|
|
805
|
+
* @param {Record<string, ?>} [args] - Translator options and variables.
|
|
611
806
|
* @returns {string} - The default translator.
|
|
612
807
|
*/
|
|
613
|
-
_defaultTranslator(msgID: string, args?: Record<string,
|
|
614
|
-
/**
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
808
|
+
_defaultTranslator(msgID: string, args?: Record<string, unknown>): string;
|
|
809
|
+
/**
|
|
810
|
+
* Runs get translator.
|
|
811
|
+
@returns {(msgID: string, args?: Record<string, ?>) => string} */
|
|
812
|
+
getTranslator(): (msgID: string, args?: Record<string, unknown>) => string;
|
|
813
|
+
_defaultTranslatorBound: ((msgID: string, args?: Record<string, unknown>) => string) | undefined;
|
|
814
|
+
/**
|
|
815
|
+
* Runs configure default translator.
|
|
816
|
+
* @returns {void} - Configure gettext defaults for this configuration.
|
|
817
|
+
*/
|
|
618
818
|
_configureDefaultTranslator(): void;
|
|
619
819
|
/**
|
|
820
|
+
* Runs get timezone offset minutes.
|
|
620
821
|
* @returns {number | undefined} - The timezone offset in minutes.
|
|
621
822
|
*/
|
|
622
823
|
getTimezoneOffsetMinutes(): number | undefined;
|
|
623
|
-
/**
|
|
824
|
+
/**
|
|
825
|
+
* Runs get websocket events.
|
|
826
|
+
* @returns {import("./http-server/websocket-events.js").default | undefined} - The websocket events.
|
|
827
|
+
*/
|
|
624
828
|
getWebsocketEvents(): import("./http-server/websocket-events.js").default | undefined;
|
|
625
829
|
/**
|
|
830
|
+
* Runs set websocket events.
|
|
626
831
|
* @param {import("./http-server/websocket-events.js").default} websocketEvents - Websocket events.
|
|
627
832
|
* @returns {void} - No return value.
|
|
628
833
|
*/
|
|
@@ -634,19 +839,22 @@ export default class VelociousConfiguration {
|
|
|
634
839
|
* @returns {import("./http-server/websocket-channel-subscribers.js").default} - The channel subscribers registry.
|
|
635
840
|
*/
|
|
636
841
|
getWebsocketChannelSubscribers(): import("./http-server/websocket-channel-subscribers.js").default;
|
|
637
|
-
/**
|
|
842
|
+
/**
|
|
843
|
+
* Runs get websocket channel resolver.
|
|
844
|
+
* @returns {import("./configuration-types.js").WebsocketChannelResolverType | undefined} - The websocket channel resolver.
|
|
845
|
+
*/
|
|
638
846
|
getWebsocketChannelResolver(): import("./configuration-types.js").WebsocketChannelResolverType | undefined;
|
|
639
847
|
/**
|
|
640
848
|
* Registers a `VelociousWebsocketConnection` subclass under a name.
|
|
641
849
|
* Clients that send `{type: "connection-open", connectionType: name}`
|
|
642
850
|
* will have this class instantiated for their connection.
|
|
643
|
-
*
|
|
644
851
|
* @param {string} name
|
|
645
852
|
* @param {typeof import("./http-server/websocket-connection.js").default} ConnectionClass
|
|
646
853
|
* @returns {void}
|
|
647
854
|
*/
|
|
648
855
|
registerWebsocketConnection(name: string, ConnectionClass: typeof import("./http-server/websocket-connection.js").default): void;
|
|
649
856
|
/**
|
|
857
|
+
* Runs get websocket connection class.
|
|
650
858
|
* @param {string} name
|
|
651
859
|
* @returns {typeof import("./http-server/websocket-connection.js").default | undefined}
|
|
652
860
|
*/
|
|
@@ -654,13 +862,13 @@ export default class VelociousConfiguration {
|
|
|
654
862
|
/**
|
|
655
863
|
* Registers a `VelociousWebsocketChannel` subclass under a name.
|
|
656
864
|
* Clients subscribe via `{type: "channel-subscribe", channelType: name, ...}`.
|
|
657
|
-
*
|
|
658
865
|
* @param {string} name
|
|
659
866
|
* @param {typeof import("./http-server/websocket-channel.js").default} ChannelClass
|
|
660
867
|
* @returns {void}
|
|
661
868
|
*/
|
|
662
869
|
registerWebsocketChannel(name: string, ChannelClass: typeof import("./http-server/websocket-channel.js").default): void;
|
|
663
870
|
/**
|
|
871
|
+
* Runs get websocket channel class.
|
|
664
872
|
* @param {string} name
|
|
665
873
|
* @returns {typeof import("./http-server/websocket-channel.js").default | undefined}
|
|
666
874
|
*/
|
|
@@ -669,13 +877,13 @@ export default class VelociousConfiguration {
|
|
|
669
877
|
* Tracks a live channel subscription in the global routing registry.
|
|
670
878
|
* Called by the session when `canSubscribe()` resolves truthy; the
|
|
671
879
|
* session calls `_unregisterWebsocketChannelSubscription` on unsubscribe.
|
|
672
|
-
*
|
|
673
880
|
* @param {string} name
|
|
674
881
|
* @param {import("./http-server/websocket-channel.js").default} subscription
|
|
675
882
|
* @returns {void}
|
|
676
883
|
*/
|
|
677
884
|
_registerWebsocketChannelSubscription(name: string, subscription: import("./http-server/websocket-channel.js").default): void;
|
|
678
885
|
/**
|
|
886
|
+
* Runs unregister websocket channel subscription.
|
|
679
887
|
* @param {string} name
|
|
680
888
|
* @param {import("./http-server/websocket-channel.js").default} subscription
|
|
681
889
|
* @returns {void}
|
|
@@ -687,13 +895,13 @@ export default class VelociousConfiguration {
|
|
|
687
895
|
* re-check, no persistence. Subscribers who were admitted by
|
|
688
896
|
* `canSubscribe()` continue to receive broadcasts until they
|
|
689
897
|
* unsubscribe or the session ends.
|
|
690
|
-
*
|
|
691
898
|
* @param {string} name
|
|
692
|
-
* @param {Record<string,
|
|
693
|
-
* @param {
|
|
899
|
+
* @param {Record<string, ?>} broadcastParams
|
|
900
|
+
* @param {?} body
|
|
694
901
|
* @returns {void}
|
|
695
902
|
*/
|
|
696
903
|
/**
|
|
904
|
+
* Runs get websocket session grace seconds.
|
|
697
905
|
* @returns {number} - Grace period (seconds) before a paused WS session is torn down.
|
|
698
906
|
*/
|
|
699
907
|
getWebsocketSessionGraceSeconds(): number;
|
|
@@ -702,12 +910,12 @@ export default class VelociousConfiguration {
|
|
|
702
910
|
* connection message / channel dispatch. The wrapper receives the
|
|
703
911
|
* session and a `next` callback; it must call `next()` to run the
|
|
704
912
|
* handler. Use it to set up AsyncLocalStorage per request.
|
|
705
|
-
*
|
|
706
913
|
* @param {((session: import("./http-server/client/websocket-session.js").default, next: () => Promise<void>) => Promise<void>) | null} wrapper
|
|
707
914
|
* @returns {void}
|
|
708
915
|
*/
|
|
709
916
|
setWebsocketAroundRequest(wrapper: ((session: import("./http-server/client/websocket-session.js").default, next: () => Promise<void>) => Promise<void>) | null): void;
|
|
710
917
|
/**
|
|
918
|
+
* Runs get websocket around request.
|
|
711
919
|
* @returns {((session: import("./http-server/client/websocket-session.js").default, next: () => Promise<void>) => Promise<void>) | null}
|
|
712
920
|
*/
|
|
713
921
|
getWebsocketAroundRequest(): ((session: import("./http-server/client/websocket-session.js").default, next: () => Promise<void>) => Promise<void>) | null;
|
|
@@ -716,7 +924,6 @@ export default class VelociousConfiguration {
|
|
|
716
924
|
* HTTP and WS-borne. Receives `{request, response, next}` and must
|
|
717
925
|
* call `next()` to run the action. Use it for per-request context
|
|
718
926
|
* like AsyncLocalStorage-scoped locale or tracing.
|
|
719
|
-
*
|
|
720
927
|
* @param {((context: {request: import("./http-server/client/request.js").default | import("./http-server/client/websocket-request.js").default, response: import("./http-server/client/response.js").default, next: () => Promise<void>}) => Promise<void>) | null} wrapper
|
|
721
928
|
* @returns {void}
|
|
722
929
|
*/
|
|
@@ -726,6 +933,7 @@ export default class VelociousConfiguration {
|
|
|
726
933
|
next: () => Promise<void>;
|
|
727
934
|
}) => Promise<void>) | null): void;
|
|
728
935
|
/**
|
|
936
|
+
* Runs get around action.
|
|
729
937
|
* @returns {((context: {request: import("./http-server/client/request.js").default | import("./http-server/client/websocket-request.js").default, response: import("./http-server/client/response.js").default, next: () => Promise<void>}) => Promise<void>) | null}
|
|
730
938
|
*/
|
|
731
939
|
getAroundAction(): ((context: {
|
|
@@ -746,14 +954,16 @@ export default class VelociousConfiguration {
|
|
|
746
954
|
*
|
|
747
955
|
* Return `null`/`undefined` to mean "no identity" — resumes still
|
|
748
956
|
* succeed if pause and resume both resolve to a nullish value.
|
|
749
|
-
*
|
|
750
|
-
* @param {((session: import("./http-server/client/websocket-session.js").default) => any | Promise<any>) | null} resolver
|
|
957
|
+
* @param {((session: import("./http-server/client/websocket-session.js").default) => ? | Promise<?>) | null} resolver
|
|
751
958
|
* @returns {void}
|
|
752
959
|
*/
|
|
753
|
-
setWebsocketSessionIdentityResolver(resolver: ((session: import("./http-server/client/websocket-session.js").default) =>
|
|
754
|
-
/** @returns {((session: import("./http-server/client/websocket-session.js").default) => any | Promise<any>) | null} */
|
|
755
|
-
getWebsocketSessionIdentityResolver(): ((session: import("./http-server/client/websocket-session.js").default) => any | Promise<any>) | null;
|
|
960
|
+
setWebsocketSessionIdentityResolver(resolver: ((session: import("./http-server/client/websocket-session.js").default) => unknown | Promise<unknown>) | null): void;
|
|
756
961
|
/**
|
|
962
|
+
* Runs get websocket session identity resolver.
|
|
963
|
+
@returns {((session: import("./http-server/client/websocket-session.js").default) => ? | Promise<?>) | null} */
|
|
964
|
+
getWebsocketSessionIdentityResolver(): ((session: import("./http-server/client/websocket-session.js").default) => unknown | Promise<unknown>) | null;
|
|
965
|
+
/**
|
|
966
|
+
* Runs set websocket session grace seconds.
|
|
757
967
|
* @param {number} seconds
|
|
758
968
|
* @returns {void}
|
|
759
969
|
*/
|
|
@@ -763,7 +973,6 @@ export default class VelociousConfiguration {
|
|
|
763
973
|
* timer. When the timer fires, the session's permanent teardown
|
|
764
974
|
* hook is invoked. Called by the session itself from `_handleClose`
|
|
765
975
|
* when there is resumable state (live Connections / Channel subs).
|
|
766
|
-
*
|
|
767
976
|
* @param {import("./http-server/client/websocket-session.js").default} session
|
|
768
977
|
* @returns {void}
|
|
769
978
|
*/
|
|
@@ -771,7 +980,6 @@ export default class VelociousConfiguration {
|
|
|
771
980
|
/**
|
|
772
981
|
* Looks up a paused session by id (does NOT remove it — caller is
|
|
773
982
|
* expected to call `_resumeWebsocketSession` to complete the handoff).
|
|
774
|
-
*
|
|
775
983
|
* @param {string} sessionId
|
|
776
984
|
* @returns {import("./http-server/client/websocket-session.js").default | null}
|
|
777
985
|
*/
|
|
@@ -780,7 +988,6 @@ export default class VelociousConfiguration {
|
|
|
780
988
|
* Removes a paused session from the registry and cancels its grace
|
|
781
989
|
* timer. Called on successful resume handoff and on explicit
|
|
782
990
|
* expiry.
|
|
783
|
-
*
|
|
784
991
|
* @param {string} sessionId
|
|
785
992
|
* @returns {void}
|
|
786
993
|
*/
|
|
@@ -788,24 +995,23 @@ export default class VelociousConfiguration {
|
|
|
788
995
|
/**
|
|
789
996
|
* Grace-timer callback. Calls the session's permanent-teardown
|
|
790
997
|
* hook and drops it from the registry.
|
|
791
|
-
*
|
|
792
998
|
* @param {string} sessionId
|
|
793
999
|
* @returns {void}
|
|
794
1000
|
*/
|
|
795
1001
|
_expireWebsocketSession(sessionId: string): void;
|
|
796
1002
|
/**
|
|
1003
|
+
* Runs broadcast to channel.
|
|
797
1004
|
* @param {string} name
|
|
798
|
-
* @param {Record<string,
|
|
799
|
-
* @param {
|
|
1005
|
+
* @param {Record<string, ?>} broadcastParams
|
|
1006
|
+
* @param {?} body
|
|
800
1007
|
* @returns {void}
|
|
801
1008
|
*/
|
|
802
|
-
broadcastToChannel(name: string, broadcastParams: Record<string,
|
|
1009
|
+
broadcastToChannel(name: string, broadcastParams: Record<string, unknown>, body: unknown): void;
|
|
803
1010
|
/**
|
|
804
1011
|
* Awaits all pending broadcast operations (including event-log
|
|
805
1012
|
* persistence). Call this after `broadcastToChannel` when you need
|
|
806
1013
|
* the event to be persisted before continuing (e.g. before
|
|
807
1014
|
* responding to an HTTP request).
|
|
808
|
-
*
|
|
809
1015
|
* @returns {Promise<void>}
|
|
810
1016
|
*/
|
|
811
1017
|
awaitPendingBroadcasts(): Promise<void>;
|
|
@@ -813,17 +1019,17 @@ export default class VelociousConfiguration {
|
|
|
813
1019
|
* Local (per-worker) channel broadcast dispatch. Called either
|
|
814
1020
|
* directly (in-process mode) or by the worker thread after the
|
|
815
1021
|
* main-process fan-out.
|
|
816
|
-
*
|
|
817
1022
|
* @param {string} name - Channel name.
|
|
818
|
-
* @param {Record<string,
|
|
819
|
-
* @param {
|
|
1023
|
+
* @param {Record<string, ?>} broadcastParams - Params passed to each subscription's `matches()`.
|
|
1024
|
+
* @param {?} body - Message body delivered via `sendMessage()`.
|
|
820
1025
|
* @param {{eventId?: string}} [meta] - Optional event metadata for replay tracking.
|
|
821
1026
|
* @returns {void}
|
|
822
1027
|
*/
|
|
823
|
-
_broadcastToChannelLocal(name: string, broadcastParams: Record<string,
|
|
1028
|
+
_broadcastToChannelLocal(name: string, broadcastParams: Record<string, unknown>, body: unknown, meta?: {
|
|
824
1029
|
eventId?: string;
|
|
825
1030
|
}): void;
|
|
826
1031
|
/**
|
|
1032
|
+
* Runs deliver websocket channel broadcast.
|
|
827
1033
|
* @param {import("./http-server/websocket-channel.js").default} subscription - Channel subscription.
|
|
828
1034
|
* @param {import("./http-server/websocket-channel.js").WebsocketJsonValue} body - Broadcast body.
|
|
829
1035
|
* @param {{eventId?: string}} meta - Broadcast metadata.
|
|
@@ -832,70 +1038,83 @@ export default class VelociousConfiguration {
|
|
|
832
1038
|
_deliverWebsocketChannelBroadcast(subscription: import("./http-server/websocket-channel.js").default, body: import("./http-server/websocket-channel.js").WebsocketJsonValue, meta: {
|
|
833
1039
|
eventId?: string;
|
|
834
1040
|
}): void | Promise<void>;
|
|
835
|
-
/**
|
|
1041
|
+
/**
|
|
1042
|
+
* Runs get websocket message handler resolver.
|
|
1043
|
+
* @returns {import("./configuration-types.js").WebsocketMessageHandlerResolverType | undefined} - The websocket message handler resolver.
|
|
1044
|
+
*/
|
|
836
1045
|
getWebsocketMessageHandlerResolver(): import("./configuration-types.js").WebsocketMessageHandlerResolverType | undefined;
|
|
837
1046
|
/**
|
|
1047
|
+
* Runs set websocket channel resolver.
|
|
838
1048
|
* @param {import("./configuration-types.js").WebsocketChannelResolverType} resolver - Resolver.
|
|
839
1049
|
* @returns {void} - No return value.
|
|
840
1050
|
*/
|
|
841
1051
|
setWebsocketChannelResolver(resolver: import("./configuration-types.js").WebsocketChannelResolverType): void;
|
|
842
1052
|
/**
|
|
1053
|
+
* Runs set websocket message handler resolver.
|
|
843
1054
|
* @param {import("./configuration-types.js").WebsocketMessageHandlerResolverType} resolver - Resolver.
|
|
844
1055
|
* @returns {void} - No return value.
|
|
845
1056
|
*/
|
|
846
1057
|
setWebsocketMessageHandlerResolver(resolver: import("./configuration-types.js").WebsocketMessageHandlerResolverType): void;
|
|
847
1058
|
/**
|
|
1059
|
+
* Runs resolve ability.
|
|
848
1060
|
* @param {object} args - Ability resolver args.
|
|
849
|
-
* @param {Record<string,
|
|
1061
|
+
* @param {Record<string, ?>} args.params - Request params.
|
|
850
1062
|
* @param {import("./http-server/client/request.js").default | import("./http-server/client/websocket-request.js").default} args.request - Request object.
|
|
851
1063
|
* @param {import("./http-server/client/response.js").default} args.response - Response object.
|
|
852
1064
|
* @returns {Promise<import("./authorization/ability.js").default | undefined>} - Resolved ability.
|
|
853
1065
|
*/
|
|
854
1066
|
resolveAbility({ params, request, response }: {
|
|
855
|
-
params: Record<string,
|
|
1067
|
+
params: Record<string, unknown>;
|
|
856
1068
|
request: import("./http-server/client/request.js").default | import("./http-server/client/websocket-request.js").default;
|
|
857
1069
|
response: import("./http-server/client/response.js").default;
|
|
858
1070
|
}): Promise<import("./authorization/ability.js").default | undefined>;
|
|
859
1071
|
/**
|
|
1072
|
+
* Runs run with ability.
|
|
860
1073
|
* @param {import("./authorization/ability.js").default | undefined} ability - Ability instance.
|
|
861
|
-
* @param {() => Promise
|
|
862
|
-
* @returns {Promise
|
|
1074
|
+
* @param {() => Promise<?>} callback - Callback.
|
|
1075
|
+
* @returns {Promise<?>} - Callback result.
|
|
863
1076
|
*/
|
|
864
|
-
runWithAbility(ability: import("./authorization/ability.js").default | undefined, callback: () => Promise<
|
|
1077
|
+
runWithAbility(ability: import("./authorization/ability.js").default | undefined, callback: () => Promise<unknown>): Promise<unknown>;
|
|
865
1078
|
/**
|
|
1079
|
+
* Runs run with request timing.
|
|
866
1080
|
* @param {import("./http-server/client/request-timing.js").default | undefined} requestTiming - Request timing collector.
|
|
867
|
-
* @param {() => Promise
|
|
868
|
-
* @returns {Promise
|
|
1081
|
+
* @param {() => Promise<?>} callback - Callback.
|
|
1082
|
+
* @returns {Promise<?>} - Callback result.
|
|
869
1083
|
*/
|
|
870
|
-
runWithRequestTiming(requestTiming: import("./http-server/client/request-timing.js").default | undefined, callback: () => Promise<
|
|
1084
|
+
runWithRequestTiming(requestTiming: import("./http-server/client/request-timing.js").default | undefined, callback: () => Promise<unknown>): Promise<unknown>;
|
|
871
1085
|
/**
|
|
1086
|
+
* Runs get current ability.
|
|
872
1087
|
* @returns {import("./authorization/ability.js").default | undefined} - Current ability from context.
|
|
873
1088
|
*/
|
|
874
1089
|
getCurrentAbility(): import("./authorization/ability.js").default | undefined;
|
|
875
1090
|
/**
|
|
1091
|
+
* Runs get current request timing.
|
|
876
1092
|
* @returns {import("./http-server/client/request-timing.js").default | undefined} - Current request timing collector.
|
|
877
1093
|
*/
|
|
878
1094
|
getCurrentRequestTiming(): import("./http-server/client/request-timing.js").default | undefined;
|
|
879
1095
|
/**
|
|
880
|
-
*
|
|
1096
|
+
* Runs get current tenant.
|
|
1097
|
+
* @returns {?} - Current tenant from context.
|
|
881
1098
|
*/
|
|
882
1099
|
getCurrentTenant(): unknown;
|
|
883
1100
|
/**
|
|
884
|
-
*
|
|
885
|
-
* @param {
|
|
886
|
-
* @
|
|
1101
|
+
* Runs run with tenant.
|
|
1102
|
+
* @param {?} tenant - Tenant.
|
|
1103
|
+
* @param {() => Promise<?>} callback - Callback.
|
|
1104
|
+
* @returns {Promise<?>} - Callback result.
|
|
887
1105
|
*/
|
|
888
|
-
runWithTenant(tenant: unknown, callback: () => Promise<
|
|
1106
|
+
runWithTenant(tenant: unknown, callback: () => Promise<unknown>): Promise<unknown>;
|
|
889
1107
|
/**
|
|
1108
|
+
* Runs resolve tenant.
|
|
890
1109
|
* @param {object} args - Tenant resolver args.
|
|
891
|
-
* @param {Record<string,
|
|
1110
|
+
* @param {Record<string, ?>} args.params - Request params.
|
|
892
1111
|
* @param {import("./http-server/client/request.js").default | import("./http-server/client/websocket-request.js").default | undefined} args.request - Request object.
|
|
893
1112
|
* @param {import("./http-server/client/response.js").default | undefined} args.response - Response object.
|
|
894
|
-
* @param {{channel: string, params?: Record<string,
|
|
895
|
-
* @returns {Promise
|
|
1113
|
+
* @param {{channel: string, params?: Record<string, ?>}} [args.subscription] - Subscription metadata.
|
|
1114
|
+
* @returns {Promise<?>} - Resolved tenant.
|
|
896
1115
|
*/
|
|
897
1116
|
resolveTenant({ params, request, response, subscription }: {
|
|
898
|
-
params: Record<string,
|
|
1117
|
+
params: Record<string, unknown>;
|
|
899
1118
|
request: import("./http-server/client/request.js").default | import("./http-server/client/websocket-request.js").default | undefined;
|
|
900
1119
|
response: import("./http-server/client/response.js").default | undefined;
|
|
901
1120
|
subscription?: {
|
|
@@ -903,29 +1122,39 @@ export default class VelociousConfiguration {
|
|
|
903
1122
|
params?: Record<string, unknown>;
|
|
904
1123
|
} | undefined;
|
|
905
1124
|
}): Promise<unknown>;
|
|
906
|
-
/**
|
|
1125
|
+
/**
|
|
1126
|
+
* Runs get error events.
|
|
1127
|
+
* @returns {import("eventemitter3").EventEmitter} - Framework error events emitter.
|
|
1128
|
+
*/
|
|
907
1129
|
getErrorEvents(): import("eventemitter3").EventEmitter;
|
|
908
1130
|
/**
|
|
1131
|
+
* Runs with connections.
|
|
909
1132
|
* @template T
|
|
910
1133
|
* @param {WithConnectionsOptionsType | WithConnectionsCallbackType<T>} optionsOrCallback - Checkout options or callback function.
|
|
911
1134
|
* @param {WithConnectionsCallbackType<T>} [callback] - Callback function.
|
|
912
1135
|
* @returns {Promise<T>} - Resolves with the callback result.
|
|
913
1136
|
*/
|
|
914
1137
|
withConnections<T>(optionsOrCallback: WithConnectionsOptionsType | WithConnectionsCallbackType<T>, callback?: WithConnectionsCallbackType<T>): Promise<T>;
|
|
915
|
-
/**
|
|
1138
|
+
/**
|
|
1139
|
+
* Runs get current connections.
|
|
1140
|
+
* @returns {Record<string, import("./database/drivers/base.js").default>} A map of database connections with identifier as key
|
|
1141
|
+
*/
|
|
916
1142
|
getCurrentConnections(): Record<string, import("./database/drivers/base.js").default>;
|
|
917
1143
|
/**
|
|
1144
|
+
* Runs without current connection contexts.
|
|
918
1145
|
* @template T
|
|
919
1146
|
* @param {() => T} callback - Callback to run without inherited DB connection contexts.
|
|
920
1147
|
* @returns {T} - Callback result.
|
|
921
1148
|
*/
|
|
922
1149
|
withoutCurrentConnectionContexts<T>(callback: () => T): T;
|
|
923
1150
|
/**
|
|
924
|
-
*
|
|
1151
|
+
* Runs is missing current connection error.
|
|
1152
|
+
* @param {?} error - Error thrown while looking up the current connection.
|
|
925
1153
|
* @returns {boolean} - Whether the error means no current connection is available.
|
|
926
1154
|
*/
|
|
927
1155
|
isMissingCurrentConnectionError(error: unknown): boolean;
|
|
928
1156
|
/**
|
|
1157
|
+
* Runs ensure connections.
|
|
929
1158
|
* @template T
|
|
930
1159
|
* @param {WithConnectionsOptionsType | WithConnectionsCallbackType<T>} optionsOrCallback - Checkout options or callback function.
|
|
931
1160
|
* @param {WithConnectionsCallbackType<T>} [callback] - Callback function.
|
|
@@ -938,6 +1167,7 @@ export default class VelociousConfiguration {
|
|
|
938
1167
|
*/
|
|
939
1168
|
closeDatabaseConnections(): Promise<void>;
|
|
940
1169
|
/**
|
|
1170
|
+
* Runs debug endpoint request authorized.
|
|
941
1171
|
* @param {{header: (name: string) => string | null | undefined}} request - Incoming request.
|
|
942
1172
|
* @param {string} expectedToken - Configured debug-endpoint token.
|
|
943
1173
|
* @returns {boolean} - Whether the request carries the expected bearer token.
|
|
@@ -946,7 +1176,13 @@ export default class VelociousConfiguration {
|
|
|
946
1176
|
header: (name: string) => string | null | undefined;
|
|
947
1177
|
}, expectedToken: string): boolean;
|
|
948
1178
|
}
|
|
1179
|
+
/**
|
|
1180
|
+
* WithConnectionsCallbackType type.
|
|
1181
|
+
*/
|
|
949
1182
|
export type WithConnectionsCallbackType<T> = (arg0: Record<string, import("./database/drivers/base.js").default>) => Promise<T>;
|
|
1183
|
+
/**
|
|
1184
|
+
* WithConnectionsOptionsType type.
|
|
1185
|
+
*/
|
|
950
1186
|
export type WithConnectionsOptionsType = {
|
|
951
1187
|
/**
|
|
952
1188
|
* - Human-readable name for the checked-out database connections.
|