taon 21.0.54 → 21.0.55

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.
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "taon/browser",
3
- "version": "21.0.54",
3
+ "version": "21.0.55",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^21.0.0",
6
6
  "@angular/core": "^21.0.0"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "taon/browser-prod",
3
- "version": "21.0.54",
3
+ "version": "21.0.55",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^21.0.0",
6
6
  "@angular/core": "^21.0.0"
@@ -1,15 +1,15 @@
1
- <?xml version="1.0" encoding="UTF-8" standalone="no"?>
2
- <svg
3
- viewBox="0 0 23.432 23.432004"
4
- version="1.1"
5
- id="svg1"
6
- width="23.431999"
7
- height="23.432003"
8
- xmlns="http://www.w3.org/2000/svg"
9
- xmlns:svg="http://www.w3.org/2000/svg">
10
- <defs
11
- id="defs1" />
12
- <path
13
- id="path1"
14
- d="m 11.521484,1.265625 c -0.953032,1.5597622 -1.9887223,3.0593334 -3.1074215,4.5 C 6.9495642,4.7476223 5.485983,3.7308932 4.0214844,2.7128906 3.8829075,2.6603831 3.738968,2.6414114 3.5917969,2.6582031 2.7651252,6.7213623 1.8733597,10.758159 0.9140625,14.767578 v 0.75 c 1.6097872,1.096932 3.2239518,2.188127 4.8417969,3.273438 v 0.08008 h 0.1171875 c 1.806633,1.211497 3.6188659,2.414261 5.4355471,3.611328 0.07144,0.07147 0.14145,0.143364 0.21289,0.214844 h 0.429688 c 3.432812,-2.431526 6.897745,-4.824781 10.394531,-7.179688 V 14.552734 C 21.353633,10.612741 20.406845,6.6479161 19.505859,2.6582031 19.42892,2.5563391 19.339974,2.5393307 19.238281,2.6054688 17.782054,3.6890192 16.286176,4.7048374 14.75,5.6523438 a 3.4715793,3.1345327 0 0 0 -0.01758,-0.00195 C 13.814421,4.161603 12.851221,2.7003542 11.84375,1.265625 Z M 4.1855469,8.9433594 H 10.810547 V 10.048828 H 8.34375 V 15.46875 H 6.6601562 V 10.048828 H 4.1855469 Z m 7.7285151,0 h 1.638672 l 3.41211,4.3574216 V 8.9433594 h 1.564453 V 15.46875 h -1.689453 l -3.361328,-4.253906 v 4.253906 h -1.564454 z" />
15
- </svg>
1
+ <?xml version="1.0" encoding="UTF-8" standalone="no"?>
2
+ <svg
3
+ viewBox="0 0 23.432 23.432004"
4
+ version="1.1"
5
+ id="svg1"
6
+ width="23.431999"
7
+ height="23.432003"
8
+ xmlns="http://www.w3.org/2000/svg"
9
+ xmlns:svg="http://www.w3.org/2000/svg">
10
+ <defs
11
+ id="defs1" />
12
+ <path
13
+ id="path1"
14
+ d="m 11.521484,1.265625 c -0.953032,1.5597622 -1.9887223,3.0593334 -3.1074215,4.5 C 6.9495642,4.7476223 5.485983,3.7308932 4.0214844,2.7128906 3.8829075,2.6603831 3.738968,2.6414114 3.5917969,2.6582031 2.7651252,6.7213623 1.8733597,10.758159 0.9140625,14.767578 v 0.75 c 1.6097872,1.096932 3.2239518,2.188127 4.8417969,3.273438 v 0.08008 h 0.1171875 c 1.806633,1.211497 3.6188659,2.414261 5.4355471,3.611328 0.07144,0.07147 0.14145,0.143364 0.21289,0.214844 h 0.429688 c 3.432812,-2.431526 6.897745,-4.824781 10.394531,-7.179688 V 14.552734 C 21.353633,10.612741 20.406845,6.6479161 19.505859,2.6582031 19.42892,2.5563391 19.339974,2.5393307 19.238281,2.6054688 17.782054,3.6890192 16.286176,4.7048374 14.75,5.6523438 a 3.4715793,3.1345327 0 0 0 -0.01758,-0.00195 C 13.814421,4.161603 12.851221,2.7003542 11.84375,1.265625 Z M 4.1855469,8.9433594 H 10.810547 V 10.048828 H 8.34375 V 15.46875 H 6.6601562 V 10.048828 H 4.1855469 Z m 7.7285151,0 h 1.638672 l 3.41211,4.3574216 V 8.9433594 h 1.564453 V 15.46875 h -1.689453 l -3.361328,-4.253906 v 4.253906 h -1.564454 z" />
15
+ </svg>
@@ -21,4 +21,4 @@ export declare const CURRENT_PACKAGE_TAON_VERSION = "v21";
21
21
  /**
22
22
  * Autogenerated by current cli tool. Use *tnp release* to bump version.
23
23
  */
