velocious 1.0.577 → 1.0.579
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 +12 -6
- package/build/application.js +3 -3
- package/build/authorization/ability.js +6 -6
- package/build/authorization/base-resource.js +1 -1
- package/build/background-jobs/client.js +2 -2
- package/build/background-jobs/forked-runner-child.js +4 -4
- package/build/background-jobs/job-runner.js +2 -2
- package/build/background-jobs/job.js +6 -6
- package/build/background-jobs/json-socket.js +1 -1
- package/build/background-jobs/main.js +13 -13
- package/build/background-jobs/normalize-error.js +2 -2
- package/build/background-jobs/pooled-runner-child.js +3 -3
- package/build/background-jobs/scheduler.js +1 -1
- package/build/background-jobs/status-reporter.js +2 -2
- package/build/background-jobs/store.js +23 -23
- package/build/background-jobs/types.js +6 -6
- package/build/background-jobs/web/controller.js +6 -6
- package/build/background-jobs/web/counts-channel.js +1 -1
- package/build/background-jobs/worker.js +8 -8
- package/build/beacon/client.js +3 -3
- package/build/beacon/in-process-client.js +3 -3
- package/build/beacon/types.js +1 -1
- package/build/cli/base-command.js +1 -1
- package/build/cli/commands/console.js +1 -1
- package/build/cli/commands/db/schema/dump.js +1 -1
- package/build/cli/commands/db/schema/load.js +1 -1
- package/build/cli/commands/db/seed.js +1 -1
- package/build/cli/commands/generate/frontend-models.js +1 -1
- package/build/cli/commands/lint/relationships.js +1 -1
- package/build/cli/commands/run-script.js +1 -1
- package/build/cli/commands/runner.js +1 -1
- package/build/cli/index.js +2 -2
- package/build/cli/tenant-database-command-helper.js +2 -2
- package/build/configuration-types.js +48 -47
- package/build/configuration.js +150 -65
- package/build/controller.js +11 -8
- package/build/current.js +2 -2
- package/build/database/annotations-async-hooks.js +3 -3
- package/build/database/annotations.js +1 -1
- package/build/database/drivers/base-column.js +1 -1
- package/build/database/drivers/base-foreign-key.js +1 -1
- package/build/database/drivers/base-table.js +1 -1
- package/build/database/drivers/base.js +18 -18
- package/build/database/drivers/mssql/column.js +1 -1
- package/build/database/drivers/mssql/index.js +2 -2
- package/build/database/drivers/mssql/options.js +1 -1
- package/build/database/drivers/mssql/structure-sql.js +1 -1
- package/build/database/drivers/mssql/table.js +1 -1
- package/build/database/drivers/mysql/column.js +1 -1
- package/build/database/drivers/mysql/index.js +4 -4
- package/build/database/drivers/mysql/options.js +1 -1
- package/build/database/drivers/mysql/query.js +7 -7
- package/build/database/drivers/mysql/structure-sql.js +71 -10
- package/build/database/drivers/pgsql/column.js +1 -1
- package/build/database/drivers/pgsql/index.js +6 -6
- package/build/database/drivers/pgsql/structure-sql.js +1 -1
- package/build/database/drivers/sqlite/base.js +7 -7
- package/build/database/drivers/sqlite/column.js +1 -1
- package/build/database/drivers/sqlite/connection-sql-js.js +1 -1
- package/build/database/drivers/sqlite/foreign-key.js +1 -1
- package/build/database/drivers/sqlite/index.js +1 -1
- package/build/database/drivers/sqlite/index.native.js +2 -2
- package/build/database/drivers/sqlite/index.web.js +2 -2
- package/build/database/drivers/sqlite/query.js +2 -2
- package/build/database/drivers/sqlite/query.native.js +2 -2
- package/build/database/drivers/sqlite/query.web.js +2 -2
- package/build/database/drivers/sqlite/table-rebuilder.js +1 -1
- package/build/database/migration/index.js +2 -2
- package/build/database/migrator/types.js +2 -2
- package/build/database/operation.js +59 -6
- package/build/database/pool/async-tracked-multi-connection.js +75 -24
- package/build/database/pool/base-methods-forward.js +2 -2
- package/build/database/pool/base.js +48 -17
- package/build/database/pool/single-multi-use.js +501 -103
- package/build/database/query/delete-base.js +1 -1
- package/build/database/query/index.js +3 -3
- package/build/database/query/insert-base.js +4 -4
- package/build/database/query/model-class-query.js +39 -39
- package/build/database/query/preloader/belongs-to.js +2 -2
- package/build/database/query/preloader/ensure-model-class-initialized.js +3 -2
- package/build/database/query/preloader/has-many.js +3 -3
- package/build/database/query/preloader/has-one.js +1 -1
- package/build/database/query/preloader.js +9 -2
- package/build/database/query/query-data.js +7 -7
- package/build/database/query/update-base.js +3 -3
- package/build/database/query/upsert-base.js +2 -2
- package/build/database/query/where-model-class-hash.js +13 -13
- package/build/database/query/with-count.js +12 -12
- package/build/database/query-parser/options.js +2 -2
- package/build/database/query-parser/select-parser.js +1 -1
- package/build/database/record/acts-as-list.js +2 -2
- package/build/database/record/attachments/handle.js +6 -6
- package/build/database/record/attachments/normalize-input.js +11 -11
- package/build/database/record/attachments/storage-drivers/filesystem.js +1 -1
- package/build/database/record/attachments/storage-drivers/native.js +5 -5
- package/build/database/record/attachments/storage-drivers/s3.js +10 -10
- package/build/database/record/attachments/store.js +24 -20
- package/build/database/record/auditing.js +123 -29
- package/build/database/record/counter-cache-magnitude.js +11 -11
- package/build/database/record/index.js +227 -174
- package/build/database/record/instance-relationships/base.js +4 -4
- package/build/database/record/instance-relationships/belongs-to.js +1 -1
- package/build/database/record/instance-relationships/has-many.js +3 -3
- package/build/database/record/instance-relationships/has-one.js +1 -1
- package/build/database/record/record-not-found-error.js +1 -0
- package/build/database/record/relationships/base.js +22 -0
- package/build/database/record/state-machine.js +6 -6
- package/build/database/record/validators/base.js +1 -1
- package/build/database/structure-sql-loader.js +3 -3
- package/build/database/table-data/table-column.js +3 -3
- package/build/database/use-live-query.js +3 -3
- package/build/environment-handlers/base.js +56 -37
- package/build/environment-handlers/browser.js +1 -1
- package/build/environment-handlers/node/cli/commands/console.js +4 -4
- package/build/environment-handlers/node/cli/commands/db/seed.js +2 -2
- package/build/environment-handlers/node/cli/commands/generate/base-models.js +1 -1
- package/build/environment-handlers/node/cli/commands/run-script.js +2 -2
- package/build/environment-handlers/node/cli/commands/runner.js +2 -2
- package/build/environment-handlers/node/cli/commands/server.js +1 -1
- package/build/environment-handlers/node.js +36 -36
- package/build/error-logger.js +2 -2
- package/build/error-reporting/request-details.js +32 -32
- package/build/frontend-model-controller.js +215 -213
- package/build/frontend-model-resource/base-resource.js +44 -44
- package/build/frontend-model-resource/velocious-attachment-resource.js +1 -1
- package/build/frontend-models/base.js +146 -142
- package/build/frontend-models/clear-pending-debounced-callback.js +2 -2
- package/build/frontend-models/model-registry.js +4 -4
- package/build/frontend-models/outgoing-event-buffer.js +1 -1
- package/build/frontend-models/preloader.js +1 -1
- package/build/frontend-models/query.js +60 -60
- package/build/frontend-models/resource-definition.js +9 -9
- package/build/frontend-models/transport-serialization.js +27 -27
- package/build/frontend-models/websocket-channel.js +4 -4
- package/build/frontend-models/websocket-publishers.js +1 -1
- package/build/http-client/request.js +1 -1
- package/build/http-client/response.js +1 -1
- package/build/http-server/client/index.js +4 -4
- package/build/http-server/client/params-to-object.js +16 -16
- package/build/http-server/client/request-buffer/index.js +5 -2
- package/build/http-server/client/request-parser.js +2 -2
- package/build/http-server/client/request-runner.js +2 -2
- package/build/http-server/client/request.js +2 -2
- package/build/http-server/client/websocket-request.js +6 -6
- package/build/http-server/client/websocket-session.js +28 -28
- package/build/http-server/cookie.js +2 -2
- package/build/http-server/development-reloader.js +1 -1
- package/build/http-server/index.js +5 -5
- package/build/http-server/remote-address.js +1 -1
- package/build/http-server/server-lock.js +4 -4
- package/build/http-server/websocket-channel-subscribers.js +4 -4
- package/build/http-server/websocket-channel.js +1 -1
- package/build/http-server/websocket-connection.js +3 -3
- package/build/http-server/websocket-event-log-store.js +9 -9
- package/build/http-server/websocket-events-host.js +7 -7
- package/build/http-server/websocket-events.js +4 -4
- package/build/http-server/worker-handler/channel-subscriber-dispatch.js +1 -1
- package/build/http-server/worker-handler/in-process.js +5 -5
- package/build/http-server/worker-handler/index.js +10 -10
- package/build/http-server/worker-handler/worker-thread.js +8 -8
- package/build/index.d.ts.map +1 -1
- package/build/logger/base-logger.js +1 -1
- package/build/logger.js +12 -12
- package/build/mailer/backends/smtp.js +3 -3
- package/build/mailer/base.js +14 -14
- package/build/mailer/delivery.js +3 -3
- package/build/mailer/index.js +1 -1
- package/build/mailer.js +1 -1
- package/build/plugins/sqljs-wasm-route-controller.js +1 -1
- package/build/record-payload-values.js +3 -3
- package/build/routes/base-route.js +5 -5
- package/build/routes/basic-route.js +4 -4
- package/build/routes/get-route.js +2 -2
- package/build/routes/hooks/frontend-model-command-route-hook.js +1 -1
- package/build/routes/index.js +3 -3
- package/build/routes/namespace-route.js +1 -1
- package/build/routes/plugin-routes.js +1 -1
- package/build/routes/post-route.js +2 -2
- package/build/routes/resolver.js +5 -5
- package/build/routes/resource-route.js +1 -1
- package/build/src/application.d.ts +26 -29
- package/build/src/application.d.ts.map +1 -1
- package/build/src/application.js +4 -4
- package/build/src/authorization/ability.d.ts +47 -53
- package/build/src/authorization/ability.d.ts.map +1 -1
- package/build/src/authorization/ability.js +7 -7
- package/build/src/authorization/base-resource.d.ts +13 -13
- package/build/src/authorization/base-resource.d.ts.map +1 -1
- package/build/src/authorization/base-resource.js +2 -2
- package/build/src/background-jobs/client.d.ts +9 -9
- package/build/src/background-jobs/client.d.ts.map +1 -1
- package/build/src/background-jobs/client.js +3 -3
- package/build/src/background-jobs/cron-expression.d.ts +25 -16
- package/build/src/background-jobs/cron-expression.d.ts.map +1 -1
- package/build/src/background-jobs/forked-runner-child.js +5 -5
- package/build/src/background-jobs/job-record.d.ts +4 -3
- package/build/src/background-jobs/job-record.d.ts.map +1 -1
- package/build/src/background-jobs/job-registry.d.ts +6 -6
- package/build/src/background-jobs/job-registry.d.ts.map +1 -1
- package/build/src/background-jobs/job-runner.d.ts +9 -9
- package/build/src/background-jobs/job-runner.d.ts.map +1 -1
- package/build/src/background-jobs/job-runner.js +3 -3
- package/build/src/background-jobs/job.d.ts +14 -14
- package/build/src/background-jobs/job.d.ts.map +1 -1
- package/build/src/background-jobs/job.js +7 -7
- package/build/src/background-jobs/json-socket.d.ts +9 -10
- package/build/src/background-jobs/json-socket.d.ts.map +1 -1
- package/build/src/background-jobs/json-socket.js +2 -2
- package/build/src/background-jobs/main.d.ts +56 -59
- package/build/src/background-jobs/main.d.ts.map +1 -1
- package/build/src/background-jobs/main.js +14 -14
- package/build/src/background-jobs/normalize-error.d.ts +2 -2
- package/build/src/background-jobs/normalize-error.d.ts.map +1 -1
- package/build/src/background-jobs/normalize-error.js +3 -3
- package/build/src/background-jobs/pooled-runner-child.js +4 -4
- package/build/src/background-jobs/runner-graceful-shutdown.d.ts +7 -12
- package/build/src/background-jobs/runner-graceful-shutdown.d.ts.map +1 -1
- package/build/src/background-jobs/runner-process-title.d.ts.map +1 -1
- package/build/src/background-jobs/scheduler.d.ts +41 -41
- package/build/src/background-jobs/scheduler.d.ts.map +1 -1
- package/build/src/background-jobs/scheduler.js +2 -2
- package/build/src/background-jobs/socket-request.d.ts +14 -14
- package/build/src/background-jobs/socket-request.d.ts.map +1 -1
- package/build/src/background-jobs/status-reporter.d.ts +28 -28
- package/build/src/background-jobs/status-reporter.d.ts.map +1 -1
- package/build/src/background-jobs/status-reporter.js +3 -3
- package/build/src/background-jobs/store.d.ts +100 -103
- package/build/src/background-jobs/store.d.ts.map +1 -1
- package/build/src/background-jobs/store.js +24 -24
- package/build/src/background-jobs/types.d.ts +124 -124
- package/build/src/background-jobs/types.d.ts.map +1 -1
- package/build/src/background-jobs/types.js +7 -7
- package/build/src/background-jobs/web/authorization.d.ts +2 -2
- package/build/src/background-jobs/web/authorization.d.ts.map +1 -1
- package/build/src/background-jobs/web/controller.d.ts +13 -13
- package/build/src/background-jobs/web/controller.d.ts.map +1 -1
- package/build/src/background-jobs/web/controller.js +7 -7
- package/build/src/background-jobs/web/counts-channel.d.ts +8 -8
- package/build/src/background-jobs/web/counts-channel.d.ts.map +1 -1
- package/build/src/background-jobs/web/counts-channel.js +2 -2
- package/build/src/background-jobs/web/index.d.ts +4 -4
- package/build/src/background-jobs/web/index.d.ts.map +1 -1
- package/build/src/background-jobs/web/path-matcher.d.ts +18 -13
- package/build/src/background-jobs/web/path-matcher.d.ts.map +1 -1
- package/build/src/background-jobs/web/registry.d.ts +21 -24
- package/build/src/background-jobs/web/registry.d.ts.map +1 -1
- package/build/src/background-jobs/worker.d.ts +74 -77
- package/build/src/background-jobs/worker.d.ts.map +1 -1
- package/build/src/background-jobs/worker.js +9 -9
- package/build/src/beacon/client.d.ts +30 -34
- package/build/src/beacon/client.d.ts.map +1 -1
- package/build/src/beacon/client.js +4 -4
- package/build/src/beacon/in-process-broker.d.ts +6 -9
- package/build/src/beacon/in-process-broker.d.ts.map +1 -1
- package/build/src/beacon/in-process-client.d.ts +17 -21
- package/build/src/beacon/in-process-client.d.ts.map +1 -1
- package/build/src/beacon/in-process-client.js +4 -4
- package/build/src/beacon/server.d.ts +15 -15
- package/build/src/beacon/server.d.ts.map +1 -1
- package/build/src/beacon/types.d.ts +21 -46
- 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 +25 -28
- package/build/src/cli/base-command.d.ts.map +1 -1
- package/build/src/cli/base-command.js +2 -2
- package/build/src/cli/browser-cli.d.ts +1 -1
- package/build/src/cli/browser-cli.d.ts.map +1 -1
- package/build/src/cli/commands/background-jobs-main.d.ts +2 -1
- package/build/src/cli/commands/background-jobs-main.d.ts.map +1 -1
- package/build/src/cli/commands/background-jobs-runner.d.ts +2 -1
- package/build/src/cli/commands/background-jobs-runner.d.ts.map +1 -1
- package/build/src/cli/commands/background-jobs-worker.d.ts +2 -1
- package/build/src/cli/commands/background-jobs-worker.d.ts.map +1 -1
- package/build/src/cli/commands/beacon.d.ts +2 -1
- package/build/src/cli/commands/beacon.d.ts.map +1 -1
- package/build/src/cli/commands/console.d.ts +6 -1
- package/build/src/cli/commands/console.d.ts.map +1 -1
- package/build/src/cli/commands/console.js +2 -2
- package/build/src/cli/commands/db/base-command.d.ts +1 -1
- package/build/src/cli/commands/db/base-command.d.ts.map +1 -1
- package/build/src/cli/commands/db/create.d.ts +1 -1
- package/build/src/cli/commands/db/create.d.ts.map +1 -1
- package/build/src/cli/commands/db/drop.d.ts +1 -1
- package/build/src/cli/commands/db/drop.d.ts.map +1 -1
- package/build/src/cli/commands/db/migrate.d.ts +1 -1
- package/build/src/cli/commands/db/migrate.d.ts.map +1 -1
- package/build/src/cli/commands/db/reset.d.ts +1 -1
- package/build/src/cli/commands/db/reset.d.ts.map +1 -1
- package/build/src/cli/commands/db/rollback.d.ts +1 -1
- package/build/src/cli/commands/db/rollback.d.ts.map +1 -1
- package/build/src/cli/commands/db/schema/dump.d.ts +6 -1
- package/build/src/cli/commands/db/schema/dump.d.ts.map +1 -1
- package/build/src/cli/commands/db/schema/dump.js +2 -2
- package/build/src/cli/commands/db/schema/load.d.ts +6 -1
- package/build/src/cli/commands/db/schema/load.d.ts.map +1 -1
- package/build/src/cli/commands/db/schema/load.js +2 -2
- package/build/src/cli/commands/db/seed.d.ts +6 -1
- package/build/src/cli/commands/db/seed.d.ts.map +1 -1
- package/build/src/cli/commands/db/seed.js +2 -2
- package/build/src/cli/commands/db/tenants/check.d.ts +1 -1
- package/build/src/cli/commands/db/tenants/check.d.ts.map +1 -1
- package/build/src/cli/commands/db/tenants/create.d.ts +1 -1
- package/build/src/cli/commands/db/tenants/create.d.ts.map +1 -1
- package/build/src/cli/commands/db/tenants/drop.d.ts +1 -1
- package/build/src/cli/commands/db/tenants/drop.d.ts.map +1 -1
- package/build/src/cli/commands/db/tenants/migrate.d.ts +1 -1
- package/build/src/cli/commands/db/tenants/migrate.d.ts.map +1 -1
- package/build/src/cli/commands/destroy/migration.d.ts +2 -1
- package/build/src/cli/commands/destroy/migration.d.ts.map +1 -1
- package/build/src/cli/commands/generate/base-models.d.ts +2 -1
- package/build/src/cli/commands/generate/base-models.d.ts.map +1 -1
- package/build/src/cli/commands/generate/frontend-models.d.ts +6 -1
- package/build/src/cli/commands/generate/frontend-models.d.ts.map +1 -1
- package/build/src/cli/commands/generate/frontend-models.js +2 -2
- package/build/src/cli/commands/generate/migration.d.ts +2 -1
- package/build/src/cli/commands/generate/migration.d.ts.map +1 -1
- package/build/src/cli/commands/generate/model.d.ts +2 -1
- package/build/src/cli/commands/generate/model.d.ts.map +1 -1
- package/build/src/cli/commands/init.d.ts +4 -2
- package/build/src/cli/commands/init.d.ts.map +1 -1
- package/build/src/cli/commands/lint/relationships.d.ts +6 -1
- package/build/src/cli/commands/lint/relationships.d.ts.map +1 -1
- package/build/src/cli/commands/lint/relationships.js +2 -2
- package/build/src/cli/commands/routes.d.ts +2 -1
- package/build/src/cli/commands/routes.d.ts.map +1 -1
- package/build/src/cli/commands/run-script.d.ts +6 -1
- package/build/src/cli/commands/run-script.d.ts.map +1 -1
- package/build/src/cli/commands/run-script.js +2 -2
- package/build/src/cli/commands/runner.d.ts +6 -1
- package/build/src/cli/commands/runner.d.ts.map +1 -1
- package/build/src/cli/commands/runner.js +2 -2
- package/build/src/cli/commands/server.d.ts +2 -1
- package/build/src/cli/commands/server.d.ts.map +1 -1
- package/build/src/cli/commands/test.d.ts +2 -1
- package/build/src/cli/commands/test.d.ts.map +1 -1
- package/build/src/cli/index.d.ts +20 -20
- package/build/src/cli/index.d.ts.map +1 -1
- package/build/src/cli/index.js +3 -3
- package/build/src/cli/tenant-database-command-helper.d.ts +13 -13
- package/build/src/cli/tenant-database-command-helper.d.ts.map +1 -1
- package/build/src/cli/tenant-database-command-helper.js +3 -3
- package/build/src/cli/use-browser-cli.d.ts +1 -1
- package/build/src/cli/use-browser-cli.d.ts.map +1 -1
- package/build/src/configuration-resolver.d.ts +1 -1
- package/build/src/configuration-resolver.d.ts.map +1 -1
- package/build/src/configuration-types.d.ts +947 -1038
- package/build/src/configuration-types.d.ts.map +1 -1
- package/build/src/configuration-types.js +49 -48
- package/build/src/configuration.d.ts +145 -139
- package/build/src/configuration.d.ts.map +1 -1
- package/build/src/configuration.js +149 -66
- package/build/src/controller.d.ts +37 -35
- package/build/src/controller.d.ts.map +1 -1
- package/build/src/controller.js +11 -9
- package/build/src/current-configuration.d.ts +5 -4
- package/build/src/current-configuration.d.ts.map +1 -1
- package/build/src/current.d.ts +3 -3
- package/build/src/current.d.ts.map +1 -1
- package/build/src/current.js +3 -3
- package/build/src/database/advisory-lock-runner.d.ts +61 -60
- package/build/src/database/advisory-lock-runner.d.ts.map +1 -1
- package/build/src/database/annotations-async-hooks.js +4 -4
- package/build/src/database/annotations.d.ts +4 -6
- package/build/src/database/annotations.d.ts.map +1 -1
- package/build/src/database/annotations.js +2 -2
- package/build/src/database/column-types.d.ts +1 -1
- package/build/src/database/column-types.d.ts.map +1 -1
- package/build/src/database/datetime-storage.d.ts +6 -6
- package/build/src/database/datetime-storage.d.ts.map +1 -1
- package/build/src/database/drivers/base-column.d.ts +3 -3
- package/build/src/database/drivers/base-column.d.ts.map +1 -1
- package/build/src/database/drivers/base-column.js +2 -2
- package/build/src/database/drivers/base-columns-index.d.ts +2 -2
- package/build/src/database/drivers/base-columns-index.d.ts.map +1 -1
- package/build/src/database/drivers/base-foreign-key.d.ts +7 -7
- package/build/src/database/drivers/base-foreign-key.d.ts.map +1 -1
- package/build/src/database/drivers/base-foreign-key.js +2 -2
- package/build/src/database/drivers/base-table.d.ts +3 -3
- package/build/src/database/drivers/base-table.d.ts.map +1 -1
- package/build/src/database/drivers/base-table.js +2 -2
- package/build/src/database/drivers/base.d.ts +297 -342
- package/build/src/database/drivers/base.d.ts.map +1 -1
- package/build/src/database/drivers/base.js +19 -19
- package/build/src/database/drivers/index-metadata.d.ts +15 -18
- package/build/src/database/drivers/index-metadata.d.ts.map +1 -1
- package/build/src/database/drivers/mssql/column.d.ts +10 -5
- package/build/src/database/drivers/mssql/column.d.ts.map +1 -1
- package/build/src/database/drivers/mssql/column.js +2 -2
- package/build/src/database/drivers/mssql/columns-index.d.ts +30 -22
- package/build/src/database/drivers/mssql/columns-index.d.ts.map +1 -1
- package/build/src/database/drivers/mssql/connect-connection.d.ts.map +1 -1
- package/build/src/database/drivers/mssql/foreign-key.d.ts +1 -1
- package/build/src/database/drivers/mssql/foreign-key.d.ts.map +1 -1
- package/build/src/database/drivers/mssql/index.d.ts +250 -9
- package/build/src/database/drivers/mssql/index.d.ts.map +1 -1
- package/build/src/database/drivers/mssql/index.js +3 -3
- package/build/src/database/drivers/mssql/options.d.ts +31 -1
- package/build/src/database/drivers/mssql/options.d.ts.map +1 -1
- package/build/src/database/drivers/mssql/options.js +2 -2
- package/build/src/database/drivers/mssql/query-parser.d.ts +1 -1
- package/build/src/database/drivers/mssql/query-parser.d.ts.map +1 -1
- package/build/src/database/drivers/mssql/sql/alter-table.d.ts +1 -1
- package/build/src/database/drivers/mssql/sql/alter-table.d.ts.map +1 -1
- package/build/src/database/drivers/mssql/sql/create-database.d.ts +3 -2
- package/build/src/database/drivers/mssql/sql/create-database.d.ts.map +1 -1
- package/build/src/database/drivers/mssql/sql/create-index.d.ts +1 -1
- package/build/src/database/drivers/mssql/sql/create-index.d.ts.map +1 -1
- package/build/src/database/drivers/mssql/sql/create-table.d.ts +1 -1
- package/build/src/database/drivers/mssql/sql/create-table.d.ts.map +1 -1
- package/build/src/database/drivers/mssql/sql/delete.d.ts +1 -1
- package/build/src/database/drivers/mssql/sql/delete.d.ts.map +1 -1
- package/build/src/database/drivers/mssql/sql/drop-database.d.ts +14 -1
- package/build/src/database/drivers/mssql/sql/drop-database.d.ts.map +1 -1
- package/build/src/database/drivers/mssql/sql/drop-table.d.ts +1 -1
- package/build/src/database/drivers/mssql/sql/drop-table.d.ts.map +1 -1
- package/build/src/database/drivers/mssql/sql/insert.d.ts +1 -1
- package/build/src/database/drivers/mssql/sql/insert.d.ts.map +1 -1
- package/build/src/database/drivers/mssql/sql/remove-index.d.ts +1 -1
- package/build/src/database/drivers/mssql/sql/remove-index.d.ts.map +1 -1
- package/build/src/database/drivers/mssql/sql/update.d.ts +1 -1
- package/build/src/database/drivers/mssql/sql/update.d.ts.map +1 -1
- package/build/src/database/drivers/mssql/sql/upsert.d.ts +1 -1
- package/build/src/database/drivers/mssql/sql/upsert.d.ts.map +1 -1
- package/build/src/database/drivers/mssql/structure-sql.d.ts +3 -3
- package/build/src/database/drivers/mssql/structure-sql.d.ts.map +1 -1
- package/build/src/database/drivers/mssql/structure-sql.js +2 -2
- package/build/src/database/drivers/mssql/table.d.ts +39 -29
- package/build/src/database/drivers/mssql/table.d.ts.map +1 -1
- package/build/src/database/drivers/mssql/table.js +2 -2
- package/build/src/database/drivers/mysql/column.d.ts +10 -6
- package/build/src/database/drivers/mysql/column.d.ts.map +1 -1
- package/build/src/database/drivers/mysql/column.js +2 -2
- package/build/src/database/drivers/mysql/columns-index.d.ts +3 -1
- package/build/src/database/drivers/mysql/columns-index.d.ts.map +1 -1
- package/build/src/database/drivers/mysql/foreign-key.d.ts +1 -1
- package/build/src/database/drivers/mysql/foreign-key.d.ts.map +1 -1
- package/build/src/database/drivers/mysql/index.d.ts +225 -6
- package/build/src/database/drivers/mysql/index.d.ts.map +1 -1
- package/build/src/database/drivers/mysql/index.js +5 -5
- package/build/src/database/drivers/mysql/options.d.ts +7 -1
- package/build/src/database/drivers/mysql/options.d.ts.map +1 -1
- package/build/src/database/drivers/mysql/options.js +2 -2
- package/build/src/database/drivers/mysql/query-parser.d.ts +1 -1
- package/build/src/database/drivers/mysql/query-parser.d.ts.map +1 -1
- package/build/src/database/drivers/mysql/query-stream.d.ts.map +1 -1
- package/build/src/database/drivers/mysql/query.d.ts +2 -2
- package/build/src/database/drivers/mysql/query.d.ts.map +1 -1
- package/build/src/database/drivers/mysql/query.js +8 -8
- package/build/src/database/drivers/mysql/sql/alter-table.d.ts +12 -1
- package/build/src/database/drivers/mysql/sql/alter-table.d.ts.map +1 -1
- package/build/src/database/drivers/mysql/sql/create-database.d.ts +6 -1
- package/build/src/database/drivers/mysql/sql/create-database.d.ts.map +1 -1
- package/build/src/database/drivers/mysql/sql/create-index.d.ts +1 -1
- package/build/src/database/drivers/mysql/sql/create-index.d.ts.map +1 -1
- package/build/src/database/drivers/mysql/sql/create-table.d.ts +1 -1
- package/build/src/database/drivers/mysql/sql/create-table.d.ts.map +1 -1
- package/build/src/database/drivers/mysql/sql/delete.d.ts +1 -1
- package/build/src/database/drivers/mysql/sql/delete.d.ts.map +1 -1
- package/build/src/database/drivers/mysql/sql/drop-database.d.ts +1 -1
- package/build/src/database/drivers/mysql/sql/drop-database.d.ts.map +1 -1
- package/build/src/database/drivers/mysql/sql/drop-table.d.ts +1 -1
- package/build/src/database/drivers/mysql/sql/drop-table.d.ts.map +1 -1
- package/build/src/database/drivers/mysql/sql/insert.d.ts +1 -1
- package/build/src/database/drivers/mysql/sql/insert.d.ts.map +1 -1
- package/build/src/database/drivers/mysql/sql/remove-index.d.ts +1 -1
- package/build/src/database/drivers/mysql/sql/remove-index.d.ts.map +1 -1
- package/build/src/database/drivers/mysql/sql/update.d.ts +1 -1
- package/build/src/database/drivers/mysql/sql/update.d.ts.map +1 -1
- package/build/src/database/drivers/mysql/sql/upsert.d.ts +1 -1
- package/build/src/database/drivers/mysql/sql/upsert.d.ts.map +1 -1
- package/build/src/database/drivers/mysql/structure-sql.d.ts +14 -3
- package/build/src/database/drivers/mysql/structure-sql.d.ts.map +1 -1
- package/build/src/database/drivers/mysql/structure-sql.js +62 -11
- package/build/src/database/drivers/mysql/table.d.ts +11 -6
- package/build/src/database/drivers/mysql/table.d.ts.map +1 -1
- package/build/src/database/drivers/pgsql/column.d.ts +10 -5
- package/build/src/database/drivers/pgsql/column.d.ts.map +1 -1
- package/build/src/database/drivers/pgsql/column.js +2 -2
- package/build/src/database/drivers/pgsql/columns-index.d.ts +30 -22
- package/build/src/database/drivers/pgsql/columns-index.d.ts.map +1 -1
- package/build/src/database/drivers/pgsql/foreign-key.d.ts +1 -1
- package/build/src/database/drivers/pgsql/foreign-key.d.ts.map +1 -1
- package/build/src/database/drivers/pgsql/index.d.ts +157 -6
- package/build/src/database/drivers/pgsql/index.d.ts.map +1 -1
- package/build/src/database/drivers/pgsql/index.js +7 -7
- package/build/src/database/drivers/pgsql/options.d.ts +1 -1
- package/build/src/database/drivers/pgsql/options.d.ts.map +1 -1
- package/build/src/database/drivers/pgsql/query-parser.d.ts +1 -1
- package/build/src/database/drivers/pgsql/query-parser.d.ts.map +1 -1
- package/build/src/database/drivers/pgsql/sql/alter-table.d.ts +1 -1
- package/build/src/database/drivers/pgsql/sql/alter-table.d.ts.map +1 -1
- package/build/src/database/drivers/pgsql/sql/create-database.d.ts +2 -1
- package/build/src/database/drivers/pgsql/sql/create-database.d.ts.map +1 -1
- package/build/src/database/drivers/pgsql/sql/create-index.d.ts +1 -1
- package/build/src/database/drivers/pgsql/sql/create-index.d.ts.map +1 -1
- package/build/src/database/drivers/pgsql/sql/create-table.d.ts +1 -1
- package/build/src/database/drivers/pgsql/sql/create-table.d.ts.map +1 -1
- package/build/src/database/drivers/pgsql/sql/delete.d.ts +1 -1
- package/build/src/database/drivers/pgsql/sql/delete.d.ts.map +1 -1
- package/build/src/database/drivers/pgsql/sql/drop-database.d.ts +1 -1
- package/build/src/database/drivers/pgsql/sql/drop-database.d.ts.map +1 -1
- package/build/src/database/drivers/pgsql/sql/drop-table.d.ts +1 -1
- package/build/src/database/drivers/pgsql/sql/drop-table.d.ts.map +1 -1
- package/build/src/database/drivers/pgsql/sql/insert.d.ts +1 -1
- package/build/src/database/drivers/pgsql/sql/insert.d.ts.map +1 -1
- package/build/src/database/drivers/pgsql/sql/remove-index.d.ts +1 -1
- package/build/src/database/drivers/pgsql/sql/remove-index.d.ts.map +1 -1
- package/build/src/database/drivers/pgsql/sql/update.d.ts +1 -1
- package/build/src/database/drivers/pgsql/sql/update.d.ts.map +1 -1
- package/build/src/database/drivers/pgsql/sql/upsert.d.ts +1 -1
- package/build/src/database/drivers/pgsql/sql/upsert.d.ts.map +1 -1
- package/build/src/database/drivers/pgsql/structure-sql.d.ts +3 -3
- package/build/src/database/drivers/pgsql/structure-sql.d.ts.map +1 -1
- package/build/src/database/drivers/pgsql/structure-sql.js +2 -2
- package/build/src/database/drivers/pgsql/table.d.ts +33 -31
- package/build/src/database/drivers/pgsql/table.d.ts.map +1 -1
- package/build/src/database/drivers/sqlite/base.d.ts +162 -12
- package/build/src/database/drivers/sqlite/base.d.ts.map +1 -1
- package/build/src/database/drivers/sqlite/base.js +8 -8
- package/build/src/database/drivers/sqlite/column.d.ts +12 -6
- package/build/src/database/drivers/sqlite/column.d.ts.map +1 -1
- package/build/src/database/drivers/sqlite/column.js +2 -2
- package/build/src/database/drivers/sqlite/columns-index.d.ts +5 -1
- package/build/src/database/drivers/sqlite/columns-index.d.ts.map +1 -1
- package/build/src/database/drivers/sqlite/connection-sql-js.d.ts +9 -9
- package/build/src/database/drivers/sqlite/connection-sql-js.d.ts.map +1 -1
- package/build/src/database/drivers/sqlite/connection-sql-js.js +2 -2
- package/build/src/database/drivers/sqlite/foreign-key.d.ts +5 -4
- package/build/src/database/drivers/sqlite/foreign-key.d.ts.map +1 -1
- package/build/src/database/drivers/sqlite/foreign-key.js +2 -2
- package/build/src/database/drivers/sqlite/index.d.ts +53 -3
- package/build/src/database/drivers/sqlite/index.d.ts.map +1 -1
- package/build/src/database/drivers/sqlite/index.js +2 -2
- package/build/src/database/drivers/sqlite/index.native.d.ts +13 -5
- package/build/src/database/drivers/sqlite/index.native.d.ts.map +1 -1
- package/build/src/database/drivers/sqlite/index.native.js +3 -3
- package/build/src/database/drivers/sqlite/index.web.d.ts +48 -14
- package/build/src/database/drivers/sqlite/index.web.d.ts.map +1 -1
- package/build/src/database/drivers/sqlite/index.web.js +3 -3
- package/build/src/database/drivers/sqlite/options.d.ts +1 -1
- package/build/src/database/drivers/sqlite/options.d.ts.map +1 -1
- package/build/src/database/drivers/sqlite/query-parser.d.ts +1 -1
- package/build/src/database/drivers/sqlite/query-parser.d.ts.map +1 -1
- package/build/src/database/drivers/sqlite/query.d.ts +2 -2
- package/build/src/database/drivers/sqlite/query.d.ts.map +1 -1
- package/build/src/database/drivers/sqlite/query.js +3 -3
- package/build/src/database/drivers/sqlite/query.native.d.ts +4 -4
- 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 +2 -2
- package/build/src/database/drivers/sqlite/query.web.d.ts.map +1 -1
- package/build/src/database/drivers/sqlite/query.web.js +3 -3
- package/build/src/database/drivers/sqlite/sql/alter-table.d.ts +19 -4
- package/build/src/database/drivers/sqlite/sql/alter-table.d.ts.map +1 -1
- package/build/src/database/drivers/sqlite/sql/create-index.d.ts +1 -1
- package/build/src/database/drivers/sqlite/sql/create-index.d.ts.map +1 -1
- package/build/src/database/drivers/sqlite/sql/create-table.d.ts +1 -1
- package/build/src/database/drivers/sqlite/sql/create-table.d.ts.map +1 -1
- package/build/src/database/drivers/sqlite/sql/delete.d.ts +1 -1
- package/build/src/database/drivers/sqlite/sql/delete.d.ts.map +1 -1
- package/build/src/database/drivers/sqlite/sql/drop-table.d.ts +1 -1
- package/build/src/database/drivers/sqlite/sql/drop-table.d.ts.map +1 -1
- package/build/src/database/drivers/sqlite/sql/insert.d.ts +1 -1
- package/build/src/database/drivers/sqlite/sql/insert.d.ts.map +1 -1
- package/build/src/database/drivers/sqlite/sql/remove-index.d.ts +1 -1
- package/build/src/database/drivers/sqlite/sql/remove-index.d.ts.map +1 -1
- package/build/src/database/drivers/sqlite/sql/update.d.ts +1 -1
- package/build/src/database/drivers/sqlite/sql/update.d.ts.map +1 -1
- package/build/src/database/drivers/sqlite/sql/upsert.d.ts +1 -1
- package/build/src/database/drivers/sqlite/sql/upsert.d.ts.map +1 -1
- package/build/src/database/drivers/sqlite/structure-sql.d.ts +1 -1
- package/build/src/database/drivers/sqlite/structure-sql.d.ts.map +1 -1
- package/build/src/database/drivers/sqlite/table-rebuilder.d.ts +5 -5
- package/build/src/database/drivers/sqlite/table-rebuilder.d.ts.map +1 -1
- package/build/src/database/drivers/sqlite/table-rebuilder.js +2 -2
- package/build/src/database/drivers/sqlite/table.d.ts +15 -5
- package/build/src/database/drivers/sqlite/table.d.ts.map +1 -1
- package/build/src/database/drivers/sqlite/web-persistence.d.ts +28 -34
- package/build/src/database/drivers/sqlite/web-persistence.d.ts.map +1 -1
- package/build/src/database/drivers/structure-sql/utils.d.ts +2 -2
- package/build/src/database/drivers/structure-sql/utils.d.ts.map +1 -1
- package/build/src/database/handler.d.ts.map +1 -1
- package/build/src/database/initializer-from-require-context.d.ts +18 -16
- package/build/src/database/initializer-from-require-context.d.ts.map +1 -1
- package/build/src/database/live-query.d.ts +13 -24
- package/build/src/database/live-query.d.ts.map +1 -1
- package/build/src/database/migration/index.d.ts +146 -169
- package/build/src/database/migration/index.d.ts.map +1 -1
- package/build/src/database/migration/index.js +3 -3
- package/build/src/database/migrations-ledger.d.ts.map +1 -1
- package/build/src/database/migrator/files-finder.d.ts +1 -1
- package/build/src/database/migrator/files-finder.d.ts.map +1 -1
- package/build/src/database/migrator/types.d.ts +26 -2
- package/build/src/database/migrator/types.d.ts.map +1 -1
- package/build/src/database/migrator/types.js +24 -1
- package/build/src/database/migrator.d.ts +10 -10
- package/build/src/database/migrator.d.ts.map +1 -1
- package/build/src/database/operation-connection.d.ts +3 -3
- package/build/src/database/operation-connection.d.ts.map +1 -1
- package/build/src/database/operation-lease.d.ts +4 -4
- package/build/src/database/operation-lease.d.ts.map +1 -1
- package/build/src/database/operation.d.ts +38 -7
- package/build/src/database/operation.d.ts.map +1 -1
- package/build/src/database/operation.js +55 -8
- package/build/src/database/pool/async-tracked-multi-connection.d.ts +174 -79
- package/build/src/database/pool/async-tracked-multi-connection.d.ts.map +1 -1
- package/build/src/database/pool/async-tracked-multi-connection.js +70 -25
- package/build/src/database/pool/base-methods-forward.d.ts.map +1 -1
- package/build/src/database/pool/base-methods-forward.js +3 -3
- package/build/src/database/pool/base.d.ts +93 -71
- package/build/src/database/pool/base.d.ts.map +1 -1
- package/build/src/database/pool/base.js +47 -17
- package/build/src/database/pool/single-multi-use.d.ts +243 -10
- package/build/src/database/pool/single-multi-use.d.ts.map +1 -1
- package/build/src/database/pool/single-multi-use.js +467 -103
- package/build/src/database/query/alter-table-base.d.ts +8 -3
- package/build/src/database/query/alter-table-base.d.ts.map +1 -1
- package/build/src/database/query/base.d.ts +3 -3
- package/build/src/database/query/base.d.ts.map +1 -1
- package/build/src/database/query/create-database-base.d.ts +28 -22
- package/build/src/database/query/create-database-base.d.ts.map +1 -1
- package/build/src/database/query/create-index-base.d.ts +32 -30
- package/build/src/database/query/create-index-base.d.ts.map +1 -1
- package/build/src/database/query/create-table-base.d.ts +7 -7
- package/build/src/database/query/create-table-base.d.ts.map +1 -1
- package/build/src/database/query/delete-base.d.ts +5 -5
- package/build/src/database/query/delete-base.d.ts.map +1 -1
- package/build/src/database/query/delete-base.js +2 -2
- package/build/src/database/query/drop-database-base.d.ts +22 -18
- package/build/src/database/query/drop-database-base.d.ts.map +1 -1
- package/build/src/database/query/drop-table-base.d.ts +11 -6
- package/build/src/database/query/drop-table-base.d.ts.map +1 -1
- package/build/src/database/query/from-base.d.ts.map +1 -1
- package/build/src/database/query/from-plain.d.ts +3 -2
- package/build/src/database/query/from-plain.d.ts.map +1 -1
- package/build/src/database/query/from-table.d.ts +3 -2
- package/build/src/database/query/from-table.d.ts.map +1 -1
- package/build/src/database/query/index.d.ts +92 -107
- package/build/src/database/query/index.d.ts.map +1 -1
- package/build/src/database/query/index.js +4 -4
- package/build/src/database/query/insert-base.d.ts +18 -18
- package/build/src/database/query/insert-base.d.ts.map +1 -1
- package/build/src/database/query/insert-base.js +5 -5
- package/build/src/database/query/join-base.d.ts +1 -1
- package/build/src/database/query/join-base.d.ts.map +1 -1
- package/build/src/database/query/join-object.d.ts +9 -15
- package/build/src/database/query/join-object.d.ts.map +1 -1
- package/build/src/database/query/join-plain.d.ts +2 -2
- package/build/src/database/query/join-plain.d.ts.map +1 -1
- package/build/src/database/query/join-tracker.d.ts +3 -3
- package/build/src/database/query/join-tracker.d.ts.map +1 -1
- package/build/src/database/query/model-class-query.d.ts +39 -36
- package/build/src/database/query/model-class-query.d.ts.map +1 -1
- package/build/src/database/query/model-class-query.js +40 -40
- package/build/src/database/query/order-base.d.ts +1 -1
- package/build/src/database/query/order-base.d.ts.map +1 -1
- package/build/src/database/query/order-column.d.ts +19 -22
- package/build/src/database/query/order-column.d.ts.map +1 -1
- package/build/src/database/query/order-plain.d.ts +3 -3
- package/build/src/database/query/order-plain.d.ts.map +1 -1
- package/build/src/database/query/preloader/belongs-to.d.ts +5 -5
- package/build/src/database/query/preloader/belongs-to.d.ts.map +1 -1
- package/build/src/database/query/preloader/belongs-to.js +3 -3
- package/build/src/database/query/preloader/ensure-model-class-initialized.d.ts +2 -1
- 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 +4 -3
- package/build/src/database/query/preloader/has-many.d.ts +6 -6
- package/build/src/database/query/preloader/has-many.d.ts.map +1 -1
- package/build/src/database/query/preloader/has-many.js +4 -4
- package/build/src/database/query/preloader/has-one.d.ts +5 -5
- package/build/src/database/query/preloader/has-one.d.ts.map +1 -1
- package/build/src/database/query/preloader/has-one.js +2 -2
- package/build/src/database/query/preloader/query-for-model.d.ts.map +1 -1
- package/build/src/database/query/preloader/selection.d.ts +6 -6
- package/build/src/database/query/preloader/selection.d.ts.map +1 -1
- package/build/src/database/query/preloader.d.ts +8 -8
- package/build/src/database/query/preloader.d.ts.map +1 -1
- package/build/src/database/query/preloader.js +9 -3
- package/build/src/database/query/query-data.d.ts +43 -55
- package/build/src/database/query/query-data.d.ts.map +1 -1
- package/build/src/database/query/query-data.js +8 -8
- package/build/src/database/query/remove-index-base.d.ts +21 -19
- package/build/src/database/query/remove-index-base.d.ts.map +1 -1
- package/build/src/database/query/select-base.d.ts +1 -1
- package/build/src/database/query/select-base.d.ts.map +1 -1
- package/build/src/database/query/select-plain.d.ts +3 -2
- package/build/src/database/query/select-plain.d.ts.map +1 -1
- package/build/src/database/query/select-table-and-column.d.ts +4 -3
- package/build/src/database/query/select-table-and-column.d.ts.map +1 -1
- package/build/src/database/query/update-base.d.ts +10 -10
- package/build/src/database/query/update-base.d.ts.map +1 -1
- package/build/src/database/query/update-base.js +4 -4
- package/build/src/database/query/upsert-base.d.ts +9 -9
- package/build/src/database/query/upsert-base.d.ts.map +1 -1
- package/build/src/database/query/upsert-base.js +3 -3
- package/build/src/database/query/where-base.d.ts +1 -1
- package/build/src/database/query/where-base.d.ts.map +1 -1
- package/build/src/database/query/where-combinator.d.ts +9 -4
- package/build/src/database/query/where-combinator.d.ts.map +1 -1
- package/build/src/database/query/where-hash.d.ts +11 -9
- package/build/src/database/query/where-hash.d.ts.map +1 -1
- package/build/src/database/query/where-model-class-hash.d.ts +28 -26
- package/build/src/database/query/where-model-class-hash.d.ts.map +1 -1
- package/build/src/database/query/where-model-class-hash.js +14 -14
- package/build/src/database/query/where-not.d.ts +8 -3
- package/build/src/database/query/where-not.d.ts.map +1 -1
- package/build/src/database/query/where-plain.d.ts +4 -3
- package/build/src/database/query/where-plain.d.ts.map +1 -1
- package/build/src/database/query/with-count.d.ts +22 -28
- package/build/src/database/query/with-count.d.ts.map +1 -1
- package/build/src/database/query/with-count.js +12 -12
- package/build/src/database/query-aborted-error.d.ts +5 -5
- package/build/src/database/query-aborted-error.d.ts.map +1 -1
- package/build/src/database/query-parser/base-query-parser.d.ts +3 -3
- package/build/src/database/query-parser/base-query-parser.d.ts.map +1 -1
- package/build/src/database/query-parser/from-parser.d.ts +2 -2
- package/build/src/database/query-parser/from-parser.d.ts.map +1 -1
- package/build/src/database/query-parser/group-parser.d.ts +2 -2
- package/build/src/database/query-parser/group-parser.d.ts.map +1 -1
- package/build/src/database/query-parser/joins-parser.d.ts +3 -3
- package/build/src/database/query-parser/joins-parser.d.ts.map +1 -1
- package/build/src/database/query-parser/limit-parser.d.ts +2 -2
- package/build/src/database/query-parser/limit-parser.d.ts.map +1 -1
- package/build/src/database/query-parser/options.d.ts +31 -34
- package/build/src/database/query-parser/options.d.ts.map +1 -1
- package/build/src/database/query-parser/options.js +3 -3
- package/build/src/database/query-parser/order-parser.d.ts +2 -2
- package/build/src/database/query-parser/order-parser.d.ts.map +1 -1
- package/build/src/database/query-parser/select-parser.d.ts +2 -2
- package/build/src/database/query-parser/select-parser.d.ts.map +1 -1
- package/build/src/database/query-parser/select-parser.js +2 -2
- package/build/src/database/query-parser/where-parser.d.ts +2 -2
- package/build/src/database/query-parser/where-parser.d.ts.map +1 -1
- package/build/src/database/record/acts-as-list.d.ts.map +1 -1
- package/build/src/database/record/acts-as-list.js +3 -3
- package/build/src/database/record/attachments/attachment-record.d.ts +7 -3
- package/build/src/database/record/attachments/attachment-record.d.ts.map +1 -1
- package/build/src/database/record/attachments/download.d.ts +9 -9
- package/build/src/database/record/attachments/download.d.ts.map +1 -1
- package/build/src/database/record/attachments/handle.d.ts +12 -12
- package/build/src/database/record/attachments/handle.d.ts.map +1 -1
- package/build/src/database/record/attachments/handle.js +7 -7
- package/build/src/database/record/attachments/normalize-input.d.ts +16 -22
- package/build/src/database/record/attachments/normalize-input.d.ts.map +1 -1
- package/build/src/database/record/attachments/normalize-input.js +12 -12
- package/build/src/database/record/attachments/storage-drivers/filesystem.d.ts +4 -4
- package/build/src/database/record/attachments/storage-drivers/filesystem.d.ts.map +1 -1
- package/build/src/database/record/attachments/storage-drivers/filesystem.js +2 -2
- package/build/src/database/record/attachments/storage-drivers/native.d.ts +12 -12
- package/build/src/database/record/attachments/storage-drivers/native.d.ts.map +1 -1
- package/build/src/database/record/attachments/storage-drivers/native.js +6 -6
- package/build/src/database/record/attachments/storage-drivers/s3.d.ts +17 -17
- package/build/src/database/record/attachments/storage-drivers/s3.d.ts.map +1 -1
- package/build/src/database/record/attachments/storage-drivers/s3.js +11 -11
- package/build/src/database/record/attachments/store.d.ts +38 -41
- package/build/src/database/record/attachments/store.d.ts.map +1 -1
- package/build/src/database/record/attachments/store.js +24 -21
- package/build/src/database/record/auditing.d.ts +67 -87
- package/build/src/database/record/auditing.d.ts.map +1 -1
- package/build/src/database/record/auditing.js +109 -30
- package/build/src/database/record/counter-cache-magnitude.d.ts +15 -35
- package/build/src/database/record/counter-cache-magnitude.d.ts.map +1 -1
- package/build/src/database/record/counter-cache-magnitude.js +12 -12
- package/build/src/database/record/index.d.ts +2390 -488
- package/build/src/database/record/index.d.ts.map +1 -1
- package/build/src/database/record/index.js +222 -172
- package/build/src/database/record/instance-relationships/base.d.ts +20 -23
- package/build/src/database/record/instance-relationships/base.d.ts.map +1 -1
- package/build/src/database/record/instance-relationships/base.js +5 -5
- package/build/src/database/record/instance-relationships/belongs-to.d.ts +9 -1
- package/build/src/database/record/instance-relationships/belongs-to.d.ts.map +1 -1
- package/build/src/database/record/instance-relationships/belongs-to.js +2 -2
- package/build/src/database/record/instance-relationships/has-many.d.ts +15 -3
- package/build/src/database/record/instance-relationships/has-many.d.ts.map +1 -1
- package/build/src/database/record/instance-relationships/has-many.js +4 -4
- package/build/src/database/record/instance-relationships/has-one.d.ts +19 -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 +2 -2
- package/build/src/database/record/record-not-found-error.d.ts +1 -0
- package/build/src/database/record/record-not-found-error.d.ts.map +1 -1
- package/build/src/database/record/record-not-found-error.js +2 -1
- package/build/src/database/record/relationships/base.d.ts +83 -71
- package/build/src/database/record/relationships/base.d.ts.map +1 -1
- package/build/src/database/record/relationships/base.js +21 -1
- package/build/src/database/record/relationships/belongs-to.d.ts +11 -1
- package/build/src/database/record/relationships/belongs-to.d.ts.map +1 -1
- package/build/src/database/record/relationships/has-many.d.ts +11 -1
- package/build/src/database/record/relationships/has-many.d.ts.map +1 -1
- package/build/src/database/record/relationships/has-one.d.ts +11 -1
- package/build/src/database/record/relationships/has-one.d.ts.map +1 -1
- package/build/src/database/record/state-machine.d.ts +20 -29
- package/build/src/database/record/state-machine.d.ts.map +1 -1
- package/build/src/database/record/state-machine.js +7 -7
- package/build/src/database/record/user-module.d.ts +1 -1
- package/build/src/database/record/user-module.d.ts.map +1 -1
- package/build/src/database/record/validation-messages.d.ts +19 -22
- package/build/src/database/record/validation-messages.d.ts.map +1 -1
- package/build/src/database/record/validators/base.d.ts +4 -4
- package/build/src/database/record/validators/base.d.ts.map +1 -1
- package/build/src/database/record/validators/base.js +2 -2
- package/build/src/database/record/validators/format.d.ts +12 -1
- package/build/src/database/record/validators/format.d.ts.map +1 -1
- package/build/src/database/record/validators/length.d.ts +14 -1
- package/build/src/database/record/validators/length.d.ts.map +1 -1
- package/build/src/database/record/validators/presence.d.ts +11 -1
- package/build/src/database/record/validators/presence.d.ts.map +1 -1
- package/build/src/database/record/validators/uniqueness.d.ts +12 -1
- package/build/src/database/record/validators/uniqueness.d.ts.map +1 -1
- package/build/src/database/record-changes.d.ts +7 -18
- package/build/src/database/record-changes.d.ts.map +1 -1
- package/build/src/database/structure-sql-loader.d.ts +2 -2
- package/build/src/database/structure-sql-loader.d.ts.map +1 -1
- package/build/src/database/structure-sql-loader.js +4 -4
- package/build/src/database/table-data/index.d.ts +21 -24
- package/build/src/database/table-data/index.d.ts.map +1 -1
- package/build/src/database/table-data/table-column.d.ts +74 -80
- package/build/src/database/table-data/table-column.d.ts.map +1 -1
- package/build/src/database/table-data/table-column.js +4 -4
- package/build/src/database/table-data/table-foreign-key.d.ts +10 -10
- package/build/src/database/table-data/table-foreign-key.d.ts.map +1 -1
- package/build/src/database/table-data/table-index.d.ts +12 -15
- package/build/src/database/table-data/table-index.d.ts.map +1 -1
- package/build/src/database/table-data/table-reference.d.ts +2 -2
- package/build/src/database/table-data/table-reference.d.ts.map +1 -1
- package/build/src/database/tenants/data-copier.d.ts +7 -7
- package/build/src/database/tenants/data-copier.d.ts.map +1 -1
- package/build/src/database/tenants/schema-cloner.d.ts +3 -3
- package/build/src/database/tenants/schema-cloner.d.ts.map +1 -1
- package/build/src/database/tenants/tenant-table-plan.d.ts +20 -14
- package/build/src/database/tenants/tenant-table-plan.d.ts.map +1 -1
- package/build/src/database/tenants/tenant-table-plan.js +17 -1
- package/build/src/database/use-database.d.ts.map +1 -1
- package/build/src/database/use-live-query.d.ts +17 -29
- package/build/src/database/use-live-query.d.ts.map +1 -1
- package/build/src/database/use-live-query.js +4 -4
- package/build/src/environment-handlers/base.d.ts +112 -103
- package/build/src/environment-handlers/base.d.ts.map +1 -1
- package/build/src/environment-handlers/base.js +54 -38
- package/build/src/environment-handlers/browser.d.ts +63 -56
- package/build/src/environment-handlers/browser.d.ts.map +1 -1
- package/build/src/environment-handlers/browser.js +2 -2
- package/build/src/environment-handlers/node/attachment-path-source.d.ts +9 -9
- package/build/src/environment-handlers/node/attachment-path-source.d.ts.map +1 -1
- package/build/src/environment-handlers/node/cli/commands/background-jobs-main.d.ts +1 -1
- package/build/src/environment-handlers/node/cli/commands/background-jobs-main.d.ts.map +1 -1
- package/build/src/environment-handlers/node/cli/commands/background-jobs-runner.d.ts +1 -1
- package/build/src/environment-handlers/node/cli/commands/background-jobs-runner.d.ts.map +1 -1
- package/build/src/environment-handlers/node/cli/commands/background-jobs-worker.d.ts +1 -1
- package/build/src/environment-handlers/node/cli/commands/background-jobs-worker.d.ts.map +1 -1
- package/build/src/environment-handlers/node/cli/commands/beacon.d.ts +1 -1
- package/build/src/environment-handlers/node/cli/commands/beacon.d.ts.map +1 -1
- package/build/src/environment-handlers/node/cli/commands/cli-command-context.d.ts +7 -10
- package/build/src/environment-handlers/node/cli/commands/cli-command-context.d.ts.map +1 -1
- package/build/src/environment-handlers/node/cli/commands/console.d.ts +9 -7
- package/build/src/environment-handlers/node/cli/commands/console.d.ts.map +1 -1
- package/build/src/environment-handlers/node/cli/commands/console.js +5 -5
- package/build/src/environment-handlers/node/cli/commands/db/schema/dump.d.ts +1 -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/load.d.ts +1 -1
- 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/seed.d.ts +7 -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 +3 -3
- package/build/src/environment-handlers/node/cli/commands/destroy/migration.d.ts +4 -7
- package/build/src/environment-handlers/node/cli/commands/destroy/migration.d.ts.map +1 -1
- package/build/src/environment-handlers/node/cli/commands/generate/base-models.d.ts +1 -1
- 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 +2 -2
- package/build/src/environment-handlers/node/cli/commands/generate/frontend-models.d.ts +93 -108
- 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/generated-file-banner.d.ts.map +1 -1
- package/build/src/environment-handlers/node/cli/commands/generate/migration.d.ts +9 -12
- package/build/src/environment-handlers/node/cli/commands/generate/migration.d.ts.map +1 -1
- package/build/src/environment-handlers/node/cli/commands/generate/model.d.ts +8 -11
- package/build/src/environment-handlers/node/cli/commands/generate/model.d.ts.map +1 -1
- package/build/src/environment-handlers/node/cli/commands/init.d.ts +7 -9
- package/build/src/environment-handlers/node/cli/commands/init.d.ts.map +1 -1
- package/build/src/environment-handlers/node/cli/commands/lint/relationships.d.ts +7 -7
- package/build/src/environment-handlers/node/cli/commands/lint/relationships.d.ts.map +1 -1
- package/build/src/environment-handlers/node/cli/commands/routes.d.ts +1 -1
- package/build/src/environment-handlers/node/cli/commands/routes.d.ts.map +1 -1
- package/build/src/environment-handlers/node/cli/commands/run-script.d.ts +7 -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 +3 -3
- package/build/src/environment-handlers/node/cli/commands/runner.d.ts +9 -7
- package/build/src/environment-handlers/node/cli/commands/runner.d.ts.map +1 -1
- package/build/src/environment-handlers/node/cli/commands/runner.js +3 -3
- package/build/src/environment-handlers/node/cli/commands/server.d.ts +24 -30
- package/build/src/environment-handlers/node/cli/commands/server.d.ts.map +1 -1
- package/build/src/environment-handlers/node/cli/commands/server.js +2 -2
- package/build/src/environment-handlers/node/cli/commands/test.d.ts +5 -5
- package/build/src/environment-handlers/node/cli/commands/test.d.ts.map +1 -1
- package/build/src/environment-handlers/node/source-peer-package.d.ts +5 -7
- package/build/src/environment-handlers/node/source-peer-package.d.ts.map +1 -1
- package/build/src/environment-handlers/node/source-peer-package.js +1 -1
- package/build/src/environment-handlers/node.d.ts +362 -13
- package/build/src/environment-handlers/node.d.ts.map +1 -1
- package/build/src/environment-handlers/node.js +37 -37
- package/build/src/error-logger.d.ts +3 -3
- package/build/src/error-logger.d.ts.map +1 -1
- package/build/src/error-logger.js +3 -3
- package/build/src/error-reporting/request-details.d.ts +1 -1
- package/build/src/error-reporting/request-details.d.ts.map +1 -1
- package/build/src/error-reporting/request-details.js +33 -33
- package/build/src/frontend-model-controller.d.ts +216 -230
- package/build/src/frontend-model-controller.d.ts.map +1 -1
- package/build/src/frontend-model-controller.js +217 -211
- package/build/src/frontend-model-resource/base-resource.d.ts +315 -365
- package/build/src/frontend-model-resource/base-resource.d.ts.map +1 -1
- package/build/src/frontend-model-resource/base-resource.js +45 -45
- package/build/src/frontend-model-resource/velocious-attachment-resource.d.ts +11 -5
- package/build/src/frontend-model-resource/velocious-attachment-resource.d.ts.map +1 -1
- package/build/src/frontend-model-resource/velocious-attachment-resource.js +2 -2
- package/build/src/frontend-models/base.d.ts +632 -726
- package/build/src/frontend-models/base.d.ts.map +1 -1
- package/build/src/frontend-models/base.js +147 -143
- package/build/src/frontend-models/built-in-resources.d.ts +2 -2
- package/build/src/frontend-models/built-in-resources.d.ts.map +1 -1
- package/build/src/frontend-models/clear-pending-debounced-callback.d.ts +2 -2
- package/build/src/frontend-models/clear-pending-debounced-callback.d.ts.map +1 -1
- package/build/src/frontend-models/clear-pending-debounced-callback.js +3 -3
- package/build/src/frontend-models/event-hook-models.d.ts +3 -6
- package/build/src/frontend-models/event-hook-models.d.ts.map +1 -1
- 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 +20 -17
- package/build/src/frontend-models/outgoing-event-buffer.d.ts.map +1 -1
- package/build/src/frontend-models/outgoing-event-buffer.js +2 -2
- package/build/src/frontend-models/preloader.d.ts.map +1 -1
- package/build/src/frontend-models/preloader.js +2 -2
- package/build/src/frontend-models/query.d.ts +286 -331
- package/build/src/frontend-models/query.d.ts.map +1 -1
- package/build/src/frontend-models/query.js +61 -61
- package/build/src/frontend-models/resource-config-validation.d.ts +2 -2
- package/build/src/frontend-models/resource-config-validation.d.ts.map +1 -1
- package/build/src/frontend-models/resource-definition.d.ts +30 -33
- package/build/src/frontend-models/resource-definition.d.ts.map +1 -1
- package/build/src/frontend-models/resource-definition.js +10 -10
- package/build/src/frontend-models/transport-deadline.d.ts.map +1 -1
- package/build/src/frontend-models/transport-serialization.d.ts +26 -32
- package/build/src/frontend-models/transport-serialization.d.ts.map +1 -1
- package/build/src/frontend-models/transport-serialization.js +28 -28
- package/build/src/frontend-models/use-created-event.d.ts +4 -4
- package/build/src/frontend-models/use-created-event.d.ts.map +1 -1
- package/build/src/frontend-models/use-destroyed-event.d.ts +8 -29
- package/build/src/frontend-models/use-destroyed-event.d.ts.map +1 -1
- package/build/src/frontend-models/use-model-class-event.d.ts +9 -33
- package/build/src/frontend-models/use-model-class-event.d.ts.map +1 -1
- package/build/src/frontend-models/use-updated-event.d.ts +8 -29
- package/build/src/frontend-models/use-updated-event.d.ts.map +1 -1
- package/build/src/frontend-models/websocket-channel.d.ts +30 -34
- package/build/src/frontend-models/websocket-channel.d.ts.map +1 -1
- package/build/src/frontend-models/websocket-channel.js +5 -5
- package/build/src/frontend-models/websocket-publishers.d.ts +4 -4
- package/build/src/frontend-models/websocket-publishers.d.ts.map +1 -1
- package/build/src/frontend-models/websocket-publishers.js +2 -2
- package/build/src/http-client/header.d.ts +2 -2
- package/build/src/http-client/header.d.ts.map +1 -1
- package/build/src/http-client/index.d.ts +23 -23
- package/build/src/http-client/index.d.ts.map +1 -1
- package/build/src/http-client/request.d.ts +9 -9
- package/build/src/http-client/request.d.ts.map +1 -1
- package/build/src/http-client/request.js +2 -2
- package/build/src/http-client/response.d.ts +12 -12
- package/build/src/http-client/response.d.ts.map +1 -1
- package/build/src/http-client/response.js +2 -2
- package/build/src/http-client/websocket-client.d.ts +20 -4
- package/build/src/http-client/websocket-client.d.ts.map +1 -1
- package/build/src/http-server/client/index.d.ts +26 -26
- package/build/src/http-server/client/index.d.ts.map +1 -1
- package/build/src/http-server/client/index.js +5 -5
- package/build/src/http-server/client/params-to-object.d.ts +11 -11
- package/build/src/http-server/client/params-to-object.d.ts.map +1 -1
- package/build/src/http-server/client/params-to-object.js +17 -17
- package/build/src/http-server/client/request-buffer/form-data-part.d.ts +9 -9
- package/build/src/http-server/client/request-buffer/form-data-part.d.ts.map +1 -1
- package/build/src/http-server/client/request-buffer/header.d.ts +3 -3
- package/build/src/http-server/client/request-buffer/header.d.ts.map +1 -1
- package/build/src/http-server/client/request-buffer/index.d.ts +28 -30
- package/build/src/http-server/client/request-buffer/index.d.ts.map +1 -1
- package/build/src/http-server/client/request-buffer/index.js +5 -3
- package/build/src/http-server/client/request-parser.d.ts +11 -11
- package/build/src/http-server/client/request-parser.d.ts.map +1 -1
- package/build/src/http-server/client/request-parser.js +3 -3
- package/build/src/http-server/client/request-runner.d.ts +11 -11
- package/build/src/http-server/client/request-runner.d.ts.map +1 -1
- package/build/src/http-server/client/request-runner.js +3 -3
- package/build/src/http-server/client/request-timing.d.ts +5 -11
- package/build/src/http-server/client/request-timing.d.ts.map +1 -1
- package/build/src/http-server/client/request.d.ts +10 -10
- package/build/src/http-server/client/request.d.ts.map +1 -1
- package/build/src/http-server/client/request.js +3 -3
- package/build/src/http-server/client/response-compression.d.ts +5 -5
- package/build/src/http-server/client/response-compression.d.ts.map +1 -1
- package/build/src/http-server/client/response.d.ts +13 -13
- package/build/src/http-server/client/response.d.ts.map +1 -1
- package/build/src/http-server/client/uploaded-file/memory-uploaded-file.d.ts +8 -2
- package/build/src/http-server/client/uploaded-file/memory-uploaded-file.d.ts.map +1 -1
- package/build/src/http-server/client/uploaded-file/temporary-uploaded-file.d.ts +8 -2
- package/build/src/http-server/client/uploaded-file/temporary-uploaded-file.d.ts.map +1 -1
- package/build/src/http-server/client/uploaded-file/uploaded-file.d.ts +4 -4
- package/build/src/http-server/client/uploaded-file/uploaded-file.d.ts.map +1 -1
- package/build/src/http-server/client/websocket-request.d.ts +26 -26
- package/build/src/http-server/client/websocket-request.d.ts.map +1 -1
- package/build/src/http-server/client/websocket-request.js +7 -7
- package/build/src/http-server/client/websocket-session.d.ts +105 -108
- package/build/src/http-server/client/websocket-session.d.ts.map +1 -1
- package/build/src/http-server/client/websocket-session.js +29 -29
- package/build/src/http-server/client-delivery-queue.d.ts +30 -30
- package/build/src/http-server/client-delivery-queue.d.ts.map +1 -1
- package/build/src/http-server/cookie.d.ts +80 -108
- package/build/src/http-server/cookie.d.ts.map +1 -1
- package/build/src/http-server/cookie.js +3 -3
- package/build/src/http-server/development-reloader.d.ts +24 -24
- package/build/src/http-server/development-reloader.d.ts.map +1 -1
- package/build/src/http-server/development-reloader.js +2 -2
- package/build/src/http-server/index.d.ts +66 -72
- package/build/src/http-server/index.d.ts.map +1 -1
- package/build/src/http-server/index.js +6 -6
- package/build/src/http-server/remote-address.d.ts.map +1 -1
- package/build/src/http-server/remote-address.js +2 -2
- package/build/src/http-server/server-client.d.ts +9 -9
- package/build/src/http-server/server-client.d.ts.map +1 -1
- package/build/src/http-server/server-lock.d.ts +11 -11
- package/build/src/http-server/server-lock.d.ts.map +1 -1
- package/build/src/http-server/server-lock.js +5 -5
- package/build/src/http-server/websocket-channel-subscribers.d.ts +11 -10
- package/build/src/http-server/websocket-channel-subscribers.d.ts.map +1 -1
- package/build/src/http-server/websocket-channel-subscribers.js +6 -6
- package/build/src/http-server/websocket-channel.d.ts +8 -14
- package/build/src/http-server/websocket-channel.d.ts.map +1 -1
- package/build/src/http-server/websocket-channel.js +2 -2
- package/build/src/http-server/websocket-connection.d.ts +10 -10
- package/build/src/http-server/websocket-connection.d.ts.map +1 -1
- package/build/src/http-server/websocket-connection.js +4 -4
- package/build/src/http-server/websocket-event-log-store.d.ts +58 -64
- package/build/src/http-server/websocket-event-log-store.d.ts.map +1 -1
- package/build/src/http-server/websocket-event-log-store.js +10 -10
- package/build/src/http-server/websocket-events-host.d.ts +17 -16
- package/build/src/http-server/websocket-events-host.d.ts.map +1 -1
- package/build/src/http-server/websocket-events-host.js +8 -8
- package/build/src/http-server/websocket-events.d.ts +9 -9
- package/build/src/http-server/websocket-events.d.ts.map +1 -1
- package/build/src/http-server/websocket-events.js +5 -5
- package/build/src/http-server/worker-handler/channel-subscriber-dispatch.d.ts +2 -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 +2 -2
- package/build/src/http-server/worker-handler/in-process.d.ts +22 -22
- package/build/src/http-server/worker-handler/in-process.d.ts.map +1 -1
- package/build/src/http-server/worker-handler/in-process.js +6 -6
- package/build/src/http-server/worker-handler/index.d.ts +50 -50
- package/build/src/http-server/worker-handler/index.d.ts.map +1 -1
- package/build/src/http-server/worker-handler/index.js +11 -11
- package/build/src/http-server/worker-handler/worker-thread.d.ts +61 -61
- package/build/src/http-server/worker-handler/worker-thread.d.ts.map +1 -1
- package/build/src/http-server/worker-handler/worker-thread.js +9 -9
- package/build/src/initializer.d.ts +2 -2
- package/build/src/initializer.d.ts.map +1 -1
- package/build/src/jobs/mail-delivery.d.ts +7 -2
- package/build/src/jobs/mail-delivery.d.ts.map +1 -1
- package/build/src/jobs/prune-terminal-background-jobs.d.ts +15 -2
- package/build/src/jobs/prune-terminal-background-jobs.d.ts.map +1 -1
- package/build/src/jobs/prune-terminal-background-jobs.js +1 -1
- package/build/src/logger/base-logger.d.ts.map +1 -1
- package/build/src/logger/base-logger.js +2 -2
- package/build/src/logger/console-logger.d.ts +3 -3
- package/build/src/logger/console-logger.d.ts.map +1 -1
- package/build/src/logger/file-logger.d.ts +4 -4
- package/build/src/logger/file-logger.d.ts.map +1 -1
- package/build/src/logger/outputs/array-output.d.ts +9 -12
- package/build/src/logger/outputs/array-output.d.ts.map +1 -1
- package/build/src/logger/outputs/console-output.d.ts +1 -4
- package/build/src/logger/outputs/console-output.d.ts.map +1 -1
- package/build/src/logger/outputs/file-output.d.ts +13 -16
- package/build/src/logger/outputs/file-output.d.ts.map +1 -1
- package/build/src/logger/outputs/stdout-output.d.ts +1 -4
- package/build/src/logger/outputs/stdout-output.d.ts.map +1 -1
- package/build/src/logger.d.ts +30 -29
- package/build/src/logger.d.ts.map +1 -1
- package/build/src/logger.js +13 -13
- package/build/src/mailer/backends/smtp.d.ts +8 -11
- package/build/src/mailer/backends/smtp.d.ts.map +1 -1
- package/build/src/mailer/backends/smtp.js +4 -4
- package/build/src/mailer/base.d.ts +61 -61
- package/build/src/mailer/base.d.ts.map +1 -1
- package/build/src/mailer/base.js +15 -15
- package/build/src/mailer/delivery.d.ts +16 -16
- package/build/src/mailer/delivery.d.ts.map +1 -1
- package/build/src/mailer/delivery.js +4 -4
- package/build/src/mailer/index.d.ts +8 -13
- package/build/src/mailer/index.d.ts.map +1 -1
- package/build/src/mailer/index.js +2 -2
- package/build/src/mailer.d.ts +9 -7
- package/build/src/mailer.d.ts.map +1 -1
- package/build/src/mailer.js +2 -2
- package/build/src/packages/velocious-package.d.ts +5 -5
- package/build/src/packages/velocious-package.d.ts.map +1 -1
- package/build/src/plugins/sqljs-wasm-route-controller.d.ts +1 -1
- package/build/src/plugins/sqljs-wasm-route-controller.d.ts.map +1 -1
- package/build/src/plugins/sqljs-wasm-route-controller.js +2 -2
- package/build/src/plugins/sqljs-wasm-route.d.ts +14 -20
- package/build/src/plugins/sqljs-wasm-route.d.ts.map +1 -1
- package/build/src/plugins/sqljs-wasm-route.js +1 -1
- package/build/src/record-payload-values.d.ts +14 -14
- package/build/src/record-payload-values.d.ts.map +1 -1
- package/build/src/record-payload-values.js +4 -4
- package/build/src/routes/app-routes.d.ts.map +1 -1
- package/build/src/routes/base-route.d.ts +11 -10
- package/build/src/routes/base-route.d.ts.map +1 -1
- package/build/src/routes/base-route.js +6 -6
- package/build/src/routes/basic-route.d.ts +36 -3
- package/build/src/routes/basic-route.d.ts.map +1 -1
- package/build/src/routes/basic-route.js +5 -5
- package/build/src/routes/built-in/api-manifest/controller.d.ts +1 -1
- package/build/src/routes/built-in/api-manifest/controller.d.ts.map +1 -1
- package/build/src/routes/built-in/debug/controller.d.ts +1 -1
- package/build/src/routes/built-in/debug/controller.d.ts.map +1 -1
- package/build/src/routes/built-in/errors/controller.d.ts +1 -1
- package/build/src/routes/built-in/errors/controller.d.ts.map +1 -1
- package/build/src/routes/get-route.d.ts +19 -4
- package/build/src/routes/get-route.d.ts.map +1 -1
- package/build/src/routes/get-route.js +3 -3
- package/build/src/routes/hooks/frontend-model-command-route-hook.d.ts +1 -1
- 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 +2 -2
- package/build/src/routes/index.d.ts +5 -5
- package/build/src/routes/index.d.ts.map +1 -1
- package/build/src/routes/index.js +4 -4
- package/build/src/routes/namespace-route.d.ts +19 -4
- package/build/src/routes/namespace-route.d.ts.map +1 -1
- package/build/src/routes/namespace-route.js +2 -2
- package/build/src/routes/plugin-routes.d.ts +16 -19
- package/build/src/routes/plugin-routes.d.ts.map +1 -1
- package/build/src/routes/plugin-routes.js +2 -2
- package/build/src/routes/post-route.d.ts +19 -4
- package/build/src/routes/post-route.d.ts.map +1 -1
- package/build/src/routes/post-route.js +3 -3
- package/build/src/routes/resolver.d.ts +16 -16
- package/build/src/routes/resolver.d.ts.map +1 -1
- package/build/src/routes/resolver.js +6 -6
- package/build/src/routes/resource-route.d.ts +23 -8
- package/build/src/routes/resource-route.d.ts.map +1 -1
- package/build/src/routes/resource-route.js +2 -2
- package/build/src/routes/root-route.d.ts +1 -1
- package/build/src/routes/root-route.d.ts.map +1 -1
- package/build/src/sync/conflict-strategy.d.ts +50 -35
- package/build/src/sync/conflict-strategy.d.ts.map +1 -1
- package/build/src/sync/conflict-strategy.js +2 -2
- package/build/src/sync/device-identity.d.ts +109 -79
- package/build/src/sync/device-identity.d.ts.map +1 -1
- package/build/src/sync/local-mutation-log.d.ts +115 -92
- package/build/src/sync/local-mutation-log.d.ts.map +1 -1
- package/build/src/sync/offline-grant.d.ts +80 -63
- package/build/src/sync/offline-grant.d.ts.map +1 -1
- package/build/src/sync/peer-mutation-bundle.d.ts +33 -39
- package/build/src/sync/peer-mutation-bundle.d.ts.map +1 -1
- package/build/src/sync/query-scope.d.ts +3 -3
- package/build/src/sync/query-scope.d.ts.map +1 -1
- package/build/src/sync/query-scope.js +8 -8
- package/build/src/sync/server-change-feed.d.ts +129 -129
- package/build/src/sync/server-change-feed.d.ts.map +1 -1
- package/build/src/sync/server-change-feed.js +14 -14
- package/build/src/sync/server-sequence-allocator.d.ts +36 -36
- package/build/src/sync/server-sequence-allocator.d.ts.map +1 -1
- package/build/src/sync/server-sequence-allocator.js +6 -6
- package/build/src/sync/signed-sync-envelope-replay-service.d.ts +60 -48
- package/build/src/sync/signed-sync-envelope-replay-service.d.ts.map +1 -1
- package/build/src/sync/signed-sync-envelope-replay-service.js +21 -21
- package/build/src/sync/stable-json.d.ts +2 -2
- package/build/src/sync/stable-json.d.ts.map +1 -1
- package/build/src/sync/stable-json.js +5 -5
- package/build/src/sync/sync-api-client-types.d.ts +98 -25
- package/build/src/sync/sync-api-client-types.d.ts.map +1 -1
- package/build/src/sync/sync-api-client-types.js +73 -1
- package/build/src/sync/sync-api-client.d.ts +71 -71
- package/build/src/sync/sync-api-client.d.ts.map +1 -1
- package/build/src/sync/sync-api-client.js +30 -30
- package/build/src/sync/sync-api-controller.d.ts +23 -23
- package/build/src/sync/sync-api-controller.d.ts.map +1 -1
- package/build/src/sync/sync-change-fanout.d.ts +32 -38
- package/build/src/sync/sync-change-fanout.d.ts.map +1 -1
- package/build/src/sync/sync-change-fanout.js +7 -7
- package/build/src/sync/sync-channel-name.d.ts +1 -1
- package/build/src/sync/sync-channel-name.d.ts.map +1 -1
- package/build/src/sync/sync-client-registry.d.ts +4 -4
- package/build/src/sync/sync-client-registry.d.ts.map +1 -1
- package/build/src/sync/sync-client-registry.js +4 -4
- package/build/src/sync/sync-client-types.d.ts +130 -82
- package/build/src/sync/sync-client-types.d.ts.map +1 -1
- package/build/src/sync/sync-client-types.js +89 -1
- package/build/src/sync/sync-client.d.ts +76 -76
- package/build/src/sync/sync-client.d.ts.map +1 -1
- package/build/src/sync/sync-client.js +19 -19
- package/build/src/sync/sync-envelope-replay-service.d.ts +266 -298
- package/build/src/sync/sync-envelope-replay-service.d.ts.map +1 -1
- package/build/src/sync/sync-envelope-replay-service.js +77 -77
- package/build/src/sync/sync-model-change-feed-service.d.ts +23 -23
- package/build/src/sync/sync-model-change-feed-service.d.ts.map +1 -1
- package/build/src/sync/sync-model-change-feed-service.js +8 -8
- package/build/src/sync/sync-publish-suppression.d.ts +5 -5
- package/build/src/sync/sync-publish-suppression.d.ts.map +1 -1
- package/build/src/sync/sync-publish-suppression.js +3 -3
- package/build/src/sync/sync-publisher-types.d.ts +98 -55
- package/build/src/sync/sync-publisher-types.d.ts.map +1 -1
- package/build/src/sync/sync-publisher-types.js +75 -1
- package/build/src/sync/sync-publisher.d.ts +43 -43
- package/build/src/sync/sync-publisher.d.ts.map +1 -1
- package/build/src/sync/sync-publisher.js +20 -20
- package/build/src/sync/sync-realtime-bridge.d.ts +23 -23
- package/build/src/sync/sync-realtime-bridge.d.ts.map +1 -1
- package/build/src/sync/sync-realtime-bridge.js +9 -9
- package/build/src/sync/sync-replay-upsert-applier.d.ts +70 -70
- package/build/src/sync/sync-replay-upsert-applier.d.ts.map +1 -1
- package/build/src/sync/sync-replay-upsert-applier.js +17 -17
- package/build/src/sync/sync-resource-base.d.ts +52 -51
- package/build/src/sync/sync-resource-base.d.ts.map +1 -1
- package/build/src/sync/sync-resource-base.js +15 -15
- package/build/src/sync/sync-scope-attributes.d.ts +2 -2
- package/build/src/sync/sync-scope-attributes.d.ts.map +1 -1
- package/build/src/sync/sync-scope-attributes.js +2 -2
- package/build/src/sync/sync-scope-store.d.ts +36 -36
- package/build/src/sync/sync-scope-store.d.ts.map +1 -1
- package/build/src/sync/sync-scope-store.js +6 -6
- package/build/src/sync/sync-websocket-channel.d.ts +11 -6
- package/build/src/sync/sync-websocket-channel.d.ts.map +1 -1
- package/build/src/sync/sync-websocket-channel.js +6 -6
- package/build/src/tenants/default-tenant-database-provisioning.d.ts +4 -4
- package/build/src/tenants/default-tenant-database-provisioning.d.ts.map +1 -1
- package/build/src/tenants/default-tenant-database-provisioning.js +2 -2
- package/build/src/tenants/tenant-aggregator.d.ts +81 -81
- package/build/src/tenants/tenant-aggregator.d.ts.map +1 -1
- package/build/src/tenants/tenant-aggregator.js +13 -13
- package/build/src/tenants/tenant-handle.d.ts +64 -0
- package/build/src/tenants/tenant-handle.d.ts.map +1 -0
- package/build/src/tenants/tenant-handle.js +221 -0
- package/build/src/tenants/tenant-iterator.d.ts +17 -17
- package/build/src/tenants/tenant-iterator.d.ts.map +1 -1
- package/build/src/tenants/tenant-iterator.js +7 -7
- package/build/src/tenants/tenant-model-scope.d.ts +73 -0
- package/build/src/tenants/tenant-model-scope.d.ts.map +1 -0
- package/build/src/tenants/tenant-model-scope.js +115 -0
- package/build/src/tenants/tenant.d.ts +16 -6
- package/build/src/tenants/tenant.d.ts.map +1 -1
- package/build/src/tenants/tenant.js +15 -3
- package/build/src/testing/base-expect.d.ts.map +1 -1
- package/build/src/testing/browser-frontend-model-event-hook-scenarios.d.ts +19 -31
- package/build/src/testing/browser-frontend-model-event-hook-scenarios.d.ts.map +1 -1
- package/build/src/testing/browser-test-app.js +6 -6
- package/build/src/testing/expect-to-change.d.ts +9 -7
- package/build/src/testing/expect-to-change.d.ts.map +1 -1
- package/build/src/testing/expect-to-change.js +2 -2
- package/build/src/testing/expect-utils.d.ts +30 -29
- package/build/src/testing/expect-utils.d.ts.map +1 -1
- package/build/src/testing/expect-utils.js +30 -30
- package/build/src/testing/expect.d.ts +30 -30
- package/build/src/testing/expect.d.ts.map +1 -1
- package/build/src/testing/expect.js +19 -19
- package/build/src/testing/factory/association-declaration.d.ts +16 -16
- package/build/src/testing/factory/association-declaration.d.ts.map +1 -1
- package/build/src/testing/factory/association-declaration.js +3 -3
- package/build/src/testing/factory/declarations.d.ts +90 -115
- package/build/src/testing/factory/declarations.d.ts.map +1 -1
- package/build/src/testing/factory/declarations.js +6 -6
- package/build/src/testing/factory/definition-builder.d.ts +72 -70
- package/build/src/testing/factory/definition-builder.d.ts.map +1 -1
- package/build/src/testing/factory/definition-builder.js +40 -40
- package/build/src/testing/factory/errors.d.ts +30 -29
- package/build/src/testing/factory/errors.d.ts.map +1 -1
- package/build/src/testing/factory/evaluation-context.d.ts +29 -29
- package/build/src/testing/factory/evaluation-context.d.ts.map +1 -1
- package/build/src/testing/factory/evaluation-context.js +17 -17
- package/build/src/testing/factory/events.d.ts +4 -5
- package/build/src/testing/factory/events.d.ts.map +1 -1
- package/build/src/testing/factory/factory-definition.d.ts +14 -14
- package/build/src/testing/factory/factory-definition.d.ts.map +1 -1
- package/build/src/testing/factory/factory-definition.js +3 -3
- package/build/src/testing/factory/factory-registry.d.ts +56 -54
- package/build/src/testing/factory/factory-registry.d.ts.map +1 -1
- package/build/src/testing/factory/factory-registry.js +35 -35
- package/build/src/testing/factory/factory-runner.d.ts +67 -73
- package/build/src/testing/factory/factory-runner.d.ts.map +1 -1
- package/build/src/testing/factory/factory-runner.js +9 -9
- package/build/src/testing/factory/index.d.ts +7 -7
- package/build/src/testing/factory/index.d.ts.map +1 -1
- package/build/src/testing/factory/linter.d.ts +7 -7
- package/build/src/testing/factory/linter.d.ts.map +1 -1
- package/build/src/testing/factory/linter.js +3 -3
- package/build/src/testing/factory/model-contract.d.ts +3 -3
- package/build/src/testing/factory/model-contract.d.ts.map +1 -1
- package/build/src/testing/factory/model-contract.js +4 -4
- package/build/src/testing/factory/node/load-definitions.d.ts +2 -2
- package/build/src/testing/factory/node/load-definitions.d.ts.map +1 -1
- package/build/src/testing/factory/sequence.d.ts +19 -23
- package/build/src/testing/factory/sequence.d.ts.map +1 -1
- package/build/src/testing/factory/sequence.js +3 -3
- package/build/src/testing/factory/strategies/attributes-for.d.ts +3 -3
- package/build/src/testing/factory/strategies/attributes-for.d.ts.map +1 -1
- package/build/src/testing/factory/strategies/attributes-for.js +2 -2
- package/build/src/testing/factory/strategies/base.d.ts +32 -32
- package/build/src/testing/factory/strategies/base.d.ts.map +1 -1
- package/build/src/testing/factory/strategies/base.js +25 -25
- package/build/src/testing/factory/strategies/build.d.ts +3 -3
- package/build/src/testing/factory/strategies/build.d.ts.map +1 -1
- package/build/src/testing/factory/strategies/build.js +3 -3
- package/build/src/testing/factory/strategies/create.d.ts +6 -6
- package/build/src/testing/factory/strategies/create.d.ts.map +1 -1
- package/build/src/testing/factory/strategies/create.js +5 -5
- package/build/src/testing/factory/trait-definition.d.ts +4 -4
- package/build/src/testing/factory/trait-definition.d.ts.map +1 -1
- package/build/src/testing/request-client.d.ts +19 -19
- package/build/src/testing/request-client.d.ts.map +1 -1
- package/build/src/testing/test-files-finder.d.ts +15 -15
- package/build/src/testing/test-files-finder.d.ts.map +1 -1
- package/build/src/testing/test-files-finder.js +2 -2
- package/build/src/testing/test-filter-parser.d.ts +19 -12
- package/build/src/testing/test-filter-parser.d.ts.map +1 -1
- package/build/src/testing/test-runner.d.ts +204 -251
- package/build/src/testing/test-runner.d.ts.map +1 -1
- package/build/src/testing/test-runner.js +15 -15
- package/build/src/testing/test-suite-splitter.d.ts +25 -31
- package/build/src/testing/test-suite-splitter.d.ts.map +1 -1
- package/build/src/testing/test.d.ts +51 -55
- package/build/src/testing/test.d.ts.map +1 -1
- package/build/src/testing/test.js +20 -18
- package/build/src/testing/wait-for-event.d.ts +25 -25
- package/build/src/testing/wait-for-event.d.ts.map +1 -1
- package/build/src/testing/wait-for-event.js +6 -6
- package/build/src/time-zone.d.ts +3 -3
- package/build/src/time-zone.d.ts.map +1 -1
- package/build/src/utils/backtrace-cleaner-node.d.ts +35 -2
- package/build/src/utils/backtrace-cleaner-node.d.ts.map +1 -1
- package/build/src/utils/backtrace-cleaner-node.js +1 -1
- package/build/src/utils/backtrace-cleaner.d.ts +33 -28
- package/build/src/utils/backtrace-cleaner.d.ts.map +1 -1
- package/build/src/utils/bearer-token.d.ts +2 -2
- package/build/src/utils/bearer-token.d.ts.map +1 -1
- package/build/src/utils/deburr-column-name.d.ts.map +1 -1
- package/build/src/utils/event-emitter.d.ts +1 -1
- 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.map +1 -1
- package/build/src/utils/format-value.d.ts +9 -8
- package/build/src/utils/format-value.d.ts.map +1 -1
- package/build/src/utils/format-value.js +7 -7
- package/build/src/utils/is-date.d.ts +2 -2
- package/build/src/utils/is-date.d.ts.map +1 -1
- package/build/src/utils/is-date.js +2 -2
- package/build/src/utils/model-scope.d.ts +29 -24
- package/build/src/utils/model-scope.d.ts.map +1 -1
- package/build/src/utils/model-scope.js +11 -11
- package/build/src/utils/mount-prefix.d.ts +2 -2
- package/build/src/utils/mount-prefix.d.ts.map +1 -1
- package/build/src/utils/nest-callbacks.d.ts.map +1 -1
- package/build/src/utils/plain-object.d.ts +3 -3
- package/build/src/utils/plain-object.d.ts.map +1 -1
- package/build/src/utils/plain-object.js +3 -3
- package/build/src/utils/ransack.d.ts +69 -90
- package/build/src/utils/ransack.d.ts.map +1 -1
- package/build/src/utils/ransack.js +36 -36
- package/build/src/utils/rest-args-error.d.ts.map +1 -1
- package/build/src/utils/sha256-hex.d.ts.map +1 -1
- package/build/src/utils/shutdown-lifecycle.d.ts +1 -1
- package/build/src/utils/shutdown-lifecycle.d.ts.map +1 -1
- package/build/src/utils/singularize-model-name.d.ts.map +1 -1
- package/build/src/utils/split-sql-statements.d.ts.map +1 -1
- package/build/src/utils/to-import-specifier.d.ts.map +1 -1
- package/build/src/utils/with-tracked-stack-async-hooks.d.ts +6 -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 +9 -9
- package/build/src/utils/with-tracked-stack.d.ts +6 -5
- package/build/src/utils/with-tracked-stack.d.ts.map +1 -1
- package/build/src/utils/with-tracked-stack.js +7 -7
- package/build/src/velocious-error.d.ts +27 -17
- package/build/src/velocious-error.d.ts.map +1 -1
- package/build/src/velocious-error.js +10 -4
- package/build/sync/conflict-strategy.js +1 -1
- package/build/sync/query-scope.js +7 -7
- package/build/sync/server-change-feed.js +13 -13
- package/build/sync/server-sequence-allocator.js +5 -5
- package/build/sync/signed-sync-envelope-replay-service.js +20 -20
- package/build/sync/stable-json.js +4 -4
- package/build/sync/sync-api-client-types.js +7 -7
- package/build/sync/sync-api-client.js +26 -26
- package/build/sync/sync-change-fanout.js +6 -6
- package/build/sync/sync-client-registry.js +3 -3
- package/build/sync/sync-client-types.js +10 -10
- package/build/sync/sync-client.js +18 -18
- package/build/sync/sync-envelope-replay-service.js +76 -76
- package/build/sync/sync-model-change-feed-service.js +7 -7
- package/build/sync/sync-publish-suppression.js +2 -2
- package/build/sync/sync-publisher-types.js +11 -11
- package/build/sync/sync-publisher.js +19 -19
- package/build/sync/sync-realtime-bridge.js +8 -8
- package/build/sync/sync-replay-upsert-applier.js +16 -16
- package/build/sync/sync-resource-base.js +14 -14
- package/build/sync/sync-scope-attributes.js +1 -1
- package/build/sync/sync-scope-store.js +5 -5
- package/build/sync/sync-websocket-channel.js +5 -5
- package/build/tenants/default-tenant-database-provisioning.js +1 -1
- package/build/tenants/tenant-aggregator.js +13 -13
- package/build/tenants/tenant-handle.js +252 -0
- package/build/tenants/tenant-iterator.js +6 -6
- package/build/tenants/tenant-model-scope.js +132 -0
- package/build/tenants/tenant.js +15 -2
- package/build/testing/browser-test-app.js +2 -2
- package/build/testing/expect-to-change.js +1 -1
- package/build/testing/expect-utils.js +29 -29
- package/build/testing/expect.js +18 -18
- package/build/testing/factory/association-declaration.js +2 -2
- package/build/testing/factory/declarations.js +5 -5
- package/build/testing/factory/definition-builder.js +39 -39
- package/build/testing/factory/evaluation-context.js +16 -16
- package/build/testing/factory/factory-definition.js +2 -2
- package/build/testing/factory/factory-registry.js +34 -34
- package/build/testing/factory/factory-runner.js +8 -8
- package/build/testing/factory/linter.js +2 -2
- package/build/testing/factory/model-contract.js +3 -3
- package/build/testing/factory/sequence.js +2 -2
- package/build/testing/factory/strategies/attributes-for.js +1 -1
- package/build/testing/factory/strategies/base.js +24 -24
- package/build/testing/factory/strategies/build.js +2 -2
- package/build/testing/factory/strategies/create.js +4 -4
- package/build/testing/test-files-finder.js +1 -1
- package/build/testing/test-runner.js +14 -14
- package/build/testing/test.js +19 -17
- package/build/testing/wait-for-event.js +5 -5
- package/build/tsconfig.tsbuildinfo +1 -1
- package/build/utils/event-emitter.js +1 -1
- package/build/utils/format-value.js +6 -6
- package/build/utils/is-date.js +1 -1
- package/build/utils/model-scope.js +10 -10
- package/build/utils/plain-object.js +2 -2
- package/build/utils/ransack.js +35 -35
- package/build/utils/with-tracked-stack-async-hooks.js +8 -8
- package/build/utils/with-tracked-stack.js +6 -6
- package/build/velocious-error.js +9 -3
- package/package.json +3 -3
- package/src/application.js +3 -3
- package/src/authorization/ability.js +6 -6
- package/src/authorization/base-resource.js +1 -1
- package/src/background-jobs/client.js +2 -2
- package/src/background-jobs/forked-runner-child.js +4 -4
- package/src/background-jobs/job-runner.js +2 -2
- package/src/background-jobs/job.js +6 -6
- package/src/background-jobs/json-socket.js +1 -1
- package/src/background-jobs/main.js +13 -13
- package/src/background-jobs/normalize-error.js +2 -2
- package/src/background-jobs/pooled-runner-child.js +3 -3
- package/src/background-jobs/scheduler.js +1 -1
- package/src/background-jobs/status-reporter.js +2 -2
- package/src/background-jobs/store.js +23 -23
- package/src/background-jobs/types.js +6 -6
- package/src/background-jobs/web/controller.js +6 -6
- package/src/background-jobs/web/counts-channel.js +1 -1
- package/src/background-jobs/worker.js +8 -8
- package/src/beacon/client.js +3 -3
- package/src/beacon/in-process-client.js +3 -3
- package/src/beacon/types.js +1 -1
- package/src/cli/base-command.js +1 -1
- package/src/cli/commands/console.js +1 -1
- package/src/cli/commands/db/schema/dump.js +1 -1
- package/src/cli/commands/db/schema/load.js +1 -1
- package/src/cli/commands/db/seed.js +1 -1
- package/src/cli/commands/generate/frontend-models.js +1 -1
- package/src/cli/commands/lint/relationships.js +1 -1
- package/src/cli/commands/run-script.js +1 -1
- package/src/cli/commands/runner.js +1 -1
- package/src/cli/index.js +2 -2
- package/src/cli/tenant-database-command-helper.js +2 -2
- package/src/configuration-types.js +48 -47
- package/src/configuration.js +150 -65
- package/src/controller.js +11 -8
- package/src/current.js +2 -2
- package/src/database/annotations-async-hooks.js +3 -3
- package/src/database/annotations.js +1 -1
- package/src/database/drivers/base-column.js +1 -1
- package/src/database/drivers/base-foreign-key.js +1 -1
- package/src/database/drivers/base-table.js +1 -1
- package/src/database/drivers/base.js +18 -18
- package/src/database/drivers/mssql/column.js +1 -1
- package/src/database/drivers/mssql/index.js +2 -2
- package/src/database/drivers/mssql/options.js +1 -1
- package/src/database/drivers/mssql/structure-sql.js +1 -1
- package/src/database/drivers/mssql/table.js +1 -1
- package/src/database/drivers/mysql/column.js +1 -1
- package/src/database/drivers/mysql/index.js +4 -4
- package/src/database/drivers/mysql/options.js +1 -1
- package/src/database/drivers/mysql/query.js +7 -7
- package/src/database/drivers/mysql/structure-sql.js +71 -10
- package/src/database/drivers/pgsql/column.js +1 -1
- package/src/database/drivers/pgsql/index.js +6 -6
- package/src/database/drivers/pgsql/structure-sql.js +1 -1
- package/src/database/drivers/sqlite/base.js +7 -7
- package/src/database/drivers/sqlite/column.js +1 -1
- package/src/database/drivers/sqlite/connection-sql-js.js +1 -1
- package/src/database/drivers/sqlite/foreign-key.js +1 -1
- package/src/database/drivers/sqlite/index.js +1 -1
- package/src/database/drivers/sqlite/index.native.js +2 -2
- package/src/database/drivers/sqlite/index.web.js +2 -2
- package/src/database/drivers/sqlite/query.js +2 -2
- package/src/database/drivers/sqlite/query.native.js +2 -2
- package/src/database/drivers/sqlite/query.web.js +2 -2
- package/src/database/drivers/sqlite/table-rebuilder.js +1 -1
- package/src/database/migration/index.js +2 -2
- package/src/database/migrator/types.js +2 -2
- package/src/database/operation.js +59 -6
- package/src/database/pool/async-tracked-multi-connection.js +75 -24
- package/src/database/pool/base-methods-forward.js +2 -2
- package/src/database/pool/base.js +48 -17
- package/src/database/pool/single-multi-use.js +501 -103
- package/src/database/query/delete-base.js +1 -1
- package/src/database/query/index.js +3 -3
- package/src/database/query/insert-base.js +4 -4
- package/src/database/query/model-class-query.js +39 -39
- package/src/database/query/preloader/belongs-to.js +2 -2
- package/src/database/query/preloader/ensure-model-class-initialized.js +3 -2
- package/src/database/query/preloader/has-many.js +3 -3
- package/src/database/query/preloader/has-one.js +1 -1
- package/src/database/query/preloader.js +9 -2
- package/src/database/query/query-data.js +7 -7
- package/src/database/query/update-base.js +3 -3
- package/src/database/query/upsert-base.js +2 -2
- package/src/database/query/where-model-class-hash.js +13 -13
- package/src/database/query/with-count.js +12 -12
- package/src/database/query-parser/options.js +2 -2
- package/src/database/query-parser/select-parser.js +1 -1
- package/src/database/record/acts-as-list.js +2 -2
- package/src/database/record/attachments/handle.js +6 -6
- package/src/database/record/attachments/normalize-input.js +11 -11
- package/src/database/record/attachments/storage-drivers/filesystem.js +1 -1
- package/src/database/record/attachments/storage-drivers/native.js +5 -5
- package/src/database/record/attachments/storage-drivers/s3.js +10 -10
- package/src/database/record/attachments/store.js +24 -20
- package/src/database/record/auditing.js +123 -29
- package/src/database/record/counter-cache-magnitude.js +11 -11
- package/src/database/record/index.js +227 -174
- package/src/database/record/instance-relationships/base.js +4 -4
- package/src/database/record/instance-relationships/belongs-to.js +1 -1
- package/src/database/record/instance-relationships/has-many.js +3 -3
- package/src/database/record/instance-relationships/has-one.js +1 -1
- package/src/database/record/record-not-found-error.js +1 -0
- package/src/database/record/relationships/base.js +22 -0
- package/src/database/record/state-machine.js +6 -6
- package/src/database/record/validators/base.js +1 -1
- package/src/database/structure-sql-loader.js +3 -3
- package/src/database/table-data/table-column.js +3 -3
- package/src/database/use-live-query.js +3 -3
- package/src/environment-handlers/base.js +56 -37
- package/src/environment-handlers/browser.js +1 -1
- package/src/environment-handlers/node/cli/commands/console.js +4 -4
- package/src/environment-handlers/node/cli/commands/db/seed.js +2 -2
- package/src/environment-handlers/node/cli/commands/generate/base-models.js +1 -1
- package/src/environment-handlers/node/cli/commands/run-script.js +2 -2
- package/src/environment-handlers/node/cli/commands/runner.js +2 -2
- package/src/environment-handlers/node/cli/commands/server.js +1 -1
- package/src/environment-handlers/node.js +36 -36
- package/src/error-logger.js +2 -2
- package/src/error-reporting/request-details.js +32 -32
- package/src/frontend-model-controller.js +215 -213
- package/src/frontend-model-resource/base-resource.js +44 -44
- package/src/frontend-model-resource/velocious-attachment-resource.js +1 -1
- package/src/frontend-models/base.js +146 -142
- package/src/frontend-models/clear-pending-debounced-callback.js +2 -2
- package/src/frontend-models/model-registry.js +4 -4
- package/src/frontend-models/outgoing-event-buffer.js +1 -1
- package/src/frontend-models/preloader.js +1 -1
- package/src/frontend-models/query.js +60 -60
- package/src/frontend-models/resource-definition.js +9 -9
- package/src/frontend-models/transport-serialization.js +27 -27
- package/src/frontend-models/websocket-channel.js +4 -4
- package/src/frontend-models/websocket-publishers.js +1 -1
- package/src/http-client/request.js +1 -1
- package/src/http-client/response.js +1 -1
- package/src/http-server/client/index.js +4 -4
- package/src/http-server/client/params-to-object.js +16 -16
- package/src/http-server/client/request-buffer/index.js +5 -2
- package/src/http-server/client/request-parser.js +2 -2
- package/src/http-server/client/request-runner.js +2 -2
- package/src/http-server/client/request.js +2 -2
- package/src/http-server/client/websocket-request.js +6 -6
- package/src/http-server/client/websocket-session.js +28 -28
- package/src/http-server/cookie.js +2 -2
- package/src/http-server/development-reloader.js +1 -1
- package/src/http-server/index.js +5 -5
- package/src/http-server/remote-address.js +1 -1
- package/src/http-server/server-lock.js +4 -4
- package/src/http-server/websocket-channel-subscribers.js +4 -4
- package/src/http-server/websocket-channel.js +1 -1
- package/src/http-server/websocket-connection.js +3 -3
- package/src/http-server/websocket-event-log-store.js +9 -9
- package/src/http-server/websocket-events-host.js +7 -7
- package/src/http-server/websocket-events.js +4 -4
- package/src/http-server/worker-handler/channel-subscriber-dispatch.js +1 -1
- package/src/http-server/worker-handler/in-process.js +5 -5
- package/src/http-server/worker-handler/index.js +10 -10
- package/src/http-server/worker-handler/worker-thread.js +8 -8
- package/src/logger/base-logger.js +1 -1
- package/src/logger.js +12 -12
- package/src/mailer/backends/smtp.js +3 -3
- package/src/mailer/base.js +14 -14
- package/src/mailer/delivery.js +3 -3
- package/src/mailer/index.js +1 -1
- package/src/mailer.js +1 -1
- package/src/plugins/sqljs-wasm-route-controller.js +1 -1
- package/src/record-payload-values.js +3 -3
- package/src/routes/base-route.js +5 -5
- package/src/routes/basic-route.js +4 -4
- package/src/routes/get-route.js +2 -2
- package/src/routes/hooks/frontend-model-command-route-hook.js +1 -1
- package/src/routes/index.js +3 -3
- package/src/routes/namespace-route.js +1 -1
- package/src/routes/plugin-routes.js +1 -1
- package/src/routes/post-route.js +2 -2
- package/src/routes/resolver.js +5 -5
- package/src/routes/resource-route.js +1 -1
- package/src/sync/conflict-strategy.js +1 -1
- package/src/sync/query-scope.js +7 -7
- package/src/sync/server-change-feed.js +13 -13
- package/src/sync/server-sequence-allocator.js +5 -5
- package/src/sync/signed-sync-envelope-replay-service.js +20 -20
- package/src/sync/stable-json.js +4 -4
- package/src/sync/sync-api-client-types.js +7 -7
- package/src/sync/sync-api-client.js +26 -26
- package/src/sync/sync-change-fanout.js +6 -6
- package/src/sync/sync-client-registry.js +3 -3
- package/src/sync/sync-client-types.js +10 -10
- package/src/sync/sync-client.js +18 -18
- package/src/sync/sync-envelope-replay-service.js +76 -76
- package/src/sync/sync-model-change-feed-service.js +7 -7
- package/src/sync/sync-publish-suppression.js +2 -2
- package/src/sync/sync-publisher-types.js +11 -11
- package/src/sync/sync-publisher.js +19 -19
- package/src/sync/sync-realtime-bridge.js +8 -8
- package/src/sync/sync-replay-upsert-applier.js +16 -16
- package/src/sync/sync-resource-base.js +14 -14
- package/src/sync/sync-scope-attributes.js +1 -1
- package/src/sync/sync-scope-store.js +5 -5
- package/src/sync/sync-websocket-channel.js +5 -5
- package/src/tenants/default-tenant-database-provisioning.js +1 -1
- package/src/tenants/tenant-aggregator.js +13 -13
- package/src/tenants/tenant-handle.js +252 -0
- package/src/tenants/tenant-iterator.js +6 -6
- package/src/tenants/tenant-model-scope.js +132 -0
- package/src/tenants/tenant.js +15 -2
- package/src/testing/browser-test-app.js +2 -2
- package/src/testing/expect-to-change.js +1 -1
- package/src/testing/expect-utils.js +29 -29
- package/src/testing/expect.js +18 -18
- package/src/testing/factory/association-declaration.js +2 -2
- package/src/testing/factory/declarations.js +5 -5
- package/src/testing/factory/definition-builder.js +39 -39
- package/src/testing/factory/evaluation-context.js +16 -16
- package/src/testing/factory/factory-definition.js +2 -2
- package/src/testing/factory/factory-registry.js +34 -34
- package/src/testing/factory/factory-runner.js +8 -8
- package/src/testing/factory/linter.js +2 -2
- package/src/testing/factory/model-contract.js +3 -3
- package/src/testing/factory/sequence.js +2 -2
- package/src/testing/factory/strategies/attributes-for.js +1 -1
- package/src/testing/factory/strategies/base.js +24 -24
- package/src/testing/factory/strategies/build.js +2 -2
- package/src/testing/factory/strategies/create.js +4 -4
- package/src/testing/test-files-finder.js +1 -1
- package/src/testing/test-runner.js +14 -14
- package/src/testing/test.js +19 -17
- package/src/testing/wait-for-event.js +5 -5
- package/src/utils/event-emitter.js +1 -1
- package/src/utils/format-value.js +6 -6
- package/src/utils/is-date.js +1 -1
- package/src/utils/model-scope.js +10 -10
- package/src/utils/plain-object.js +2 -2
- package/src/utils/ransack.js +35 -35
- package/src/utils/with-tracked-stack-async-hooks.js +8 -8
- package/src/utils/with-tracked-stack.js +6 -6
- package/src/velocious-error.js +9 -3
|
@@ -1,3 +1,234 @@
|
|
|
1
|
+
import AuthorizationBaseResource from "../authorization/base-resource.js";
|
|
2
|
+
export type FrontendModelResourceAction = "index" | "find" | "create" | "update" | "destroy" | "attach" | "attachmentList" | "download" | "url";
|
|
3
|
+
export type FrontendModelResourceController = import("../controller.js").default & {
|
|
4
|
+
currentAbility: () => import("../authorization/ability.js").default | undefined;
|
|
5
|
+
applyFrontendModelPagination: (args: {
|
|
6
|
+
pagination: FrontendModelResourcePagination;
|
|
7
|
+
query: import("../database/query/model-class-query.js").default<typeof import("../database/record/index.js").default>;
|
|
8
|
+
}) => void;
|
|
9
|
+
applyFrontendModelSearch: (args: {
|
|
10
|
+
query: import("../database/query/model-class-query.js").default<typeof import("../database/record/index.js").default>;
|
|
11
|
+
search: FrontendModelResourceSearch;
|
|
12
|
+
}) => void;
|
|
13
|
+
applyFrontendModelSort: (args: {
|
|
14
|
+
query: import("../database/query/model-class-query.js").default<typeof import("../database/record/index.js").default>;
|
|
15
|
+
sort: FrontendModelResourceSort;
|
|
16
|
+
}) => void;
|
|
17
|
+
frontendModelAbilityAction: (action: FrontendModelResourceAction) => string;
|
|
18
|
+
frontendModelAbilityAuthorizedQuery: (action: FrontendModelResourceAction) => import("../database/query/model-class-query.js").default<typeof import("../database/record/index.js").default>;
|
|
19
|
+
frontendModelAuthorizedQuery: (action: FrontendModelResourceAction) => import("../database/query/model-class-query.js").default<typeof import("../database/record/index.js").default>;
|
|
20
|
+
frontendModelIndexQuery: (options?: FrontendModelResourceIndexQueryOptions & {
|
|
21
|
+
resource?: FrontendModelBaseResource;
|
|
22
|
+
}) => import("../database/query/model-class-query.js").default<typeof import("../database/record/index.js").default>;
|
|
23
|
+
frontendModelParams: () => import("../configuration-types.js").VelociousParams;
|
|
24
|
+
frontendModelPreload: () => import("../database/query/index.js").NestedPreloadRecord | null;
|
|
25
|
+
frontendModelResourceConfigurationForModelClass: (modelClass: typeof import("../database/record/index.js").default) => FrontendModelResolvedResourceConfiguration | null;
|
|
26
|
+
serializeFrontendModel: (model: import("../database/record/index.js").default) => Promise<Record<string, object | string | number | boolean | null>>;
|
|
27
|
+
};
|
|
28
|
+
export type FrontendModelResourceAnyQuery = import("../database/query/model-class-query.js").default<typeof import("../database/record/index.js").default>;
|
|
29
|
+
export type FrontendModelResourceIndexQueryOptions = {
|
|
30
|
+
/**
|
|
31
|
+
* - Whether frontend-model pagination params should be applied.
|
|
32
|
+
*/
|
|
33
|
+
includePagination?: boolean;
|
|
34
|
+
/**
|
|
35
|
+
* - Whether frontend-model sort params should be applied.
|
|
36
|
+
*/
|
|
37
|
+
includeSort?: boolean;
|
|
38
|
+
};
|
|
39
|
+
export type FrontendModelResourcePagination = {
|
|
40
|
+
/**
|
|
41
|
+
* - Maximum number of records.
|
|
42
|
+
*/
|
|
43
|
+
limit: number | null;
|
|
44
|
+
/**
|
|
45
|
+
* - Number of records to skip.
|
|
46
|
+
*/
|
|
47
|
+
offset: number | null;
|
|
48
|
+
/**
|
|
49
|
+
* - 1-based page number.
|
|
50
|
+
*/
|
|
51
|
+
page: number | null;
|
|
52
|
+
/**
|
|
53
|
+
* - Page size.
|
|
54
|
+
*/
|
|
55
|
+
perPage: number | null;
|
|
56
|
+
};
|
|
57
|
+
export type FrontendModelResourceSearch = {
|
|
58
|
+
/**
|
|
59
|
+
* - Column or attribute name.
|
|
60
|
+
*/
|
|
61
|
+
column: string;
|
|
62
|
+
/**
|
|
63
|
+
* - Search operator.
|
|
64
|
+
*/
|
|
65
|
+
operator: "eq" | "like" | "notEq" | "gt" | "gteq" | "lt" | "lteq";
|
|
66
|
+
/**
|
|
67
|
+
* - Relationship path.
|
|
68
|
+
*/
|
|
69
|
+
path: string[];
|
|
70
|
+
/**
|
|
71
|
+
* - Search value.
|
|
72
|
+
*/
|
|
73
|
+
value: ReturnType<typeof JSON.parse>;
|
|
74
|
+
};
|
|
75
|
+
export type FrontendModelResourceSort = {
|
|
76
|
+
/**
|
|
77
|
+
* - Attribute name to sort by.
|
|
78
|
+
*/
|
|
79
|
+
column: string;
|
|
80
|
+
/**
|
|
81
|
+
* - Sort direction.
|
|
82
|
+
*/
|
|
83
|
+
direction: "asc" | "desc";
|
|
84
|
+
/**
|
|
85
|
+
* - Relationship path from root model.
|
|
86
|
+
*/
|
|
87
|
+
path: string[];
|
|
88
|
+
};
|
|
89
|
+
export type FrontendModelResourceControllerArgs = {
|
|
90
|
+
/**
|
|
91
|
+
* - Frontend-model controller instance.
|
|
92
|
+
*/
|
|
93
|
+
controller: FrontendModelResourceController;
|
|
94
|
+
/**
|
|
95
|
+
* - Backing model class.
|
|
96
|
+
*/
|
|
97
|
+
modelClass: typeof import("../database/record/index.js").default;
|
|
98
|
+
/**
|
|
99
|
+
* - Model name.
|
|
100
|
+
*/
|
|
101
|
+
modelName: string;
|
|
102
|
+
/**
|
|
103
|
+
* - Request params.
|
|
104
|
+
*/
|
|
105
|
+
params: import("../configuration-types.js").VelociousParams;
|
|
106
|
+
/**
|
|
107
|
+
* - Normalized resource configuration (or raw input shape during early bootstrap).
|
|
108
|
+
*/
|
|
109
|
+
resourceConfiguration: import("../configuration-types.js").NormalizedFrontendModelResourceConfiguration | import("../configuration-types.js").FrontendModelResourceConfiguration;
|
|
110
|
+
};
|
|
111
|
+
export type FrontendModelResourceAbilityArgs = {
|
|
112
|
+
/**
|
|
113
|
+
* - Ability instance when the resource is used directly for authorization.
|
|
114
|
+
*/
|
|
115
|
+
ability?: import("../authorization/ability.js").default;
|
|
116
|
+
/**
|
|
117
|
+
* - Ability context.
|
|
118
|
+
*/
|
|
119
|
+
context?: import("../configuration-types.js").VelociousLooseObject;
|
|
120
|
+
/**
|
|
121
|
+
* - Ability locals.
|
|
122
|
+
*/
|
|
123
|
+
locals?: import("../configuration-types.js").VelociousLooseObject;
|
|
124
|
+
/**
|
|
125
|
+
* - Optional backing model class override.
|
|
126
|
+
*/
|
|
127
|
+
modelClass?: typeof import("../database/record/index.js").default;
|
|
128
|
+
/**
|
|
129
|
+
* - Optional model name override.
|
|
130
|
+
*/
|
|
131
|
+
modelName?: string;
|
|
132
|
+
/**
|
|
133
|
+
* - Optional params override.
|
|
134
|
+
*/
|
|
135
|
+
params?: import("../configuration-types.js").VelociousParams;
|
|
136
|
+
/**
|
|
137
|
+
* - Optional normalized resource configuration.
|
|
138
|
+
*/
|
|
139
|
+
resourceConfiguration?: import("../configuration-types.js").NormalizedFrontendModelResourceConfiguration | import("../configuration-types.js").FrontendModelResourceConfiguration;
|
|
140
|
+
};
|
|
141
|
+
export type FrontendModelSyncMutation = import("../sync/sync-envelope-replay-service.js").SyncReplayMutation;
|
|
142
|
+
export type FrontendModelSyncAuthorization = {
|
|
143
|
+
/**
|
|
144
|
+
* - Whether the mutation may be applied.
|
|
145
|
+
*/
|
|
146
|
+
allowed: boolean;
|
|
147
|
+
/**
|
|
148
|
+
* - Stable failure reason code when denied.
|
|
149
|
+
*/
|
|
150
|
+
reason?: string;
|
|
151
|
+
};
|
|
152
|
+
export type FrontendModelApplySyncArgs = {
|
|
153
|
+
/**
|
|
154
|
+
* - Replay context.
|
|
155
|
+
*/
|
|
156
|
+
context: Record<string, ReturnType<typeof JSON.parse>>;
|
|
157
|
+
/**
|
|
158
|
+
* - Existing sync row or null.
|
|
159
|
+
*/
|
|
160
|
+
existingSync: import("../database/record/index.js").default | null;
|
|
161
|
+
/**
|
|
162
|
+
* - Normalized replay mutation.
|
|
163
|
+
*/
|
|
164
|
+
mutation: FrontendModelSyncMutation;
|
|
165
|
+
};
|
|
166
|
+
export type FrontendModelSyncApplyResult = {
|
|
167
|
+
/**
|
|
168
|
+
* - Whether a record was created.
|
|
169
|
+
*/
|
|
170
|
+
created: boolean;
|
|
171
|
+
/**
|
|
172
|
+
* - Whether a record was deleted.
|
|
173
|
+
*/
|
|
174
|
+
deleted?: boolean;
|
|
175
|
+
/**
|
|
176
|
+
* - Applied record or null.
|
|
177
|
+
*/
|
|
178
|
+
record: import("../database/record/index.js").default | null;
|
|
179
|
+
};
|
|
180
|
+
export type FrontendModelResolvedResourceConfiguration = {
|
|
181
|
+
/**
|
|
182
|
+
* - Backend project owning the resource.
|
|
183
|
+
*/
|
|
184
|
+
backendProject: import("../configuration-types.js").BackendProjectConfiguration;
|
|
185
|
+
/**
|
|
186
|
+
* - Frontend model name.
|
|
187
|
+
*/
|
|
188
|
+
modelName: string;
|
|
189
|
+
/**
|
|
190
|
+
* - Resource class.
|
|
191
|
+
*/
|
|
192
|
+
resourceClass: import("../configuration-types.js").FrontendModelResourceClassType;
|
|
193
|
+
/**
|
|
194
|
+
* - Normalized resource configuration.
|
|
195
|
+
*/
|
|
196
|
+
resourceConfiguration: import("../configuration-types.js").NormalizedFrontendModelResourceConfiguration;
|
|
197
|
+
};
|
|
198
|
+
export type FrontendModelResourcePayloadValue = import("../frontend-models/base.js").FrontendModelTransportValue | import("../database/record/index.js").default | Record<string, unknown> | Array<unknown>;
|
|
199
|
+
export type FrontendModelResourceAttributePayload = Record<string, FrontendModelResourcePayloadValue>;
|
|
200
|
+
export type FrontendModelResourceVirtualSetter = (arg1: import("../database/record/index.js").default, arg2: FrontendModelResourcePayloadValue) => (void | Promise<void>);
|
|
201
|
+
export type WritableAttributeReceiverClass = {
|
|
202
|
+
/**
|
|
203
|
+
* - Resolves aliases to canonical attribute names.
|
|
204
|
+
*/
|
|
205
|
+
resolveAttributeName: (arg: string) => string | null;
|
|
206
|
+
/**
|
|
207
|
+
* - Locates a setter method on the receiver.
|
|
208
|
+
*/
|
|
209
|
+
findMemberNameInsensitive: (arg1: Record<string, ReturnType<typeof JSON.parse>>, arg2: string) => string | null;
|
|
210
|
+
};
|
|
211
|
+
export type FrontendModelResourceSaveOptions = {
|
|
212
|
+
/**
|
|
213
|
+
* - Uploaded attachment attributes.
|
|
214
|
+
*/
|
|
215
|
+
attachments?: FrontendModelResourceAttributePayload | null;
|
|
216
|
+
/**
|
|
217
|
+
* - Controller handling the mutation.
|
|
218
|
+
*/
|
|
219
|
+
controller?: FrontendModelResourceController | null;
|
|
220
|
+
/**
|
|
221
|
+
* - Nested attributes payload.
|
|
222
|
+
*/
|
|
223
|
+
nestedAttributes?: FrontendModelResourceAttributePayload | null;
|
|
224
|
+
};
|
|
225
|
+
export type FrontendModelResourceNestedEntry = FrontendModelResourceAttributePayload & {
|
|
226
|
+
id?: string | number;
|
|
227
|
+
_destroy?: boolean;
|
|
228
|
+
attributes?: FrontendModelResourceAttributePayload;
|
|
229
|
+
attachments?: FrontendModelResourceAttributePayload;
|
|
230
|
+
nestedAttributes?: FrontendModelResourceAttributePayload;
|
|
231
|
+
};
|
|
1
232
|
/**
|
|
2
233
|
* Built-in frontend-model resource action.
|
|
3
234
|
* @typedef {"index" | "find" | "create" | "update" | "destroy" | "attach" | "attachmentList" | "download" | "url"} FrontendModelResourceAction
|
|
@@ -43,7 +274,7 @@
|
|
|
43
274
|
* @property {string} column - Column or attribute name.
|
|
44
275
|
* @property {"eq" | "like" | "notEq" | "gt" | "gteq" | "lt" | "lteq"} operator - Search operator.
|
|
45
276
|
* @property {string[]} path - Relationship path.
|
|
46
|
-
* @property {
|
|
277
|
+
* @property {ReturnType<typeof JSON.parse>} value - Search value.
|
|
47
278
|
*/
|
|
48
279
|
/**
|
|
49
280
|
* FrontendModelResourceSort type.
|
|
@@ -85,7 +316,7 @@
|
|
|
85
316
|
/**
|
|
86
317
|
* Arguments for the applySync full-escape-hatch hook.
|
|
87
318
|
* @typedef {object} FrontendModelApplySyncArgs
|
|
88
|
-
* @property {Record<string,
|
|
319
|
+
* @property {Record<string, ReturnType<typeof JSON.parse>>} context - Replay context.
|
|
89
320
|
* @property {import("../database/record/index.js").default | null} existingSync - Existing sync row or null.
|
|
90
321
|
* @property {FrontendModelSyncMutation} mutation - Normalized replay mutation.
|
|
91
322
|
*/
|
|
@@ -116,13 +347,13 @@
|
|
|
116
347
|
*/
|
|
117
348
|
/**
|
|
118
349
|
* Virtual setter method on a frontend-model resource.
|
|
119
|
-
* @typedef {
|
|
350
|
+
* @typedef {(arg1: import("../database/record/index.js").default, arg2: FrontendModelResourcePayloadValue) => (void | Promise<void>)} FrontendModelResourceVirtualSetter
|
|
120
351
|
*/
|
|
121
352
|
/**
|
|
122
353
|
* Static helpers used when checking whether a model-like receiver accepts an attribute.
|
|
123
354
|
* @typedef {object} WritableAttributeReceiverClass
|
|
124
|
-
* @property {
|
|
125
|
-
* @property {
|
|
355
|
+
* @property {(arg: string) => string | null} resolveAttributeName - Resolves aliases to canonical attribute names.
|
|
356
|
+
* @property {(arg1: Record<string, ReturnType<typeof JSON.parse>>, arg2: string) => string | null} findMemberNameInsensitive - Locates a setter method on the receiver.
|
|
126
357
|
*/
|
|
127
358
|
/**
|
|
128
359
|
* Options passed while saving frontend-model resource mutations.
|
|
@@ -140,12 +371,21 @@
|
|
|
140
371
|
* @template {typeof import("../database/record/index.js").default} [TModelClass=typeof import("../database/record/index.js").default]
|
|
141
372
|
*/
|
|
142
373
|
export default class FrontendModelBaseResource<TModelClass extends typeof import("../database/record/index.js").default = typeof import("../database/record/index.js").default> extends AuthorizationBaseResource {
|
|
143
|
-
|
|
144
|
-
|
|
374
|
+
controller: FrontendModelResourceController | undefined;
|
|
375
|
+
modelClassValue: typeof import("../database/record/index.js").default | undefined;
|
|
376
|
+
modelNameValue: string | undefined;
|
|
377
|
+
paramsValue: import("../configuration-types.js").VelociousParams | undefined;
|
|
378
|
+
resourceConfigurationValue: import("../configuration-types.js").FrontendModelResourceConfiguration | import("../configuration-types.js").NormalizedFrontendModelResourceConfiguration | undefined;
|
|
379
|
+
/** @type {FrontendModelBaseResource | null | undefined} */
|
|
380
|
+
sharedResourceInstanceValue: FrontendModelBaseResource | null | undefined;
|
|
381
|
+
/** @type {typeof import("../database/record/index.js").default | undefined} */
|
|
382
|
+
static ModelClass: typeof import("../database/record/index.js").default | undefined;
|
|
383
|
+
/** @type {Record<string, ReturnType<typeof JSON.parse>> | string[] | undefined} */
|
|
384
|
+
static attributes: Record<string, ReturnType<typeof JSON.parse>> | string[] | undefined;
|
|
145
385
|
/** @type {string[] | undefined} */
|
|
146
386
|
static abilities: string[] | undefined;
|
|
147
|
-
/** @type {Record<string,
|
|
148
|
-
static attachments: Record<string,
|
|
387
|
+
/** @type {Record<string, ReturnType<typeof JSON.parse>> | undefined} */
|
|
388
|
+
static attachments: Record<string, ReturnType<typeof JSON.parse>> | undefined;
|
|
149
389
|
/** @type {string[] | undefined} */
|
|
150
390
|
static commands: string[] | undefined;
|
|
151
391
|
/** @type {string[] | undefined} */
|
|
@@ -168,8 +408,8 @@ export default class FrontendModelBaseResource<TModelClass extends typeof import
|
|
|
168
408
|
static sync: import("../configuration-types.js").FrontendModelResourceSyncConfiguration | boolean | undefined;
|
|
169
409
|
/** @type {string[] | undefined} */
|
|
170
410
|
static translatedAttributes: string[] | undefined;
|
|
171
|
-
/** @type {
|
|
172
|
-
static SharedResource:
|
|
411
|
+
/** @type {ReturnType<typeof JSON.parse>} */
|
|
412
|
+
static SharedResource: ReturnType<typeof JSON.parse>;
|
|
173
413
|
/**
|
|
174
414
|
* Declarative writable-attribute permit list (camelCase attribute names)
|
|
175
415
|
* used as the default {@link FrontendModelBaseResource#permittedParams} and
|
|
@@ -179,40 +419,28 @@ export default class FrontendModelBaseResource<TModelClass extends typeof import
|
|
|
179
419
|
* (including `null`) wins.
|
|
180
420
|
* @type {string[] | null | undefined} */
|
|
181
421
|
static writableAttributes: string[] | null | undefined;
|
|
422
|
+
/**
|
|
423
|
+
* Runs constructor.
|
|
424
|
+
* @param {FrontendModelResourceAbilityArgs | FrontendModelResourceControllerArgs} args - Resource args.
|
|
425
|
+
*/
|
|
426
|
+
constructor(args: FrontendModelResourceAbilityArgs | FrontendModelResourceControllerArgs);
|
|
182
427
|
/**
|
|
183
428
|
* Returns the configured shared resource class.
|
|
184
|
-
* @returns {
|
|
429
|
+
* @returns {ReturnType<typeof JSON.parse>} - Shared resource class.
|
|
185
430
|
*/
|
|
186
|
-
static sharedResourceClass():
|
|
431
|
+
static sharedResourceClass(): ReturnType<typeof JSON.parse>;
|
|
187
432
|
/**
|
|
188
433
|
* Reads a static resource config value from the environment resource first,
|
|
189
434
|
* then from the shared resource.
|
|
190
435
|
* @param {"abilities" | "attachments" | "attributes" | "builtInCollectionCommands" | "builtInMemberCommands" | "collectionCommands" | "commands" | "memberCommands" | "modelName" | "primaryKey" | "relationships" | "server" | "sync" | "translatedAttributes" | "writableAttributes"} name - Static config property name.
|
|
191
|
-
* @returns {
|
|
436
|
+
* @returns {ReturnType<typeof JSON.parse>} - Resolved config value.
|
|
192
437
|
*/
|
|
193
|
-
static sharedResourceStaticValue(name: "abilities" | "attachments" | "attributes" | "builtInCollectionCommands" | "builtInMemberCommands" | "collectionCommands" | "commands" | "memberCommands" | "modelName" | "primaryKey" | "relationships" | "server" | "sync" | "translatedAttributes" | "writableAttributes"):
|
|
438
|
+
static sharedResourceStaticValue(name: "abilities" | "attachments" | "attributes" | "builtInCollectionCommands" | "builtInMemberCommands" | "collectionCommands" | "commands" | "memberCommands" | "modelName" | "primaryKey" | "relationships" | "server" | "sync" | "translatedAttributes" | "writableAttributes"): ReturnType<typeof JSON.parse>;
|
|
194
439
|
/**
|
|
195
440
|
* Resolves translated attributes from environment and shared resources.
|
|
196
441
|
* @returns {string[] | undefined} - Translated attribute names.
|
|
197
442
|
*/
|
|
198
443
|
static translatedAttributesConfig(): string[] | undefined;
|
|
199
|
-
/**
|
|
200
|
-
* Runs resource config.
|
|
201
|
-
* @returns {import("../configuration-types.js").FrontendModelResourceConfiguration} - Static resource config (raw user input shape; consumers normalize).
|
|
202
|
-
*/
|
|
203
|
-
static resourceConfig(): import("../configuration-types.js").FrontendModelResourceConfiguration;
|
|
204
|
-
/**
|
|
205
|
-
* Runs constructor.
|
|
206
|
-
* @param {FrontendModelResourceAbilityArgs | FrontendModelResourceControllerArgs} args - Resource args.
|
|
207
|
-
*/
|
|
208
|
-
constructor(args: FrontendModelResourceAbilityArgs | FrontendModelResourceControllerArgs);
|
|
209
|
-
controller: FrontendModelResourceController | undefined;
|
|
210
|
-
modelClassValue: typeof import("../database/record/index.js").default | undefined;
|
|
211
|
-
modelNameValue: string | undefined;
|
|
212
|
-
paramsValue: import("../configuration-types.js").VelociousParams | undefined;
|
|
213
|
-
resourceConfigurationValue: import("../configuration-types.js").FrontendModelResourceConfiguration | import("../configuration-types.js").NormalizedFrontendModelResourceConfiguration | undefined;
|
|
214
|
-
/** @type {FrontendModelBaseResource | null | undefined} */
|
|
215
|
-
sharedResourceInstanceValue: FrontendModelBaseResource | null | undefined;
|
|
216
444
|
/**
|
|
217
445
|
* Builds a resource instance for shared-resource fallback calls.
|
|
218
446
|
* @returns {FrontendModelBaseResource | null} - Shared resource instance when configured.
|
|
@@ -246,11 +474,26 @@ export default class FrontendModelBaseResource<TModelClass extends typeof import
|
|
|
246
474
|
method: (...methodArgs: unknown[]) => unknown;
|
|
247
475
|
resource: FrontendModelBaseResource;
|
|
248
476
|
} | null;
|
|
477
|
+
/**
|
|
478
|
+
* Runs abilities.
|
|
479
|
+
* @returns {void} - No return value.
|
|
480
|
+
*/
|
|
481
|
+
abilities(): void;
|
|
249
482
|
/**
|
|
250
483
|
* Runs typed controller instance.
|
|
251
484
|
* @returns {FrontendModelResourceController} - Controller instance with frontend-model helpers.
|
|
252
485
|
*/
|
|
253
486
|
typedControllerInstance(): FrontendModelResourceController;
|
|
487
|
+
/**
|
|
488
|
+
* Runs resource config.
|
|
489
|
+
* @returns {import("../configuration-types.js").FrontendModelResourceConfiguration} - Static resource config (raw user input shape; consumers normalize).
|
|
490
|
+
*/
|
|
491
|
+
static resourceConfig(): import("../configuration-types.js").FrontendModelResourceConfiguration;
|
|
492
|
+
/**
|
|
493
|
+
* Runs static model class.
|
|
494
|
+
* @returns {typeof import("../database/record/index.js").default} - Backing model class.
|
|
495
|
+
*/
|
|
496
|
+
static modelClass(): typeof import("../database/record/index.js").default;
|
|
254
497
|
/**
|
|
255
498
|
* Runs controller instance.
|
|
256
499
|
* @returns {import("../controller.js").default} - Controller instance.
|
|
@@ -317,15 +560,15 @@ export default class FrontendModelBaseResource<TModelClass extends typeof import
|
|
|
317
560
|
* {@link FrontendModelBaseResource.writableAttributes} permit list, or `[]`
|
|
318
561
|
* — nothing permitted — without a declared list. Subclasses override to
|
|
319
562
|
* customize; an explicit override always wins.
|
|
320
|
-
* @param {{action?: "create" | "update", params?: Record<string,
|
|
321
|
-
* @returns {Array<string | Record<string,
|
|
563
|
+
* @param {{action?: "create" | "update", params?: Record<string, ReturnType<typeof JSON.parse>>, ability?: import("../authorization/ability.js").default, locals?: Record<string, ReturnType<typeof JSON.parse>>}} [arg] - Request context.
|
|
564
|
+
* @returns {Array<string | Record<string, ReturnType<typeof JSON.parse>>>} - Permit spec.
|
|
322
565
|
*/
|
|
323
566
|
permittedParams(arg?: {
|
|
324
567
|
action?: "create" | "update";
|
|
325
|
-
params?: Record<string,
|
|
568
|
+
params?: Record<string, ReturnType<typeof JSON.parse>>;
|
|
326
569
|
ability?: import("../authorization/ability.js").default;
|
|
327
|
-
locals?: Record<string,
|
|
328
|
-
}): Array<string | Record<string,
|
|
570
|
+
locals?: Record<string, ReturnType<typeof JSON.parse>>;
|
|
571
|
+
}): Array<string | Record<string, ReturnType<typeof JSON.parse>>>;
|
|
329
572
|
/**
|
|
330
573
|
* Resolves the declared writable-attribute permit list from the environment
|
|
331
574
|
* resource first, then the shared resource — mirroring how the other
|
|
@@ -350,12 +593,12 @@ export default class FrontendModelBaseResource<TModelClass extends typeof import
|
|
|
350
593
|
* applies through {@link FrontendModelBaseResource#findSyncRecord} scoping
|
|
351
594
|
* and the create membership check.
|
|
352
595
|
* @param {object} args - Options.
|
|
353
|
-
* @param {Record<string,
|
|
596
|
+
* @param {Record<string, ReturnType<typeof JSON.parse>>} args.context - Replay context.
|
|
354
597
|
* @param {FrontendModelSyncMutation} args.mutation - Normalized replay mutation.
|
|
355
598
|
* @returns {FrontendModelSyncAuthorization | Promise<FrontendModelSyncAuthorization>} Authorization result.
|
|
356
599
|
*/
|
|
357
600
|
authorizeSyncMutation({ context, mutation }: {
|
|
358
|
-
context: Record<string,
|
|
601
|
+
context: Record<string, ReturnType<typeof JSON.parse>>;
|
|
359
602
|
mutation: FrontendModelSyncMutation;
|
|
360
603
|
}): FrontendModelSyncAuthorization | Promise<FrontendModelSyncAuthorization>;
|
|
361
604
|
/**
|
|
@@ -383,8 +626,8 @@ export default class FrontendModelBaseResource<TModelClass extends typeof import
|
|
|
383
626
|
* @returns {Promise<import("../database/record/index.js").default | null>} Existing record or null.
|
|
384
627
|
*/
|
|
385
628
|
findSyncRecord({ ability, forDelete, mutation }: {
|
|
386
|
-
ability?: import("../authorization/ability.js").default
|
|
387
|
-
forDelete?: boolean
|
|
629
|
+
ability?: import("../authorization/ability.js").default;
|
|
630
|
+
forDelete?: boolean;
|
|
388
631
|
mutation: FrontendModelSyncMutation;
|
|
389
632
|
}): Promise<import("../database/record/index.js").default | null>;
|
|
390
633
|
/**
|
|
@@ -408,18 +651,18 @@ export default class FrontendModelBaseResource<TModelClass extends typeof import
|
|
|
408
651
|
* merged into the apply result, reaching persistExtraAttributes and
|
|
409
652
|
* broadcasts.
|
|
410
653
|
* @param {object} args - Options.
|
|
411
|
-
* @param {Record<string,
|
|
654
|
+
* @param {Record<string, ReturnType<typeof JSON.parse>>} args.context - Replay context.
|
|
412
655
|
* @param {boolean} args.created - Whether the record was created.
|
|
413
656
|
* @param {FrontendModelSyncMutation} args.mutation - Normalized replay mutation.
|
|
414
657
|
* @param {import("../database/record/index.js").default | null} args.record - Applied record or null.
|
|
415
|
-
* @returns {Record<string,
|
|
658
|
+
* @returns {Record<string, ReturnType<typeof JSON.parse>> | Promise<Record<string, ReturnType<typeof JSON.parse>>>} Extra apply-result entries.
|
|
416
659
|
*/
|
|
417
660
|
afterSyncApply({ context, created, mutation, record }: {
|
|
418
|
-
context: Record<string,
|
|
661
|
+
context: Record<string, ReturnType<typeof JSON.parse>>;
|
|
419
662
|
created: boolean;
|
|
420
663
|
mutation: FrontendModelSyncMutation;
|
|
421
664
|
record: import("../database/record/index.js").default | null;
|
|
422
|
-
}): Record<string,
|
|
665
|
+
}): Record<string, ReturnType<typeof JSON.parse>> | Promise<Record<string, ReturnType<typeof JSON.parse>>>;
|
|
423
666
|
/**
|
|
424
667
|
* Normalizes create attributes before permission filtering and saving.
|
|
425
668
|
* @param {FrontendModelResourceAttributePayload} attributes - Incoming create attributes.
|
|
@@ -612,44 +855,44 @@ export default class FrontendModelBaseResource<TModelClass extends typeof import
|
|
|
612
855
|
update(model: import("../database/record/index.js").default, attributes: FrontendModelResourceAttributePayload, options?: FrontendModelResourceSaveOptions): Promise<import("../database/record/index.js").default>;
|
|
613
856
|
/**
|
|
614
857
|
* Saves a model and applies nested attributes in one transaction.
|
|
615
|
-
* @param {{filtered: Record<string,
|
|
858
|
+
* @param {{filtered: Record<string, ReturnType<typeof JSON.parse>>, model: import("../database/record/index.js").default, options: FrontendModelResourceSaveOptions, permit: {attributes: string[], nested: Record<string, ReturnType<typeof JSON.parse>>}}} args - Save arguments.
|
|
616
859
|
* @returns {Promise<import("../database/record/index.js").default>} - Saved model.
|
|
617
860
|
*/
|
|
618
861
|
_saveWithNestedAttributes({ filtered, model, options, permit }: {
|
|
619
|
-
filtered: Record<string,
|
|
862
|
+
filtered: Record<string, ReturnType<typeof JSON.parse>>;
|
|
620
863
|
model: import("../database/record/index.js").default;
|
|
621
864
|
options: FrontendModelResourceSaveOptions;
|
|
622
865
|
permit: {
|
|
623
866
|
attributes: string[];
|
|
624
|
-
nested: Record<string,
|
|
867
|
+
nested: Record<string, ReturnType<typeof JSON.parse>>;
|
|
625
868
|
};
|
|
626
869
|
}): Promise<import("../database/record/index.js").default>;
|
|
627
870
|
/**
|
|
628
871
|
* Assigns attributes to a model, using virtual setters on the resource when available.
|
|
629
872
|
* @param {import("../database/record/index.js").default} model - Model instance.
|
|
630
|
-
* @param {Record<string,
|
|
873
|
+
* @param {Record<string, ReturnType<typeof JSON.parse>>} attributes - Attributes to assign.
|
|
631
874
|
* @returns {Promise<void>}
|
|
632
875
|
*/
|
|
633
|
-
_assignWithVirtualSetters(model: import("../database/record/index.js").default, attributes: Record<string,
|
|
876
|
+
_assignWithVirtualSetters(model: import("../database/record/index.js").default, attributes: Record<string, ReturnType<typeof JSON.parse>>): Promise<void>;
|
|
634
877
|
/**
|
|
635
878
|
* Splits attachment-named attributes into the attachment payload while preserving legacy callers
|
|
636
879
|
* that submitted attachments as normal frontend-model attributes.
|
|
637
|
-
* @param {Record<string,
|
|
638
|
-
* @param {Record<string,
|
|
639
|
-
* @returns {{attributes: Record<string,
|
|
880
|
+
* @param {Record<string, ReturnType<typeof JSON.parse>>} attributes - Incoming mutation attributes.
|
|
881
|
+
* @param {Record<string, ReturnType<typeof JSON.parse>> | null} attachments - Explicit attachment payload.
|
|
882
|
+
* @returns {{attributes: Record<string, ReturnType<typeof JSON.parse>>, attachments: Record<string, ReturnType<typeof JSON.parse>> | null}} Attributes with attachment keys removed and merged attachment payload.
|
|
640
883
|
*/
|
|
641
|
-
_extractAttachmentAttributes(attributes: Record<string,
|
|
642
|
-
attributes: Record<string,
|
|
643
|
-
attachments: Record<string,
|
|
884
|
+
_extractAttachmentAttributes(attributes: Record<string, ReturnType<typeof JSON.parse>>, attachments: Record<string, ReturnType<typeof JSON.parse>> | null): {
|
|
885
|
+
attributes: Record<string, ReturnType<typeof JSON.parse>>;
|
|
886
|
+
attachments: Record<string, ReturnType<typeof JSON.parse>> | null;
|
|
644
887
|
};
|
|
645
888
|
/**
|
|
646
889
|
* Queues attachment payloads on a model after validating permits and attachment definitions.
|
|
647
890
|
* @param {import("../database/record/index.js").default} model - Model receiving attachments.
|
|
648
|
-
* @param {Record<string,
|
|
891
|
+
* @param {Record<string, ReturnType<typeof JSON.parse>> | null} attachments - Attachments keyed by attachment name.
|
|
649
892
|
* @param {string[]} permittedAttributeNames - Attribute/attachment names permitted by the resource.
|
|
650
893
|
* @returns {void}
|
|
651
894
|
*/
|
|
652
|
-
_assignAttachments(model: import("../database/record/index.js").default, attachments: Record<string,
|
|
895
|
+
_assignAttachments(model: import("../database/record/index.js").default, attachments: Record<string, ReturnType<typeof JSON.parse>> | null, permittedAttributeNames: string[]): void;
|
|
653
896
|
/**
|
|
654
897
|
* Sets a translated attribute on a model via the translations relationship.
|
|
655
898
|
* @param {import("../database/record/index.js").default} model - Model instance.
|
|
@@ -668,16 +911,16 @@ export default class FrontendModelBaseResource<TModelClass extends typeof import
|
|
|
668
911
|
* Runs serialize.
|
|
669
912
|
* @param {import("../database/record/index.js").default} model - Model to serialize.
|
|
670
913
|
* @param {"index" | "find" | "create" | "update"} [action] - Action.
|
|
671
|
-
* @returns {Promise<Record<string,
|
|
914
|
+
* @returns {Promise<Record<string, ReturnType<typeof JSON.parse>>>} - Serialized model payload.
|
|
672
915
|
*/
|
|
673
|
-
serialize(model: import("../database/record/index.js").default, action?: "index" | "find" | "create" | "update"): Promise<Record<string,
|
|
916
|
+
serialize(model: import("../database/record/index.js").default, action?: "index" | "find" | "create" | "update"): Promise<Record<string, ReturnType<typeof JSON.parse>>>;
|
|
674
917
|
/**
|
|
675
918
|
* Resolves common metadata for one nested-attributes relationship.
|
|
676
919
|
* @param {object} args - Nested relationship inputs.
|
|
677
920
|
* @param {import("../database/record/index.js").default} args.parent - Parent model instance.
|
|
678
921
|
* @param {string} args.relationshipName - Relationship receiving nested attributes.
|
|
679
922
|
* @param {FrontendModelResourcePayloadValue} args.rawEntries - Raw nested entries from the request payload.
|
|
680
|
-
* @param {{attributes: string[], nested: Record<string,
|
|
923
|
+
* @param {{attributes: string[], nested: Record<string, ReturnType<typeof JSON.parse>>}} args.childPermit - Parsed child permit.
|
|
681
924
|
* @param {FrontendModelResourceController | null | undefined} args.controller - Controller instance for child resource lookup.
|
|
682
925
|
* @returns {{ability: import("../authorization/ability.js").default | undefined, childResource: FrontendModelBaseResource, childResourceConfig: FrontendModelResolvedResourceConfiguration, childWritableAttributes: string[], destroyPermitted: boolean, entries: Array<FrontendModelResourceNestedEntry>, relationship: import("../database/record/relationships/base.js").default, targetModelClass: typeof import("../database/record/index.js").default}} Nested relationship context.
|
|
683
926
|
*/
|
|
@@ -687,7 +930,7 @@ export default class FrontendModelBaseResource<TModelClass extends typeof import
|
|
|
687
930
|
rawEntries: FrontendModelResourcePayloadValue;
|
|
688
931
|
childPermit: {
|
|
689
932
|
attributes: string[];
|
|
690
|
-
nested: Record<string,
|
|
933
|
+
nested: Record<string, ReturnType<typeof JSON.parse>>;
|
|
691
934
|
};
|
|
692
935
|
controller: FrontendModelResourceController | null | undefined;
|
|
693
936
|
}): {
|
|
@@ -718,7 +961,7 @@ export default class FrontendModelBaseResource<TModelClass extends typeof import
|
|
|
718
961
|
* (`{attributes, attachments, nestedAttributes}`) or direct Rails-style
|
|
719
962
|
* fields (`{name, file, commentsAttributes}`).
|
|
720
963
|
* @param {object} args - Normalization inputs.
|
|
721
|
-
* @param {{attributes: string[], nested: Record<string,
|
|
964
|
+
* @param {{attributes: string[], nested: Record<string, ReturnType<typeof JSON.parse>>}} args.childPermit - Parsed child permit spec.
|
|
722
965
|
* @param {FrontendModelResourceNestedEntry} args.entry - Raw nested entry.
|
|
723
966
|
* @param {string} args.relationshipName - Relationship name for error messages.
|
|
724
967
|
* @param {typeof import("../database/record/index.js").default} args.targetModelClass - Child model class.
|
|
@@ -727,7 +970,7 @@ export default class FrontendModelBaseResource<TModelClass extends typeof import
|
|
|
727
970
|
_normalizeNestedRelationshipEntry({ childPermit, entry, relationshipName, targetModelClass }: {
|
|
728
971
|
childPermit: {
|
|
729
972
|
attributes: string[];
|
|
730
|
-
nested: Record<string,
|
|
973
|
+
nested: Record<string, ReturnType<typeof JSON.parse>>;
|
|
731
974
|
};
|
|
732
975
|
entry: FrontendModelResourceNestedEntry;
|
|
733
976
|
relationshipName: string;
|
|
@@ -738,12 +981,12 @@ export default class FrontendModelBaseResource<TModelClass extends typeof import
|
|
|
738
981
|
* @param {import("../database/record/index.js").default} parent - Parent model instance.
|
|
739
982
|
* @param {FrontendModelResourceAttributePayload} nestedAttributes - Nested-attribute payload keyed by relationship name.
|
|
740
983
|
* @param {FrontendModelResourceController | null | undefined} controller - Controller instance for resource resolution and authorization.
|
|
741
|
-
* @param {{attributes: string[], nested: Record<string,
|
|
984
|
+
* @param {{attributes: string[], nested: Record<string, ReturnType<typeof JSON.parse>>} | null} [parentPermit] - Parsed parent permit spec.
|
|
742
985
|
* @returns {Promise<void>}
|
|
743
986
|
*/
|
|
744
987
|
_applyBelongsToNestedAttributes(parent: import("../database/record/index.js").default, nestedAttributes: FrontendModelResourceAttributePayload, controller: FrontendModelResourceController | null | undefined, parentPermit?: {
|
|
745
988
|
attributes: string[];
|
|
746
|
-
nested: Record<string,
|
|
989
|
+
nested: Record<string, ReturnType<typeof JSON.parse>>;
|
|
747
990
|
} | null): Promise<void>;
|
|
748
991
|
/**
|
|
749
992
|
* Applies a `nestedAttributes` payload to a freshly-saved parent model,
|
|
@@ -760,25 +1003,25 @@ export default class FrontendModelBaseResource<TModelClass extends typeof import
|
|
|
760
1003
|
* @param {import("../database/record/index.js").default} parent - Parent model instance.
|
|
761
1004
|
* @param {FrontendModelResourceAttributePayload} nestedAttributes - Nested-attribute payload keyed by relationship name.
|
|
762
1005
|
* @param {FrontendModelResourceController | null | undefined} controller - Controller instance for resource resolution and authorization.
|
|
763
|
-
* @param {{attributes: string[], nested: Record<string,
|
|
1006
|
+
* @param {{attributes: string[], nested: Record<string, ReturnType<typeof JSON.parse>>} | null} [parentPermit] - Parsed parent permit spec.
|
|
764
1007
|
* @returns {Promise<void>}
|
|
765
1008
|
*/
|
|
766
1009
|
_applyNestedAttributes(parent: import("../database/record/index.js").default, nestedAttributes: FrontendModelResourceAttributePayload, controller: FrontendModelResourceController | null | undefined, parentPermit?: {
|
|
767
1010
|
attributes: string[];
|
|
768
|
-
nested: Record<string,
|
|
1011
|
+
nested: Record<string, ReturnType<typeof JSON.parse>>;
|
|
769
1012
|
} | null): Promise<void>;
|
|
770
1013
|
/**
|
|
771
1014
|
* Assigns one nested entry's attributes and attachments to a child model.
|
|
772
1015
|
* @param {object} args - Assignment inputs.
|
|
773
1016
|
* @param {import("../database/record/index.js").default} args.child - Child model receiving data.
|
|
774
1017
|
* @param {string[]} args.childWritableAttributes - Permitted child attribute and attachment names.
|
|
775
|
-
* @param {Record<string,
|
|
1018
|
+
* @param {Record<string, ReturnType<typeof JSON.parse>>} args.entry - Nested entry payload.
|
|
776
1019
|
* @returns {Promise<void>}
|
|
777
1020
|
*/
|
|
778
1021
|
_assignNestedEntryToChild({ child, childWritableAttributes, entry }: {
|
|
779
1022
|
child: import("../database/record/index.js").default;
|
|
780
1023
|
childWritableAttributes: string[];
|
|
781
|
-
entry: Record<string,
|
|
1024
|
+
entry: Record<string, ReturnType<typeof JSON.parse>>;
|
|
782
1025
|
}): Promise<void>;
|
|
783
1026
|
/**
|
|
784
1027
|
* Converts a relationship's foreign-key column/name to the target model's attribute name.
|
|
@@ -887,305 +1130,12 @@ export default class FrontendModelBaseResource<TModelClass extends typeof import
|
|
|
887
1130
|
* parent's permit so the post-save serialize step emits them and the
|
|
888
1131
|
* client can reconcile ids.
|
|
889
1132
|
* @param {import("../database/record/index.js").default} model - Saved parent model.
|
|
890
|
-
* @param {{attributes: string[], nested: Record<string,
|
|
1133
|
+
* @param {{attributes: string[], nested: Record<string, ReturnType<typeof JSON.parse>>}} permit - Parsed parent permit.
|
|
891
1134
|
* @returns {Promise<void>}
|
|
892
1135
|
*/
|
|
893
1136
|
_preloadNestedWritableRelationships(model: import("../database/record/index.js").default, permit: {
|
|
894
1137
|
attributes: string[];
|
|
895
|
-
nested: Record<string,
|
|
1138
|
+
nested: Record<string, ReturnType<typeof JSON.parse>>;
|
|
896
1139
|
}): Promise<void>;
|
|
897
1140
|
}
|
|
898
|
-
/**
|
|
899
|
-
* Built-in frontend-model resource action.
|
|
900
|
-
*/
|
|
901
|
-
export type FrontendModelResourceAction = "index" | "find" | "create" | "update" | "destroy" | "attach" | "attachmentList" | "download" | "url";
|
|
902
|
-
/**
|
|
903
|
-
* Frontend-model controller methods used by resources.
|
|
904
|
-
*/
|
|
905
|
-
export type FrontendModelResourceController = import("../controller.js").default & {
|
|
906
|
-
currentAbility: () => import("../authorization/ability.js").default | undefined;
|
|
907
|
-
applyFrontendModelPagination: (args: {
|
|
908
|
-
pagination: FrontendModelResourcePagination;
|
|
909
|
-
query: import("../database/query/model-class-query.js").default<typeof import("../database/record/index.js").default>;
|
|
910
|
-
}) => void;
|
|
911
|
-
applyFrontendModelSearch: (args: {
|
|
912
|
-
query: import("../database/query/model-class-query.js").default<typeof import("../database/record/index.js").default>;
|
|
913
|
-
search: FrontendModelResourceSearch;
|
|
914
|
-
}) => void;
|
|
915
|
-
applyFrontendModelSort: (args: {
|
|
916
|
-
query: import("../database/query/model-class-query.js").default<typeof import("../database/record/index.js").default>;
|
|
917
|
-
sort: FrontendModelResourceSort;
|
|
918
|
-
}) => void;
|
|
919
|
-
frontendModelAbilityAction: (action: FrontendModelResourceAction) => string;
|
|
920
|
-
frontendModelAbilityAuthorizedQuery: (action: FrontendModelResourceAction) => import("../database/query/model-class-query.js").default<typeof import("../database/record/index.js").default>;
|
|
921
|
-
frontendModelAuthorizedQuery: (action: FrontendModelResourceAction) => import("../database/query/model-class-query.js").default<typeof import("../database/record/index.js").default>;
|
|
922
|
-
frontendModelIndexQuery: (options?: FrontendModelResourceIndexQueryOptions & {
|
|
923
|
-
resource?: FrontendModelBaseResource;
|
|
924
|
-
}) => import("../database/query/model-class-query.js").default<typeof import("../database/record/index.js").default>;
|
|
925
|
-
frontendModelParams: () => import("../configuration-types.js").VelociousParams;
|
|
926
|
-
frontendModelPreload: () => import("../database/query/index.js").NestedPreloadRecord | null;
|
|
927
|
-
frontendModelResourceConfigurationForModelClass: (modelClass: typeof import("../database/record/index.js").default) => FrontendModelResolvedResourceConfiguration | null;
|
|
928
|
-
serializeFrontendModel: (model: import("../database/record/index.js").default) => Promise<Record<string, object | string | number | boolean | null>>;
|
|
929
|
-
};
|
|
930
|
-
/**
|
|
931
|
-
* Generic frontend-model index query passed to resource query hooks.
|
|
932
|
-
*/
|
|
933
|
-
export type FrontendModelResourceAnyQuery = import("../database/query/model-class-query.js").default<typeof import("../database/record/index.js").default>;
|
|
934
|
-
/**
|
|
935
|
-
* Options for building a frontend-model resource index query.
|
|
936
|
-
*/
|
|
937
|
-
export type FrontendModelResourceIndexQueryOptions = {
|
|
938
|
-
/**
|
|
939
|
-
* - Whether frontend-model pagination params should be applied.
|
|
940
|
-
*/
|
|
941
|
-
includePagination?: boolean | undefined;
|
|
942
|
-
/**
|
|
943
|
-
* - Whether frontend-model sort params should be applied.
|
|
944
|
-
*/
|
|
945
|
-
includeSort?: boolean | undefined;
|
|
946
|
-
};
|
|
947
|
-
/**
|
|
948
|
-
* FrontendModelResourcePagination type.
|
|
949
|
-
*/
|
|
950
|
-
export type FrontendModelResourcePagination = {
|
|
951
|
-
/**
|
|
952
|
-
* - Maximum number of records.
|
|
953
|
-
*/
|
|
954
|
-
limit: number | null;
|
|
955
|
-
/**
|
|
956
|
-
* - Number of records to skip.
|
|
957
|
-
*/
|
|
958
|
-
offset: number | null;
|
|
959
|
-
/**
|
|
960
|
-
* - 1-based page number.
|
|
961
|
-
*/
|
|
962
|
-
page: number | null;
|
|
963
|
-
/**
|
|
964
|
-
* - Page size.
|
|
965
|
-
*/
|
|
966
|
-
perPage: number | null;
|
|
967
|
-
};
|
|
968
|
-
/**
|
|
969
|
-
* FrontendModelResourceSearch type.
|
|
970
|
-
*/
|
|
971
|
-
export type FrontendModelResourceSearch = {
|
|
972
|
-
/**
|
|
973
|
-
* - Column or attribute name.
|
|
974
|
-
*/
|
|
975
|
-
column: string;
|
|
976
|
-
/**
|
|
977
|
-
* - Search operator.
|
|
978
|
-
*/
|
|
979
|
-
operator: "eq" | "like" | "notEq" | "gt" | "gteq" | "lt" | "lteq";
|
|
980
|
-
/**
|
|
981
|
-
* - Relationship path.
|
|
982
|
-
*/
|
|
983
|
-
path: string[];
|
|
984
|
-
/**
|
|
985
|
-
* - Search value.
|
|
986
|
-
*/
|
|
987
|
-
value: unknown;
|
|
988
|
-
};
|
|
989
|
-
/**
|
|
990
|
-
* FrontendModelResourceSort type.
|
|
991
|
-
*/
|
|
992
|
-
export type FrontendModelResourceSort = {
|
|
993
|
-
/**
|
|
994
|
-
* - Attribute name to sort by.
|
|
995
|
-
*/
|
|
996
|
-
column: string;
|
|
997
|
-
/**
|
|
998
|
-
* - Sort direction.
|
|
999
|
-
*/
|
|
1000
|
-
direction: "asc" | "desc";
|
|
1001
|
-
/**
|
|
1002
|
-
* - Relationship path from root model.
|
|
1003
|
-
*/
|
|
1004
|
-
path: string[];
|
|
1005
|
-
};
|
|
1006
|
-
/**
|
|
1007
|
-
* FrontendModelResourceControllerArgs type.
|
|
1008
|
-
*/
|
|
1009
|
-
export type FrontendModelResourceControllerArgs = {
|
|
1010
|
-
/**
|
|
1011
|
-
* - Frontend-model controller instance.
|
|
1012
|
-
*/
|
|
1013
|
-
controller: FrontendModelResourceController;
|
|
1014
|
-
/**
|
|
1015
|
-
* - Backing model class.
|
|
1016
|
-
*/
|
|
1017
|
-
modelClass: typeof import("../database/record/index.js").default;
|
|
1018
|
-
/**
|
|
1019
|
-
* - Model name.
|
|
1020
|
-
*/
|
|
1021
|
-
modelName: string;
|
|
1022
|
-
/**
|
|
1023
|
-
* - Request params.
|
|
1024
|
-
*/
|
|
1025
|
-
params: import("../configuration-types.js").VelociousParams;
|
|
1026
|
-
/**
|
|
1027
|
-
* - Normalized resource configuration (or raw input shape during early bootstrap).
|
|
1028
|
-
*/
|
|
1029
|
-
resourceConfiguration: import("../configuration-types.js").NormalizedFrontendModelResourceConfiguration | import("../configuration-types.js").FrontendModelResourceConfiguration;
|
|
1030
|
-
};
|
|
1031
|
-
/**
|
|
1032
|
-
* FrontendModelResourceAbilityArgs type.
|
|
1033
|
-
*/
|
|
1034
|
-
export type FrontendModelResourceAbilityArgs = {
|
|
1035
|
-
/**
|
|
1036
|
-
* - Ability instance when the resource is used directly for authorization.
|
|
1037
|
-
*/
|
|
1038
|
-
ability?: import("../authorization/ability.js").default | undefined;
|
|
1039
|
-
/**
|
|
1040
|
-
* - Ability context.
|
|
1041
|
-
*/
|
|
1042
|
-
context?: import("../configuration-types.js").VelociousLooseObject | undefined;
|
|
1043
|
-
/**
|
|
1044
|
-
* - Ability locals.
|
|
1045
|
-
*/
|
|
1046
|
-
locals?: import("../configuration-types.js").VelociousLooseObject | undefined;
|
|
1047
|
-
/**
|
|
1048
|
-
* - Optional backing model class override.
|
|
1049
|
-
*/
|
|
1050
|
-
modelClass?: typeof import("../database/record/index.js").default | undefined;
|
|
1051
|
-
/**
|
|
1052
|
-
* - Optional model name override.
|
|
1053
|
-
*/
|
|
1054
|
-
modelName?: string | undefined;
|
|
1055
|
-
/**
|
|
1056
|
-
* - Optional params override.
|
|
1057
|
-
*/
|
|
1058
|
-
params?: import("../configuration-types.js").VelociousParams | undefined;
|
|
1059
|
-
/**
|
|
1060
|
-
* - Optional normalized resource configuration.
|
|
1061
|
-
*/
|
|
1062
|
-
resourceConfiguration?: import("../configuration-types.js").FrontendModelResourceConfiguration | import("../configuration-types.js").NormalizedFrontendModelResourceConfiguration | undefined;
|
|
1063
|
-
};
|
|
1064
|
-
/**
|
|
1065
|
-
* Normalized sync replay mutation passed to the resource sync hooks.
|
|
1066
|
-
*/
|
|
1067
|
-
export type FrontendModelSyncMutation = import("../sync/sync-envelope-replay-service.js").SyncReplayMutation;
|
|
1068
|
-
/**
|
|
1069
|
-
* Sync mutation authorization result.
|
|
1070
|
-
*/
|
|
1071
|
-
export type FrontendModelSyncAuthorization = {
|
|
1072
|
-
/**
|
|
1073
|
-
* - Whether the mutation may be applied.
|
|
1074
|
-
*/
|
|
1075
|
-
allowed: boolean;
|
|
1076
|
-
/**
|
|
1077
|
-
* - Stable failure reason code when denied.
|
|
1078
|
-
*/
|
|
1079
|
-
reason?: string | undefined;
|
|
1080
|
-
};
|
|
1081
|
-
/**
|
|
1082
|
-
* Arguments for the applySync full-escape-hatch hook.
|
|
1083
|
-
*/
|
|
1084
|
-
export type FrontendModelApplySyncArgs = {
|
|
1085
|
-
/**
|
|
1086
|
-
* - Replay context.
|
|
1087
|
-
*/
|
|
1088
|
-
context: Record<string, unknown>;
|
|
1089
|
-
/**
|
|
1090
|
-
* - Existing sync row or null.
|
|
1091
|
-
*/
|
|
1092
|
-
existingSync: import("../database/record/index.js").default | null;
|
|
1093
|
-
/**
|
|
1094
|
-
* - Normalized replay mutation.
|
|
1095
|
-
*/
|
|
1096
|
-
mutation: FrontendModelSyncMutation;
|
|
1097
|
-
};
|
|
1098
|
-
/**
|
|
1099
|
-
* Apply result produced by routed sync mutation application.
|
|
1100
|
-
*/
|
|
1101
|
-
export type FrontendModelSyncApplyResult = {
|
|
1102
|
-
/**
|
|
1103
|
-
* - Whether a record was created.
|
|
1104
|
-
*/
|
|
1105
|
-
created: boolean;
|
|
1106
|
-
/**
|
|
1107
|
-
* - Whether a record was deleted.
|
|
1108
|
-
*/
|
|
1109
|
-
deleted?: boolean | undefined;
|
|
1110
|
-
/**
|
|
1111
|
-
* - Applied record or null.
|
|
1112
|
-
*/
|
|
1113
|
-
record: import("../database/record/index.js").default | null;
|
|
1114
|
-
};
|
|
1115
|
-
/**
|
|
1116
|
-
* Resolved frontend-model resource registration.
|
|
1117
|
-
*/
|
|
1118
|
-
export type FrontendModelResolvedResourceConfiguration = {
|
|
1119
|
-
/**
|
|
1120
|
-
* - Backend project owning the resource.
|
|
1121
|
-
*/
|
|
1122
|
-
backendProject: import("../configuration-types.js").BackendProjectConfiguration;
|
|
1123
|
-
/**
|
|
1124
|
-
* - Frontend model name.
|
|
1125
|
-
*/
|
|
1126
|
-
modelName: string;
|
|
1127
|
-
/**
|
|
1128
|
-
* - Resource class.
|
|
1129
|
-
*/
|
|
1130
|
-
resourceClass: import("../configuration-types.js").FrontendModelResourceClassType;
|
|
1131
|
-
/**
|
|
1132
|
-
* - Normalized resource configuration.
|
|
1133
|
-
*/
|
|
1134
|
-
resourceConfiguration: import("../configuration-types.js").NormalizedFrontendModelResourceConfiguration;
|
|
1135
|
-
};
|
|
1136
|
-
/**
|
|
1137
|
-
* Transport-safe value accepted in frontend-model resource mutation payloads.
|
|
1138
|
-
* Nested object/array values are intentionally opaque because TypeScript rejects
|
|
1139
|
-
* recursive JSDoc typedefs for this transport payload contract.
|
|
1140
|
-
*/
|
|
1141
|
-
export type FrontendModelResourcePayloadValue = import("../frontend-models/base.js").FrontendModelTransportValue | import("../database/record/index.js").default | Record<string, unknown> | Array<unknown>;
|
|
1142
|
-
/**
|
|
1143
|
-
* Attribute payload accepted by frontend-model resource mutations.
|
|
1144
|
-
*/
|
|
1145
|
-
export type FrontendModelResourceAttributePayload = Record<string, FrontendModelResourcePayloadValue>;
|
|
1146
|
-
/**
|
|
1147
|
-
* Virtual setter method on a frontend-model resource.
|
|
1148
|
-
*/
|
|
1149
|
-
export type FrontendModelResourceVirtualSetter = (arg0: import("../database/record/index.js").default, arg1: FrontendModelResourcePayloadValue) => (void | Promise<void>);
|
|
1150
|
-
/**
|
|
1151
|
-
* Static helpers used when checking whether a model-like receiver accepts an attribute.
|
|
1152
|
-
*/
|
|
1153
|
-
export type WritableAttributeReceiverClass = {
|
|
1154
|
-
/**
|
|
1155
|
-
* - Resolves aliases to canonical attribute names.
|
|
1156
|
-
*/
|
|
1157
|
-
resolveAttributeName: (arg0: string) => string | null;
|
|
1158
|
-
/**
|
|
1159
|
-
* - Locates a setter method on the receiver.
|
|
1160
|
-
*/
|
|
1161
|
-
findMemberNameInsensitive: (arg0: Record<string, unknown>, arg1: string) => string | null;
|
|
1162
|
-
};
|
|
1163
|
-
/**
|
|
1164
|
-
* Options passed while saving frontend-model resource mutations.
|
|
1165
|
-
*/
|
|
1166
|
-
export type FrontendModelResourceSaveOptions = {
|
|
1167
|
-
/**
|
|
1168
|
-
* - Uploaded attachment attributes.
|
|
1169
|
-
*/
|
|
1170
|
-
attachments?: FrontendModelResourceAttributePayload | null | undefined;
|
|
1171
|
-
/**
|
|
1172
|
-
* - Controller handling the mutation.
|
|
1173
|
-
*/
|
|
1174
|
-
controller?: FrontendModelResourceController | null | undefined;
|
|
1175
|
-
/**
|
|
1176
|
-
* - Nested attributes payload.
|
|
1177
|
-
*/
|
|
1178
|
-
nestedAttributes?: FrontendModelResourceAttributePayload | null | undefined;
|
|
1179
|
-
};
|
|
1180
|
-
/**
|
|
1181
|
-
* Normalized nested attributes entry.
|
|
1182
|
-
*/
|
|
1183
|
-
export type FrontendModelResourceNestedEntry = FrontendModelResourceAttributePayload & {
|
|
1184
|
-
id?: string | number;
|
|
1185
|
-
_destroy?: boolean;
|
|
1186
|
-
attributes?: FrontendModelResourceAttributePayload;
|
|
1187
|
-
attachments?: FrontendModelResourceAttributePayload;
|
|
1188
|
-
nestedAttributes?: FrontendModelResourceAttributePayload;
|
|
1189
|
-
};
|
|
1190
|
-
import AuthorizationBaseResource from "../authorization/base-resource.js";
|
|
1191
1141
|
//# sourceMappingURL=base-resource.d.ts.map
|