velocious 1.0.263 → 1.0.265

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.
Files changed (389) hide show
  1. package/README.md +14 -0
  2. package/build/bin/velocious.js +7 -2
  3. package/build/src/application.d.ts +6 -6
  4. package/build/src/application.d.ts.map +1 -1
  5. package/build/src/authorization/ability.d.ts +4 -4
  6. package/build/src/authorization/ability.d.ts.map +1 -1
  7. package/build/src/authorization/base-resource.d.ts +4 -4
  8. package/build/src/authorization/base-resource.d.ts.map +1 -1
  9. package/build/src/background-jobs/client.d.ts +2 -2
  10. package/build/src/background-jobs/client.d.ts.map +1 -1
  11. package/build/src/background-jobs/job-runner.d.ts +2 -2
  12. package/build/src/background-jobs/job-runner.d.ts.map +1 -1
  13. package/build/src/background-jobs/job-runner.js +5 -3
  14. package/build/src/background-jobs/job.d.ts +1 -1
  15. package/build/src/background-jobs/job.d.ts.map +1 -1
  16. package/build/src/background-jobs/json-socket.d.ts +1 -1
  17. package/build/src/background-jobs/json-socket.d.ts.map +1 -1
  18. package/build/src/background-jobs/main.d.ts +34 -12
  19. package/build/src/background-jobs/main.d.ts.map +1 -1
  20. package/build/src/background-jobs/main.js +36 -6
  21. package/build/src/background-jobs/scheduler.d.ts +21 -0
  22. package/build/src/background-jobs/scheduler.d.ts.map +1 -1
  23. package/build/src/background-jobs/scheduler.js +3 -2
  24. package/build/src/background-jobs/status-reporter.d.ts +14 -10
  25. package/build/src/background-jobs/status-reporter.d.ts.map +1 -1
  26. package/build/src/background-jobs/status-reporter.js +11 -6
  27. package/build/src/background-jobs/store.d.ts +73 -117
  28. package/build/src/background-jobs/store.d.ts.map +1 -1
  29. package/build/src/background-jobs/store.js +62 -24
  30. package/build/src/background-jobs/types.d.ts +175 -2
  31. package/build/src/background-jobs/types.d.ts.map +1 -1
  32. package/build/src/background-jobs/types.js +44 -1
  33. package/build/src/background-jobs/worker.d.ts +21 -17
  34. package/build/src/background-jobs/worker.d.ts.map +1 -1
  35. package/build/src/background-jobs/worker.js +30 -9
  36. package/build/src/cli/base-command.d.ts +5 -5
  37. package/build/src/cli/base-command.d.ts.map +1 -1
  38. package/build/src/cli/commands/db/create.d.ts.map +1 -1
  39. package/build/src/cli/commands/db/create.js +11 -3
  40. package/build/src/cli/commands/db/schema/load.d.ts +7 -0
  41. package/build/src/cli/commands/db/schema/load.d.ts.map +1 -0
  42. package/build/src/cli/commands/db/schema/load.js +9 -0
  43. package/build/src/cli/index.d.ts +25 -13
  44. package/build/src/cli/index.d.ts.map +1 -1
  45. package/build/src/cli/index.js +62 -4
  46. package/build/src/cli/use-browser-cli.d.ts +2 -2
  47. package/build/src/cli/use-browser-cli.d.ts.map +1 -1
  48. package/build/src/cli/use-browser-cli.js +4 -4
  49. package/build/src/configuration-types.d.ts +160 -136
  50. package/build/src/configuration-types.d.ts.map +1 -1
  51. package/build/src/configuration.d.ts +32 -31
  52. package/build/src/configuration.d.ts.map +1 -1
  53. package/build/src/configuration.js +6 -5
  54. package/build/src/controller.d.ts +14 -14
  55. package/build/src/controller.d.ts.map +1 -1
  56. package/build/src/controller.js +19 -8
  57. package/build/src/database/drivers/base-columns-index.d.ts +1 -1
  58. package/build/src/database/drivers/base-columns-index.d.ts.map +1 -1
  59. package/build/src/database/drivers/base.d.ts +15 -14
  60. package/build/src/database/drivers/base.d.ts.map +1 -1
  61. package/build/src/database/drivers/base.js +6 -3
  62. package/build/src/database/drivers/mssql/column.d.ts +1 -0
  63. package/build/src/database/drivers/mssql/column.d.ts.map +1 -1
  64. package/build/src/database/drivers/mssql/connect-connection.d.ts +1 -1
  65. package/build/src/database/drivers/mssql/connect-connection.d.ts.map +1 -1
  66. package/build/src/database/drivers/mssql/index.d.ts +4 -3
  67. package/build/src/database/drivers/mssql/index.d.ts.map +1 -1
  68. package/build/src/database/drivers/mssql/index.js +8 -12
  69. package/build/src/database/drivers/mssql/table.d.ts +1 -0
  70. package/build/src/database/drivers/mssql/table.d.ts.map +1 -1
  71. package/build/src/database/drivers/mysql/column.d.ts +1 -0
  72. package/build/src/database/drivers/mysql/column.d.ts.map +1 -1
  73. package/build/src/database/drivers/mysql/index.d.ts +3 -2
  74. package/build/src/database/drivers/mysql/index.d.ts.map +1 -1
  75. package/build/src/database/drivers/mysql/index.js +3 -1
  76. package/build/src/database/drivers/mysql/query.d.ts +1 -1
  77. package/build/src/database/drivers/mysql/query.d.ts.map +1 -1
  78. package/build/src/database/drivers/mysql/query.js +7 -5
  79. package/build/src/database/drivers/mysql/table.d.ts +1 -0
  80. package/build/src/database/drivers/mysql/table.d.ts.map +1 -1
  81. package/build/src/database/drivers/pgsql/column.d.ts +1 -0
  82. package/build/src/database/drivers/pgsql/column.d.ts.map +1 -1
  83. package/build/src/database/drivers/pgsql/index.d.ts +3 -2
  84. package/build/src/database/drivers/pgsql/index.d.ts.map +1 -1
  85. package/build/src/database/drivers/pgsql/index.js +3 -1
  86. package/build/src/database/drivers/pgsql/table.d.ts +1 -0
  87. package/build/src/database/drivers/pgsql/table.d.ts.map +1 -1
  88. package/build/src/database/drivers/sqlite/base.d.ts +9 -6
  89. package/build/src/database/drivers/sqlite/base.d.ts.map +1 -1
  90. package/build/src/database/drivers/sqlite/base.js +22 -6
  91. package/build/src/database/drivers/sqlite/column.d.ts +1 -0
  92. package/build/src/database/drivers/sqlite/column.d.ts.map +1 -1
  93. package/build/src/database/drivers/sqlite/connection-sql-js.d.ts +2 -2
  94. package/build/src/database/drivers/sqlite/connection-sql-js.d.ts.map +1 -1
  95. package/build/src/database/drivers/sqlite/index.native.d.ts +1 -2
  96. package/build/src/database/drivers/sqlite/index.native.d.ts.map +1 -1
  97. package/build/src/database/drivers/sqlite/index.native.js +8 -3
  98. package/build/src/database/drivers/sqlite/index.web.d.ts +3 -2
  99. package/build/src/database/drivers/sqlite/index.web.d.ts.map +1 -1
  100. package/build/src/database/drivers/sqlite/index.web.js +5 -1
  101. package/build/src/database/drivers/sqlite/query.web.d.ts +1 -1
  102. package/build/src/database/drivers/sqlite/query.web.d.ts.map +1 -1
  103. package/build/src/database/drivers/sqlite/table.d.ts +2 -1
  104. package/build/src/database/drivers/sqlite/table.d.ts.map +1 -1
  105. package/build/src/database/drivers/sqlite/table.js +3 -2
  106. package/build/src/database/migration/index.d.ts +10 -10
  107. package/build/src/database/migration/index.d.ts.map +1 -1
  108. package/build/src/database/migrator/types.d.ts +1 -1
  109. package/build/src/database/migrator/types.d.ts.map +1 -1
  110. package/build/src/database/migrator.d.ts +1 -1
  111. package/build/src/database/migrator.d.ts.map +1 -1
  112. package/build/src/database/pool/async-tracked-multi-connection.d.ts +1 -0
  113. package/build/src/database/pool/async-tracked-multi-connection.d.ts.map +1 -1
  114. package/build/src/database/pool/async-tracked-multi-connection.js +12 -8
  115. package/build/src/database/pool/base-methods-forward.d.ts.map +1 -1
  116. package/build/src/database/pool/base-methods-forward.js +6 -4
  117. package/build/src/database/pool/base.d.ts +2 -1
  118. package/build/src/database/pool/base.d.ts.map +1 -1
  119. package/build/src/database/pool/base.js +6 -4
  120. package/build/src/database/pool/single-multi-use.d.ts +1 -1
  121. package/build/src/database/pool/single-multi-use.d.ts.map +1 -1
  122. package/build/src/database/query/alter-table-base.d.ts.map +1 -1
  123. package/build/src/database/query/alter-table-base.js +8 -4
  124. package/build/src/database/query/base.d.ts +1 -1
  125. package/build/src/database/query/base.d.ts.map +1 -1
  126. package/build/src/database/query/create-database-base.d.ts +2 -2
  127. package/build/src/database/query/create-database-base.d.ts.map +1 -1
  128. package/build/src/database/query/create-index-base.d.ts +6 -6
  129. package/build/src/database/query/create-index-base.d.ts.map +1 -1
  130. package/build/src/database/query/create-table-base.d.ts +3 -3
  131. package/build/src/database/query/create-table-base.d.ts.map +1 -1
  132. package/build/src/database/query/create-table-base.js +8 -4
  133. package/build/src/database/query/drop-table-base.d.ts +4 -4
  134. package/build/src/database/query/drop-table-base.d.ts.map +1 -1
  135. package/build/src/database/query/index.d.ts +16 -16
  136. package/build/src/database/query/index.d.ts.map +1 -1
  137. package/build/src/database/query/index.js +4 -4
  138. package/build/src/database/query/insert-base.d.ts +10 -10
  139. package/build/src/database/query/insert-base.d.ts.map +1 -1
  140. package/build/src/database/query/join-base.d.ts +1 -1
  141. package/build/src/database/query/join-base.d.ts.map +1 -1
  142. package/build/src/database/query/join-object.d.ts +1 -1
  143. package/build/src/database/query/join-object.d.ts.map +1 -1
  144. package/build/src/database/query/join-object.js +4 -1
  145. package/build/src/database/query/model-class-query.d.ts +11 -11
  146. package/build/src/database/query/model-class-query.d.ts.map +1 -1
  147. package/build/src/database/query/model-class-query.js +29 -18
  148. package/build/src/database/query/select-base.d.ts +1 -1
  149. package/build/src/database/query/select-base.d.ts.map +1 -1
  150. package/build/src/database/query/where-base.d.ts +1 -1
  151. package/build/src/database/query/where-base.d.ts.map +1 -1
  152. package/build/src/database/query/where-hash.d.ts +1 -0
  153. package/build/src/database/query/where-hash.d.ts.map +1 -1
  154. package/build/src/database/query/where-model-class-hash.d.ts +2 -1
  155. package/build/src/database/query/where-model-class-hash.d.ts.map +1 -1
  156. package/build/src/database/query/where-model-class-hash.js +15 -7
  157. package/build/src/database/query/where-not.d.ts +1 -0
  158. package/build/src/database/query/where-not.d.ts.map +1 -1
  159. package/build/src/database/query/where-plain.d.ts +1 -0
  160. package/build/src/database/query/where-plain.d.ts.map +1 -1
  161. package/build/src/database/query-parser/base-query-parser.d.ts +1 -1
  162. package/build/src/database/query-parser/base-query-parser.d.ts.map +1 -1
  163. package/build/src/database/record/attachments/download.d.ts +3 -3
  164. package/build/src/database/record/attachments/download.d.ts.map +1 -1
  165. package/build/src/database/record/attachments/handle.d.ts +2 -1
  166. package/build/src/database/record/attachments/handle.d.ts.map +1 -1
  167. package/build/src/database/record/attachments/handle.js +3 -2
  168. package/build/src/database/record/attachments/normalize-input.d.ts +4 -4
  169. package/build/src/database/record/attachments/normalize-input.d.ts.map +1 -1
  170. package/build/src/database/record/attachments/storage-drivers/filesystem.d.ts +1 -1
  171. package/build/src/database/record/attachments/storage-drivers/filesystem.d.ts.map +1 -1
  172. package/build/src/database/record/attachments/storage-drivers/native.d.ts +3 -3
  173. package/build/src/database/record/attachments/storage-drivers/native.d.ts.map +1 -1
  174. package/build/src/database/record/attachments/storage-drivers/s3.d.ts +2 -2
  175. package/build/src/database/record/attachments/storage-drivers/s3.d.ts.map +1 -1
  176. package/build/src/database/record/attachments/storage-drivers/s3.js +11 -3
  177. package/build/src/database/record/attachments/store.d.ts +3 -3
  178. package/build/src/database/record/attachments/store.d.ts.map +1 -1
  179. package/build/src/database/record/attachments/store.js +3 -2
  180. package/build/src/database/record/index.d.ts +19 -19
  181. package/build/src/database/record/index.d.ts.map +1 -1
  182. package/build/src/database/record/index.js +53 -35
  183. package/build/src/database/record/instance-relationships/base.d.ts +10 -8
  184. package/build/src/database/record/instance-relationships/base.d.ts.map +1 -1
  185. package/build/src/database/record/instance-relationships/base.js +9 -5
  186. package/build/src/database/record/instance-relationships/belongs-to.d.ts +4 -4
  187. package/build/src/database/record/instance-relationships/belongs-to.d.ts.map +1 -1
  188. package/build/src/database/record/instance-relationships/belongs-to.js +9 -2
  189. package/build/src/database/record/instance-relationships/has-many.d.ts +4 -9
  190. package/build/src/database/record/instance-relationships/has-many.d.ts.map +1 -1
  191. package/build/src/database/record/instance-relationships/has-many.js +12 -8
  192. package/build/src/database/record/instance-relationships/has-one.d.ts +7 -14
  193. package/build/src/database/record/instance-relationships/has-one.d.ts.map +1 -1
  194. package/build/src/database/record/instance-relationships/has-one.js +11 -5
  195. package/build/src/database/record/relationships/base.d.ts +18 -18
  196. package/build/src/database/record/relationships/base.d.ts.map +1 -1
  197. package/build/src/database/record/relationships/base.js +3 -3
  198. package/build/src/database/record/relationships/belongs-to.d.ts +1 -1
  199. package/build/src/database/record/relationships/belongs-to.d.ts.map +1 -1
  200. package/build/src/database/record/relationships/has-many.d.ts +1 -1
  201. package/build/src/database/record/relationships/has-many.d.ts.map +1 -1
  202. package/build/src/database/record/relationships/has-one.d.ts +1 -1
  203. package/build/src/database/record/relationships/has-one.d.ts.map +1 -1
  204. package/build/src/database/table-data/index.d.ts +1 -1
  205. package/build/src/database/table-data/index.d.ts.map +1 -1
  206. package/build/src/database/table-data/table-column.d.ts +12 -12
  207. package/build/src/database/table-data/table-column.d.ts.map +1 -1
  208. package/build/src/database/table-data/table-foreign-key.d.ts +4 -4
  209. package/build/src/database/table-data/table-foreign-key.d.ts.map +1 -1
  210. package/build/src/database/table-data/table-foreign-key.js +2 -2
  211. package/build/src/database/table-data/table-index.d.ts +3 -3
  212. package/build/src/database/table-data/table-index.d.ts.map +1 -1
  213. package/build/src/database/table-data/table-reference.d.ts +1 -1
  214. package/build/src/database/table-data/table-reference.d.ts.map +1 -1
  215. package/build/src/environment-handlers/base.d.ts +10 -5
  216. package/build/src/environment-handlers/base.d.ts.map +1 -1
  217. package/build/src/environment-handlers/base.js +10 -2
  218. package/build/src/environment-handlers/browser.d.ts +5 -26
  219. package/build/src/environment-handlers/browser.d.ts.map +1 -1
  220. package/build/src/environment-handlers/browser.js +14 -4
  221. package/build/src/environment-handlers/node/cli/commands/console.js +3 -3
  222. package/build/src/environment-handlers/node/cli/commands/db/schema/load.d.ts +24 -0
  223. package/build/src/environment-handlers/node/cli/commands/db/schema/load.d.ts.map +1 -0
  224. package/build/src/environment-handlers/node/cli/commands/db/schema/load.js +57 -0
  225. package/build/src/environment-handlers/node/cli/commands/db/seed.d.ts.map +1 -1
  226. package/build/src/environment-handlers/node/cli/commands/db/seed.js +4 -2
  227. package/build/src/environment-handlers/node/cli/commands/destroy/migration.d.ts.map +1 -1
  228. package/build/src/environment-handlers/node/cli/commands/destroy/migration.js +4 -2
  229. package/build/src/environment-handlers/node/cli/commands/generate/base-models.d.ts.map +1 -1
  230. package/build/src/environment-handlers/node/cli/commands/generate/base-models.js +9 -4
  231. package/build/src/environment-handlers/node/cli/commands/generate/frontend-models.d.ts +1 -1
  232. package/build/src/environment-handlers/node/cli/commands/generate/frontend-models.d.ts.map +1 -1
  233. package/build/src/environment-handlers/node/cli/commands/generate/frontend-models.js +9 -4
  234. package/build/src/environment-handlers/node/cli/commands/generate/migration.d.ts.map +1 -1
  235. package/build/src/environment-handlers/node/cli/commands/generate/migration.js +4 -2
  236. package/build/src/environment-handlers/node/cli/commands/generate/model.d.ts.map +1 -1
  237. package/build/src/environment-handlers/node/cli/commands/generate/model.js +4 -2
  238. package/build/src/environment-handlers/node/cli/commands/routes.d.ts.map +1 -1
  239. package/build/src/environment-handlers/node/cli/commands/routes.js +3 -1
  240. package/build/src/environment-handlers/node/cli/commands/run-script.d.ts.map +1 -1
  241. package/build/src/environment-handlers/node/cli/commands/run-script.js +5 -3
  242. package/build/src/environment-handlers/node/cli/commands/runner.d.ts.map +1 -1
  243. package/build/src/environment-handlers/node/cli/commands/runner.js +5 -3
  244. package/build/src/environment-handlers/node/cli/commands/server.d.ts +3 -3
  245. package/build/src/environment-handlers/node/cli/commands/server.d.ts.map +1 -1
  246. package/build/src/environment-handlers/node/cli/commands/server.js +2 -2
  247. package/build/src/environment-handlers/node/cli/commands/test.js +2 -2
  248. package/build/src/environment-handlers/node.d.ts +9 -1
  249. package/build/src/environment-handlers/node.d.ts.map +1 -1
  250. package/build/src/environment-handlers/node.js +10 -2
  251. package/build/src/error-logger.d.ts.map +1 -1
  252. package/build/src/error-logger.js +1 -5
  253. package/build/src/frontend-model-controller.d.ts +17 -17
  254. package/build/src/frontend-model-controller.d.ts.map +1 -1
  255. package/build/src/frontend-model-controller.js +31 -12
  256. package/build/src/frontend-model-resource/base-resource.d.ts +14 -12
  257. package/build/src/frontend-model-resource/base-resource.d.ts.map +1 -1
  258. package/build/src/frontend-model-resource/base-resource.js +16 -4
  259. package/build/src/frontend-models/base.d.ts +27 -20
  260. package/build/src/frontend-models/base.d.ts.map +1 -1
  261. package/build/src/frontend-models/base.js +31 -12
  262. package/build/src/frontend-models/query.d.ts +29 -8
  263. package/build/src/frontend-models/query.d.ts.map +1 -1
  264. package/build/src/frontend-models/query.js +18 -4
  265. package/build/src/http-client/index.d.ts +11 -11
  266. package/build/src/http-client/index.d.ts.map +1 -1
  267. package/build/src/http-client/request.d.ts +2 -2
  268. package/build/src/http-client/request.d.ts.map +1 -1
  269. package/build/src/http-client/response.d.ts +1 -1
  270. package/build/src/http-client/response.d.ts.map +1 -1
  271. package/build/src/http-client/websocket-client.d.ts +26 -12
  272. package/build/src/http-client/websocket-client.d.ts.map +1 -1
  273. package/build/src/http-client/websocket-client.js +26 -12
  274. package/build/src/http-server/client/index.d.ts +4 -4
  275. package/build/src/http-server/client/index.d.ts.map +1 -1
  276. package/build/src/http-server/client/index.js +17 -11
  277. package/build/src/http-server/client/params-to-object.d.ts.map +1 -1
  278. package/build/src/http-server/client/params-to-object.js +14 -11
  279. package/build/src/http-server/client/request-buffer/form-data-part.d.ts +15 -7
  280. package/build/src/http-server/client/request-buffer/form-data-part.d.ts.map +1 -1
  281. package/build/src/http-server/client/request-buffer/form-data-part.js +9 -1
  282. package/build/src/http-server/client/request-buffer/index.d.ts +15 -14
  283. package/build/src/http-server/client/request-buffer/index.d.ts.map +1 -1
  284. package/build/src/http-server/client/request-buffer/index.js +19 -7
  285. package/build/src/http-server/client/request-parser.d.ts +1 -1
  286. package/build/src/http-server/client/request-parser.d.ts.map +1 -1
  287. package/build/src/http-server/client/request-parser.js +2 -2
  288. package/build/src/http-server/client/request-runner.d.ts.map +1 -1
  289. package/build/src/http-server/client/request-runner.js +4 -2
  290. package/build/src/http-server/client/request.d.ts +3 -3
  291. package/build/src/http-server/client/request.d.ts.map +1 -1
  292. package/build/src/http-server/client/response.d.ts +4 -4
  293. package/build/src/http-server/client/response.d.ts.map +1 -1
  294. package/build/src/http-server/client/uploaded-file/uploaded-file.d.ts +2 -2
  295. package/build/src/http-server/client/uploaded-file/uploaded-file.d.ts.map +1 -1
  296. package/build/src/http-server/client/websocket-request.d.ts +22 -16
  297. package/build/src/http-server/client/websocket-request.d.ts.map +1 -1
  298. package/build/src/http-server/client/websocket-request.js +13 -5
  299. package/build/src/http-server/client/websocket-session.d.ts +52 -17
  300. package/build/src/http-server/client/websocket-session.d.ts.map +1 -1
  301. package/build/src/http-server/client/websocket-session.js +59 -10
  302. package/build/src/http-server/cookie.d.ts +17 -17
  303. package/build/src/http-server/cookie.d.ts.map +1 -1
  304. package/build/src/http-server/index.d.ts +4 -4
  305. package/build/src/http-server/index.d.ts.map +1 -1
  306. package/build/src/http-server/index.js +4 -4
  307. package/build/src/http-server/server-client.d.ts +3 -3
  308. package/build/src/http-server/server-client.d.ts.map +1 -1
  309. package/build/src/http-server/server-client.js +4 -4
  310. package/build/src/http-server/websocket-channel.d.ts +3 -3
  311. package/build/src/http-server/websocket-channel.d.ts.map +1 -1
  312. package/build/src/http-server/websocket-events-host.d.ts.map +1 -1
  313. package/build/src/http-server/websocket-events-host.js +6 -3
  314. package/build/src/http-server/websocket-events.d.ts +2 -2
  315. package/build/src/http-server/websocket-events.d.ts.map +1 -1
  316. package/build/src/http-server/websocket-events.js +3 -1
  317. package/build/src/http-server/worker-handler/index.d.ts +7 -7
  318. package/build/src/http-server/worker-handler/index.d.ts.map +1 -1
  319. package/build/src/http-server/worker-handler/index.js +16 -7
  320. package/build/src/http-server/worker-handler/worker-thread.d.ts +9 -9
  321. package/build/src/http-server/worker-handler/worker-thread.d.ts.map +1 -1
  322. package/build/src/http-server/worker-handler/worker-thread.js +23 -13
  323. package/build/src/logger/console-logger.d.ts +2 -2
  324. package/build/src/logger/console-logger.d.ts.map +1 -1
  325. package/build/src/logger/file-logger.d.ts +2 -2
  326. package/build/src/logger/file-logger.d.ts.map +1 -1
  327. package/build/src/logger/outputs/array-output.d.ts +1 -1
  328. package/build/src/logger/outputs/array-output.d.ts.map +1 -1
  329. package/build/src/logger/outputs/file-output.d.ts +8 -5
  330. package/build/src/logger/outputs/file-output.d.ts.map +1 -1
  331. package/build/src/logger/outputs/file-output.js +4 -1
  332. package/build/src/logger.d.ts +7 -7
  333. package/build/src/logger.d.ts.map +1 -1
  334. package/build/src/mailer/backends/smtp.d.ts +3 -3
  335. package/build/src/mailer/backends/smtp.d.ts.map +1 -1
  336. package/build/src/mailer/backends/smtp.js +3 -3
  337. package/build/src/mailer/base.d.ts +7 -7
  338. package/build/src/mailer/base.d.ts.map +1 -1
  339. package/build/src/mailer/base.js +3 -3
  340. package/build/src/plugins/sqljs-wasm-route.d.ts +2 -2
  341. package/build/src/plugins/sqljs-wasm-route.d.ts.map +1 -1
  342. package/build/src/routes/base-route.d.ts +2 -2
  343. package/build/src/routes/base-route.d.ts.map +1 -1
  344. package/build/src/routes/base-route.js +2 -2
  345. package/build/src/routes/get-route.d.ts +5 -0
  346. package/build/src/routes/get-route.d.ts.map +1 -1
  347. package/build/src/routes/namespace-route.d.ts +1 -1
  348. package/build/src/routes/plugin-routes.d.ts +2 -2
  349. package/build/src/routes/plugin-routes.d.ts.map +1 -1
  350. package/build/src/routes/post-route.d.ts +5 -0
  351. package/build/src/routes/post-route.d.ts.map +1 -1
  352. package/build/src/routes/resolver.d.ts +4 -2
  353. package/build/src/routes/resolver.d.ts.map +1 -1
  354. package/build/src/routes/resolver.js +7 -3
  355. package/build/src/routes/resource-route.d.ts +5 -0
  356. package/build/src/routes/resource-route.d.ts.map +1 -1
  357. package/build/src/routes/root-route.d.ts +5 -0
  358. package/build/src/routes/root-route.d.ts.map +1 -1
  359. package/build/src/testing/expect-to-change.d.ts +3 -3
  360. package/build/src/testing/expect-to-change.d.ts.map +1 -1
  361. package/build/src/testing/expect-utils.d.ts.map +1 -1
  362. package/build/src/testing/expect-utils.js +7 -5
  363. package/build/src/testing/expect.d.ts +1 -1
  364. package/build/src/testing/expect.d.ts.map +1 -1
  365. package/build/src/testing/request-client.d.ts +1 -1
  366. package/build/src/testing/request-client.d.ts.map +1 -1
  367. package/build/src/testing/test-files-finder.d.ts +1 -1
  368. package/build/src/testing/test-files-finder.d.ts.map +1 -1
  369. package/build/src/testing/test-runner.d.ts +57 -37
  370. package/build/src/testing/test-runner.d.ts.map +1 -1
  371. package/build/src/testing/test-runner.js +14 -3
  372. package/build/src/testing/test-suite-splitter.d.ts +1 -1
  373. package/build/src/testing/test-suite-splitter.d.ts.map +1 -1
  374. package/build/src/testing/test.d.ts +14 -6
  375. package/build/src/testing/test.d.ts.map +1 -1
  376. package/build/src/testing/test.js +14 -5
  377. package/build/src/utils/backtrace-cleaner.d.ts +2 -2
  378. package/build/src/utils/backtrace-cleaner.d.ts.map +1 -1
  379. package/build/src/utils/split-sql-statements.d.ts +7 -0
  380. package/build/src/utils/split-sql-statements.d.ts.map +1 -0
  381. package/build/src/utils/split-sql-statements.js +77 -0
  382. package/build/src/utils/with-tracked-stack-async-hooks.d.ts.map +1 -1
  383. package/build/src/utils/with-tracked-stack-async-hooks.js +5 -3
  384. package/build/src/utils/with-tracked-stack.d.ts.map +1 -1
  385. package/build/src/utils/with-tracked-stack.js +5 -3
  386. package/build/src/velocious-error.d.ts +4 -4
  387. package/build/src/velocious-error.d.ts.map +1 -1
  388. package/build/tsconfig.tsbuildinfo +1 -1
  389. package/package.json +10 -2
