@zyno-io/ts-server-foundation 26.712.36 → 26.712.920

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 (75) hide show
  1. package/dist/src/app/base.js +1 -1
  2. package/dist/src/app/base.js.map +1 -1
  3. package/dist/src/app/config.d.ts +1 -0
  4. package/dist/src/app/config.d.ts.map +1 -1
  5. package/dist/src/app/config.js +3 -1
  6. package/dist/src/app/config.js.map +1 -1
  7. package/dist/src/app/migrations-entrypoint.d.ts +0 -1
  8. package/dist/src/app/migrations-entrypoint.d.ts.map +1 -1
  9. package/dist/src/app/migrations-entrypoint.js +0 -17
  10. package/dist/src/app/migrations-entrypoint.js.map +1 -1
  11. package/dist/src/cli/tsf-dev.js +8 -3
  12. package/dist/src/cli/tsf-dev.js.map +1 -1
  13. package/dist/src/cli/tsf-install.d.ts.map +1 -1
  14. package/dist/src/cli/tsf-install.js +15 -15
  15. package/dist/src/cli/tsf-install.js.map +1 -1
  16. package/dist/src/cli/tsf-migrate.js +5 -20
  17. package/dist/src/cli/tsf-migrate.js.map +1 -1
  18. package/dist/src/cli/tsf-test.d.ts.map +1 -1
  19. package/dist/src/cli/tsf-test.js +31 -17
  20. package/dist/src/cli/tsf-test.js.map +1 -1
  21. package/dist/src/database/database.js +1 -1
  22. package/dist/src/database/index.js +1 -1
  23. package/dist/src/database/metadata.js +1 -1
  24. package/dist/src/database/migration/index.d.ts.map +1 -1
  25. package/dist/src/database/migration/index.js +27 -8
  26. package/dist/src/database/migration/index.js.map +1 -1
  27. package/dist/src/env.d.ts +1 -0
  28. package/dist/src/env.d.ts.map +1 -1
  29. package/dist/src/env.js +1 -1
  30. package/dist/src/env.js.map +1 -1
  31. package/dist/src/helpers/availability.d.ts +17 -0
  32. package/dist/src/helpers/availability.d.ts.map +1 -0
  33. package/dist/src/helpers/availability.js +82 -0
  34. package/dist/src/helpers/availability.js.map +1 -0
  35. package/dist/src/helpers/index.d.ts +2 -0
  36. package/dist/src/helpers/index.d.ts.map +1 -1
  37. package/dist/src/helpers/index.js +3 -1
  38. package/dist/src/helpers/index.js.map +1 -1
  39. package/dist/src/helpers/redis/availability.d.ts +12 -0
  40. package/dist/src/helpers/redis/availability.d.ts.map +1 -0
  41. package/dist/src/helpers/redis/availability.js +27 -0
  42. package/dist/src/helpers/redis/availability.js.map +1 -0
  43. package/dist/src/helpers/redis/redis.d.ts.map +1 -1
  44. package/dist/src/helpers/redis/redis.js +4 -1
  45. package/dist/src/helpers/redis/redis.js.map +1 -1
  46. package/dist/src/http/index.js +1 -1
  47. package/dist/src/http/router.js +2 -2
  48. package/dist/src/http/workflow.js +1 -1
  49. package/dist/src/index.js +5 -5
  50. package/dist/src/openapi/schema.js +1 -1
  51. package/dist/src/openapi/serializer.js +1 -1
  52. package/dist/src/reflection/annotations.js +1 -1
  53. package/dist/src/reflection/deserializer.js +1 -1
  54. package/dist/src/reflection/index.js +1 -1
  55. package/dist/src/reflection/model.js +1 -1
  56. package/dist/src/reflection/reflection-class.js +3 -3
  57. package/dist/src/services/index.js +1 -1
  58. package/dist/src/services/worker/index.js +1 -1
  59. package/dist/src/services/worker/runner.d.ts +2 -0
  60. package/dist/src/services/worker/runner.d.ts.map +1 -1
  61. package/dist/src/services/worker/runner.js +53 -1
  62. package/dist/src/services/worker/runner.js.map +1 -1
  63. package/dist/src/typescript-output.d.ts +13 -0
  64. package/dist/src/typescript-output.d.ts.map +1 -0
  65. package/dist/src/typescript-output.js +213 -0
  66. package/dist/src/typescript-output.js.map +1 -0
  67. package/docs/content/cli.md +3 -3
  68. package/docs/content/configuration.md +19 -18
  69. package/docs/content/getting-started.md +1 -1
  70. package/docs/content/helpers.md +21 -1
  71. package/docs/content/migrations.md +4 -2
  72. package/docs/content/public-api.md +1 -1
  73. package/docs/content/redis.md +21 -0
  74. package/docs/content/testing.md +3 -1
  75. package/package.json +1 -1
@@ -5,6 +5,7 @@ exports.__tsfTypeAliases = void 0;
5
5
  const node_fs_1 = require("node:fs");
6
6
  const node_path_1 = require("node:path");
7
7
  const __1 = require("..");