24
- export declare const CURRENT_PACKAGE_VERSION = "21.0.54";
24
+ export declare const CURRENT_PACKAGE_VERSION = "21.0.55";
@@ -25,6 +25,6 @@ exports.CURRENT_PACKAGE_TAON_VERSION = 'v21';
25
25
  /**
26
26
  * Autogenerated by current cli tool. Use *tnp release* to bump version.
27
27
  */
28
- exports.CURRENT_PACKAGE_VERSION = '21.0.54';
28
+ exports.CURRENT_PACKAGE_VERSION = '21.0.55';
29
29
  // THIS FILE IS GENERATED - DO NOT MODIFY
30
30
  //# sourceMappingURL=build-info._auto-generated_.js.map
package/lib/package.json CHANGED
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "name": "taon/lib",
3
- "version": "21.0.54"
3
+ "version": "21.0.55"
4
4
  }
package/lib/ui/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.dummy1769878175346 = dummy1769878175346;
4
- function dummy1769878175346() { }
3
+ exports.dummy1769912370282 = dummy1769912370282;
4
+ function dummy1769912370282() { }
5
5
  //# sourceMappingURL=index.js.map
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.dummy1769878176428 = dummy1769878176428;
4
- function dummy1769878176428() { }
3
+ exports.dummy1769912371642 = dummy1769912371642;
4
+ function dummy1769912371642() { }
5
5
  //# sourceMappingURL=index.js.map
@@ -22,5 +22,5 @@ export const CURRENT_PACKAGE_TAON_VERSION = 'v21';
22
22
  /**
23
23
  * Autogenerated by current cli tool. Use *tnp release* to bump version.
24
24
  */
25
- export const CURRENT_PACKAGE_VERSION = '21.0.54';
25
+ export const CURRENT_PACKAGE_VERSION = '21.0.55';
26
26
  // THIS FILE IS GENERATED - DO NOT MODIFY
@@ -1,5 +1,6 @@
1
1
  //#region imports
2
2
  import { Helpers__NS__throwError, UtilsMigrations__NS__getTimestampFromClassName, UtilsMigrations__NS__isValidTimestamp } from 'tnp-core/lib-prod';
3
+ import { Models__NS__ClassType } from './models';
3
4
  import { ClassHelpers__NS__getName } from './helpers/class-helpers';
4
5
  import { Table, TableIndex, } from 'taon-typeorm/lib-prod';