@@ -307,29 +307,29 @@ export type WebsocketMessageHandler = {
307
307
  /**
308
308
  * - Handler for incoming websocket messages.
309
309
  */
310
- onMessage?: (arg0: {
310
+ onMessage?: ((arg0: {
311
311
  message: any;
312
312
  session: import("./http-server/client/websocket-session.js").default;
313
- }) => Promise<void> | void;
313
+ }) => Promise<void> | void) | undefined;
314
314
  /**
315
315
  * - Handler when the websocket session opens.
316
316
  */
317
- onOpen?: (arg0: {
317
+ onOpen?: ((arg0: {
318
318
  session: import("./http-server/client/websocket-session.js").default;
319
- }) => Promise<void> | void;
319
+ }) => Promise<void> | void) | undefined;
320
320
  /**
321
321
  * - Handler when the websocket session closes.
322
322
  */
323
- onClose?: (arg0: {
323
+ onClose?: ((arg0: {
324
324
  session: import("./http-server/client/websocket-session.js").default;
325
- }) => Promise<void> | void;
325
+ }) => Promise<void> | void) | undefined;
326
326
  /**
327
327
  * - Handler when a websocket message errors.
328
328
  */
329
- onError?: (arg0: {
329
+ onError?: ((arg0: {
330
330
  error: Error;
331
331
  session: import("./http-server/client/websocket-session.js").default;
332
- }) => Promise<void> | void;
332
+ }) => Promise<void> | void) | undefined;
333
333
  };