8
+ const typescript_output_1 = require("../typescript-output");
8
9
  async function main(args = process.argv.slice(2)) {
9
10
  const [command, ...rest] = args;
10
11
  if (!command || command === '--help' || command === '-h') {
@@ -38,7 +39,7 @@ Commands:
38
39
  Standardize MySQL database/table charset and collation
39
40
 
40
41
  Options:
41
- --app <path> Compiled app module, default dist/src/app.js
42
+ --app <path> Compiled app module, default emitted path for src/app.ts
42
43
  --description <text> Migration description, default auto_migration
43
44
  --migrations-dir <path> Source migrations dir for create, default src/migrations
44
45
  --pg-schema <schema> PostgreSQL schema, default public
@@ -71,8 +72,7 @@ async function run(options) {
71
72
  const app = loadApp(options.appPath);
72
73
  const db = getDatabase(app);
73
74
  try {
74
- const migrationsDir = sourceToDistMigrationsDir(options.migrationsDir);
75
- const migrations = await (0, __1.loadMigrationsFromDirectory)(migrationsDir);
75
+ const migrations = await (0, __1.loadMigrationsFromDirectory)(options.migrationsDir);
76
76
  const executions = await new __1.MigrationRunner(db).run(migrations);
77
77
  console.log(`Ran ${executions.length} migration(s).`);
78
78
  return 0;
@@ -122,7 +122,7 @@ async function charset(options) {
122
122
  }
123
123
  }
124
124
  function parseOptions(args, options = {}) {
125
- let appPath = 'dist/src/app.js';
125
+ let appPath;
126
126
  let description = 'auto_migration';
127
127
  let migrationsDir = 'src/migrations';
128
128
  let pgSchema;
@@ -170,7 +170,7 @@ function parseOptions(args, options = {}) {
170
170
  }
171
171
  }
172
172
  return {
173
- appPath: (0, node_path_1.resolve)(appPath),
173
+ appPath: appPath ? (0, node_path_1.resolve)(appPath) : ((0, typescript_output_1.resolveTypeScriptOutputPath)('src/app.ts') ?? (0, node_path_1.resolve)('dist/src/app.js')),
174
174
  description,
175
175
  migrationsDir: (0, node_path_1.resolve)(migrationsDir),
176
176
  pgSchema,
@@ -244,21 +244,6 @@ function getDatabase(app) {
244
244
  async function closeDatabase(db) {
245
245
  await db.driver.close();
246
246
  }
247
- function sourceToDistMigrationsDir(sourceDir) {
248
- const absoluteSource = (0, node_path_1.isAbsolute)(sourceDir) ? sourceDir : (0, node_path_1.resolve)(sourceDir);
249
- const segments = absoluteSource.split(/[\\/]/);
250
- if (segments.includes('dist'))
251
- return absoluteSource;
252
- const srcIndex = segments.lastIndexOf('src');
253
- if (srcIndex !== -1) {
254
- const base = segments.slice(0, srcIndex).join(node_path_1.sep) || node_path_1.sep;
255
- return (0, node_path_1.join)(base, 'dist', ...segments.slice(srcIndex));
256
- }
257
- return (0, node_path_1.join)((0, node_path_1.dirname)(absoluteSource), 'dist', basenameNoExt(absoluteSource));
258
- }
259
- function basenameNoExt(path) {
260
- return path.split(/[\\/]/).filter(Boolean).pop() ?? 'migrations';
261
- }
262
247
  if (require.main === module) {
263
248
  main()
264
249
  .then(code => process.exit(code))
@@ -1 +1 @@
1
- {"version":3,"file":"tsf-migrate.js","sourceRoot":"","sources":["../../../src/cli/tsf-migrate.ts"],"names":[],"mappings":";;;;AAEA,qCAAqC;AACrC,yCAAoE;AAEpE,0BASY;AAWZ,KAAK,UAAU,IAAI,CAAC,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC;IAC5C,MAAM,CAAC,OAAO,EAAE,GAAG,IAAI,CAAC,GAAG,IAAI,CAAC;IAChC,IAAI,CAAC,OAAO,IAAI,OAAO,KAAK,QAAQ,IAAI,OAAO,KAAK,IAAI,EAAE,CAAC;QACvD,UAAU,EAAE,CAAC;QACb,OAAO,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;IAC3B,CAAC;IAED,QAAQ,OAAO,EAAE,CAAC;QACd,KAAK,QAAQ,CAAC;QACd,KAAK,YAAY;YACb,OAAO,MAAM,CAAC,YAAY,CAAC,IAAI,CAAC,CAAC,CAAC;QACtC,KAAK,KAAK;YACN,OAAO,GAAG,CAAC,YAAY,CAAC,IAAI,CAAC,CAAC,CAAC;QACnC,KAAK,OAAO;YACR,OAAO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,CAAC,CAAC,KAAK,CAAC,CAAC;QAC9D,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IACpB,CAAC,CAAC,CAAC;AACX,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"tsf-test.d.ts","sourceRoot":"","sources":["../../../src/cli/tsf-test.ts"],"names":[],"mappings":";AAmBA,wBAAsB,UAAU,CAAC,IAAI,WAAwB,GAAG,OAAO,CAAC,MAAM,CAAC,CAyC9E;AA6ID,wBAAgB,4BAA4B,CAAC,QAAQ,EAAE,SAAS,MAAM,EAAE,GAAG,MAAM,CAchF"}
1
+ {"version":3,"file":"tsf-test.d.ts","sourceRoot":"","sources":["../../../src/cli/tsf-test.ts"],"names":[],"mappings":";AAoBA,wBAAsB,UAAU,CAAC,IAAI,WAAwB,GAAG,OAAO,CAAC,MAAM,CAAC,CAyC9E;AAsJD,wBAAgB,4BAA4B,CAAC,QAAQ,EAAE,SAAS,MAAM,EAAE,GAAG,MAAM,CAchF"}
@@ -13,6 +13,7 @@ const promises_1 = require("node:timers/promises");
13
13
  const app_1 = require("../app");
14
14
  const env_1 = require("../env");
15
15
  const common_1 = require("./common");
16
+ const typescript_output_1 = require("../typescript-output");
16
17
  async function runTestCli(args = process.argv.slice(2)) {
17
18
  if (args.includes('--help') || args.includes('-h')) {
18
19
  printUsage();
@@ -20,14 +21,14 @@ async function runTestCli(args = process.argv.slice(2)) {
20
21
  }
21
22
  env_1.Env.TZ = 'UTC';
22
23
  env_1.Env.APP_ENV = 'test';
23
- const distDir = (0, node_path_1.resolve)('dist');
24
+ const distDir = (0, typescript_output_1.resolveTypeScriptOutDir)({ tsconfigPath: env_1.Env.TSF_TSCONFIG }) ?? (0, node_path_1.resolve)('dist');
24
25
  const teardown = await runGlobalSetup(distDir);
25
26
  let manager;
26
27
  try {
27
28
  const { nodeArgs, fileArgs } = splitArgs(args);
28
29
  const testFiles = collectTestFiles(distDir, fileArgs);
29
30
  if (testFiles.length === 0) {
30
- console.error('No compiled test files found in dist/tests.');
31
+ console.error(`No compiled test files found in ${distDir}.`);
31
32
  return 1;
32
33
  }
33
34
  const resolvedDatabaseEnv = resolveTestDatabaseEnv();
@@ -53,12 +54,12 @@ async function runTestCli(args = process.argv.slice(2)) {
53
54
  function printUsage() {
54
55
  console.log(`Usage: tsf-test [node-test-options] [test-files-or-dirs...]
55
56
 
56
- Runs compiled node:test specs from dist/tests. Source paths like tests/foo.spec.ts
57
- are mapped to dist/tests/foo.spec.js.`);
57
+ Runs compiled node:test specs from the configured TypeScript outDir. Source paths
58
+ are mapped using rootDir and outDir from the effective tsconfig.`);
58
59
  }
59
60
  async function runGlobalSetup(distDir) {
60
- const setupPath = (0, node_path_1.join)(distDir, 'tests', 'shared', 'globalSetup.js');
61
- if (!(0, node_fs_1.existsSync)(setupPath))
61
+ const setupPath = findGlobalSetupPath(distDir);
62
+ if (!setupPath)
62
63
  return undefined;
63
64
  const beforeRequireEnv = snapshotProcessEnv();
64
65
  const globalSetup = require(setupPath);
@@ -68,6 +69,14 @@ async function runGlobalSetup(distDir) {
68
69
  applyProcessEnvPatch(requireEnvPatch);
69
70
  return globalSetup.teardown ? () => Promise.resolve(globalSetup.teardown()) : undefined;
70
71
  }
72
+ function findGlobalSetupPath(distDir) {
73
+ const candidates = [
74
+ (0, typescript_output_1.resolveTypeScriptOutputPath)('tests/shared/globalSetup.ts', { tsconfigPath: env_1.Env.TSF_TSCONFIG }),
75
+ (0, typescript_output_1.resolveTypeScriptOutputPath)('src/tests/shared/globalSetup.ts', { tsconfigPath: env_1.Env.TSF_TSCONFIG }),
76
+ (0, node_path_1.join)(distDir, 'tests', 'shared', 'globalSetup.js')
77
+ ].filter((path) => !!path && (0, node_fs_1.existsSync)(path));
78
+ return [...new Set(candidates)][0];
79
+ }
71
80
  function snapshotProcessEnv() {
72
81
  return { ...process.env };
73
82
  }
@@ -286,10 +295,10 @@ function splitArgs(args) {
286
295
  }
287
296
  function collectTestFiles(distDir, fileArgs) {
288
297
  if (fileArgs.length === 0)
289
- return (0, node_fs_1.globSync)((0, node_path_1.join)(distDir, 'tests', '**/*.spec.js'));
298
+ return (0, node_fs_1.globSync)((0, node_path_1.join)(distDir, '**/*.spec.js'));
290
299
  const testFiles = [];
291
300
  for (const fileArg of fileArgs) {
292
- const distPath = toDistTestPath(fileArg);
301
+ const distPath = toDistTestPath(fileArg, distDir);
293
302
  if (distPath.endsWith('/') || !distPath.split(/[\\/]/).pop()?.includes('.')) {
294
303
  testFiles.push(...(0, node_fs_1.globSync)((0, node_path_1.join)(distPath, '**/*.spec.js')));
295
304
  }
@@ -299,16 +308,21 @@ function collectTestFiles(distDir, fileArgs) {
299
308
  }
300
309
  return testFiles;
301
310
  }
302
- function toDistTestPath(fileArg) {
311
+ function toDistTestPath(fileArg, distDir) {
312
+ const absoluteInput = (0, node_path_1.isAbsolute)(fileArg) ? fileArg : (0, node_path_1.resolve)(fileArg);
313
+ const relativeToDist = (0, node_path_1.relative)(distDir, absoluteInput);
314
+ if (relativeToDist !== '..' && !relativeToDist.startsWith(`..${node_path_1.sep}`) && !(0, node_path_1.isAbsolute)(relativeToDist)) {
315
+ return replaceTestExtension(absoluteInput);
316
+ }
317
+ const emitted = (0, typescript_output_1.resolveTypeScriptOutputPath)(absoluteInput, { tsconfigPath: env_1.Env.TSF_TSCONFIG });
318
+ if (emitted)
319
+ return emitted;
303
320
  let normalized = (0, node_path_1.isAbsolute)(fileArg) ? (0, node_path_1.relative)(process.cwd(), fileArg) : fileArg;
304
321
  normalized = normalized.replace(/\\/g, '/').replace(/^\.\//, '');
305
- if (normalized === 'dist' || normalized.startsWith('dist/'))
306
- return normalized;
307
- if (normalized === 'tests')
308
- return 'dist/tests';
309
- if (normalized.startsWith('tests/'))
310
- return `dist/${normalized}`.replace(/\.ts$/, '.js');
311
- return normalized.replace(/\.ts$/, '.js');
322
+ return replaceTestExtension((0, node_path_1.resolve)(distDir, normalized));
323
+ }
324
+ function replaceTestExtension(path) {
325
+ return path.replace(/\.(?:cts|mts|tsx?)$/, extension => (extension === '.mts' ? '.mjs' : extension === '.cts' ? '.cjs' : '.js'));
312
326
  }
313
327
  function optionTakesValue(arg) {
314
328
  if (arg.includes('='))
@@ -346,5 +360,5 @@ if (require.main === module) {
346
360
  process.exit(1);
347
361
  });
348
362
  }
349
- exports.__tsfTypeAliases = ({ "MySQLSessionManagerHandle": { kind: 18, typeName: "MySQLSessionManagerHandle", types: [{ kind: 20, name: "env", type: { kind: 18, typeName: "EnvObject", types: [{ kind: 20, name: "APP_ENV", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "NODE_ENV", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "NODE_TEST_CONTEXT", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "TZ", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "DEVCONSOLE_ENABLED", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "PORT", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "DB_ADAPTER", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "MYSQL_HOST", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "MYSQL_PORT", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "MYSQL_USER", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "MYSQL_PASSWORD_SECRET", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "MYSQL_DATABASE", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "MYSQL_CONNECTION_LIMIT", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "MYSQL_MIN_IDLE_CONNECTIONS", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "MYSQL_IDLE_TIMEOUT_SECONDS", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "PG_HOST", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "PG_PORT", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "PG_USER", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "PG_PASSWORD_SECRET", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "PG_DATABASE", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "PG_SCHEMA", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "PG_SSL", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "PG_SSL_REJECT_UNAUTHORIZED", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "PG_CONNECTION_LIMIT", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "PG_IDLE_TIMEOUT_SECONDS", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "AUTH_JWT_ISSUER", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "AUTH_JWT_EXPIRATION_MINS", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "AUTH_JWT_COOKIE_NAME", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "AUTH_JWT_SECRET", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "AUTH_JWT_SECRET_B64", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "AUTH_JWT_ED_SECRET", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "AUTH_JWT_ENABLE_VERIFY", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "AUTH_BASIC_SECRET", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "CRYPTO_SECRET", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "CRYPTO_IV_LENGTH", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "USE_REAL_IP_HEADER", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "REDIS_SENTINEL_HOST", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "REDIS_SENTINEL_PORT", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "REDIS_SENTINEL_NAME", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "REDIS_HOST", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "REDIS_PORT", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "REDIS_PREFIX", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "CACHE_REDIS_SENTINEL_HOST", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "CACHE_REDIS_SENTINEL_PORT", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "CACHE_REDIS_SENTINEL_NAME", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "CACHE_REDIS_HOST", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "CACHE_REDIS_PORT", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "CACHE_REDIS_PREFIX", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "MUTEX_REDIS_SENTINEL_HOST", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "MUTEX_REDIS_SENTINEL_PORT", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "MUTEX_REDIS_SENTINEL_NAME", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "MUTEX_REDIS_HOST", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "MUTEX_REDIS_PORT", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "MUTEX_REDIS_PREFIX", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "BROADCAST_REDIS_SENTINEL_HOST", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "BROADCAST_REDIS_SENTINEL_PORT", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "BROADCAST_REDIS_SENTINEL_NAME", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "BROADCAST_REDIS_HOST", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "BROADCAST_REDIS_PORT", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "BROADCAST_REDIS_PREFIX", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "MESH_REDIS_SENTINEL_HOST", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "MESH_REDIS_SENTINEL_PORT", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "MESH_REDIS_SENTINEL_NAME", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "MESH_REDIS_HOST", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "MESH_REDIS_PORT", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "MESH_REDIS_PREFIX", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "BULL_REDIS_SENTINEL_HOST", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "BULL_REDIS_SENTINEL_PORT", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "BULL_REDIS_SENTINEL_NAME", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "BULL_REDIS_HOST", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "BULL_REDIS_PORT", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "BULL_REDIS_PREFIX", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "BULL_QUEUE", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "MUTEX_MODE", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "ENABLE_OPENAPI_SCHEMA", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "ENABLE_OPENAPI_ROUTE", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "ENABLE_JOB_RUNNER", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "SENTRY_DSN", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "OTEL_SDK_DISABLED", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "OTEL_DEBUG", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "OTEL_EXPORTER_OTLP_ENDPOINT", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "OTEL_EXPORTER_OTLP_TRACES_ENDPOINT", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "OTEL_EXPORTER_OTLP_METRICS_ENDPOINT", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "OTEL_METRICS_ENDPOINT_ENABLED", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "ALERTS_SLACK_WEBHOOK_URL", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "SRPC_AUTH_SECRET", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "SRPC_AUTH_CLOCK_DRIFT_MS", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "HTTP_REQUEST_LOGGING_MODE", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "HEALTHZ_ENABLE_REQUEST_LOGGING", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "ENABLE_PINO_PRETTY", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "ENABLE_PINO_SINGLE_LINE", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "LOG_LEVEL", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "MAIL_FROM", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "MAIL_FROM_NAME", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "MAIL_PROVIDER", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "SMTP_HOST", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "SMTP_PORT", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "SMTP_USER", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "SMTP_PASSWORD_SECRET", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "SMTP_TLS", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "POSTMARK_SECRET", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "PROTOC", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "TEST_KEEP_DB", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "TEST_RUN_TS", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "TSF_TEST_DATABASE_NAME", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "TSF_TEST_ALLOW_SAVEPOINTS", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "TSF_TEST_MYSQL_SESSION_MANAGER", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "TSF_TEST_MYSQL_SESSION_POOL_SIZE", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "TSF_TEST_MYSQL_SESSION_MANAGER_PORT", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "TSF_TEST_MYSQL_SESSION_MANAGER_TOKEN", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "TSF_TEST_MYSQL_SESSION_KEY", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "TSF_TEST_MYSQL_SESSION_LEASE_ID", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "TSF_TEST_MYSQL_SESSION_DATABASE", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "TSF_TEST_MYSQL_SESSION_TRACE_SQL", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }], index: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] } }, optional: false }] } });
363
+ exports.__tsfTypeAliases = ({ "MySQLSessionManagerHandle": { kind: 18, typeName: "MySQLSessionManagerHandle", types: [{ kind: 20, name: "env", type: { kind: 18, typeName: "EnvObject", types: [{ kind: 20, name: "APP_ENV", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "NODE_ENV", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "NODE_TEST_CONTEXT", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "TZ", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "DEVCONSOLE_ENABLED", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "PORT", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "DB_ADAPTER", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "MYSQL_HOST", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "MYSQL_PORT", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "MYSQL_USER", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "MYSQL_PASSWORD_SECRET", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "MYSQL_DATABASE", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "MYSQL_CONNECTION_LIMIT", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "MYSQL_MIN_IDLE_CONNECTIONS", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "MYSQL_IDLE_TIMEOUT_SECONDS", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "PG_HOST", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "PG_PORT", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "PG_USER", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "PG_PASSWORD_SECRET", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "PG_DATABASE", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "PG_SCHEMA", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "PG_SSL", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "PG_SSL_REJECT_UNAUTHORIZED", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "PG_CONNECTION_LIMIT", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "PG_IDLE_TIMEOUT_SECONDS", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "AUTH_JWT_ISSUER", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "AUTH_JWT_EXPIRATION_MINS", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "AUTH_JWT_COOKIE_NAME", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "AUTH_JWT_SECRET", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "AUTH_JWT_SECRET_B64", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "AUTH_JWT_ED_SECRET", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "AUTH_JWT_ENABLE_VERIFY", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "AUTH_BASIC_SECRET", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "CRYPTO_SECRET", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "CRYPTO_IV_LENGTH", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "USE_REAL_IP_HEADER", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "REDIS_SENTINEL_HOST", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "REDIS_SENTINEL_PORT", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "REDIS_SENTINEL_NAME", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "REDIS_HOST", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "REDIS_PORT", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "REDIS_PREFIX", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "CACHE_REDIS_SENTINEL_HOST", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "CACHE_REDIS_SENTINEL_PORT", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "CACHE_REDIS_SENTINEL_NAME", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "CACHE_REDIS_HOST", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "CACHE_REDIS_PORT", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "CACHE_REDIS_PREFIX", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "MUTEX_REDIS_SENTINEL_HOST", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "MUTEX_REDIS_SENTINEL_PORT", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "MUTEX_REDIS_SENTINEL_NAME", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "MUTEX_REDIS_HOST", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "MUTEX_REDIS_PORT", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "MUTEX_REDIS_PREFIX", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "BROADCAST_REDIS_SENTINEL_HOST", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "BROADCAST_REDIS_SENTINEL_PORT", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "BROADCAST_REDIS_SENTINEL_NAME", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "BROADCAST_REDIS_HOST", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "BROADCAST_REDIS_PORT", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "BROADCAST_REDIS_PREFIX", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "MESH_REDIS_SENTINEL_HOST", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "MESH_REDIS_SENTINEL_PORT", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "MESH_REDIS_SENTINEL_NAME", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "MESH_REDIS_HOST", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "MESH_REDIS_PORT", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "MESH_REDIS_PREFIX", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "BULL_REDIS_SENTINEL_HOST", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "BULL_REDIS_SENTINEL_PORT", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "BULL_REDIS_SENTINEL_NAME", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "BULL_REDIS_HOST", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "BULL_REDIS_PORT", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "BULL_REDIS_PREFIX", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "BULL_QUEUE", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "MUTEX_MODE", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "ENABLE_OPENAPI_SCHEMA", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "ENABLE_OPENAPI_ROUTE", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "ENABLE_JOB_RUNNER", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "SENTRY_DSN", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "OTEL_SDK_DISABLED", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "OTEL_DEBUG", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "OTEL_EXPORTER_OTLP_ENDPOINT", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "OTEL_EXPORTER_OTLP_TRACES_ENDPOINT", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "OTEL_EXPORTER_OTLP_METRICS_ENDPOINT", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "OTEL_METRICS_ENDPOINT_ENABLED", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "ALERTS_SLACK_WEBHOOK_URL", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "SRPC_AUTH_SECRET", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "SRPC_AUTH_CLOCK_DRIFT_MS", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "HTTP_REQUEST_LOGGING_MODE", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "HEALTHZ_ENABLE_REQUEST_LOGGING", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "ENABLE_PINO_PRETTY", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "ENABLE_PINO_SINGLE_LINE", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "LOG_LEVEL", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "MAIL_FROM", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "MAIL_FROM_NAME", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "MAIL_PROVIDER", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "SMTP_HOST", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "SMTP_PORT", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "SMTP_USER", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "SMTP_PASSWORD_SECRET", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "SMTP_TLS", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "POSTMARK_SECRET", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "PROTOC", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "TEST_KEEP_DB", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "TEST_RUN_TS", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "TSF_TSCONFIG", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "TSF_TEST_DATABASE_NAME", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "TSF_TEST_ALLOW_SAVEPOINTS", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "TSF_TEST_MYSQL_SESSION_MANAGER", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "TSF_TEST_MYSQL_SESSION_POOL_SIZE", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "TSF_TEST_MYSQL_SESSION_MANAGER_PORT", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "TSF_TEST_MYSQL_SESSION_MANAGER_TOKEN", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "TSF_TEST_MYSQL_SESSION_KEY", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "TSF_TEST_MYSQL_SESSION_LEASE_ID", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "TSF_TEST_MYSQL_SESSION_DATABASE", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "TSF_TEST_MYSQL_SESSION_TRACE_SQL", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }], index: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] } }, optional: false }] } });
350
364
  //# sourceMappingURL=tsf-test.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"tsf-test.js","sourceRoot":"","sources":["../../../src/cli/tsf-test.ts"],"names":[],"mappings":";;;;;;AAEA,0DAA0D;AAE1D,2DAA2C;AAC3C,qCAA+C;AAC/C,qCAA+C;AAC/C,yCAAgE;AAChE,mDAA2D;AAE3D,gCAAqD;AACrD,gCAA6C;AAC7C,qCAAmC;AAO5B,KAAK,qBAAqB,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC;IACzD,IAAI,IAAI,CAAC,QAAQ,CAAC,QAAQ,CAAC,IAAI,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC;QACjD,UAAU,EAAE,CAAC;QACb,OAAO,CAAC,CAAC;IACb,CAAC;IAED,SAAG,CAAC,EAAE,GAAG,KAAK,CAAC;IACf,SAAG,CAAC,OAAO,GAAG,MAAM,CAAC;IAErB,MAAM,OAAO,GAAG,IAAA,mBAAO,EAAC,MAAM,CAAC,CAAC;IAChC,MAAM,QAAQ,GAAG,MAAM,cAAc,CAAC,OAAO,CAAC,CAAC;IAC/C,IAAI,OAA8C,CAAC;IACnD,IAAI,CAAC;QACD,MAAM,EAAE,QAAQ,EAAE,QAAQ,EAAE,GAAG,SAAS,CAAC,IAAI,CAAC,CAAC;QAC/C,MAAM,SAAS,GAAG,gBAAgB,CAAC,OAAO,EAAE,QAAQ,CAAC,CAAC;QACtD,IAAI,SAAS,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;YACzB,OAAO,CAAC,KAAK,CAAC,6CAA6C,CAAC,CAAC;YAC7D,OAAO,CAAC,CAAC;QACb,CAAC;QAED,MAAM,mBAAmB,GAAG,sBAAsB,EAAE,CAAC;QACrD,MAAM,SAAS,GAAG,SAAG,CAAC,WAAW,IAAI,MAAM,CAAC,IAAI,CA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AS,KAAK,MAAM,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,KAAK,MAAM,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC;AACrI,CAAC;AAED,SAAS,gBAAgB,CAAC,GAAW;IACjC,IAAI,GAAG,CAAC,QAAQ,CAAC,GAAG,CAAC;QAAE,OAAO,KAAK,CAAC;IACpC,OAAO,mBAAmB,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;AACxC,CAAC;AAED,MAAM,mBAAmB,GAAG,IAAI,GAAG,CAAC;IAChC,cAAc;IACd,gBAAgB;IAChB,kBAAkB;IAClB,uBAAuB;IACvB,UAAU;IACV,gBAAgB;IAChB,UAAU;IACV,WAAW;IACX,oBAAoB;IACpB,0BAA0B;IAC1B,yBAAyB;IACzB,2BAA2B;IAC3B,yBAAyB;IACzB,uBAAuB;IACvB,qBAAqB;IACrB,iBAAiB;IACjB,6BAA6B;IAC7B,cAAc;IACd,gBAAgB;IAChB,IAAI;IACJ,IAAI;CACP,CAAC,CAAC;AAEH,IAAI,OAAO,CAAC,IAAI,KAAK,MAAM,EAAE,CAAC;IAC1B,UAAU,EAAE;SACP,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;SAChC,KAAK,CAAC,KAAK,CAAC,EAAE;QACX,OAAO,CAAC,KAAK,CAAC,oBAAoB,EAAE,KAAK,CAAC,CAAC;QAC3C,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IACpB,CAAC,CAAC,CAAC;AACX,CAAC"}
@@ -259,7 +259,7 @@ class BaseDatabase {
259
259
  assertPrimaryKeyValues(metadata, fields, 'delete');
260
260
  await this.rawExecute((0, sql_1.sql) `DELETE FROM ${sql_1.sql.identifier(metadata.tableName)} WHERE ${renderPrimaryKeyWhere(metadata.primaryKeys, fields, this.driver.dialect)}`, session);
261
261
  }
262
- static __tsfType = _BaseDatabaseMetadata_1 = ({ kind: 16, name: "BaseDatabase", typeName: "BaseDatabase", classType: () => BaseDatabase, properties: [{ name: "entityRegistry", type: { kind: 14, type: { kind: 2, typeName: "EntityClass" } }, optional: false }, { name: "options", type: { kind: 18, typeName: "Required", typeArguments: [{ kind: 18, typeName: "BaseDatabaseOptions", types: [{ kind: 20, name: "enableLocksTable", type: { kind: 12, types: [{ kind: 8 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "lockTableName", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }] }], types: [{ kind: 20, name: "enableLocksTable", type: { kind: 8 }, optional: false }, { kind: 20, name: "lockTableName", type: { kind: 6 }, optional: false }] }, optional: false }, { name: "schema", type: { kind: 16, typeName: "DatabaseSchemaBuilder", classType: () => (typeof require !== "undefined" ? require("./schema").DatabaseSchemaBuilder : undefined) }, optional: false }], methods: [{ name: "query", parameters: [{ name: "Entity", type: { kind: 2, typeName: "EntityClass", typeArguments: [{ kind: 2, typeName: "T" }] }, optional: false, default: false }, { name: "session", type: { kind: 16, typeName: "DatabaseSession", classType: () => (typeof require !== "undefined" ? require("./session").DatabaseSession : undefined) }, optional: true, default: false }], returnType: { kind: 16, typeName: "QueryBuilder", classType: () => (typeof require !== "undefined" ? require("./query").QueryBuilder : undefined), typeArguments: [{ kind: 2, typeName: "T" }] } }, { name: "transaction", parameters: [{ name: "worker", type: { kind: 2, typeName: "(session: DatabaseSession) => Promise<T>" }, optional: false, default: false }], returnType: { kind: 22, type: { kind: 2, typeName: "T" } } }, { name: "withTransaction", parameters: [{ name: "session", type: { kind: 12, types: [{ kind: 16, typeName: "DatabaseSession", classType: () => (typeof require !== "undefined" ? require("./session").DatabaseSession : undefined) }, { kind: 4 }] }, optional: false, default: false }, { name: "worker", type: { kind: 2, typeName: "(session: DatabaseSession) => Promise<T>" }, optional: false, default: false }], returnType: { kind: 22, type: { kind: 2, typeName: "T" } } }, { name: "withConnection", parameters: [{ name: "worker", type: { kind: 2, typeName: "(db: this) => Promise<T> | T" }, optional: false, default: false }], returnType: { kind: 22, type: { kind: 2, typeName: "T" } } }, { name: "rawQuery", parameters: [{ name: "input", type: { kind: 12, types: [{ kind: 18, typeName: "SqlQuery", types: [{ kind: 20, name: "kind", type: { kind: 10, literal: "sql" }, optional: false }, { kind: 20, name: "chunks", type: { kind: 14, type: { kind: 6 } }, optional: false }, { kind: 20, name: "values", type: { kind: 14, type: { kind: 2, typeName: "SqlValue" } }, optional: false }] }, { kind: 6 }], typeName: "SqlInput" }, optional: false, default: false }, { name: "session", type: { kind: 16, typeName: "DatabaseSession", classType: () => (typeof require !== "undefined" ? require("./session").DatabaseSession : undefined) }, optional: true, default: false }], returnType: { kind: 22, type: { kind: 14, type: { kind: 2, typeName: "T" } } } }, { name: "rawFind", parameters: [{ name: "input", type: { kind: 12, types: [{ kind: 18, typeName: "SqlQuery", types: [{ kind: 20, name: "kind", type: { kind: 10, literal: "sql" }, optional: false }, { kind: 20, name: "chunks", type: { kind: 14, type: { kind: 6 } }, optional: false }, { kind: 20, name: "values", type: { kind: 14, type: { kind: 2, typeName: "SqlValue" } }, optional: false }] }, { kind: 6 }], typeName: "SqlInput" }, optional: false, default: false }, { name: "session", type: { kind: 16, typeName: "DatabaseSession", classType: () => (typeof require !== "undefined" ? require("./session").DatabaseSession : undefined) }, optional: true, default: false }], returnType: { kind: 22, type: { kind: 14, type: { kind: 2, typeName: "T" } } } }, { name: "rawFindTyped", parameters: [{ name: "input", type: { kind: 12, types: [{ kind: 18, typeName: "SqlQuery", types: [{ kind: 20, name: "kind", type: { kind: 10, literal: "sql" }, optional: false }, { kind: 20, name: "chunks", type: { kind: 14, type: { kind: 6 } }, optional: false }, { kind: 20, name: "values", type: { kind: 14, type: { kind: 2, typeName: "SqlValue" } }, optional: false }] }, { kind: 6 }], typeName: "SqlInput" }, optional: false, default: false }, { name: "session", type: { kind: 12, types: [{ kind: 16, typeName: "DatabaseSession", classType: () => (typeof require !== "undefined" ? require("./session").DatabaseSession : undefined) }, { kind: 4 }] }, optional: false, default: false }, { name: "type", type: { kind: 12, types: [{ kind: 16, typeName: "TypeBase", classType: () => (typeof TypeBase !== "undefined" ? TypeBase : (typeof exports !== "undefined" ? exports.TypeBase : undefined)), typeArguments: [{ kind: 12, types: [{ kind: 16, typeName: "ReflectionKind.never", classType: () => ReflectionKind.never }, { kind: 16, typeName: "ReflectionKind.any", classType: () => ReflectionKind.any }, { kind: 16, typeName: "ReflectionKind.unknown", classType: () => ReflectionKind.unknown }, { kind: 16, typeName: "ReflectionKind.void", classType: () => ReflectionKind.void }, { kind: 16, typeName: "ReflectionKind.undefined", classType: () => ReflectionKind.undefined }, { kind: 16, typeName: "ReflectionKind.null", classType: () => ReflectionKind.null }, { kind: 16, typeName: "ReflectionKind.string", classType: () => ReflectionKind.string }, { kind: 16, typeName: "ReflectionKind.number", classType: () => ReflectionKind.number }, { kind: 16, typeName: "ReflectionKind.boolean", classType: () => ReflectionKind.boolean }, { kind: 16, typeName: "ReflectionKind.bigint", classType: () => ReflectionKind.bigint }, { kind: 16, typeName: "ReflectionKind.object", classType: () => ReflectionKind.object }, { kind: 16, typeName: "ReflectionKind.method", classType: () => ReflectionKind.method }, { kind: 16, typeName: "ReflectionKind.templateLiteral", classType: () => ReflectionKind.templateLiteral }], typeName: "PrimitiveReflectionKind" }], typeName: "TypePrimitive" }, { kind: 13, types: [{ kind: 16, typeName: "TypeBase", classType: () => (typeof TypeBase !== "undefined" ? TypeBase : (typeof exports !== "undefined" ? exports.TypeBase : undefined)), typeArguments: [{ kind: 16, typeName: "ReflectionKind.literal", classType: () => ReflectionKind.literal }] }, { kind: 18, types: [{ kind: 20, name: "literal", type: { kind: 2 }, optional: false }] }], typeName: "TypeLiteral" }, { kind: 13, types: [{ kind: 16, typeName: "TypeBase", classType: () => (typeof TypeBase !== "undefined" ? TypeBase : (typeof exports !== "undefined" ? exports.TypeBase : undefined)), typeArguments: [{ kind: 16, typeName: "ReflectionKind.enum", classType: () => ReflectionKind.enum }] }, { kind: 18, types: [{ kind: 20, name: "values", type: { kind: 14, type: { kind: 2 } }, optional: false }] }], typeName: "TypeEnum" }, { kind: 13, types: [{ kind: 16, typeName: "TypeBase", classType: () => (typeof TypeBase !== "undefined" ? TypeBase : (typeof exports !== "undefined" ? exports.TypeBase : undefined)), typeArguments: [{ kind: 16, typeName: "ReflectionKind.union", classType: () => ReflectionKind.union }] }, { kind: 18, types: [{ kind: 20, name: "types", type: { kind: 14, type: { kind: 2, typeName: "| TypePrimitive\n | TypeLiteral\n | TypeEnum\n | TypeUnion\n | TypeIntersection\n | TypeArray\n | TypePromise\n | TypeTuple\n | TypeClass\n | TypeObjectLiteral\n | TypeProperty\n | TypePropertySignature", typeName: "Type" } }, optional: false }] }], typeName: "TypeUnion" }, { kind: 13, types: [{ kind: 16, typeName: "TypeBase", classType: () => (typeof TypeBase !== "undefined" ? TypeBase : (typeof exports !== "undefined" ? exports.TypeBase : undefined)), typeArguments: [{ kind: 16, typeName: "ReflectionKind.intersection", classType: () => ReflectionKind.intersection }] }, { kind: 18, types: [{ kind: 20, name: "types", type: { kind: 14, type: { kind: 2, typeName: "| TypePrimitive\n | TypeLiteral\n | TypeEnum\n | TypeUnion\n | TypeIntersection\n | TypeArray\n | TypePromise\n | TypeTuple\n | TypeClass\n | TypeObjectLiteral\n | TypeProperty\n | TypePropertySignature", typeName: "Type" } }, optional: false }] }], typeName: "TypeIntersection" }, { kind: 13, types: [{ kind: 16, typeName: "TypeBase", classType: () => (typeof TypeBase !== "undefined" ? TypeBase : (typeof exports !== "undefined" ? exports.TypeBase : undefined)), typeArguments: [{ kind: 16, typeName: "ReflectionKind.array", classType: () => ReflectionKind.array }] }, { kind: 18, types: [{ kind: 20, name: "type", type: { kind: 2, typeName: "| TypePrimitive\n | TypeLiteral\n | TypeEnum\n | TypeUnion\n | TypeIntersection\n | TypeArray\n | TypePromise\n | TypeTuple\n | TypeClass\n | TypeObjectLiteral\n | TypeProperty\n | TypePropertySignature", typeName: "Type" }, optional: false }] }], typeName: "TypeArray" }, { kind: 13, types: [{ kind: 16, typeName: "TypeBase", classType: () => (typeof TypeBase !== "undefined" ? TypeBase : (typeof exports !== "undefined" ? exports.TypeBase : undefined)), typeArguments: [{ kind: 16, typeName: "ReflectionKind.promise", classType: () => ReflectionKind.promise }] }, { kind: 18, types: [{ kind: 20, name: "type", type: { kind: 2, typeName: "| TypePrimitive\n | TypeLiteral\n | TypeEnum\n | TypeUnion\n | TypeIntersection\n | TypeArray\n | TypePromise\n | TypeTuple\n | TypeClass\n | TypeObjectLiteral\n | TypeProperty\n | TypePropertySignature", typeName: "Type" }, optional: false }] }], typeName: "TypePromise" }, { kind: 13, types: [{ kind: 16, typeName: "TypeBase", classType: () => (typeof TypeBase !== "undefined" ? TypeBase : (typeof exports !== "undefined" ? exports.TypeBase : undefined)), typeArguments: [{ kind: 16, typeName: "ReflectionKind.tuple", classType: () => ReflectionKind.tuple }] }, { kind: 18, types: [{ kind: 20, name: "types", type: { kind: 14, type: { kind: 13, types: [{ kind: 2, typeName: "| TypePrimitive\n | TypeLiteral\n | TypeEnum\n | TypeUnion\n | TypeIntersection\n | TypeArray\n | TypePromise\n | TypeTuple\n | TypeClass\n | TypeObjectLiteral\n | TypeProperty\n | TypePropertySignature", typeName: "Type" }, { kind: 18, types: [{ kind: 20, name: "type", type: { kind: 2, typeName: "| TypePrimitive\n | TypeLiteral\n | TypeEnum\n | TypeUnion\n | TypeIntersection\n | TypeArray\n | TypePromise\n | TypeTuple\n | TypeClass\n | TypeObjectLiteral\n | TypeProperty\n | TypePropertySignature", typeName: "Type" }, optional: false }] }], typeName: "TypeTupleEntry" } }, optional: false }] }], typeName: "TypeTuple" }, { kind: 13, types: [{ kind: 16, typeName: "TypeBase", classType: () => (typeof TypeBase !== "undefined" ? TypeBase : (typeof exports !== "undefined" ? exports.TypeBase : undefined)), typeArguments: [{ kind: 16, typeName: "ReflectionKind.class", classType: () => ReflectionKind.class }] }, { kind: 18, types: [{ kind: 20, name: "classType", type: { kind: 2, typeName: "ClassType" }, optional: false }] }], typeName: "TypeClass" }, { kind: 13, types: [{ kind: 16, typeName: "TypeBase", classType: () => (typeof TypeBase !== "undefined" ? TypeBase : (typeof exports !== "undefined" ? exports.TypeBase : undefined)), typeArguments: [{ kind: 16, typeName: "ReflectionKind.objectLiteral", classType: () => ReflectionKind.objectLiteral }] }, { kind: 18, types: [{ kind: 20, name: "types", type: { kind: 14, type: { kind: 18, typeName: "TypePropertySignature", types: [{ kind: 20, name: "kind", type: { kind: 2, typeName: "K" }, optional: false }, { kind: 20, name: "typeName", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "description", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "parent", type: { kind: 12, types: [{ kind: 2, typeName: "| TypePrimitive\n | TypeLiteral\n | TypeEnum\n | TypeUnion\n | TypeIntersection\n | TypeArray\n | TypePromise\n | TypeTuple\n | TypeClass\n | TypeObjectLiteral\n | TypeProperty\n | TypePropertySignature", typeName: "Type" }, { kind: 4 }] }, optional: true }, { kind: 20, name: "annotations", type: { kind: 12, types: [{ kind: 18, typeName: "Record", utilityType: "Record", typeArguments: [{ kind: 6 }, { kind: 2, typeName: "| TypePrimitive\n | TypeLiteral\n | TypeEnum\n | TypeUnion\n | TypeIntersection\n | TypeArray\n | TypePromise\n | TypeTuple\n | TypeClass\n | TypeObjectLiteral\n | TypeProperty\n | TypePropertySignature", typeName: "Type" }], index: { kind: 2, typeName: "| TypePrimitive\n | TypeLiteral\n | TypeEnum\n | TypeUnion\n | TypeIntersection\n | TypeArray\n | TypePromise\n | TypeTuple\n | TypeClass\n | TypeObjectLiteral\n | TypeProperty\n | TypePropertySignature", typeName: "Type" }, types: [] }, { kind: 4 }] }, optional: true }, { kind: 20, name: "validation", type: { kind: 12, types: [{ kind: 14, type: { kind: 18, typeName: "ValidationAnnotation", types: [{ kind: 20, name: "name", type: { kind: 6 }, optional: false }, { kind: 20, name: "args", type: { kind: 14, type: { kind: 2, typeName: "| TypePrimitive\n | TypeLiteral\n | TypeEnum\n | TypeUnion\n | TypeIntersection\n | TypeArray\n | TypePromise\n | TypeTuple\n | TypeClass\n | TypeObjectLiteral\n | TypeProperty\n | TypePropertySignature", typeName: "Type" } }, optional: false }] } }, { kind: 4 }] }, optional: true }, { kind: 20, name: "database", type: { kind: 12, types: [{ kind: 18, typeName: "Record", utilityType: "Record", typeArguments: [{ kind: 6 }, { kind: 18, typeName: "Record", utilityType: "Record", typeArguments: [{ kind: 6 }, { kind: 1 }], index: { kind: 1 }, types: [] }], index: { kind: 18, typeName: "Record", utilityType: "Record", typeArguments: [{ kind: 6 }, { kind: 1 }], index: { kind: 1 }, types: [] }, types: [] }, { kind: 4 }] }, optional: true }, { kind: 20, name: "kind", type: { kind: 16, typeName: "ReflectionKind.propertySignature", classType: () => ReflectionKind.propertySignature }, optional: false }, { kind: 20, name: "name", type: { kind: 12, types: [{ kind: 6 }, { kind: 7 }, { kind: 2, typeName: "symbol" }] }, optional: false }, { kind: 20, name: "type", type: { kind: 2, typeName: "| TypePrimitive\n | TypeLiteral\n | TypeEnum\n | TypeUnion\n | TypeIntersection\n | TypeArray\n | TypePromise\n | TypeTuple\n | TypeClass\n | TypeObjectLiteral\n | TypeProperty\n | TypePropertySignature", typeName: "Type" }, optional: false }, { kind: 20, name: "optional", type: { kind: 12, types: [{ kind: 8 }, { kind: 4 }] }, optional: true }] } }, optional: false }, { kind: 20, name: "index", type: { kind: 12, types: [{ kind: 2, typeName: "| TypePrimitive\n | TypeLiteral\n | TypeEnum\n | TypeUnion\n | TypeIntersection\n | TypeArray\n | TypePromise\n | TypeTuple\n | TypeClass\n | TypeObjectLiteral\n | TypeProperty\n | TypePropertySignature", typeName: "Type" }, { kind: 4 }] }, optional: true }, { kind: 20, name: "implements", type: { kind: 12, types: [{ kind: 14, type: { kind: 2, typeName: "| TypePrimitive\n | TypeLiteral\n | TypeEnum\n | TypeUnion\n | TypeIntersection\n | TypeArray\n | TypePromise\n | TypeTuple\n | TypeClass\n | TypeObjectLiteral\n | TypeProperty\n | TypePropertySignature", typeName: "Type" } }, { kind: 4 }] }, optional: true }] }], typeName: "TypeObjectLiteral" }, { kind: 13, types: [{ kind: 16, typeName: "TypeBase", classType: () => (typeof TypeBase !== "undefined" ? TypeBase : (typeof exports !== "undefined" ? exports.TypeBase : undefined)), typeArguments: [{ kind: 16, typeName: "ReflectionKind.property", classType: () => ReflectionKind.property }] }, { kind: 18, types: [{ kind: 20, name: "name", type: { kind: 12, types: [{ kind: 6 }, { kind: 7 }, { kind: 2, typeName: "symbol" }] }, optional: false }, { kind: 20, name: "type", type: { kind: 12, types: [{ kind: 16, typeName: "TypeBase", classType: () => (typeof TypeBase !== "undefined" ? TypeBase : (typeof exports !== "undefined" ? exports.TypeBase : undefined)), typeArguments: [{ kind: 12, types: [{ kind: 16, typeName: "ReflectionKind.never", classType: () => ReflectionKind.never }, { kind: 16, typeName: "ReflectionKind.any", classType: () => ReflectionKind.any }, { kind: 16, typeName: "ReflectionKind.unknown", classType: () => ReflectionKind.unknown }, { kind: 16, typeName: "ReflectionKind.void", classType: () => ReflectionKind.void }, { kind: 16, typeName: "ReflectionKind.undefined", classType: () => ReflectionKind.undefined }, { kind: 16, typeName: "ReflectionKind.null", classType: () => ReflectionKind.null }, { kind: 16, typeName: "ReflectionKind.string", classType: () => ReflectionKind.string }, { kind: 16, typeName: "ReflectionKind.number", classType: () => ReflectionKind.number }, { kind: 16, typeName: "ReflectionKind.boolean", classType: () => ReflectionKind.boolean }, { kind: 16, typeName: "ReflectionKind.bigint", classType: () => ReflectionKind.bigint }, { kind: 16, typeName: "ReflectionKind.object", classType: () => ReflectionKind.object }, { kind: 16, typeName: "ReflectionKind.method", classType: () => ReflectionKind.method }, { kind: 16, typeName: "ReflectionKind.templateLiteral", classType: () => ReflectionKind.templateLiteral }], typeName: "PrimitiveReflectionKind" }], typeName: "TypePrimitive" }, { kind: 13, types: [{ kind: 16, typeName: "TypeBase", classType: () => (typeof TypeBase !== "undefined" ? TypeBase : (typeof exports !== "undefined" ? exports.TypeBase : undefined)), typeArguments: [{ kind: 16, typeName: "ReflectionKind.literal", classType: () => ReflectionKind.literal }] }, { kind: 18, types: [{ kind: 20, name: "literal", type: { kind: 2 }, optional: false }] }], typeName: "TypeLiteral" }, { kind: 13, types: [{ kind: 16, typeName: "TypeBase", classType: () => (typeof TypeBase !== "undefined" ? TypeBase : (typeof exports !== "undefined" ? exports.TypeBase : undefined)), typeArguments: [{ kind: 16, typeName: "ReflectionKind.enum", classType: () => ReflectionKind.enum }] }, { kind: 18, types: [{ kind: 20, name: "values", type: { kind: 14, type: { kind: 2 } }, optional: false }] }], typeName: "TypeEnum" }, { kind: 13, types: [{ kind: 16, typeName: "TypeBase", classType: () => (typeof TypeBase !== "undefined" ? TypeBase : (typeof exports !== "undefined" ? exports.TypeBase : undefined)), typeArguments: [{ kind: 16, typeName: "ReflectionKind.union", classType: () => ReflectionKind.union }] }, { kind: 18, types: [{ kind: 20, name: "types", type: { kind: 14, type: { kind: 2, typeName: "Type" } }, optional: false }] }], typeName: "TypeUnion" }, { kind: 13, types: [{ kind: 16, typeName: "TypeBase", classType: () => (typeof TypeBase !== "undefined" ? TypeBase : (typeof exports !== "undefined" ? exports.TypeBase : undefined)), typeArguments: [{ kind: 16, typeName: "ReflectionKind.intersection", classType: () => ReflectionKind.intersection }] }, { kind: 18, types: [{ kind: 20, name: "types", type: { kind: 14, type: { kind: 2, typeName: "Type" } }, optional: false }] }], typeName: "TypeIntersection" }, { kind: 13, types: [{ kind: 16, typeName: "TypeBase", classType: () => (typeof TypeBase !== "undefined" ? TypeBase : (typeof exports !== "undefined" ? exports.TypeBase : undefined)), typeArguments: [{ kind: 16, typeName: "ReflectionKind.array", classType: () => ReflectionKind.array }] }, { kind: 18, types: [{ kind: 20, name: "type", type: { kind: 2, typeName: "Type" }, optional: false }] }], typeName: "TypeArray" }, { kind: 13, types: [{ kind: 16, typeName: "TypeBase", classType: () => (typeof TypeBase !== "undefined" ? TypeBase : (typeof exports !== "undefined" ? exports.TypeBase : undefined)), typeArguments: [{ kind: 16, typeName: "ReflectionKind.promise", classType: () => ReflectionKind.promise }] }, { kind: 18, types: [{ kind: 20, name: "type", type: { kind: 2, typeName: "Type" }, optional: false }] }], typeName: "TypePromise" }, { kind: 13, types: [{ kind: 16, typeName: "TypeBase", classType: () => (typeof TypeBase !== "undefined" ? TypeBase : (typeof exports !== "undefined" ? exports.TypeBase : undefined)), typeArguments: [{ kind: 16, typeName: "ReflectionKind.tuple", classType: () => ReflectionKind.tuple }] }, { kind: 18, types: [{ kind: 20, name: "types", type: { kind: 14, type: { kind: 13, types: [{ kind: 2, typeName: "Type" }, { kind: 18, types: [{ kind: 20, name: "type", type: { kind: 2, typeName: "Type" }, optional: false }] }], typeName: "TypeTupleEntry" } }, optional: false }] }], typeName: "TypeTuple" }, { kind: 13, types: [{ kind: 16, typeName: "TypeBase", classType: () => (typeof TypeBase !== "undefined" ? TypeBase : (typeof exports !== "undefined" ? exports.TypeBase : undefined)), typeArguments: [{ kind: 16, typeName: "ReflectionKind.class", classType: () => ReflectionKind.class }] }, { kind: 18, types: [{ kind: 20, name: "classType", type: { kind: 2, typeName: "ClassType" }, optional: false }] }], typeName: "TypeClass" }, { kind: 13, types: [{ kind: 16, typeName: "TypeBase", classType: () => (typeof TypeBase !== "undefined" ? TypeBase : (typeof exports !== "undefined" ? exports.TypeBase : undefined)), typeArguments: [{ kind: 16, typeName: "ReflectionKind.objectLiteral", classType: () => ReflectionKind.objectLiteral }] }, { kind: 18, types: [{ kind: 20, name: "types", type: { kind: 14, type: { kind: 18, typeName: "TypePropertySignature", types: [{ kind: 20, name: "kind", type: { kind: 2, typeName: "K" }, optional: false }, { kind: 20, name: "typeName", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "description", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "parent", type: { kind: 12, types: [{ kind: 2, typeName: "Type" }, { kind: 4 }] }, optional: true }, { kind: 20, name: "annotations", type: { kind: 12, types: [{ kind: 18, typeName: "Record", utilityType: "Record", typeArguments: [{ kind: 6 }, { kind: 2, typeName: "Type" }], index: { kind: 2, typeName: "Type" }, types: [] }, { kind: 4 }] }, optional: true }, { kind: 20, name: "validation", type: { kind: 12, types: [{ kind: 14, type: { kind: 18, typeName: "ValidationAnnotation", types: [{ kind: 20, name: "name", type: { kind: 6 }, optional: false }, { kind: 20, name: "args", type: { kind: 14, type: { kind: 2, typeName: "Type" } }, optional: false }] } }, { kind: 4 }] }, optional: true }, { kind: 20, name: "database", type: { kind: 12, types: [{ kind: 18, typeName: "Record", utilityType: "Record", typeArguments: [{ kind: 6 }, { kind: 18, typeName: "Record", utilityType: "Record", typeArguments: [{ kind: 6 }, { kind: 1 }], index: { kind: 1 }, types: [] }], index: { kind: 18, typeName: "Record", utilityType: "Record", typeArguments: [{ kind: 6 }, { kind: 1 }], index: { kind: 1 }, types: [] }, types: [] }, { kind: 4 }] }, optional: true }, { kind: 20, name: "kind", type: { kind: 16, typeName: "ReflectionKind.propertySignature", classType: () => ReflectionKind.propertySignature }, optional: false }, { kind: 20, name: "name", type: { kind: 12, types: [{ kind: 6 }, { kind: 7 }, { kind: 2, typeName: "symbol" }] }, optional: false }, { kind: 20, name: "type", type: { kind: 2, typeName: "Type" }, optional: false }, { kind: 20, name: "optional", type: { kind: 12, types: [{ kind: 8 }, { kind: 4 }] }, optional: true }] } }, optional: false }, { kind: 20, name: "index", type: { kind: 12, types: [{ kind: 2, typeName: "Type" }, { kind: 4 }] }, optional: true }, { kind: 20, name: "implements", type: { kind: 12, types: [{ kind: 14, type: { kind: 2, typeName: "Type" } }, { kind: 4 }] }, optional: true }] }], typeName: "TypeObjectLiteral" }, { kind: 2, typeName: "TypeBase<ReflectionKind.property> & {\n name: string | number | symbol;\n type: Type;\n optional?: boolean;\n}", typeName: "TypeProperty" }, { kind: 18, typeName: "TypePropertySignature", types: [{ kind: 20, name: "kind", type: { kind: 2, typeName: "K" }, optional: false }, { kind: 20, name: "typeName", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "description", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "parent", type: { kind: 12, types: [{ kind: 2, typeName: "Type" }, { kind: 4 }] }, optional: true }, { kind: 20, name: "annotations", type: { kind: 12, types: [{ kind: 18, typeName: "Record", utilityType: "Record", typeArguments: [{ kind: 6 }, { kind: 2, typeName: "Type" }], index: { kind: 2, typeName: "Type" }, types: [] }, { kind: 4 }] }, optional: true }, { kind: 20, name: "validation", type: { kind: 12, types: [{ kind: 14, type: { kind: 18, typeName: "ValidationAnnotation", types: [{ kind: 20, name: "name", type: { kind: 6 }, optional: false }, { kind: 20, name: "args", type: { kind: 14, type: { kind: 2, typeName: "Type" } }, optional: false }] } }, { kind: 4 }] }, optional: true }, { kind: 20, name: "database", type: { kind: 12, types: [{ kind: 18, typeName: "Record", utilityType: "Record", typeArguments: [{ kind: 6 }, { kind: 18, typeName: "Record", utilityType: "Record", typeArguments: [{ kind: 6 }, { kind: 1 }], index: { kind: 1 }, types: [] }], index: { kind: 18, typeName: "Record", utilityType: "Record", typeArguments: [{ kind: 6 }, { kind: 1 }], index: { kind: 1 }, types: [] }, types: [] }, { kind: 4 }] }, optional: true }, { kind: 20, name: "kind", type: { kind: 16, typeName: "ReflectionKind.propertySignature", classType: () => ReflectionKind.propertySignature }, optional: false }, { kind: 20, name: "name", type: { kind: 12, types: [{ kind: 6 }, { kind: 7 }, { kind: 2, typeName: "symbol" }] }, optional: false }, { kind: 20, name: "type", type: { kind: 2, typeName: "Type" }, optional: false }, { kind: 20, name: "optional", type: { kind: 12, types: [{ kind: 8 }, { kind: 4 }] }, optional: true }] }], typeName: "Type" }, optional: false }, { kind: 20, name: "optional", type: { kind: 12, types: [{ kind: 8 }, { kind: 4 }] }, optional: true }] }], typeName: "TypeProperty" }, { kind: 18, typeName: "TypePropertySignature", types: [{ kind: 20, name: "kind", type: { kind: 2, typeName: "K" }, optional: false }, { kind: 20, name: "typeName", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "description", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "parent", type: { kind: 12, types: [{ kind: 2, typeName: "| TypePrimitive\n | TypeLiteral\n | TypeEnum\n | TypeUnion\n | TypeIntersection\n | TypeArray\n | TypePromise\n | TypeTuple\n | TypeClass\n | TypeObjectLiteral\n | TypeProperty\n | TypePropertySignature", typeName: "Type" }, { kind: 4 }] }, optional: true }, { kind: 20, name: "annotations", type: { kind: 12, types: [{ kind: 18, typeName: "Record", utilityType: "Record", typeArguments: [{ kind: 6 }, { kind: 2, typeName: "| TypePrimitive\n | TypeLiteral\n | TypeEnum\n | TypeUnion\n | TypeIntersection\n | TypeArray\n | TypePromise\n | TypeTuple\n | TypeClass\n | TypeObjectLiteral\n | TypeProperty\n | TypePropertySignature", typeName: "Type" }], index: { kind: 2, typeName: "| TypePrimitive\n | TypeLiteral\n | TypeEnum\n | TypeUnion\n | TypeIntersection\n | TypeArray\n | TypePromise\n | TypeTuple\n | TypeClass\n | TypeObjectLiteral\n | TypeProperty\n | TypePropertySignature", typeName: "Type" }, types: [] }, { kind: 4 }] }, optional: true }, { kind: 20, name: "validation", type: { kind: 12, types: [{ kind: 14, type: { kind: 18, typeName: "ValidationAnnotation", types: [{ kind: 20, name: "name", type: { kind: 6 }, optional: false }, { kind: 20, name: "args", type: { kind: 14, type: { kind: 2, typeName: "| TypePrimitive\n | TypeLiteral\n | TypeEnum\n | TypeUnion\n | TypeIntersection\n | TypeArray\n | TypePromise\n | TypeTuple\n | TypeClass\n | TypeObjectLiteral\n | TypeProperty\n | TypePropertySignature", typeName: "Type" } }, optional: false }] } }, { kind: 4 }] }, optional: true }, { kind: 20, name: "database", type: { kind: 12, types: [{ kind: 18, typeName: "Record", utilityType: "Record", typeArguments: [{ kind: 6 }, { kind: 18, typeName: "Record", utilityType: "Record", typeArguments: [{ kind: 6 }, { kind: 1 }], index: { kind: 1 }, types: [] }], index: { kind: 18, typeName: "Record", utilityType: "Record", typeArguments: [{ kind: 6 }, { kind: 1 }], index: { kind: 1 }, types: [] }, types: [] }, { kind: 4 }] }, optional: true }, { kind: 20, name: "kind", type: { kind: 16, typeName: "ReflectionKind.propertySignature", classType: () => ReflectionKind.propertySignature }, optional: false }, { kind: 20, name: "name", type: { kind: 12, types: [{ kind: 6 }, { kind: 7 }, { kind: 2, typeName: "symbol" }] }, optional: false }, { kind: 20, name: "type", type: { kind: 2, typeName: "| TypePrimitive\n | TypeLiteral\n | TypeEnum\n | TypeUnion\n | TypeIntersection\n | TypeArray\n | TypePromise\n | TypeTuple\n | TypeClass\n | TypeObjectLiteral\n | TypeProperty\n | TypePropertySignature", typeName: "Type" }, optional: false }, { kind: 20, name: "optional", type: { kind: 12, types: [{ kind: 8 }, { kind: 4 }] }, optional: true }] }], typeName: "Type" }, optional: false, default: false }], returnType: { kind: 22, type: { kind: 14, type: { kind: 2, typeName: "T" } } } }, { name: "rawFindOne", parameters: [{ name: "input", type: { kind: 12, types: [{ kind: 18, typeName: "SqlQuery", types: [{ kind: 20, name: "kind", type: { kind: 10, literal: "sql" }, optional: false }, { kind: 20, name: "chunks", type: { kind: 14, type: { kind: 6 } }, optional: false }, { kind: 20, name: "values", type: { kind: 14, type: { kind: 2, typeName: "SqlValue" } }, optional: false }] }, { kind: 6 }], typeName: "SqlInput" }, optional: false, default: false }, { name: "session", type: { kind: 16, typeName: "DatabaseSession", classType: () => (typeof require !== "undefined" ? require("./session").DatabaseSession : undefined) }, optional: true, default: false }], returnType: { kind: 22, type: { kind: 12, types: [{ kind: 2, typeName: "T" }, { kind: 4 }] } } }, { name: "createSqlQuery", parameters: [{ name: "text", type: { kind: 6 }, optional: false, default: false }, { name: "bindings", type: { kind: 14, type: { kind: 2 } }, optional: true, default: true }], returnType: { kind: 2 } }, { name: "rawExecute", parameters: [{ name: "input", type: { kind: 12, types: [{ kind: 18, typeName: "SqlQuery", types: [{ kind: 20, name: "kind", type: { kind: 10, literal: "sql" }, optional: false }, { kind: 20, name: "chunks", type: { kind: 14, type: { kind: 6 } }, optional: false }, { kind: 20, name: "values", type: { kind: 14, type: { kind: 2, typeName: "SqlValue" } }, optional: false }] }, { kind: 6 }], typeName: "SqlInput" }, optional: false, default: false }, { name: "session", type: { kind: 16, typeName: "DatabaseSession", classType: () => (typeof require !== "undefined" ? require("./session").DatabaseSession : undefined) }, optional: true, default: false }], returnType: { kind: 22, type: { kind: 18, typeName: "ExecuteResult", types: [{ kind: 20, name: "affectedRows", type: { kind: 7 }, optional: false }, { kind: 20, name: "insertId", type: { kind: 12, types: [{ kind: 12, types: [{ kind: 7 }, { kind: 6 }] }, { kind: 4 }] }, optional: true }, { kind: 20, name: "warningStatus", type: { kind: 12, types: [{ kind: 7 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "rowCount", type: { kind: 12, types: [{ kind: 7 }, { kind: 4 }] }, optional: true }] } } }, { name: "rawFindUnsafe", parameters: [{ name: "text", type: { kind: 6 }, optional: false, default: false }, { name: "bindings", type: { kind: 14, type: { kind: 2 } }, optional: true, default: true }, { name: "session", type: { kind: 16, typeName: "DatabaseSession", classType: () => (typeof require !== "undefined" ? require("./session").DatabaseSession : undefined) }, optional: true, default: false }, { name: "type", type: { kind: 2, typeName: "ReceiveType", typeArguments: [{ kind: 2, typeName: "T" }] }, optional: true, default: false }], returnType: { kind: 22, type: { kind: 14, type: { kind: 2, typeName: "T" } } } }, { name: "rawFindOneUnsafe", parameters: [{ name: "text", type: { kind: 6 }, optional: false, default: false }, { name: "bindings", type: { kind: 14, type: { kind: 2 } }, optional: true, default: true }, { name: "session", type: { kind: 16, typeName: "DatabaseSession", classType: () => (typeof require !== "undefined" ? require("./session").DatabaseSession : undefined) }, optional: true, default: false }, { name: "type", type: { kind: 2, typeName: "ReceiveType", typeArguments: [{ kind: 2, typeName: "T" }] }, optional: true, default: false }], returnType: { kind: 22, type: { kind: 12, types: [{ kind: 2, typeName: "T" }, { kind: 4 }] } } }, { name: "rawExecuteUnsafe", parameters: [{ name: "text", type: { kind: 6 }, optional: false, default: false }, { name: "bindings", type: { kind: 14, type: { kind: 2 } }, optional: true, default: true }, { name: "session", type: { kind: 16, typeName: "DatabaseSession", classType: () => (typeof require !== "undefined" ? require("./session").DatabaseSession : undefined) }, optional: true, default: false }, { name: "_type", type: { kind: 2 }, optional: true, default: false }], returnType: { kind: 22, type: { kind: 18, typeName: "ExecuteResult", types: [{ kind: 20, name: "affectedRows", type: { kind: 7 }, optional: false }, { kind: 20, name: "insertId", type: { kind: 12, types: [{ kind: 12, types: [{ kind: 7 }, { kind: 6 }] }, { kind: 4 }] }, optional: true }, { kind: 20, name: "warningStatus", type: { kind: 12, types: [{ kind: 7 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "rowCount", type: { kind: 12, types: [{ kind: 7 }, { kind: 4 }] }, optional: true }] } } }, { name: "acquireSessionLock", parameters: [{ name: "key", type: { kind: 12, types: [{ kind: 1, typeName: "MutexKey" }, { kind: 14, type: { kind: 1, typeName: "MutexKey" } }] }, optional: false, default: false }, { name: "session", type: { kind: 16, typeName: "DatabaseSession", classType: () => (typeof require !== "undefined" ? require("./session").DatabaseSession : undefined) }, optional: false, default: false }], returnType: { kind: 22, type: { kind: 3 } } }, { name: "persist", parameters: [{ name: "entity", type: { kind: 17 }, optional: false, default: false }, { name: "session", type: { kind: 16, typeName: "DatabaseSession", classType: () => (typeof require !== "undefined" ? require("./session").DatabaseSession : undefined) }, optional: true, default: false }], returnType: { kind: 22, type: { kind: 3 } } }, { name: "saveEntity", parameters: [{ name: "entity", type: { kind: 17 }, optional: false, default: false }, { name: "session", type: { kind: 16, typeName: "DatabaseSession", classType: () => (typeof require !== "undefined" ? require("./session").DatabaseSession : undefined) }, optional: true, default: false }], returnType: { kind: 22, type: { kind: 3 } } }, { name: "deleteEntity", parameters: [{ name: "entity", type: { kind: 17 }, optional: false, default: false }, { name: "session", type: { kind: 16, typeName: "DatabaseSession", classType: () => (typeof require !== "undefined" ? require("./session").DatabaseSession : undefined) }, optional: true, default: false }], returnType: { kind: 22, type: { kind: 3 } } }], hasConstructor: true, constructorParameters: [{ name: "driver", type: { kind: 18, typeName: "DatabaseDriver", types: [{ kind: 20, name: "dialect", type: { kind: 12, types: [{ kind: 10, literal: "mysql" }, { kind: 10, literal: "postgres" }], typeName: "Dialect" }, optional: false }] }, optional: false, default: false }, { name: "entities", type: { kind: 14, type: { kind: 2, typeName: "EntityClass" } }, optional: true, default: true }, { name: "options", type: { kind: 18, typeName: "BaseDatabaseOptions", types: [{ kind: 20, name: "enableLocksTable", type: { kind: 12, types: [{ kind: 8 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "lockTableName", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }] }, optional: true, default: true }] });
262
+ static __tsfType = _BaseDatabaseMetadata_1 = ({ kind: 16, name: "BaseDatabase", typeName: "BaseDatabase", classType: () => BaseDatabase, properties: [{ name: "entityRegistry", type: { kind: 14, type: { kind: 2, typeName: "EntityClass" } }, optional: false }, { name: "options", type: { kind: 18, typeName: "Required", typeArguments: [{ kind: 18, typeName: "BaseDatabaseOptions", types: [{ kind: 20, name: "enableLocksTable", type: { kind: 12, types: [{ kind: 8 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "lockTableName", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }] }], types: [{ kind: 20, name: "enableLocksTable", type: { kind: 8 }, optional: false }, { kind: 20, name: "lockTableName", type: { kind: 6 }, optional: false }] }, optional: false }, { name: "schema", type: { kind: 16, typeName: "DatabaseSchemaBuilder", classType: () => (typeof require !== "undefined" ? require("./schema").DatabaseSchemaBuilder : undefined) }, optional: false }], methods: [{ name: "query", parameters: [{ name: "Entity", type: { kind: 2, typeName: "EntityClass", typeArguments: [{ kind: 2, typeName: "T" }] }, optional: false, default: false }, { name: "session", type: { kind: 16, typeName: "DatabaseSession", classType: () => (typeof require !== "undefined" ? require("./session").DatabaseSession : undefined) }, optional: true, default: false }], returnType: { kind: 16, typeName: "QueryBuilder", classType: () => (typeof require !== "undefined" ? require("./query").QueryBuilder : undefined), typeArguments: [{ kind: 2, typeName: "T" }] } }, { name: "transaction", parameters: [{ name: "worker", type: { kind: 2, typeName: "(session: DatabaseSession) => Promise<T>" }, optional: false, default: false }], returnType: { kind: 22, type: { kind: 2, typeName: "T" } } }, { name: "withTransaction", parameters: [{ name: "session", type: { kind: 12, types: [{ kind: 16, typeName: "DatabaseSession", classType: () => (typeof require !== "undefined" ? require("./session").DatabaseSession : undefined) }, { kind: 4 }] }, optional: false, default: false }, { name: "worker", type: { kind: 2, typeName: "(session: DatabaseSession) => Promise<T>" }, optional: false, default: false }], returnType: { kind: 22, type: { kind: 2, typeName: "T" } } }, { name: "withConnection", parameters: [{ name: "worker", type: { kind: 2, typeName: "(db: this) => Promise<T> | T" }, optional: false, default: false }], returnType: { kind: 22, type: { kind: 2, typeName: "T" } } }, { name: "rawQuery", parameters: [{ name: "input", type: { kind: 12, types: [{ kind: 18, typeName: "SqlQuery", types: [{ kind: 20, name: "kind", type: { kind: 10, literal: "sql" }, optional: false }, { kind: 20, name: "chunks", type: { kind: 14, type: { kind: 6 } }, optional: false }, { kind: 20, name: "values", type: { kind: 14, type: { kind: 2, typeName: "SqlValue" } }, optional: false }] }, { kind: 6 }], typeName: "SqlInput" }, optional: false, default: false }, { name: "session", type: { kind: 16, typeName: "DatabaseSession", classType: () => (typeof require !== "undefined" ? require("./session").DatabaseSession : undefined) }, optional: true, default: false }], returnType: { kind: 22, type: { kind: 14, type: { kind: 2, typeName: "T" } } } }, { name: "rawFind", parameters: [{ name: "input", type: { kind: 12, types: [{ kind: 18, typeName: "SqlQuery", types: [{ kind: 20, name: "kind", type: { kind: 10, literal: "sql" }, optional: false }, { kind: 20, name: "chunks", type: { kind: 14, type: { kind: 6 } }, optional: false }, { kind: 20, name: "values", type: { kind: 14, type: { kind: 2, typeName: "SqlValue" } }, optional: false }] }, { kind: 6 }], typeName: "SqlInput" }, optional: false, default: false }, { name: "session", type: { kind: 16, typeName: "DatabaseSession", classType: () => (typeof require !== "undefined" ? require("./session").DatabaseSession : undefined) }, optional: true, default: false }], returnType: { kind: 22, type: { kind: 14, type: { kind: 2, typeName: "T" } } } }, { name: "rawFindTyped", parameters: [{ name: "input", type: { kind: 12, types: [{ kind: 18, typeName: "SqlQuery", types: [{ kind: 20, name: "kind", type: { kind: 10, literal: "sql" }, optional: false }, { kind: 20, name: "chunks", type: { kind: 14, type: { kind: 6 } }, optional: false }, { kind: 20, name: "values", type: { kind: 14, type: { kind: 2, typeName: "SqlValue" } }, optional: false }] }, { kind: 6 }], typeName: "SqlInput" }, optional: false, default: false }, { name: "session", type: { kind: 12, types: [{ kind: 16, typeName: "DatabaseSession", classType: () => (typeof require !== "undefined" ? require("./session").DatabaseSession : undefined) }, { kind: 4 }] }, optional: false, default: false }, { name: "type", type: { kind: 12, types: [{ kind: 16, typeName: "TypeBase", classType: () => (typeof TypeBase !== "undefined" ? TypeBase : (typeof exports !== "undefined" ? exports.TypeBase : undefined)), typeArguments: [{ kind: 12, types: [{ kind: 16, typeName: "ReflectionKind.never", classType: () => ReflectionKind.never }, { kind: 16, typeName: "ReflectionKind.any", classType: () => ReflectionKind.any }, { kind: 16, typeName: "ReflectionKind.unknown", classType: () => ReflectionKind.unknown }, { kind: 16, typeName: "ReflectionKind.void", classType: () => ReflectionKind.void }, { kind: 16, typeName: "ReflectionKind.undefined", classType: () => ReflectionKind.undefined }, { kind: 16, typeName: "ReflectionKind.null", classType: () => ReflectionKind.null }, { kind: 16, typeName: "ReflectionKind.string", classType: () => ReflectionKind.string }, { kind: 16, typeName: "ReflectionKind.number", classType: () => ReflectionKind.number }, { kind: 16, typeName: "ReflectionKind.boolean", classType: () => ReflectionKind.boolean }, { kind: 16, typeName: "ReflectionKind.bigint", classType: () => ReflectionKind.bigint }, { kind: 16, typeName: "ReflectionKind.object", classType: () => ReflectionKind.object }, { kind: 16, typeName: "ReflectionKind.method", classType: () => ReflectionKind.method }, { kind: 16, typeName: "ReflectionKind.templateLiteral", classType: () => ReflectionKind.templateLiteral }], typeName: "PrimitiveReflectionKind" }], typeName: "TypePrimitive" }, { kind: 13, types: [{ kind: 16, typeName: "TypeBase", classType: () => (typeof TypeBase !== "undefined" ? TypeBase : (typeof exports !== "undefined" ? exports.TypeBase : undefined)), typeArguments: [{ kind: 16, typeName: "ReflectionKind.literal", classType: () => ReflectionKind.literal }] }, { kind: 18, types: [{ kind: 20, name: "literal", type: { kind: 2 }, optional: false }] }], typeName: "TypeLiteral" }, { kind: 13, types: [{ kind: 16, typeName: "TypeBase", classType: () => (typeof TypeBase !== "undefined" ? TypeBase : (typeof exports !== "undefined" ? exports.TypeBase : undefined)), typeArguments: [{ kind: 16, typeName: "ReflectionKind.enum", classType: () => ReflectionKind.enum }] }, { kind: 18, types: [{ kind: 20, name: "values", type: { kind: 14, type: { kind: 2 } }, optional: false }] }], typeName: "TypeEnum" }, { kind: 13, types: [{ kind: 16, typeName: "TypeBase", classType: () => (typeof TypeBase !== "undefined" ? TypeBase : (typeof exports !== "undefined" ? exports.TypeBase : undefined)), typeArguments: [{ kind: 16, typeName: "ReflectionKind.union", classType: () => ReflectionKind.union }] }, { kind: 18, types: [{ kind: 20, name: "types", type: { kind: 14, type: { kind: 2, typeName: "| TypePrimitive\n | TypeLiteral\n | TypeEnum\n | TypeUnion\n | TypeIntersection\n | TypeArray\n | TypePromise\n | TypeTuple\n | TypeClass\n | TypeObjectLiteral\n | TypeProperty\n | TypePropertySignature", typeName: "Type" } }, optional: false }] }], typeName: "TypeUnion" }, { kind: 13, types: [{ kind: 16, typeName: "TypeBase", classType: () => (typeof TypeBase !== "undefined" ? TypeBase : (typeof exports !== "undefined" ? exports.TypeBase : undefined)), typeArguments: [{ kind: 16, typeName: "ReflectionKind.intersection", classType: () => ReflectionKind.intersection }] }, { kind: 18, types: [{ kind: 20, name: "types", type: { kind: 14, type: { kind: 2, typeName: "| TypePrimitive\n | TypeLiteral\n | TypeEnum\n | TypeUnion\n | TypeIntersection\n | TypeArray\n | TypePromise\n | TypeTuple\n | TypeClass\n | TypeObjectLiteral\n | TypeProperty\n | TypePropertySignature", typeName: "Type" } }, optional: false }] }], typeName: "TypeIntersection" }, { kind: 13, types: [{ kind: 16, typeName: "TypeBase", classType: () => (typeof TypeBase !== "undefined" ? TypeBase : (typeof exports !== "undefined" ? exports.TypeBase : undefined)), typeArguments: [{ kind: 16, typeName: "ReflectionKind.array", classType: () => ReflectionKind.array }] }, { kind: 18, types: [{ kind: 20, name: "type", type: { kind: 2, typeName: "| TypePrimitive\n | TypeLiteral\n | TypeEnum\n | TypeUnion\n | TypeIntersection\n | TypeArray\n | TypePromise\n | TypeTuple\n | TypeClass\n | TypeObjectLiteral\n | TypeProperty\n | TypePropertySignature", typeName: "Type" }, optional: false }] }], typeName: "TypeArray" }, { kind: 13, types: [{ kind: 16, typeName: "TypeBase", classType: () => (typeof TypeBase !== "undefined" ? TypeBase : (typeof exports !== "undefined" ? exports.TypeBase : undefined)), typeArguments: [{ kind: 16, typeName: "ReflectionKind.promise", classType: () => ReflectionKind.promise }] }, { kind: 18, types: [{ kind: 20, name: "type", type: { kind: 2, typeName: "| TypePrimitive\n | TypeLiteral\n | TypeEnum\n | TypeUnion\n | TypeIntersection\n | TypeArray\n | TypePromise\n | TypeTuple\n | TypeClass\n | TypeObjectLiteral\n | TypeProperty\n | TypePropertySignature", typeName: "Type" }, optional: false }] }], typeName: "TypePromise" }, { kind: 13, types: [{ kind: 16, typeName: "TypeBase", classType: () => (typeof TypeBase !== "undefined" ? TypeBase : (typeof exports !== "undefined" ? exports.TypeBase : undefined)), typeArguments: [{ kind: 16, typeName: "ReflectionKind.tuple", classType: () => ReflectionKind.tuple }] }, { kind: 18, types: [{ kind: 20, name: "types", type: { kind: 14, type: { kind: 13, types: [{ kind: 2, typeName: "| TypePrimitive\n | TypeLiteral\n | TypeEnum\n | TypeUnion\n | TypeIntersection\n | TypeArray\n | TypePromise\n | TypeTuple\n | TypeClass\n | TypeObjectLiteral\n | TypeProperty\n | TypePropertySignature", typeName: "Type" }, { kind: 18, types: [{ kind: 20, name: "type", type: { kind: 2, typeName: "| TypePrimitive\n | TypeLiteral\n | TypeEnum\n | TypeUnion\n | TypeIntersection\n | TypeArray\n | TypePromise\n | TypeTuple\n | TypeClass\n | TypeObjectLiteral\n | TypeProperty\n | TypePropertySignature", typeName: "Type" }, optional: false }] }], typeName: "TypeTupleEntry" } }, optional: false }] }], typeName: "TypeTuple" }, { kind: 13, types: [{ kind: 16, typeName: "TypeBase", classType: () => (typeof TypeBase !== "undefined" ? TypeBase : (typeof exports !== "undefined" ? exports.TypeBase : undefined)), typeArguments: [{ kind: 16, typeName: "ReflectionKind.class", classType: () => ReflectionKind.class }] }, { kind: 18, types: [{ kind: 20, name: "classType", type: { kind: 2, typeName: "ClassType" }, optional: false }] }], typeName: "TypeClass" }, { kind: 13, types: [{ kind: 16, typeName: "TypeBase", classType: () => (typeof TypeBase !== "undefined" ? TypeBase : (typeof exports !== "undefined" ? exports.TypeBase : undefined)), typeArguments: [{ kind: 16, typeName: "ReflectionKind.objectLiteral", classType: () => ReflectionKind.objectLiteral }] }, { kind: 18, types: [{ kind: 20, name: "types", type: { kind: 14, type: { kind: 18, typeName: "TypePropertySignature", types: [{ kind: 20, name: "kind", type: { kind: 2, typeName: "K" }, optional: false }, { kind: 20, name: "typeName", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "description", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "parent", type: { kind: 12, types: [{ kind: 2, typeName: "| TypePrimitive\n | TypeLiteral\n | TypeEnum\n | TypeUnion\n | TypeIntersection\n | TypeArray\n | TypePromise\n | TypeTuple\n | TypeClass\n | TypeObjectLiteral\n | TypeProperty\n | TypePropertySignature", typeName: "Type" }, { kind: 4 }] }, optional: true }, { kind: 20, name: "annotations", type: { kind: 12, types: [{ kind: 18, typeName: "Record", utilityType: "Record", typeArguments: [{ kind: 6 }, { kind: 2, typeName: "| TypePrimitive\n | TypeLiteral\n | TypeEnum\n | TypeUnion\n | TypeIntersection\n | TypeArray\n | TypePromise\n | TypeTuple\n | TypeClass\n | TypeObjectLiteral\n | TypeProperty\n | TypePropertySignature", typeName: "Type" }], index: { kind: 2, typeName: "| TypePrimitive\n | TypeLiteral\n | TypeEnum\n | TypeUnion\n | TypeIntersection\n | TypeArray\n | TypePromise\n | TypeTuple\n | TypeClass\n | TypeObjectLiteral\n | TypeProperty\n | TypePropertySignature", typeName: "Type" }, types: [] }, { kind: 4 }] }, optional: true }, { kind: 20, name: "validation", type: { kind: 12, types: [{ kind: 14, type: { kind: 18, typeName: "ValidationAnnotation", types: [{ kind: 20, name: "name", type: { kind: 6 }, optional: false }, { kind: 20, name: "args", type: { kind: 14, type: { kind: 2, typeName: "| TypePrimitive\n | TypeLiteral\n | TypeEnum\n | TypeUnion\n | TypeIntersection\n | TypeArray\n | TypePromise\n | TypeTuple\n | TypeClass\n | TypeObjectLiteral\n | TypeProperty\n | TypePropertySignature", typeName: "Type" } }, optional: false }] } }, { kind: 4 }] }, optional: true }, { kind: 20, name: "database", type: { kind: 12, types: [{ kind: 18, typeName: "Record", utilityType: "Record", typeArguments: [{ kind: 6 }, { kind: 18, typeName: "Record", utilityType: "Record", typeArguments: [{ kind: 6 }, { kind: 1 }], index: { kind: 1 }, types: [] }], index: { kind: 18, typeName: "Record", utilityType: "Record", typeArguments: [{ kind: 6 }, { kind: 1 }], index: { kind: 1 }, types: [] }, types: [] }, { kind: 4 }] }, optional: true }, { kind: 20, name: "kind", type: { kind: 16, typeName: "ReflectionKind.propertySignature", classType: () => ReflectionKind.propertySignature }, optional: false }, { kind: 20, name: "name", type: { kind: 12, types: [{ kind: 6 }, { kind: 7 }, { kind: 2, typeName: "symbol" }] }, optional: false }, { kind: 20, name: "type", type: { kind: 2, typeName: "| TypePrimitive\n | TypeLiteral\n | TypeEnum\n | TypeUnion\n | TypeIntersection\n | TypeArray\n | TypePromise\n | TypeTuple\n | TypeClass\n | TypeObjectLiteral\n | TypeProperty\n | TypePropertySignature", typeName: "Type" }, optional: false }, { kind: 20, name: "optional", type: { kind: 12, types: [{ kind: 8 }, { kind: 4 }] }, optional: true }] } }, optional: false }, { kind: 20, name: "index", type: { kind: 12, types: [{ kind: 2, typeName: "| TypePrimitive\n | TypeLiteral\n | TypeEnum\n | TypeUnion\n | TypeIntersection\n | TypeArray\n | TypePromise\n | TypeTuple\n | TypeClass\n | TypeObjectLiteral\n | TypeProperty\n | TypePropertySignature", typeName: "Type" }, { kind: 4 }] }, optional: true }, { kind: 20, name: "implements", type: { kind: 12, types: [{ kind: 14, type: { kind: 2, typeName: "| TypePrimitive\n | TypeLiteral\n | TypeEnum\n | TypeUnion\n | TypeIntersection\n | TypeArray\n | TypePromise\n | TypeTuple\n | TypeClass\n | TypeObjectLiteral\n | TypeProperty\n | TypePropertySignature", typeName: "Type" } }, { kind: 4 }] }, optional: true }] }], typeName: "TypeObjectLiteral" }, { kind: 13, types: [{ kind: 16, typeName: "TypeBase", classType: () => (typeof TypeBase !== "undefined" ? TypeBase : (typeof exports !== "undefined" ? exports.TypeBase : undefined)), typeArguments: [{ kind: 16, typeName: "ReflectionKind.property", classType: () => ReflectionKind.property }] }, { kind: 18, types: [{ kind: 20, name: "name", type: { kind: 12, types: [{ kind: 6 }, { kind: 7 }, { kind: 2, typeName: "symbol" }] }, optional: false }, { kind: 20, name: "type", type: { kind: 2, typeName: "| TypePrimitive\n | TypeLiteral\n | TypeEnum\n | TypeUnion\n | TypeIntersection\n | TypeArray\n | TypePromise\n | TypeTuple\n | TypeClass\n | TypeObjectLiteral\n | TypeProperty\n | TypePropertySignature", typeName: "Type" }, optional: false }, { kind: 20, name: "optional", type: { kind: 12, types: [{ kind: 8 }, { kind: 4 }] }, optional: true }] }], typeName: "TypeProperty" }, { kind: 18, typeName: "TypePropertySignature", types: [{ kind: 20, name: "kind", type: { kind: 2, typeName: "K" }, optional: false }, { kind: 20, name: "typeName", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "description", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "parent", type: { kind: 12, types: [{ kind: 2, typeName: "| TypePrimitive\n | TypeLiteral\n | TypeEnum\n | TypeUnion\n | TypeIntersection\n | TypeArray\n | TypePromise\n | TypeTuple\n | TypeClass\n | TypeObjectLiteral\n | TypeProperty\n | TypePropertySignature", typeName: "Type" }, { kind: 4 }] }, optional: true }, { kind: 20, name: "annotations", type: { kind: 12, types: [{ kind: 18, typeName: "Record", utilityType: "Record", typeArguments: [{ kind: 6 }, { kind: 2, typeName: "| TypePrimitive\n | TypeLiteral\n | TypeEnum\n | TypeUnion\n | TypeIntersection\n | TypeArray\n | TypePromise\n | TypeTuple\n | TypeClass\n | TypeObjectLiteral\n | TypeProperty\n | TypePropertySignature", typeName: "Type" }], index: { kind: 2, typeName: "| TypePrimitive\n | TypeLiteral\n | TypeEnum\n | TypeUnion\n | TypeIntersection\n | TypeArray\n | TypePromise\n | TypeTuple\n | TypeClass\n | TypeObjectLiteral\n | TypeProperty\n | TypePropertySignature", typeName: "Type" }, types: [] }, { kind: 4 }] }, optional: true }, { kind: 20, name: "validation", type: { kind: 12, types: [{ kind: 14, type: { kind: 18, typeName: "ValidationAnnotation", types: [{ kind: 20, name: "name", type: { kind: 6 }, optional: false }, { kind: 20, name: "args", type: { kind: 14, type: { kind: 2, typeName: "| TypePrimitive\n | TypeLiteral\n | TypeEnum\n | TypeUnion\n | TypeIntersection\n | TypeArray\n | TypePromise\n | TypeTuple\n | TypeClass\n | TypeObjectLiteral\n | TypeProperty\n | TypePropertySignature", typeName: "Type" } }, optional: false }] } }, { kind: 4 }] }, optional: true }, { kind: 20, name: "database", type: { kind: 12, types: [{ kind: 18, typeName: "Record", utilityType: "Record", typeArguments: [{ kind: 6 }, { kind: 18, typeName: "Record", utilityType: "Record", typeArguments: [{ kind: 6 }, { kind: 1 }], index: { kind: 1 }, types: [] }], index: { kind: 18, typeName: "Record", utilityType: "Record", typeArguments: [{ kind: 6 }, { kind: 1 }], index: { kind: 1 }, types: [] }, types: [] }, { kind: 4 }] }, optional: true }, { kind: 20, name: "kind", type: { kind: 16, typeName: "ReflectionKind.propertySignature", classType: () => ReflectionKind.propertySignature }, optional: false }, { kind: 20, name: "name", type: { kind: 12, types: [{ kind: 6 }, { kind: 7 }, { kind: 2, typeName: "symbol" }] }, optional: false }, { kind: 20, name: "type", type: { kind: 2, typeName: "| TypePrimitive\n | TypeLiteral\n | TypeEnum\n | TypeUnion\n | TypeIntersection\n | TypeArray\n | TypePromise\n | TypeTuple\n | TypeClass\n | TypeObjectLiteral\n | TypeProperty\n | TypePropertySignature", typeName: "Type" }, optional: false }, { kind: 20, name: "optional", type: { kind: 12, types: [{ kind: 8 }, { kind: 4 }] }, optional: true }] }], typeName: "Type" }, optional: false, default: false }], returnType: { kind: 22, type: { kind: 14, type: { kind: 2, typeName: "T" } } } }, { name: "rawFindOne", parameters: [{ name: "input", type: { kind: 12, types: [{ kind: 18, typeName: "SqlQuery", types: [{ kind: 20, name: "kind", type: { kind: 10, literal: "sql" }, optional: false }, { kind: 20, name: "chunks", type: { kind: 14, type: { kind: 6 } }, optional: false }, { kind: 20, name: "values", type: { kind: 14, type: { kind: 2, typeName: "SqlValue" } }, optional: false }] }, { kind: 6 }], typeName: "SqlInput" }, optional: false, default: false }, { name: "session", type: { kind: 16, typeName: "DatabaseSession", classType: () => (typeof require !== "undefined" ? require("./session").DatabaseSession : undefined) }, optional: true, default: false }], returnType: { kind: 22, type: { kind: 12, types: [{ kind: 2, typeName: "T" }, { kind: 4 }] } } }, { name: "createSqlQuery", parameters: [{ name: "text", type: { kind: 6 }, optional: false, default: false }, { name: "bindings", type: { kind: 14, type: { kind: 2 } }, optional: true, default: true }], returnType: { kind: 2 } }, { name: "rawExecute", parameters: [{ name: "input", type: { kind: 12, types: [{ kind: 18, typeName: "SqlQuery", types: [{ kind: 20, name: "kind", type: { kind: 10, literal: "sql" }, optional: false }, { kind: 20, name: "chunks", type: { kind: 14, type: { kind: 6 } }, optional: false }, { kind: 20, name: "values", type: { kind: 14, type: { kind: 2, typeName: "SqlValue" } }, optional: false }] }, { kind: 6 }], typeName: "SqlInput" }, optional: false, default: false }, { name: "session", type: { kind: 16, typeName: "DatabaseSession", classType: () => (typeof require !== "undefined" ? require("./session").DatabaseSession : undefined) }, optional: true, default: false }], returnType: { kind: 22, type: { kind: 18, typeName: "ExecuteResult", types: [{ kind: 20, name: "affectedRows", type: { kind: 7 }, optional: false }, { kind: 20, name: "insertId", type: { kind: 12, types: [{ kind: 12, types: [{ kind: 7 }, { kind: 6 }] }, { kind: 4 }] }, optional: true }, { kind: 20, name: "warningStatus", type: { kind: 12, types: [{ kind: 7 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "rowCount", type: { kind: 12, types: [{ kind: 7 }, { kind: 4 }] }, optional: true }] } } }, { name: "rawFindUnsafe", parameters: [{ name: "text", type: { kind: 6 }, optional: false, default: false }, { name: "bindings", type: { kind: 14, type: { kind: 2 } }, optional: true, default: true }, { name: "session", type: { kind: 16, typeName: "DatabaseSession", classType: () => (typeof require !== "undefined" ? require("./session").DatabaseSession : undefined) }, optional: true, default: false }, { name: "type", type: { kind: 2, typeName: "ReceiveType", typeArguments: [{ kind: 2, typeName: "T" }] }, optional: true, default: false }], returnType: { kind: 22, type: { kind: 14, type: { kind: 2, typeName: "T" } } } }, { name: "rawFindOneUnsafe", parameters: [{ name: "text", type: { kind: 6 }, optional: false, default: false }, { name: "bindings", type: { kind: 14, type: { kind: 2 } }, optional: true, default: true }, { name: "session", type: { kind: 16, typeName: "DatabaseSession", classType: () => (typeof require !== "undefined" ? require("./session").DatabaseSession : undefined) }, optional: true, default: false }, { name: "type", type: { kind: 2, typeName: "ReceiveType", typeArguments: [{ kind: 2, typeName: "T" }] }, optional: true, default: false }], returnType: { kind: 22, type: { kind: 12, types: [{ kind: 2, typeName: "T" }, { kind: 4 }] } } }, { name: "rawExecuteUnsafe", parameters: [{ name: "text", type: { kind: 6 }, optional: false, default: false }, { name: "bindings", type: { kind: 14, type: { kind: 2 } }, optional: true, default: true }, { name: "session", type: { kind: 16, typeName: "DatabaseSession", classType: () => (typeof require !== "undefined" ? require("./session").DatabaseSession : undefined) }, optional: true, default: false }, { name: "_type", type: { kind: 2 }, optional: true, default: false }], returnType: { kind: 22, type: { kind: 18, typeName: "ExecuteResult", types: [{ kind: 20, name: "affectedRows", type: { kind: 7 }, optional: false }, { kind: 20, name: "insertId", type: { kind: 12, types: [{ kind: 12, types: [{ kind: 7 }, { kind: 6 }] }, { kind: 4 }] }, optional: true }, { kind: 20, name: "warningStatus", type: { kind: 12, types: [{ kind: 7 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "rowCount", type: { kind: 12, types: [{ kind: 7 }, { kind: 4 }] }, optional: true }] } } }, { name: "acquireSessionLock", parameters: [{ name: "key", type: { kind: 12, types: [{ kind: 1, typeName: "MutexKey" }, { kind: 14, type: { kind: 1, typeName: "MutexKey" } }] }, optional: false, default: false }, { name: "session", type: { kind: 16, typeName: "DatabaseSession", classType: () => (typeof require !== "undefined" ? require("./session").DatabaseSession : undefined) }, optional: false, default: false }], returnType: { kind: 22, type: { kind: 3 } } }, { name: "persist", parameters: [{ name: "entity", type: { kind: 17 }, optional: false, default: false }, { name: "session", type: { kind: 16, typeName: "DatabaseSession", classType: () => (typeof require !== "undefined" ? require("./session").DatabaseSession : undefined) }, optional: true, default: false }], returnType: { kind: 22, type: { kind: 3 } } }, { name: "saveEntity", parameters: [{ name: "entity", type: { kind: 17 }, optional: false, default: false }, { name: "session", type: { kind: 16, typeName: "DatabaseSession", classType: () => (typeof require !== "undefined" ? require("./session").DatabaseSession : undefined) }, optional: true, default: false }], returnType: { kind: 22, type: { kind: 3 } } }, { name: "deleteEntity", parameters: [{ name: "entity", type: { kind: 17 }, optional: false, default: false }, { name: "session", type: { kind: 16, typeName: "DatabaseSession", classType: () => (typeof require !== "undefined" ? require("./session").DatabaseSession : undefined) }, optional: true, default: false }], returnType: { kind: 22, type: { kind: 3 } } }], hasConstructor: true, constructorParameters: [{ name: "driver", type: { kind: 18, typeName: "DatabaseDriver", types: [{ kind: 20, name: "dialect", type: { kind: 12, types: [{ kind: 10, literal: "mysql" }, { kind: 10, literal: "postgres" }], typeName: "Dialect" }, optional: false }] }, optional: false, default: false }, { name: "entities", type: { kind: 14, type: { kind: 2, typeName: "EntityClass" } }, optional: true, default: true }, { name: "options", type: { kind: 18, typeName: "BaseDatabaseOptions", types: [{ kind: 20, name: "enableLocksTable", type: { kind: 12, types: [{ kind: 8 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "lockTableName", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }] }, optional: true, default: true }] });
263
263
  }
264
264
  exports.BaseDatabase = BaseDatabase;
265
265
  _BaseDatabaseMetadata_1.classType = BaseDatabase;