5
6
  export class ContextDbMigrations {
@@ -115,7 +116,7 @@ export class ContextDbMigrations {
115
116
  }
116
117
  // Get all migration class functions and reverse the order
117
118
  const migrationsClassFns = this.ctx
118
- .getClassFunByArr(Models.ClassType.MIGRATION)
119
+ .getClassFunByArr(Models__NS__ClassType.MIGRATION)
119
120
  .reverse();
120
121
  // Filter migrations that need to be reverted
121
122
  const migrationClassesInstancesToRevert = migrationsClassFns
@@ -202,7 +203,7 @@ export class ContextDbMigrations {
202
203
  if (this.ctx.isRemoteHost || !this.ctx.connection) {
203
204
  return;
204
205
  }
205
- const migrationsClassFns = this.ctx.getClassFunByArr(Models.ClassType.MIGRATION);
206
+ const migrationsClassFns = this.ctx.getClassFunByArr(Models__NS__ClassType.MIGRATION);
206
207
  const migrationClassesInstances = migrationsClassFns
207
208
  .map(classFn => this.ctx.getInstanceBy(classFn))
208
209
  .map(f => f)
@@ -256,7 +257,7 @@ export class ContextDbMigrations {
256
257
  if (this.ctx.isRemoteHost || !this.ctx.connection) {
257
258
  return;
258
259
  }
259
- const migrationsClassFns = this.ctx.getClassFunByArr(Models.ClassType.MIGRATION);
260
+ const migrationsClassFns = this.ctx.getClassFunByArr(Models__NS__ClassType.MIGRATION);
260
261
  // console.log({
261
262
  // migrationClassesALl: migrationsClassFns.map(f => ClassHelpers__NS__getName(f)),
262
263
  // });
@@ -1,5 +1,5 @@
1
- import { Models } from 'ng2-rest/lib-prod';
2
- export const HttpResponse = Models.HttpResponse;
1
+ import { Models__NS__HttpResponse } from 'ng2-rest/lib-prod';
2
+ export const HttpResponse = Models__NS__HttpResponse;
3
3
  // TODO new 5.8 typescript is not allowing this
4
4
  // export namespace Http {
5
5
  // export import GET = methods.GET;
@@ -9,7 +9,7 @@ export const HttpResponse = Models.HttpResponse;
9
9
  // export import PATCH = methods.PATCH;
10
10
  // export import HEAD = methods.HEAD;
11
11
  // export import HTML = methods.HTML;
12
- // export import Response = Models.HttpResponse;
12
+ // export import Response = Models__NS__HttpResponse;
13
13
  // export namespace Param {
14
14
  // export import Query = params.Query;
15
15
  // export import Path = params.Path;
@@ -22,7 +22,7 @@ import { EntityProcess } from './entity-process';
22
22
  import { getResponseValue } from './get-response-value';
23
23
  import { ClassHelpers__NS__asyncHandler, ClassHelpers__NS__getControllerConfigs, ClassHelpers__NS__getMethodsNames, ClassHelpers__NS__getName, ClassHelpers__NS__getOrginalClass } from './helpers/class-helpers';
24
24
  import { TaonHelpers__NS__fillUpTo, TaonHelpers__NS__firstStringOrElemFromArray, TaonHelpers__NS__getExpressPath, TaonHelpers__NS__ipcKeyNameRequest, TaonHelpers__NS__ipcKeyNameResponse, TaonHelpers__NS__isGoodPath, TaonHelpers__NS__parseJSONwithStringJSONs, TaonHelpers__NS__tryTransformParam, TaonHelpers__NS__websqlMocks } from './helpers/taon-helpers';
25
- import { Models__NS__ClassTypeKey, Models__NS__DatabasesFolder } from './models';
25
+ import { Models__NS__ClassType, Models__NS__ClassTypeKey, Models__NS__DatabaseConfig, Models__NS__DatabasesFolder } from './models';
26
26
  import { RealtimeCore } from './realtime/realtime-core';
27
27
  import { Symbols__NS__classMethodsNames, Symbols__NS__classNameStaticProperty, Symbols__NS__ctxInClassOrClassObj, Symbols__NS__fullClassNameStaticProperty, Symbols__NS__metadata, Symbols__NS__old, Symbols__NS__orignalClass } from './symbols';
28
28
  /* */
@@ -152,18 +152,18 @@ export class EndpointContext {
152
152
  //#endregion
153
153
  //#region fields / types from contexts
154
154
  this.injectableTypesfromContexts = [
155
- Models.ClassType.CONTROLLER,
156
- Models.ClassType.PROVIDER,
157
- Models.ClassType.MIDDLEWARE,
158
- Models.ClassType.REPOSITORY,
159
- Models.ClassType.SUBSCRIBER,
160
- Models.ClassType.MIGRATION,
155
+ Models__NS__ClassType.CONTROLLER,
156
+ Models__NS__ClassType.PROVIDER,
157
+ Models__NS__ClassType.MIDDLEWARE,
158
+ Models__NS__ClassType.REPOSITORY,
159
+ Models__NS__ClassType.SUBSCRIBER,
160
+ Models__NS__ClassType.MIGRATION,
161
161
  ];
162
162
  //#endregion
163
163
  //#region fields / all types from contexts
164
164
  this.allTypesfromContexts = [
165
165
  ...this.injectableTypesfromContexts,
166
- Models.ClassType.ENTITY,
166
+ Models__NS__ClassType.ENTITY,
167
167
  ];
168
168
  //#endregion
169
169
  //#region fields / express app
@@ -292,7 +292,7 @@ export class EndpointContext {
292
292
  this.onlyMigrationRevertToTimestamp = onlyMigrationRevertToTimestamp;
293
293
  this.config = this.configFn({});
294
294
  if (___NS__isObject(this.config.database)) {
295
- this.config.database = Models.DatabaseConfig.from(this.config.database).databaseConfigTypeORM;
295
+ this.config.database = Models__NS__DatabaseConfig.from(this.config.database).databaseConfigTypeORM;
296
296
  }
297
297
  this.config.host = this.host === null ? void 0 : this.host;
298
298
  if (this.cloneOptions.overrideHost &&
@@ -405,31 +405,31 @@ export class EndpointContext {
405
405
  this.config.subscribers = this.config.subscribers || {};
406
406
  this.config.migrations = this.config.migrations || {};
407
407
  this.config.entities = {
408
- ...(await this.getRecrusiveClassesfromContextsObj(Models.ClassType.ENTITY)),
408
+ ...(await this.getRecrusiveClassesfromContextsObj(Models__NS__ClassType.ENTITY)),
409
409
  ...this.config.entities,
410
410
  };
411
411
  this.config.controllers = {
412
- ...(await this.getRecrusiveClassesfromContextsObj(Models.ClassType.CONTROLLER)),
412
+ ...(await this.getRecrusiveClassesfromContextsObj(Models__NS__ClassType.CONTROLLER)),
413
413
  ...this.config.controllers,
414
414
  };
415
415
  this.config.providers = {
416
- ...(await this.getRecrusiveClassesfromContextsObj(Models.ClassType.PROVIDER)),
416
+ ...(await this.getRecrusiveClassesfromContextsObj(Models__NS__ClassType.PROVIDER)),
417
417
  ...this.config.providers,
418
418
  };
419
419
  this.config.middlewares = {
420
- ...(await this.getRecrusiveClassesfromContextsObj(Models.ClassType.MIDDLEWARE)),
420
+ ...(await this.getRecrusiveClassesfromContextsObj(Models__NS__ClassType.MIDDLEWARE)),
421
421
  ...this.config.middlewares,
422
422
  };
423
423
  this.config.subscribers = {
424
- ...(await this.getRecrusiveClassesfromContextsObj(Models.ClassType.SUBSCRIBER)),
424
+ ...(await this.getRecrusiveClassesfromContextsObj(Models__NS__ClassType.SUBSCRIBER)),
425
425
  ...this.config.subscribers,
426
426
  };
427
427
  this.config.repositories = {
428
- ...(await this.getRecrusiveClassesfromContextsObj(Models.ClassType.REPOSITORY)),
428
+ ...(await this.getRecrusiveClassesfromContextsObj(Models__NS__ClassType.REPOSITORY)),
429
429
  ...this.config.repositories,
430
430
  };
431
431
  this.config.migrations = {
432
- ...(await this.getRecrusiveClassesfromContextsObj(Models.ClassType.MIGRATION)),
432
+ ...(await this.getRecrusiveClassesfromContextsObj(Models__NS__ClassType.MIGRATION)),
433
433
  ...this.config.migrations,
434
434
  };
435
435
  // console.log(this.config);
@@ -440,37 +440,37 @@ export class EndpointContext {
440
440
  classesInput: this.config.controllers,
441
441
  config: this.config,
442
442
  ctx: this,
443
- classType: Models.ClassType.CONTROLLER,
443
+ classType: Models__NS__ClassType.CONTROLLER,
444
444
  });
445
445
  this.config.repositories = this.cloneClassesObjWithNewMetadata({
446
446
  classesInput: this.config.repositories,
447
447
  config: this.config,
448
448
  ctx: this,
449
- classType: Models.ClassType.REPOSITORY,
449
+ classType: Models__NS__ClassType.REPOSITORY,
450
450
  });
451
451
  this.config.providers = this.cloneClassesObjWithNewMetadata({
452
452
  classesInput: this.config.providers,
453
453
  config: this.config,
454
454
  ctx: this,
455
- classType: Models.ClassType.PROVIDER,
455
+ classType: Models__NS__ClassType.PROVIDER,
456
456
  });
457
457
  this.config.middlewares = this.cloneClassesObjWithNewMetadata({
458
458
  classesInput: this.config.middlewares,
459
459
  config: this.config,
460
460
  ctx: this,
461
- classType: Models.ClassType.MIDDLEWARE,
461
+ classType: Models__NS__ClassType.MIDDLEWARE,
462
462
  });
463
463
  this.config.subscribers = this.cloneClassesObjWithNewMetadata({
464
464
  classesInput: this.config.subscribers,
465
465
  config: this.config,
466
466
  ctx: this,
467
- classType: Models.ClassType.SUBSCRIBER,
467
+ classType: Models__NS__ClassType.SUBSCRIBER,
468
468
  });
469
469
  this.config.migrations = this.cloneClassesObjWithNewMetadata({
470
470
  classesInput: this.config.migrations,
471
471
  config: this.config,
472
472
  ctx: this,
473
- classType: Models.ClassType.MIGRATION,
473
+ classType: Models__NS__ClassType.MIGRATION,
474
474
  });
475
475
  //#endregion
476
476
  //#region prepare instances
@@ -571,13 +571,13 @@ export class EndpointContext {
571
571
 
572
572
  `);
573
573
  //#region @websqlFunc
574
- let databaseConfig = Models.DatabaseConfig.from({});
574
+ let databaseConfig = Models__NS__DatabaseConfig.from({});
575
575
  const tcpUdpDatabaseSqliteRelativeFileLocation = `${Models__NS__DatabasesFolder}/db-${this.contextName}.sqlite`;
576
576
  if (this.isRunningInsideDocker) {
577
577
  if (this.USE_MARIADB_MYSQL_IN_DOCKER) {
578
578
  // Helpers__NS__info('Running in docker, using in mysql database');
579
579
  // // TODO auto resolve database config in docker
580
- // databaseConfig = Models.DatabaseConfig.from({
580
+ // databaseConfig = Models__NS__DatabaseConfig.from({
581
581
  // database: `db-${this.contextName}.sqlite`,
582
582
  // type: 'mysql',
583
583
  // recreateMode: 'PRESERVE_DATA+MIGRATIONS',
@@ -602,7 +602,7 @@ export class EndpointContext {
602
602
  `db-${this.contextName}.sqlite`,
603
603
  ]);
604
604
  //#endregion
605
- databaseConfig = databaseConfig = Models.DatabaseConfig.from({
605
+ databaseConfig = databaseConfig = Models__NS__DatabaseConfig.from({
606
606
  location: tcpUdpDatabaseSqliteRelativeFileLocation,
607
607
  type: 'sqljs',
608
608
  useLocalForage: false,
@@ -643,7 +643,7 @@ export class EndpointContext {
643
643
  }
644
644
  }
645
645
  //#endregion
646
- databaseConfig = Models.DatabaseConfig.from({
646
+ databaseConfig = Models__NS__DatabaseConfig.from({
647
647
  location: UtilsOs__NS__isElectron
648
648
  ? dbLocationInOs
649
649
  : `db-${this.contextName}.sqlite`,
@@ -660,7 +660,7 @@ export class EndpointContext {
660
660
  /* */
661
661
  /* */
662
662
  /* */
663
- databaseConfig = databaseConfig = Models.DatabaseConfig.from({
663
+ databaseConfig = databaseConfig = Models__NS__DatabaseConfig.from({
664
664
  location: `db-${this.contextName}.sqlite`,
665
665
  type: 'sqljs',
666
666
  useLocalForage: true, // !!window['localforage'], // TODO this need to be checked in runtime
@@ -673,7 +673,7 @@ export class EndpointContext {
673
673
  //#endregion
674
674
  //#region resolve database config for mode backend-frontend(tcp+udp)
675
675
  case 'backend-frontend(tcp+udp)':
676
- databaseConfig = Models.DatabaseConfig.from({
676
+ databaseConfig = Models__NS__DatabaseConfig.from({
677
677
  database: `context-db-${this.contextName}`,
678
678
  location: tcpUdpDatabaseSqliteRelativeFileLocation,
679
679
  type: 'sqljs',
@@ -817,7 +817,7 @@ export class EndpointContext {
817
817
  inject(ctor, options) {
818
818
  const className = ClassHelpers__NS__getName(ctor);
819
819
  const locaInstanceConstructorArgs = options.locaInstanceConstructorArgs || [];
820
- if (this.isCLassType(Models.ClassType.REPOSITORY, ctor)) {
820
+ if (this.isCLassType(Models__NS__ClassType.REPOSITORY, ctor)) {
821
821
  options.localInstance = true;
822
822
  }
823
823
  if (options?.localInstance) {
@@ -869,7 +869,7 @@ export class EndpointContext {
869
869
  getInstanceBy(ctor) {
870
870
  // if (!!this.__contextForControllerInstanceAccess) {
871
871
  // const className = ClassHelpers__NS__getName(ctor);
872
- // const allControllers = this.getClassFunByArr(Models.ClassType.CONTROLLER);
872
+ // const allControllers = this.getClassFunByArr(Models__NS__ClassType.CONTROLLER);
873
873
  // // TODO QUICK_FIX cache controllers
874
874
  // for (const ctrl of allControllers) {
875
875
  // if (ClassHelpers__NS__getName(ctrl) === className) {
@@ -904,19 +904,19 @@ export class EndpointContext {
904
904
  getClassFunBy(classType) {
905
905
  this.checkIfContextInitialized();
906
906
  switch (classType) {
907
- case Models.ClassType.CONTROLLER:
907
+ case Models__NS__ClassType.CONTROLLER:
908
908
  return this.config.controllers;
909
- case Models.ClassType.ENTITY:
909
+ case Models__NS__ClassType.ENTITY:
910
910
  return this.config.entities;
911
- case Models.ClassType.PROVIDER:
911
+ case Models__NS__ClassType.PROVIDER:
912
912
  return this.config.providers;
913
- case Models.ClassType.MIDDLEWARE:
913
+ case Models__NS__ClassType.MIDDLEWARE:
914
914
  return this.config.middlewares;
915
- case Models.ClassType.REPOSITORY:
915
+ case Models__NS__ClassType.REPOSITORY:
916
916
  return this.config.repositories;
917
- case Models.ClassType.SUBSCRIBER:
917
+ case Models__NS__ClassType.SUBSCRIBER:
918
918
  return this.config.subscribers;
919
- case Models.ClassType.MIGRATION:
919
+ case Models__NS__ClassType.MIGRATION:
920
920
  return this.config.migrations;
921
921
  }
922
922
  }
@@ -971,18 +971,18 @@ export class EndpointContext {
971
971
  return;
972
972
  }
973
973
  //#region @websql
974
- for (const classFun of this.getClassFunByArr(Models.ClassType.ENTITY)) {
974
+ for (const classFun of this.getClassFunByArr(Models__NS__ClassType.ENTITY)) {
975
975
  const repo = (await this.connection.getRepository(ClassHelpers__NS__getOrginalClass(classFun)));
976
976
  this.repos.set(ClassHelpers__NS__getName(classFun), repo);
977
977
  }
978
978
  //#endregion
979
979
  for (const classTypeName of [
980
- Models.ClassType.MIDDLEWARE,
981
- Models.ClassType.PROVIDER,
982
- Models.ClassType.REPOSITORY,
983
- Models.ClassType.CONTROLLER,
984
- Models.ClassType.ENTITY,
985
- Models.ClassType.MIGRATION,
980
+ Models__NS__ClassType.MIDDLEWARE,
981
+ Models__NS__ClassType.PROVIDER,
982
+ Models__NS__ClassType.REPOSITORY,
983
+ Models__NS__ClassType.CONTROLLER,
984
+ Models__NS__ClassType.ENTITY,
985
+ Models__NS__ClassType.MIGRATION,
986
986
  ]) {
987
987
  //#region init class static _ property
988
988
  for (const classFun of this.getClassFunByArr(classTypeName)) {
@@ -993,11 +993,11 @@ export class EndpointContext {
993
993
  //#endregion
994
994
  }
995
995
  for (const classTypeName of [
996
- Models.ClassType.MIDDLEWARE,
997
- Models.ClassType.PROVIDER,
998
- Models.ClassType.REPOSITORY,
999
- Models.ClassType.CONTROLLER,
1000
- Models.ClassType.MIGRATION,
996
+ Models__NS__ClassType.MIDDLEWARE,
997
+ Models__NS__ClassType.PROVIDER,
998
+ Models__NS__ClassType.REPOSITORY,
999
+ Models__NS__ClassType.CONTROLLER,
1000
+ Models__NS__ClassType.MIGRATION,
1001
1001
  ]) {
1002
1002
  //#region init providers, repositories _ property
1003
1003
  // Helpers__NS__taskStarted(
@@ -1188,7 +1188,7 @@ export class EndpointContext {
1188
1188
  if (this.isRemoteHost) {
1189
1189
  return;
1190
1190
  }
1191
- const subscriberClasses = this.getClassFunByArr(Models.ClassType.SUBSCRIBER);
1191
+ const subscriberClasses = this.getClassFunByArr(Models__NS__ClassType.SUBSCRIBER);
1192
1192
  for (const subscriberClassFn of subscriberClasses) {
1193
1193
  const options = Reflect.getMetadata(Symbols__NS__metadata.options.subscriber, subscriberClassFn);
1194
1194
  // console.log('subscriber options', options);
@@ -1204,7 +1204,7 @@ export class EndpointContext {
1204
1204
  if (this.isRemoteHost) {
1205
1205
  return;
1206
1206
  }
1207
- const entities = this.getClassFunByArr(Models.ClassType.ENTITY);
1207
+ const entities = this.getClassFunByArr(Models__NS__ClassType.ENTITY);
1208
1208
  for (const entity of entities) {
1209
1209
  const options = Reflect.getMetadata(Symbols__NS__metadata.options.entity, entity);
1210
1210
  const createTable = ___NS__isUndefined(options.createTable)
@@ -1250,10 +1250,10 @@ export class EndpointContext {
1250
1250
  if (this.isRemoteHost || !this.databaseConfig) {
1251
1251
  return;
1252
1252
  }
1253
- const entities = this.getClassFunByArr(Models.ClassType.ENTITY).map(entityFn => {
1253
+ const entities = this.getClassFunByArr(Models__NS__ClassType.ENTITY).map(entityFn => {
1254
1254
  return ClassHelpers__NS__getOrginalClass(entityFn);
1255
1255
  });
1256
- const subscribers = this.getClassFunByArr(Models.ClassType.SUBSCRIBER);
1256
+ const subscribers = this.getClassFunByArr(Models__NS__ClassType.SUBSCRIBER);
1257
1257
  let autoSave = false;
1258
1258
  if (!___NS__isNil(this.databaseConfig.autoSave)) {
1259
1259
  autoSave = this.databaseConfig.autoSave;
@@ -1394,7 +1394,7 @@ export class EndpointContext {
1394
1394
  if (this.isRunOrRevertOnlyMigrationAppStart) {
1395
1395
  return;
1396
1396
  }
1397
- const allControllers = this.getClassFunByArr(Models.ClassType.CONTROLLER);
1397
+ const allControllers = this.getClassFunByArr(Models__NS__ClassType.CONTROLLER);
1398
1398
  for (const controllerClassFn of allControllers) {
1399
1399
  const instance = this.getInstanceBy(controllerClassFn);
1400
1400
  if (___NS__isFunction(instance.afterAllCtxInited)) {
@@ -1406,7 +1406,7 @@ export class EndpointContext {
1406
1406
  if (this.isRunOrRevertOnlyMigrationAppStart) {
1407
1407
  return;
1408
1408
  }
1409
- const allControllers = this.getClassFunByArr(Models.ClassType.CONTROLLER);
1409
+ const allControllers = this.getClassFunByArr(Models__NS__ClassType.CONTROLLER);
1410
1410
  // debugger
1411
1411
  // console.log('allControllers', allControllers);
1412
1412
  for (const controllerClassFn of allControllers) {
@@ -1572,7 +1572,7 @@ export class EndpointContext {
1572
1572
  //#endregion
1573
1573
  //#region methods & getters / init middlewares
1574
1574
  async initCustomClientMiddlewares() {
1575
- const middlewares = this.getClassesInstancesArrBy(Models.ClassType.MIDDLEWARE)
1575
+ const middlewares = this.getClassesInstancesArrBy(Models__NS__ClassType.MIDDLEWARE)
1576
1576
  .map(f => f)
1577
1577
  .filter(f => ___NS__isFunction(f.interceptClient));
1578
1578
  middlewares.forEach(middlewareInstanceName => {
@@ -1596,7 +1596,7 @@ export class EndpointContext {
1596
1596
  async initCustomBackendMiddlewares() {
1597
1597
  //#region @backend
1598
1598
  const app = this.expressApp;
1599
- const middlewares = this.getClassesInstancesArrBy(Models.ClassType.MIDDLEWARE);
1599
+ const middlewares = this.getClassesInstancesArrBy(Models__NS__ClassType.MIDDLEWARE);
1600
1600
  for (const middleware of middlewares) {
1601
1601
  const middlewareInstance = middleware;
1602
1602
  if (___NS__isFunction(middlewareInstance.interceptServer)) {
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "name": "taon/lib-prod",
3
- "version": "21.0.54"
3
+ "version": "21.0.55"
4
4
  }
@@ -1 +1 @@
1
- export function dummy1769878227381() { }
1
+ export function dummy1769912413518() { }
@@ -1 +1 @@
1
- export function dummy1769878228675() { }
1
+ export function dummy1769912414560() { }
@@ -39,7 +39,10 @@
39
39
  "Taon.inject": "Taon__NS__inject",
40
40
  "Taon.init": "Taon__NS__init",
41
41
  "Models.DatabasesFolder": "Models__NS__DatabasesFolder",
42
+ "Models.ClassType": "Models__NS__ClassType",
42
43
  "Models.ClassTypeKey": "Models__NS__ClassTypeKey",
44
+ "Models.DatabaseConfigTypeOrm": "Models__NS__DatabaseConfigTypeOrm",
45
+ "Models.DatabaseConfig": "Models__NS__DatabaseConfig",
43
46
  "Symbols.ctxInClassOrClassObj": "Symbols__NS__ctxInClassOrClassObj",
44
47
  "Symbols.classNameStaticProperty": "Symbols__NS__classNameStaticProperty",
45
48
  "Symbols.fullClassNameStaticProperty": "Symbols__NS__fullClassNameStaticProperty",
@@ -105,7 +108,10 @@
105
108
  ],
106
109
  "Models": [
107
110
  "Models__NS__DatabasesFolder",
108
- "Models__NS__ClassTypeKey"
111
+ "Models__NS__ClassType",
112
+ "Models__NS__ClassTypeKey",
113
+ "Models__NS__DatabaseConfigTypeOrm",
114
+ "Models__NS__DatabaseConfig"
109
115
  ],
110
116
  "Symbols": [
111
117
  "Symbols__NS__ctxInClassOrClassObj",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "taon",
3
- "version": "21.0.54",
3
+ "version": "21.0.55",
4
4
  "scripts": {
5
5
  "mkdocs": "python3 -m mkdocs",
6
6
  "taon init": "taon init",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "taon/websql",
3
- "version": "21.0.54",
3
+ "version": "21.0.55",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^21.0.0",
6
6
  "@angular/core": "^21.0.0"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "taon/websql-prod",
3
- "version": "21.0.54",
3
+ "version": "21.0.55",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^21.0.0",
6
6
  "@angular/core": "^21.0.0"