334
334
  export type WebsocketMessageHandlerResolverType = (arg0: {
335
335
  request: import("./http-server/client/request.js").default | import("./http-server/client/websocket-request.js").default | undefined;
@@ -353,112 +353,136 @@ export type SqlConfig = {
353
353
  /**
354
354
  * - Database name for the SQL driver.
355
355
  */
356
- database?: string;
356
+ database?: string | undefined;
357
357
  /**
358
358
  * - Driver-specific connection options.
359
359
  */
360
360
  options?: {
361
- encrypt?: boolean;
362
- schema?: string;
363
- serverName?: string;
364
- trustServerCertificate?: boolean;
365
- };
361
+ /**
362
+ * - Whether to encrypt the connection (MSSQL).
363
+ */
364
+ encrypt?: boolean | undefined;
365
+ /**
366
+ * - Default schema for unqualified table lookups (MSSQL).
367
+ */
368
+ schema?: string | undefined;
369
+ /**
370
+ * - TLS SNI server name override for MSSQL (empty string disables SNI).
371
+ */
372
+ serverName?: string | undefined;
373
+ /**
374
+ * - Whether to trust the server certificate (MSSQL).
375
+ */
376
+ trustServerCertificate?: boolean | undefined;
377
+ } | undefined;
366
378
  /**
367
379
  * - Password for the SQL user.
368
380
  */
369
- password?: string;
381
+ password?: string | undefined;
370
382
  /**
371
383
  * - Connection pool configuration.
372
384
  */
373
385
  pool?: {
374
- max?: number;
375
- min?: number;
376
- idleTimeoutMillis?: number;
377
- };
386
+ /**
387
+ * - Maximum number of connections.
388
+ */
389
+ max?: number | undefined;
390
+ /**
391
+ * - Minimum number of connections.
392
+ */
393
+ min?: number | undefined;
394
+ /**
395
+ * - Idle timeout before releasing a connection.
396
+ */
397
+ idleTimeoutMillis?: number | undefined;
398
+ } | undefined;
378
399
  /**
379
400
  * - SQL server hostname.
380
401
  */
381
- server?: string;
402
+ server?: string | undefined;
382
403
  /**
383
404
  * - SQL username.
384
405
  */
385
- user?: string;
406
+ user?: string | undefined;
386
407
  };
387
408
  export type DatabaseConfigurationType = {
388
409
  /**
389
410
  * - Database name for this connection.
390
411
  */
391
- database?: string;
412
+ database?: string | undefined;
392
413
  /**
393
414
  * - Driver class to use for this database.
394
415
  */
395
- driver?: typeof import("./database/drivers/base.js").default;
416
+ driver?: typeof import("./database/drivers/base.js").default | undefined;
396
417
  /**
397
418
  * - Pool class to use for this database.
398
419
  */
399
- poolType?: typeof import("./database/pool/base.js").default;
420
+ poolType?: typeof import("./database/pool/base.js").default | undefined;
400
421
  /**
401
422
  * - Custom connection factory override.
402
423
  */
403
- getConnection?: () => unknown;
424
+ getConnection?: (() => unknown) | undefined;
404
425
  /**
405
426
  * - Database host.
406
427
  */
407
- host?: string;
428
+ host?: string | undefined;
408
429
  /**
409
430
  * - Whether migrations are enabled for this database.
410
431
  */
411
- migrations?: boolean;
432
+ migrations?: boolean | undefined;
412
433
  /**
413
434
  * - Password for the database user.
414
435
  */
415
- password?: string;
436
+ password?: string | undefined;
416
437
  /**
417
438
  * - Database port.
418
439
  */
419
- port?: number;
440
+ port?: number | undefined;
420
441
  /**
421
442
  * - Friendly name for the configuration.
422
443
  */
423
- name?: string;
444
+ name?: string | undefined;
424
445
  /**
425
446
  * - Optional sqlite-web sql.js wasm resolver (`initSqlJs({locateFile})`).
426
447
  */
427
- locateFile?: (file: string) => string;
448
+ locateFile?: ((file: string) => string) | undefined;
428
449
  /**
429
450
  * - Whether writes should be blocked for this database.
430
451
  */
431
- readOnly?: boolean;
452
+ readOnly?: boolean | undefined;
432
453
  /**
433
454
  * - Default schema for unqualified table lookups (MSSQL).
434
455
  */
435
- schema?: string;
456
+ schema?: string | undefined;
436
457
  /**
437
458
  * - Record-level configuration.
438
459
  */
439
460
  record?: {
440
- transactions?: boolean;
441
- };
461
+ /**
462
+ * - Whether record operations should use transactions.
463
+ */
464
+ transactions?: boolean | undefined;
465
+ } | undefined;
442
466
  /**
443
467
  * - Whether to reset the database on startup.
444
468
  */
445
- reset?: boolean;
469
+ reset?: boolean | undefined;
446
470
  /**
447
471
  * - Driver-specific SQL config.
448
472
  */
449
- sqlConfig?: SqlConfig;
473
+ sqlConfig?: SqlConfig | undefined;
450
474
  /**
451
475
  * - Database type identifier.
452
476
  */
453
- type?: "mssql" | "mysql" | "pgsql" | "sqlite";
477
+ type?: "mysql" | "pgsql" | "mssql" | "sqlite" | undefined;
454
478
  /**
455
479
  * - Database to switch to after connecting.
456
480
  */
457
- useDatabase?: string;
481
+ useDatabase?: string | undefined;
458
482
  /**
459
483
  * - Username for database authentication.
460
484
  */
461
- username?: string;
485
+ username?: string | undefined;
462
486
  };
463
487
  export type LogLevel = "debug-low-level" | "debug" | "info" | "warn" | "error";
464
488
  export type LoggingOutputPayload = {
@@ -487,7 +511,7 @@ export type LoggingOutput = {
487
511
  /**
488
512
  * - Default levels for this output.
489
513
  */
490
- levels?: LogLevel[];
514
+ levels?: LogLevel[] | undefined;
491
515
  };
492
516
  export type LoggingOutputConfig = {
493
517
  /**
@@ -497,78 +521,78 @@ export type LoggingOutputConfig = {
497
521
  /**
498
522
  * - Levels enabled for this output.
499
523
  */
500
- levels?: Array<LogLevel>;
524
+ levels?: LogLevel[] | undefined;
501
525
  };
502
526
  export type LoggerConfig = LoggingOutputConfig | LoggingOutput | import("./logger/base-logger.js").default;
503
527
  export type LoggingConfiguration = {
504
528
  /**
505
529
  * - Enable/disable console logging for request logging. Defaults to true outside of "test" and for HTTP server logs.
506
530
  */
507
- console?: boolean;
531
+ console?: boolean | undefined;
508
532
  /**
509
533
  * - Enable/disable writing logs to a file. Defaults to true.
510
534
  */
511
- file?: boolean;
535
+ file?: boolean | undefined;
512
536
  /**
513
537
  * - Directory where log files are stored. Defaults to "<project>/log".
514
538
  */
515
- directory?: string;
539
+ directory?: string | undefined;
516
540
  /**
517
541
  * - Explicit path for the log file. Defaults to "<directory>/<environment>.log".
518
542
  */
519
- filePath?: string;
543
+ filePath?: string | undefined;
520
544
  /**
521
545
  * - Override which log levels are emitted.
522
546
  */
523
- levels?: Array<"debug-low-level" | "debug" | "info" | "warn" | "error">;
547
+ levels?: ("debug" | "error" | "info" | "debug-low-level" | "warn")[] | undefined;
524
548
  /**
525
549
  * - Convenience flag to include very low-level debug logs.
526
550
  */
527
- debugLowLevel?: boolean;
551
+ debugLowLevel?: boolean | undefined;
528
552
  /**
529
553
  * - Logger instances (converted to outputs when configured).
530
554
  */
531
- loggers?: LoggerConfig[];
555
+ loggers?: LoggerConfig[] | undefined;
532
556
  /**
533
557
  * - Explicit logger outputs (overrides console/file defaults when provided).
534
558
  */
535
- outputs?: LoggingOutputConfig[];
559
+ outputs?: LoggingOutputConfig[] | undefined;
536
560
  };
537
561
  export type StructureSqlConfiguration = {
538
562
  /**
539
563
  * - Environments that should skip writing structure sql files.
540
564
  */
541
- disabledEnvironments?: string[];
565
+ disabledEnvironments?: string[] | undefined;
542
566
  };
543
567
  export type BackgroundJobsConfiguration = {
544
568
  /**
545
569
  * - Hostname for the background jobs main process.
546
570
  */
547
- host?: string;
571
+ host?: string | undefined;
548
572
  /**
549
573
  * - Port for the background jobs main process.
550
574
  */
551
- port?: number;
575
+ port?: number | undefined;
552
576
  /**
553
577
  * - Database identifier used to store background jobs.
554
578
  */
555
- databaseIdentifier?: string;
579
+ databaseIdentifier?: string | undefined;
556
580
  };
557
581
  export type ScheduledBackgroundJobEveryOptions = {
558
582
  /**
559
583
  * - Delay before the first enqueue.
560
584
  */
561
- firstIn?: number | string;
585
+ firstIn?: string | number | undefined;
562
586
  /**
563
587
  * - Sidekiq-style alias for `firstIn`.
564
588
  */
565
- first_in?: number | string;
589
+ first_in?: string | number | undefined;
566
590
  };
567
591
  export type ScheduledBackgroundJobConfiguration = {
568
592
  /**
569
593
  * - Arguments passed to the job when enqueued.
570
594
  */
571
- args?: any[];
595
+ args?: any[] | undefined;
572
596
  /**
573
597
  * - Job class to enqueue.
574
598
  */
@@ -576,7 +600,7 @@ export type ScheduledBackgroundJobConfiguration = {
576
600
  /**
577
601
  * - Whether the schedule is enabled.
578
602
  */
579
- enabled?: boolean;
603
+ enabled?: boolean | undefined;
580
604
  /**
581
605
  * - Repeat interval.
582
606
  */
@@ -584,7 +608,7 @@ export type ScheduledBackgroundJobConfiguration = {
584
608
  /**
585
609
  * - Job options.
586
610
  */
587
- options?: import("./background-jobs/types.js").BackgroundJobOptions;
611
+ options?: import("./background-jobs/types.js").BackgroundJobOptions | undefined;
588
612
  };
589
613
  export type ScheduledBackgroundJobsConfiguration = {
590
614
  /**
@@ -599,37 +623,37 @@ export type AttachmentDriverConfiguration = {
599
623
  /**
600
624
  * - Optional factory for a custom attachment driver instance.
601
625
  */
602
- create?: (arg0: {
626
+ create?: ((arg0: {
603
627
  configuration: import("./configuration.js").default;
604
628
  name: string;
605
629
  options: Record<string, any>;
606
- }) => Record<string, any>;
630
+ }) => Record<string, any>) | undefined;
607
631
  /**
608
632
  * - Optional custom attachment driver class.
609
633
  */
610
- driverClass?: new (...args: any[]) => Record<string, any>;
634
+ driverClass?: (new (...args: any[]) => Record<string, any>) | undefined;
611
635
  /**
612
636
  * - Optional custom attachment driver instance.
613
637
  */
614
- instance?: Record<string, any>;
638
+ instance?: Record<string, any> | undefined;
615
639
  };
616
640
  export type AttachmentsConfiguration = {
617
641
  /**
618
642
  * - Default attachment storage driver name.
619
643
  */
620
- defaultDriver?: string;
644
+ defaultDriver?: string | undefined;
621
645
  /**
622
646
  * - Named attachment driver configurations.
623
647
  */
624
- drivers?: Record<string, AttachmentDriverConfiguration & Record<string, any>>;
648
+ drivers?: Record<string, AttachmentDriverConfiguration & Record<string, any>> | undefined;
625
649
  /**
626
650
  * - Whether `{path: ...}` attachment input is allowed.
627
651
  */
628
- allowPathInput?: boolean;
652
+ allowPathInput?: boolean | undefined;
629
653
  /**
630
654
  * - Optional allowlist of directories for `{path: ...}` input.
631
655
  */
632
- allowedPathPrefixes?: string[];
656
+ allowedPathPrefixes?: string[] | undefined;
633
657
  };
634
658
  export type MailerBackend = {
635
659
  /**
@@ -649,37 +673,37 @@ export type FrontendModelRelationshipConfiguration = {
649
673
  /**
650
674
  * - Target model class name.
651
675
  */
652
- model?: string;
676
+ model?: string | undefined;
653
677
  /**
654
678
  * - Alias of target model class name.
655
679
  */
656
- className?: string;
680
+ className?: string | undefined;
657
681
  /**
658
682
  * - Explicit target model class name.
659
683
  */
660
- modelClassName?: string;
684
+ modelClassName?: string | undefined;
661
685
  };
662
686
  export type FrontendModelAttributeConfiguration = {
663
687
  /**
664
688
  * - Column type name.
665
689
  */
666
- type?: string;
690
+ type?: string | undefined;
667
691
  /**
668
692
  * - Alias for column type name.
669
693
  */
670
- columnType?: string;
694
+ columnType?: string | undefined;
671
695
  /**
672
696
  * - Alias for column type name.
673
697
  */
674
- sqlType?: string;
698
+ sqlType?: string | undefined;
675
699
  /**
676
700
  * - Alias for column type name.
677
701
  */
678
- dataType?: string;
702
+ dataType?: string | undefined;
679
703
  /**
680
704
  * - Whether value can be null.
681
705
  */
682
- null?: boolean;
706
+ null?: boolean | undefined;
683
707
  };
684
708
  export type FrontendModelAttachmentConfiguration = {
685
709
  /**
@@ -695,43 +719,43 @@ export type FrontendModelResourceConfiguration = {
695
719
  /**
696
720
  * - Ability actions keyed by frontend command (`index`, `find`, `create`, `update`, `destroy`) or shorthand action list. Defaults to `{find: "read", index: "read"}` when omitted.
697
721
  */
698
- abilities?: FrontendModelResourceAbilitiesConfiguration | string[];
722
+ abilities?: string[] | FrontendModelResourceAbilitiesConfiguration | undefined;
699
723
  /**
700
724
  * - Attachment helpers keyed by attachment name.
701
725
  */
702
- attachments?: Record<string, FrontendModelAttachmentConfiguration>;
726
+ attachments?: Record<string, FrontendModelAttachmentConfiguration> | undefined;
703
727
  /**
704
728
  * - Legacy built-in command names keyed by action (`index`, `find`, `create`, `update`, `destroy`, `attach`, `download`, `url`) or shorthand command list using default names.
705
729
  */
706
- commands?: Record<string, string> | string[];
730
+ commands?: string[] | Record<string, string> | undefined;
707
731
  /**
708
732
  * - Custom collection commands keyed by generated method name or shorthand command list using camelized method names. When `builtInCollectionCommands` and `builtInMemberCommands` are omitted, this key keeps its legacy built-in-command behavior.
709
733
  */
710
- collectionCommands?: Record<string, string> | string[];
734
+ collectionCommands?: string[] | Record<string, string> | undefined;
711
735
  /**
712
736
  * - Custom member commands keyed by generated method name or shorthand command list using camelized method names. When `builtInCollectionCommands` and `builtInMemberCommands` are omitted, this key keeps its legacy built-in-command behavior.
713
737
  */
714
- memberCommands?: Record<string, string> | string[];
738
+ memberCommands?: string[] | Record<string, string> | undefined;
715
739
  /**
716
740
  * - Built-in collection command names keyed by action (`index`, `create`) or shorthand command list using default names.
717
741
  */
718
- builtInCollectionCommands?: Record<string, string> | string[];
742
+ builtInCollectionCommands?: string[] | Record<string, string> | undefined;
719
743
  /**
720
744
  * - Built-in member command names keyed by action (`find`, `update`, `destroy`, `attach`, `download`, `url`) or shorthand command list using default names.
721
745
  */
722
- builtInMemberCommands?: Record<string, string> | string[];
746
+ builtInMemberCommands?: string[] | Record<string, string> | undefined;
723
747
  /**
724
748
  * - Relationship helpers to generate for frontend model files. Arrays infer target model/type from backend model relationships.
725
749
  */
726
- relationships?: Record<string, FrontendModelRelationshipConfiguration> | string[];
750
+ relationships?: string[] | Record<string, FrontendModelRelationshipConfiguration> | undefined;
727
751
  /**
728
752
  * - Primary key attribute name.
729
753
  */
730
- primaryKey?: string;
754
+ primaryKey?: string | undefined;
731
755
  /**
732
756
  * - Optional legacy backend behavior overrides for built-in frontend actions.
733
757
  */
734
- server?: FrontendModelResourceServerConfiguration;
758
+ server?: FrontendModelResourceServerConfiguration | undefined;
735
759
  };
736
760
  export type NormalizedFrontendModelResourceConfiguration = Omit<FrontendModelResourceConfiguration, "abilities" | "builtInCollectionCommands" | "builtInMemberCommands" | "collectionCommands" | "commands" | "memberCommands"> & {
737
761
  abilities: FrontendModelResourceAbilitiesConfiguration;
@@ -746,94 +770,94 @@ export type FrontendModelResourceAbilitiesConfiguration = {
746
770
  /**
747
771
  * - Ability action for frontend index.
748
772
  */
749
- index?: string;
773
+ index?: string | undefined;
750
774
  /**
751
775
  * - Ability action for frontend find.
752
776
  */
753
- find?: string;
777
+ find?: string | undefined;
754
778
  /**
755
779
  * - Ability action for frontend create.
756
780
  */
757
- create?: string;
781
+ create?: string | undefined;
758
782
  /**
759
783
  * - Ability action for frontend update.
760
784
  */
761
- update?: string;
785
+ update?: string | undefined;
762
786
  /**
763
787
  * - Ability action for frontend destroy.
764
788
  */
765
- destroy?: string;
789
+ destroy?: string | undefined;
766
790
  };
767
791
  export type FrontendModelResourceServerConfiguration = {
768
792
  /**
769
793
  * - Optional callback run before built-in frontend actions.
770
794
  */
771
- beforeAction?: (arg0: {
795
+ beforeAction?: ((arg0: {
772
796
  action: "index" | "find" | "create" | "update" | "destroy" | "attach" | "download" | "url";
773
797
  controller: import("./controller.js").default;
774
798
  params: Record<string, any>;
775
799
  modelClass: typeof import("./database/record/index.js").default;
776
- }) => (boolean | void | Promise<boolean | void>);
800
+ }) => (boolean | void | Promise<boolean | void>)) | undefined;
777
801
  /**
778
802
  * - Records loader for frontendIndex.
779
803
  */
780
- records?: (arg0: {
804
+ records?: ((arg0: {
781
805
  action: "index";
782
806
  controller: import("./controller.js").default;
783
807
  params: Record<string, any>;
784
808
  modelClass: typeof import("./database/record/index.js").default;
785
- }) => Promise<import("./database/record/index.js").default[]>;
809
+ }) => Promise<import("./database/record/index.js").default[]>) | undefined;
786
810
  /**
787
811
  * - Record serializer for response payloads.
788
812
  */
789
- serialize?: (arg0: {
813
+ serialize?: ((arg0: {
790
814
  action: "index" | "find" | "create" | "update";
791
815
  controller: import("./controller.js").default;
792
816
  params: Record<string, any>;
793
817
  modelClass: typeof import("./database/record/index.js").default;
794
818
  model: import("./database/record/index.js").default;
795
- }) => Record<string, any> | Promise<Record<string, any>>;
819
+ }) => Record<string, any> | Promise<Record<string, any>>) | undefined;
796
820
  /**
797
821
  * - Record loader for find/update/destroy/attach/download/url actions.
798
822
  */
799
- find?: (arg0: {
823
+ find?: ((arg0: {
800
824
  action: "find" | "update" | "destroy" | "attach" | "download" | "url";
801
825
  controller: import("./controller.js").default;
802
826
  params: Record<string, any>;
803
827
  modelClass: typeof import("./database/record/index.js").default;
804
828
  id: string | number;
805
- }) => Promise<import("./database/record/index.js").default | null>;
829
+ }) => Promise<import("./database/record/index.js").default | null>) | undefined;
806
830
  /**
807
831
  * - Custom create callback.
808
832
  */
809
- create?: (arg0: {
833
+ create?: ((arg0: {
810
834
  action: "create";
811
835
  controller: import("./controller.js").default;
812
836
  params: Record<string, any>;
813
837
  modelClass: typeof import("./database/record/index.js").default;
814
838
  attributes: Record<string, any>;
815
- }) => Promise<import("./database/record/index.js").default>;
839
+ }) => Promise<import("./database/record/index.js").default>) | undefined;
816
840
  /**
817
841
  * - Custom update callback.
818
842
  */
819
- update?: (arg0: {
843
+ update?: ((arg0: {
820
844
  action: "update";
821
845
  controller: import("./controller.js").default;
822
846
  params: Record<string, any>;
823
847
  modelClass: typeof import("./database/record/index.js").default;
824
848
  model: import("./database/record/index.js").default;
825
849
  attributes: Record<string, any>;
826
- }) => Promise<import("./database/record/index.js").default | void>;
850
+ }) => Promise<import("./database/record/index.js").default | void>) | undefined;
827
851
  /**
828
852
  * - Custom destroy callback.
829
853
  */
830
- destroy?: (arg0: {
854
+ destroy?: ((arg0: {
831
855
  action: "destroy";
832
856
  controller: import("./controller.js").default;
833
857
  params: Record<string, any>;
834
858
  modelClass: typeof import("./database/record/index.js").default;
835
859
  model: import("./database/record/index.js").default;
836
- }) => Promise<void>;
860
+ }) => Promise<void>) | undefined;
837
861
  };
838
862
  export type BackendProjectConfiguration = {
839
863
  /**
@@ -843,11 +867,11 @@ export type BackendProjectConfiguration = {
843
867
  /**
844
868
  * - Optional output project path where `src/frontend-models` should be generated.
845
869
  */
846
- frontendModelsOutputPath?: string;
870
+ frontendModelsOutputPath?: string | undefined;
847
871
  /**
848
872
  * - Frontend model definitions keyed by model class name.
849
873
  */
850
- frontendModels?: Record<string, FrontendModelResourceDefinition>;
874
+ frontendModels?: Record<string, typeof import("./frontend-model-resource/base-resource.js").default> | undefined;
851
875
  /**
852
876
  * - Webpack-style require context for frontend model resource files.
853
877
  */
@@ -856,11 +880,11 @@ export type BackendProjectConfiguration = {
856
880
  default?: unknown;
857
881
  };
858
882
  keys: () => string[];
859
- };
883
+ } | undefined;
860
884
  /**
861
885
  * - Alias for `frontendModels`.
862
886
  */
863
- resources?: Record<string, FrontendModelResourceDefinition>;
887
+ resources?: Record<string, typeof import("./frontend-model-resource/base-resource.js").default> | undefined;
864
888
  /**
865
889
  * - Alias for `frontendModelsRequireContext`.
866
890
  */
@@ -869,7 +893,7 @@ export type BackendProjectConfiguration = {
869
893
  default?: unknown;
870
894
  };
871
895
  keys: () => string[];
872
- };
896
+ } | undefined;
873
897
  };
874
898
  export type RouteResolverHookArgs = {
875
899
  /**
@@ -909,19 +933,19 @@ export type RouteResolverHookResult = {
909
933
  /**
910
934
  * - Optional controller class override.
911
935
  */
912
- controllerClass?: typeof import("./controller.js").default;
936
+ controllerClass?: typeof import("./controller.js").default | undefined;
913
937
  /**
914
938
  * - Optional absolute/relative controller file path override.
915
939
  */
916
- controllerPath?: string;
940
+ controllerPath?: string | undefined;
917
941
  /**
918
942
  * - Extra params to merge for controller/action.
919
943
  */
920
- params?: Record<string, any>;
944
+ params?: Record<string, any> | undefined;
921
945
  /**
922
946
  * - Optional view path override used by controller render lookups.
923
947
  */
924
- viewPath?: string;
948
+ viewPath?: string | undefined;
925
949
  };
926
950
  export type RouteResolverHookType = (arg0: RouteResolverHookArgs) => RouteResolverHookResult | null | Promise<RouteResolverHookResult | null>;
927
951
  export type AbilityResourceClassType = typeof import("./authorization/base-resource.js").default;
@@ -951,27 +975,27 @@ export type ConfigurationArgsType = {
951
975
  /**
952
976
  * - CORS configuration for the HTTP server.
953
977
  */
954
- cors?: CorsType;
978
+ cors?: CorsType | undefined;
955
979
  /**
956
980
  * - Secret for encrypting cookies.
957
981
  */
958
- cookieSecret?: string;
982
+ cookieSecret?: string | undefined;
959
983
  /**
960
984
  * - Resource classes used to define abilities per model.
961
985
  */
962
- abilityResources?: AbilityResourceClassType[];
986
+ abilityResources?: typeof import("./authorization/base-resource.js").default[] | undefined;
963
987
  /**
964
988
  * - Resolver for creating request-scoped ability instances.
965
989
  */
966
- abilityResolver?: AbilityResolverType;
990
+ abilityResolver?: AbilityResolverType | undefined;
967
991
  /**
968
992
  * - Attachment storage configuration.
969
993
  */
970
- attachments?: AttachmentsConfiguration;
994
+ attachments?: AttachmentsConfiguration | undefined;
971
995
  /**
972
996
  * - Backend project definitions used for frontend model generation.
973
997
  */
974
- backendProjects?: BackendProjectConfiguration[];
998
+ backendProjects?: BackendProjectConfiguration[] | undefined;
975
999
  /**
976
1000
  * - Database configurations keyed by environment and identifier.
977
1001
  */
@@ -983,15 +1007,15 @@ export type ConfigurationArgsType = {
983
1007
  /**
984
1008
  * - Enable debug logging.
985
1009
  */
986
- debug?: boolean;
1010
+ debug?: boolean | undefined;
987
1011
  /**
988
1012
  * - Base directory for the project.
989
1013
  */
990
- directory?: string;
1014
+ directory?: string | undefined;
991
1015
  /**
992
1016
  * - Current environment name.
993
1017
  */
994
- environment?: string;
1018
+ environment?: string | undefined;
995
1019
  /**
996
1020
  * - Environment handler instance.
997
1021
  */
@@ -999,19 +1023,19 @@ export type ConfigurationArgsType = {
999
1023
  /**
1000
1024
  * - Logging configuration.
1001
1025
  */
1002
- logging?: LoggingConfiguration;
1026
+ logging?: LoggingConfiguration | undefined;
1003
1027
  /**
1004
1028
  * - Background jobs configuration.
1005
1029
  */
1006
- backgroundJobs?: BackgroundJobsConfiguration;
1030
+ backgroundJobs?: BackgroundJobsConfiguration | undefined;
1007
1031
  /**
1008
1032
  * - Scheduled background jobs configuration.
1009
1033
  */
1010
- scheduledBackgroundJobs?: ScheduledBackgroundJobsConfiguration | ScheduledBackgroundJobsLoaderType;
1034
+ scheduledBackgroundJobs?: ScheduledBackgroundJobsConfiguration | ScheduledBackgroundJobsLoaderType | undefined;
1011
1035
  /**
1012
1036
  * - Mail delivery backend.
1013
1037
  */
1014
- mailerBackend?: MailerBackend;
1038
+ mailerBackend?: MailerBackend | undefined;
1015
1039
  /**
1016
1040
  * - Hook to register models for a given initialization type.
1017
1041
  */
@@ -1022,7 +1046,7 @@ export type ConfigurationArgsType = {
1022
1046
  /**
1023
1047
  * - Initializer loader for environment bootstrapping.
1024
1048
  */
1025
- initializers?: InitializersType;
1049
+ initializers?: InitializersType | undefined;
1026
1050
  /**
1027
1051
  * - Default locale or locale resolver.
1028
1052
  */
@@ -1038,38 +1062,38 @@ export type ConfigurationArgsType = {
1038
1062
  /**
1039
1063
  * - Structure SQL generation configuration.
1040
1064
  */
1041
- structureSql?: StructureSqlConfiguration;
1065
+ structureSql?: StructureSqlConfiguration | undefined;
1042
1066
  /**
1043
1067
  * - Resolver for creating request-scoped tenant context objects.
1044
1068
  */
1045
- tenantResolver?: TenantResolverType;
1069
+ tenantResolver?: TenantResolverType | undefined;
1046
1070
  /**
1047
1071
  * - Resolver for deriving tenant-specific database config overrides.
1048
1072
  */
1049
- tenantDatabaseResolver?: TenantDatabaseResolverType;
1073
+ tenantDatabaseResolver?: TenantDatabaseResolverType | undefined;
1050
1074
  /**
1051
1075
  * - Path to the testing configuration file.
1052
1076
  */
1053
- testing?: string;
1077
+ testing?: string | undefined;
1054
1078
  /**
1055
1079
  * - Default timezone offset in minutes.
1056
1080
  */
1057
- timezoneOffsetMinutes?: number | (() => number);
1081
+ timezoneOffsetMinutes?: number | (() => number) | undefined;
1058
1082
  /**
1059
1083
  * - Timeout in seconds for completing a HTTP request.
1060
1084
  */
1061
- requestTimeoutMs?: number | (() => number);
1085
+ requestTimeoutMs?: number | (() => number) | undefined;
1062
1086
  /**
1063
1087
  * - Hook callbacks that can hijack unresolved routes.
1064
1088
  */
1065
- routeResolverHooks?: RouteResolverHookType[];
1089
+ routeResolverHooks?: RouteResolverHookType[] | undefined;
1066
1090
  /**
1067
1091
  * - Resolve a websocket channel class/instance for each connection.
1068
1092
  */
1069
- websocketChannelResolver?: WebsocketChannelResolverType;
1093
+ websocketChannelResolver?: WebsocketChannelResolverType | undefined;
1070
1094
  /**
1071
1095
  * - Resolve a raw websocket message handler for each connection.
1072
1096
  */
1073
- websocketMessageHandlerResolver?: WebsocketMessageHandlerResolverType;
1097
+ websocketMessageHandlerResolver?: WebsocketMessageHandlerResolverType | undefined;
1074
1098
  };
1075
1099
  //# sourceMappingURL=configuration-types.d.ts.map