taon 21.0.32 → 21.0.37
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/browser/fesm2022/taon-browser.mjs.map +1 -1
- package/browser/package.json +1 -1
- package/browser/types/taon-browser.d.ts +6 -6
- package/browser-prod/fesm2022/taon-browser.mjs +315 -315
- package/browser-prod/fesm2022/taon-browser.mjs.map +1 -1
- package/browser-prod/package.json +1 -1
- package/browser-prod/types/taon-browser.d.ts +145 -143
- package/browser-prod.split-namespaces.json +162 -162
- package/icon-menu-taon.svg +15 -15
- package/lib/build-info._auto-generated_.d.ts +1 -1
- package/lib/build-info._auto-generated_.js +1 -1
- package/lib/index.d.ts +3 -3
- package/lib/migrations/index.d.ts +1 -0
- package/lib/migrations/index.js +19 -0
- package/lib/migrations/index.js.map +1 -0
- package/lib/migrations/migrations_index._auto-generated_.d.ts +0 -0
- package/lib/migrations/migrations_index._auto-generated_.js +4 -0
- package/lib/migrations/migrations_index._auto-generated_.js.map +1 -0
- package/lib/package.json +1 -1
- package/lib/ui/index.js +2 -2
- package/lib/ui/taon-admin-mode-configuration/index.js +2 -2
- package/lib-prod/base-classes/base-class.js +1 -1
- package/lib-prod/base-classes/base-class.js.map +1 -1
- package/lib-prod/base-classes/base-context.d.ts +1 -1
- package/lib-prod/base-classes/base-controller.d.ts +5 -5
- package/lib-prod/base-classes/base-controller.js +2 -2
- package/lib-prod/base-classes/base-controller.js.map +1 -1
- package/lib-prod/base-classes/base-crud-controller.d.ts +13 -13
- package/lib-prod/base-classes/base-crud-controller.js +8 -8
- package/lib-prod/base-classes/base-crud-controller.js.map +1 -1
- package/lib-prod/base-classes/base-injector.js +11 -11
- package/lib-prod/base-classes/base-injector.js.map +1 -1
- package/lib-prod/base-classes/base-middleware.d.ts +2 -2
- package/lib-prod/base-classes/base-migration.js +3 -3
- package/lib-prod/base-classes/base-migration.js.map +1 -1
- package/lib-prod/base-classes/base-repository.js +4 -4
- package/lib-prod/base-classes/base-repository.js.map +1 -1
- package/lib-prod/build-info._auto-generated_.d.ts +1 -1
- package/lib-prod/build-info._auto-generated_.js +1 -1
- package/lib-prod/config/method-config.d.ts +2 -2
- package/lib-prod/config/param-config.d.ts +2 -2
- package/lib-prod/context-db-migrations.js +12 -12
- package/lib-prod/context-db-migrations.js.map +1 -1
- package/lib-prod/create-context.d.ts +5 -5
- package/lib-prod/create-context.js +3 -3
- package/lib-prod/create-context.js.map +1 -1
- package/lib-prod/decorators/classes/controller-decorator.js +3 -3
- package/lib-prod/decorators/classes/controller-decorator.js.map +1 -1
- package/lib-prod/decorators/classes/entity-decorator.d.ts +3 -3
- package/lib-prod/decorators/classes/entity-decorator.js +5 -5
- package/lib-prod/decorators/classes/entity-decorator.js.map +1 -1
- package/lib-prod/decorators/classes/middleware-decorator.js +3 -3
- package/lib-prod/decorators/classes/middleware-decorator.js.map +1 -1
- package/lib-prod/decorators/classes/migration-decorator.js +3 -3
- package/lib-prod/decorators/classes/migration-decorator.js.map +1 -1
- package/lib-prod/decorators/classes/provider-decorator.js +3 -3
- package/lib-prod/decorators/classes/provider-decorator.js.map +1 -1
- package/lib-prod/decorators/classes/repository-decorator.js +3 -3
- package/lib-prod/decorators/classes/repository-decorator.js.map +1 -1
- package/lib-prod/decorators/classes/subscriber-decorator.js +3 -3
- package/lib-prod/decorators/classes/subscriber-decorator.js.map +1 -1
- package/lib-prod/decorators/http/http-decorators.d.ts +3 -3
- package/lib-prod/decorators/http/http-decorators.js +2 -2
- package/lib-prod/decorators/http/http-decorators.js.map +1 -1
- package/lib-prod/decorators/http/http-methods-decorators.d.ts +5 -5
- package/lib-prod/decorators/http/http-methods-decorators.js +2 -2
- package/lib-prod/decorators/http/http-methods-decorators.js.map +1 -1
- package/lib-prod/decorators/http/http-params-decorators.js +1 -1
- package/lib-prod/decorators/http/http-params-decorators.js.map +1 -1
- package/lib-prod/endpoint-context-storage.js +1 -1
- package/lib-prod/endpoint-context-storage.js.map +1 -1
- package/lib-prod/endpoint-context.d.ts +14 -14
- package/lib-prod/endpoint-context.js +171 -171
- package/lib-prod/endpoint-context.js.map +1 -1
- package/lib-prod/entity-process.js +14 -14
- package/lib-prod/entity-process.js.map +1 -1
- package/lib-prod/formly/fromly.d.ts +2 -2
- package/lib-prod/formly/fromly.js +1 -1
- package/lib-prod/formly/fromly.js.map +1 -1
- package/lib-prod/formly/type-from-entity.js +2 -2
- package/lib-prod/formly/type-from-entity.js.map +1 -1
- package/lib-prod/get-response-value.d.ts +2 -2
- package/lib-prod/get-response-value.js.map +1 -1
- package/lib-prod/global-state/taon-global-state/taon-global-state.abstract.context.d.ts +1 -1
- package/lib-prod/global-state/taon-global-state/taon-global-state.controller.d.ts +3 -3
- package/lib-prod/global-state/taon-global-state/taon-global-state.repository.js +1 -1
- package/lib-prod/global-state/taon-global-state/taon-global-state.repository.js.map +1 -1
- package/lib-prod/global-state/taon-global-state/taon-global-state.utils.d.ts +1 -1
- package/lib-prod/global-state/taon-global-state/taon-global-state.utils.js +3 -3
- package/lib-prod/global-state/taon-global-state/taon-global-state.utils.js.map +1 -1
- package/lib-prod/global-state/taon-transaction-registry/taon-transaction-registry.abstract.context.d.ts +1 -1
- package/lib-prod/global-state/taon-transaction-registry/taon-transaction-registry.controller.d.ts +2 -2
- package/lib-prod/global-state/taon-transaction-registry/taon-transaction-registry.utils.d.ts +1 -1
- package/lib-prod/global-state/taon-transaction-registry/taon-transaction-registry.utils.js +2 -2
- package/lib-prod/global-state/taon-transaction-registry/taon-transaction-registry.utils.js.map +1 -1
- package/lib-prod/helpers/class-helpers.d.ts +14 -14
- package/lib-prod/helpers/class-helpers.js +54 -54
- package/lib-prod/helpers/class-helpers.js.map +1 -1
- package/lib-prod/helpers/taon-helpers.d.ts +11 -11
- package/lib-prod/helpers/taon-helpers.js +26 -26
- package/lib-prod/helpers/taon-helpers.js.map +1 -1
- package/lib-prod/index.d.ts +17 -17
- package/lib-prod/index.js +16 -16
- package/lib-prod/index.js.map +1 -1
- package/lib-prod/inject.js +3 -3
- package/lib-prod/inject.js.map +1 -1
- package/lib-prod/migrations/index.d.ts +1 -0
- package/lib-prod/migrations/index.js +19 -0
- package/lib-prod/migrations/index.js.map +1 -0
- package/lib-prod/migrations/migrations_index._auto-generated_.d.ts +0 -0
- package/lib-prod/migrations/migrations_index._auto-generated_.js +4 -0
- package/lib-prod/migrations/migrations_index._auto-generated_.js.map +1 -0
- package/lib-prod/models.d.ts +37 -37
- package/lib-prod/models.js +25 -25
- package/lib-prod/models.js.map +1 -1
- package/lib-prod/package.json +1 -1
- package/lib-prod/realtime/realtime-client.d.ts +2 -2
- package/lib-prod/realtime/realtime-client.js +9 -9
- package/lib-prod/realtime/realtime-client.js.map +1 -1
- package/lib-prod/realtime/realtime-server.js +17 -17
- package/lib-prod/realtime/realtime-server.js.map +1 -1
- package/lib-prod/realtime/realtime-strategy/realtime-strategy-ipc.d.ts +3 -3
- package/lib-prod/realtime/realtime-strategy/realtime-strategy-ipc.js +2 -2
- package/lib-prod/realtime/realtime-strategy/realtime-strategy-ipc.js.map +1 -1
- package/lib-prod/realtime/realtime-strategy/realtime-strategy-mock.js +2 -2
- package/lib-prod/realtime/realtime-strategy/realtime-strategy-mock.js.map +1 -1
- package/lib-prod/realtime/realtime-subs-manager.d.ts +2 -2
- package/lib-prod/realtime/realtime-subs-manager.js +6 -6
- package/lib-prod/realtime/realtime-subs-manager.js.map +1 -1
- package/lib-prod/realtime/realtime.models.d.ts +3 -3
- package/lib-prod/symbols.d.ts +9 -9
- package/lib-prod/symbols.js +10 -10
- package/lib-prod/symbols.js.map +1 -1
- package/lib-prod/ui/index.d.ts +1 -1
- package/lib-prod/ui/index.js +2 -2
- package/lib-prod/ui/taon-admin-mode-configuration/index.d.ts +1 -1
- package/lib-prod/ui/taon-admin-mode-configuration/index.js +2 -2
- package/lib-prod/validators.d.ts +4 -4
- package/lib-prod/validators.js +9 -9
- package/lib-prod/validators.js.map +1 -1
- package/lib-prod.split-namespaces.json +164 -164
- package/package.json +1 -1
- package/websql/fesm2022/taon-websql.mjs.map +1 -1
- package/websql/package.json +1 -1
- package/websql/types/taon-websql.d.ts +6 -6
- package/websql-prod/fesm2022/taon-websql.mjs +389 -389
- package/websql-prod/fesm2022/taon-websql.mjs.map +1 -1
- package/websql-prod/package.json +1 -1
- package/websql-prod/types/taon-websql.d.ts +146 -144
- package/websql-prod.split-namespaces.json +164 -164
|
@@ -2,25 +2,25 @@
|
|
|
2
2
|
import * as taon_websql from 'taon/websql';
|
|
3
3
|
import * as express from 'express';
|
|
4
4
|
import express__default, { Request, Response, RequestHandler, Application } from 'express';
|
|
5
|
-
import {
|
|
5
|
+
import { Models__NS__PromiseObservableMix, Models__NS__HttpResponse, Models__NS__Ng2RestAxiosRequestConfig, RestResponseWrapper, TaonServerMiddlewareInterceptOptions, TaonClientMiddlewareInterceptOptions, Models__NS__ResponseTypeAxios, HttpResponseError, RestErrorResponseWrapper, Mapping__NS__ModelValue, Mapping__NS__Mapping } from 'ng2-rest/websql-prod';
|
|
6
6
|
export { TaonClientMiddlewareInterceptOptions, TaonServerMiddlewareInterceptOptions } from 'ng2-rest/websql-prod';
|
|
7
7
|
import { Server } from 'http';
|
|
8
8
|
import { DataSource, Repository, SaveOptions, DeepPartial, QueryDeepPartialEntity, InsertResult, UpsertOptions, FindOptionsWhere, UpdateResult, FindManyOptions, FindOneOptions, QueryRunner, SelectQueryBuilder, Table, RelationPath, MigrationInterface, EntitySubscriberInterface, InsertEvent, UpdateEvent, RemoveEvent, SoftRemoveEvent, RecoverEvent, TransactionStartEvent, TransactionCommitEvent, TransactionRollbackEvent } from 'taon-typeorm/websql-prod';
|
|
9
9
|
export { AfterInsert, AfterLoad, AfterRecover, AfterRemove, AfterSoftRemove, AfterUpdate, BeforeInsert, BeforeRecover, BeforeRemove, BeforeSoftRemove, BeforeUpdate, Column, Connection, CreateDateColumn, Column as CustomColumn, DeleteDateColumn, Generated, Generated as GeneratedColumn, Index, JoinColumn, JoinTable, ManyToMany, ManyToOne, OneToMany, OneToOne, PrimaryColumn, PrimaryGeneratedColumn, Repository, TreeChildren, TreeParent, UpdateDateColumn, VersionColumn, VirtualColumn } from 'taon-typeorm/websql-prod';
|
|
10
|
-
import {
|
|
10
|
+
import { CoreModels__NS__DatabaseType, CoreModels__NS__HttpMethod, CoreModels__NS__ContentType, CoreModels__NS__ParamType, CoreModels__NS__UIFramework } from 'tnp-core/websql-prod';
|
|
11
11
|
import { MySqlQuerySource } from 'taon-type-sql/websql-prod';
|
|
12
12
|
import * as i0 from '@angular/core';
|
|
13
13
|
import { InjectionToken, ViewContainerRef } from '@angular/core';
|
|
14
14
|
import { AxiosResponse } from 'axios';
|
|
15
15
|
import * as rxjs from 'rxjs';
|
|
16
16
|
import { Observable, Subscriber } from 'rxjs';
|
|
17
|
+
import * as multer from 'multer';
|
|
17
18
|
import * as _ngx_formly_core from '@ngx-formly/core';
|
|
18
19
|
import { FieldWrapper, FieldArrayType, FormlyFormBuilder, FormlyFieldConfig } from '@ngx-formly/core';
|
|
19
|
-
import * as Electron from 'electron';
|
|
20
|
-
import { ipcRenderer } from 'electron';
|
|
21
20
|
import { ServerOptions, Server as Server$1, DefaultEventsMap } from 'socket.io';
|
|
22
21
|
import { io, Socket } from 'socket.io-client';
|
|
23
|
-
import * as
|
|
22
|
+
import * as Electron from 'electron';
|
|
23
|
+
import { ipcRenderer } from 'electron';
|
|
24
24
|
|
|
25
25
|
declare abstract class TaonBaseCustomRepository extends TaonBaseInjector {
|
|
26
26
|
}
|
|
@@ -389,9 +389,9 @@ declare class TaonRestResponseWrapper extends RestResponseWrapper {
|
|
|
389
389
|
declare const BaseTaonClassesNames: readonly ["BaseCrudController", "BaseController", "BaseAbstractEntity", "BaseEntity", "BaseContext", "BaseCustomRepository", "BaseFileUploadMiddleware", "BaseMiddleware", "BaseClass", "BaseInjector", "BaseMigration", "BaseProvider", "BaseRepository", "BaseSubscriberForEntity", "BaseCliWorkerController", "PortsController", "PortsContext"];
|
|
390
390
|
declare const TaonTempDatabasesFolder = "databases";
|
|
391
391
|
declare const TaonTempRoutesFolder = "routes";
|
|
392
|
-
declare const
|
|
393
|
-
type
|
|
394
|
-
declare enum
|
|
392
|
+
declare const Models__NS__DatabasesFolder = "databases";
|
|
393
|
+
type Models__NS__FrameworkMode = 'backend-frontend(tcp+udp)' | 'remote-backend(tcp+udp)' | 'backend-frontend(ipc-electron)' | 'backend-frontend(websql-electron)' | 'backend-frontend(websql)';
|
|
394
|
+
declare enum Models__NS__ClassType {
|
|
395
395
|
ENTITY = "ENTITY",
|
|
396
396
|
CONTROLLER = "CONTROLLER",
|
|
397
397
|
REPOSITORY = "REPOSITORY",
|
|
@@ -400,8 +400,8 @@ declare enum Models_ClassType {
|
|
|
400
400
|
MIGRATION = "MIGRATION",
|
|
401
401
|
MIDDLEWARE = "MIDDLEWARE"
|
|
402
402
|
}
|
|
403
|
-
declare const
|
|
404
|
-
type
|
|
403
|
+
declare const Models__NS__ClassTypeKey: { [key in Models__NS__ClassType]: keyof Models__NS__ContextOptions<any, any, any, any, any, any, any, any>; };
|
|
404
|
+
type Models__NS__MiddlewareType = [Function, any[]];
|
|
405
405
|
/**
|
|
406
406
|
* DROP_DB+MIGRATIONS (default for development)
|
|
407
407
|
* Drop all tables + recreate them + run migrations
|
|
@@ -413,8 +413,8 @@ type Models_MiddlewareType = [Function, any[]];
|
|
|
413
413
|
* synchronize: false, dropSchema: false
|
|
414
414
|
* use migrations: true
|
|
415
415
|
*/
|
|
416
|
-
type
|
|
417
|
-
declare class
|
|
416
|
+
type Models__NS__DBRecreateMode = 'DROP_DB+MIGRATIONS' | 'PRESERVE_DATA+MIGRATIONS';
|
|
417
|
+
declare class Models__NS__DatabaseConfigTypeOrm {
|
|
418
418
|
/**
|
|
419
419
|
* database name
|
|
420
420
|
*/
|
|
@@ -425,7 +425,7 @@ declare class Models_DatabaseConfigTypeOrm {
|
|
|
425
425
|
location?: string;
|
|
426
426
|
synchronize: boolean;
|
|
427
427
|
dropSchema: boolean;
|
|
428
|
-
type?:
|
|
428
|
+
type?: CoreModels__NS__DatabaseType;
|
|
429
429
|
/**
|
|
430
430
|
* Persists db on disk/local-storage if serverless db
|
|
431
431
|
*/
|
|
@@ -441,18 +441,18 @@ declare class Models_DatabaseConfigTypeOrm {
|
|
|
441
441
|
databaseUsername?: string;
|
|
442
442
|
databasePassword?: string;
|
|
443
443
|
}
|
|
444
|
-
declare class
|
|
444
|
+
declare class Models__NS__DatabaseConfig extends Models__NS__DatabaseConfigTypeOrm {
|
|
445
445
|
/**
|
|
446
446
|
* Default value 'DROP_ALL'.
|
|
447
447
|
*
|
|
448
448
|
* Tell framework what is happening with db
|
|
449
449
|
* when context is starting.
|
|
450
450
|
*/
|
|
451
|
-
recreateMode?:
|
|
452
|
-
static from(databasePartialConfig: Partial<Omit<
|
|
453
|
-
get databaseConfigTypeORM():
|
|
451
|
+
recreateMode?: Models__NS__DBRecreateMode;
|
|
452
|
+
static from(databasePartialConfig: Partial<Omit<Models__NS__DatabaseConfig, 'synchronize' | 'dropSchema' | 'databaseConfigTypeORM'>>): Models__NS__DatabaseConfig;
|
|
453
|
+
get databaseConfigTypeORM(): Models__NS__DatabaseConfigTypeOrm;
|
|
454
454
|
}
|
|
455
|
-
type
|
|
455
|
+
type Models__NS__ISession = {
|
|
456
456
|
secret?: string;
|
|
457
457
|
saveUninitialized?: boolean;
|
|
458
458
|
/**
|
|
@@ -462,7 +462,7 @@ type Models_ISession = {
|
|
|
462
462
|
secure?: boolean;
|
|
463
463
|
resave?: boolean;
|
|
464
464
|
};
|
|
465
|
-
type
|
|
465
|
+
type Models__NS__ConnectionOptionsLogs = {
|
|
466
466
|
http?: boolean;
|
|
467
467
|
realtime?: boolean;
|
|
468
468
|
framework?: boolean;
|
|
@@ -470,7 +470,7 @@ type Models_ConnectionOptionsLogs = {
|
|
|
470
470
|
migrations?: boolean;
|
|
471
471
|
routes?: boolean;
|
|
472
472
|
};
|
|
473
|
-
interface
|
|
473
|
+
interface Models__NS__ContextOptions<CONTEXTS, CONTROLLERS, ENTITIES, REPOSITORIES, PROVIDERS, SUBSCRIBERS, MIGRATIONS, MIDDLEWARES> {
|
|
474
474
|
appId?: string;
|
|
475
475
|
contextName: string;
|
|
476
476
|
/**
|
|
@@ -549,7 +549,7 @@ interface Models_ContextOptions<CONTEXTS, CONTROLLERS, ENTITIES, REPOSITORIES, P
|
|
|
549
549
|
/**
|
|
550
550
|
* Config for express session
|
|
551
551
|
*/
|
|
552
|
-
session?:
|
|
552
|
+
session?: Models__NS__ISession;
|
|
553
553
|
/**
|
|
554
554
|
* taon is not going to write .rest files to cwd()
|
|
555
555
|
*/
|
|
@@ -565,8 +565,8 @@ interface Models_ContextOptions<CONTEXTS, CONTROLLERS, ENTITIES, REPOSITORIES, P
|
|
|
565
565
|
* @default: false
|
|
566
566
|
*/
|
|
567
567
|
abstract?: boolean;
|
|
568
|
-
logs?: boolean |
|
|
569
|
-
database?: boolean | Partial<
|
|
568
|
+
logs?: boolean | Models__NS__ConnectionOptionsLogs;
|
|
569
|
+
database?: boolean | Partial<Models__NS__DatabaseConfig>;
|
|
570
570
|
/**
|
|
571
571
|
* disable default realtime communication through TCP upgrade sockets
|
|
572
572
|
*/
|
|
@@ -592,43 +592,43 @@ interface Models_ContextOptions<CONTEXTS, CONTROLLERS, ENTITIES, REPOSITORIES, P
|
|
|
592
592
|
*/
|
|
593
593
|
cwd?: string;
|
|
594
594
|
}
|
|
595
|
-
type
|
|
595
|
+
type Models__NS__Http__NS__ContextENDPOINT = {
|
|
596
596
|
target: Function;
|
|
597
597
|
initFN: Function;
|
|
598
598
|
};
|
|
599
|
-
type
|
|
600
|
-
type
|
|
601
|
-
type
|
|
602
|
-
type
|
|
599
|
+
type Models__NS__Http__NS__FormlyFromType = 'material' | 'bootstrap';
|
|
600
|
+
type Models__NS__Http__NS__ExpressContext<T> = (req: Request<any>, res: Response<any>) => T;
|
|
601
|
+
type Models__NS__Http__NS__SyncResponse<T> = string | T;
|
|
602
|
+
type Models__NS__Http__NS__ResponseFuncOpt<T> = {
|
|
603
603
|
limitSize?: (enties: Function | Function[], include: string[], exclude: string[]) => void;
|
|
604
604
|
};
|
|
605
|
-
type
|
|
606
|
-
type
|
|
607
|
-
interface
|
|
605
|
+
type Models__NS__Http__NS__SyncResponseFunc<T> = (options?: Models__NS__Http__NS__ResponseFuncOpt<T>) => Models__NS__Http__NS__SyncResponse<T>;
|
|
606
|
+
type Models__NS__Http__NS__MixResponse<T> = Models__NS__Http__NS__SyncResponse<T> | Models__NS__Http__NS__ExpressContext<T>;
|
|
607
|
+
interface Models__NS__Http__NS__ClientAction<T> {
|
|
608
608
|
/**
|
|
609
609
|
* @deprecated use request() mehods instead
|
|
610
610
|
*/
|
|
611
|
-
readonly received?:
|
|
612
|
-
request?(axiosConfig?:
|
|
611
|
+
readonly received?: Models__NS__PromiseObservableMix<Models__NS__HttpResponse<T>>;
|
|
612
|
+
request?(axiosConfig?: Models__NS__Ng2RestAxiosRequestConfig): Models__NS__PromiseObservableMix<Models__NS__HttpResponse<T>>;
|
|
613
613
|
}
|
|
614
|
-
interface
|
|
615
|
-
(req?: Request<any>, res?: Response<any>): Promise<
|
|
614
|
+
interface Models__NS__Http__NS__AsyncResponse<T> {
|
|
615
|
+
(req?: Request<any>, res?: Response<any>): Promise<Models__NS__Http__NS__SyncResponse<T> | Models__NS__Http__NS__SyncResponseFunc<T>>;
|
|
616
616
|
}
|
|
617
|
-
type
|
|
618
|
-
interface
|
|
617
|
+
type Models__NS__Http__NS__Response<T = string> = Models__NS__Http__NS__AsyncResponse<T> & Models__NS__Http__NS__ClientAction<T>;
|
|
618
|
+
interface Models__NS__Http__NS__AuthCallBack {
|
|
619
619
|
(methodReference: Function): RequestHandler;
|
|
620
620
|
}
|
|
621
|
-
interface
|
|
621
|
+
interface Models__NS__StartParams {
|
|
622
622
|
port: number;
|
|
623
623
|
args: string[];
|
|
624
624
|
onlyMigrationRun?: boolean;
|
|
625
625
|
onlyMigrationRevertToTimestamp?: number;
|
|
626
626
|
}
|
|
627
|
-
interface
|
|
627
|
+
interface Models__NS__TaonInitializeParams {
|
|
628
628
|
onlyMigrationRun?: boolean;
|
|
629
629
|
onlyMigrationRevertToTimestamp?: number;
|
|
630
630
|
}
|
|
631
|
-
interface
|
|
631
|
+
interface Models__NS__TaonCtxCloneParams {
|
|
632
632
|
useAsRemoteContext?: boolean;
|
|
633
633
|
overrideRemoteHost?: string;
|
|
634
634
|
overrideHost?: string;
|
|
@@ -666,7 +666,7 @@ declare class EndpointContext {
|
|
|
666
666
|
private readonly objWithClassesInstancesArr;
|
|
667
667
|
readonly activeRoutes: {
|
|
668
668
|
expressPath: string;
|
|
669
|
-
method:
|
|
669
|
+
method: CoreModels__NS__HttpMethod;
|
|
670
670
|
}[];
|
|
671
671
|
repos: Map<string, Repository<any>>;
|
|
672
672
|
get sourceContext(): EndpointContext | undefined;
|
|
@@ -675,12 +675,12 @@ declare class EndpointContext {
|
|
|
675
675
|
private allTypesfromContexts;
|
|
676
676
|
expressApp: Application;
|
|
677
677
|
serverTcpUdp: Server;
|
|
678
|
-
databaseConfig?:
|
|
679
|
-
mode:
|
|
678
|
+
databaseConfig?: Models__NS__DatabaseConfigTypeOrm;
|
|
679
|
+
mode: Models__NS__FrameworkMode;
|
|
680
680
|
readonly onlyMigrationRun?: boolean;
|
|
681
681
|
readonly onlyMigrationRevertToTimestamp?: number;
|
|
682
682
|
get isRunOrRevertOnlyMigrationAppStart(): boolean;
|
|
683
|
-
session?:
|
|
683
|
+
session?: Models__NS__ISession;
|
|
684
684
|
connection: DataSource;
|
|
685
685
|
private entitiesTriggers;
|
|
686
686
|
private realtime;
|
|
@@ -689,7 +689,7 @@ declare class EndpointContext {
|
|
|
689
689
|
/**
|
|
690
690
|
* available after init()
|
|
691
691
|
*/
|
|
692
|
-
config:
|
|
692
|
+
config: Models__NS__ContextOptions<any, any, any, any, any, any, any, any>;
|
|
693
693
|
get logHttp(): boolean;
|
|
694
694
|
get logRealtime(): boolean;
|
|
695
695
|
get logFramework(): boolean;
|
|
@@ -700,14 +700,14 @@ declare class EndpointContext {
|
|
|
700
700
|
* Inside docker there is not need for https secure server
|
|
701
701
|
*/
|
|
702
702
|
readonly isRunningInsideDocker: boolean;
|
|
703
|
-
constructor(originalConfig:
|
|
703
|
+
constructor(originalConfig: Models__NS__ContextOptions<any, any, any, any, any, any, any, any>, configFn: (env: any) => Models__NS__ContextOptions<any, any, any, any, any, any, any, any>,
|
|
704
704
|
/**
|
|
705
705
|
* (@default: false)
|
|
706
706
|
* If TRUE context is NOT going to create db/express server/http endpoints
|
|
707
707
|
* PURPOSE OF THIS PROPERTY
|
|
708
708
|
* -> ONLY remote access from backend or frontend to specific backend
|
|
709
709
|
*/
|
|
710
|
-
cloneOptions:
|
|
710
|
+
cloneOptions: Models__NS__TaonCtxCloneParams);
|
|
711
711
|
init(options?: {
|
|
712
712
|
initFromRecrusiveContextResovle?: boolean;
|
|
713
713
|
onlyMigrationRun?: boolean;
|
|
@@ -721,7 +721,7 @@ declare class EndpointContext {
|
|
|
721
721
|
private cloneClassesObjWithNewMetadata;
|
|
722
722
|
private getRecrusiveClassesfromContextsObj;
|
|
723
723
|
private getRecrusiveClassesfromContexts;
|
|
724
|
-
getClassInstanceObjBy(classType:
|
|
724
|
+
getClassInstanceObjBy(classType: Models__NS__ClassType): any;
|
|
725
725
|
private getClassesInstancesArrBy;
|
|
726
726
|
inject<T>(ctor: new (...args: any[]) => T, options: {
|
|
727
727
|
localInstance?: boolean;
|
|
@@ -734,15 +734,15 @@ declare class EndpointContext {
|
|
|
734
734
|
*/
|
|
735
735
|
getInstanceBy<T>(ctor: new (...args: any[]) => T): T;
|
|
736
736
|
checkIfContextInitialized(): void;
|
|
737
|
-
getClassFunBy(classType:
|
|
738
|
-
isCLassType(classType:
|
|
737
|
+
getClassFunBy(classType: Models__NS__ClassType): any;
|
|
738
|
+
isCLassType(classType: Models__NS__ClassType, classFn: Function): boolean;
|
|
739
739
|
/**
|
|
740
740
|
* Only for injectable types
|
|
741
741
|
* Only for classType: CONTROLLER, REPOSITORY, PROVIDER, MIDDLEWARES
|
|
742
742
|
*/
|
|
743
743
|
getClassFunByClassName(className: string): Function;
|
|
744
744
|
getClassFunByClass(classFunction: Function): Function;
|
|
745
|
-
getClassFunByArr(classType:
|
|
745
|
+
getClassFunByArr(classType: Models__NS__ClassType): Function[];
|
|
746
746
|
private createInstances;
|
|
747
747
|
initClasses(): Promise<void>;
|
|
748
748
|
isActiveOn(classInstance: object): boolean;
|
|
@@ -810,7 +810,7 @@ declare class EndpointContext {
|
|
|
810
810
|
initControllersHook(ctxStorage: ContextsEndpointStorage): Promise<void>;
|
|
811
811
|
initControllers(): Promise<void>;
|
|
812
812
|
writeActiveRoutes(): void;
|
|
813
|
-
get middlewares():
|
|
813
|
+
get middlewares(): Models__NS__MiddlewareType[];
|
|
814
814
|
private initCustomClientMiddlewares;
|
|
815
815
|
private initCustomBackendMiddlewares;
|
|
816
816
|
private initBackendMiddlewares;
|
|
@@ -827,7 +827,7 @@ declare class EndpointContext {
|
|
|
827
827
|
* Context function can be used to dynamically
|
|
828
828
|
* create context with specific configuration.
|
|
829
829
|
*/
|
|
830
|
-
declare const createContextTemplate: <CTX extends Record<string, object>, CTRL extends Record<string, new (...args: any[]) => any>, ENTITY extends Record<string, new (...args: any[]) => any>, REPO extends Record<string, new (...args: any[]) => any>, PROVIDER extends Record<string, new (...args: any[]) => any>, SUBSCRIBER extends Record<string, new (...args: any[]) => any>, MIGRATION extends Record<string, new (...args: any[]) => any>, MIDDLEWARE extends Record<string, new (...args: any[]) => any>>(configFn: (env: any) =>
|
|
830
|
+
declare const createContextTemplate: <CTX extends Record<string, object>, CTRL extends Record<string, new (...args: any[]) => any>, ENTITY extends Record<string, new (...args: any[]) => any>, REPO extends Record<string, new (...args: any[]) => any>, PROVIDER extends Record<string, new (...args: any[]) => any>, SUBSCRIBER extends Record<string, new (...args: any[]) => any>, MIGRATION extends Record<string, new (...args: any[]) => any>, MIDDLEWARE extends Record<string, new (...args: any[]) => any>>(configFn: (env: any) => Models__NS__ContextOptions<CTX, CTRL, ENTITY, REPO, PROVIDER, SUBSCRIBER, MIGRATION, MIDDLEWARE>) => () => {
|
|
831
831
|
readonly contextName: string;
|
|
832
832
|
readonly appId: string;
|
|
833
833
|
cloneAsRemote: (cloneOpt?: {
|
|
@@ -852,7 +852,7 @@ declare const createContextTemplate: <CTX extends Record<string, object>, CTRL e
|
|
|
852
852
|
* - create controller instances for context
|
|
853
853
|
* - init database (if enable) + migation scripts
|
|
854
854
|
*/
|
|
855
|
-
initialize: (overrideOptions?:
|
|
855
|
+
initialize: (overrideOptions?: Models__NS__TaonInitializeParams) => Promise<EndpointContext>;
|
|
856
856
|
/**
|
|
857
857
|
* realtime communication with server
|
|
858
858
|
* TCP(upgrade) socket.io (or ipc) based.
|
|
@@ -862,7 +862,7 @@ declare const createContextTemplate: <CTX extends Record<string, object>, CTRL e
|
|
|
862
862
|
readonly server: taon_websql.RealtimeServer;
|
|
863
863
|
};
|
|
864
864
|
};
|
|
865
|
-
declare const createContext: <CTX extends Record<string, object>, CTRL extends Record<string, new (...args: any[]) => any>, ENTITY extends Record<string, new (...args: any[]) => any>, REPO extends Record<string, new (...args: any[]) => any>, PROVIDER extends Record<string, new (...args: any[]) => any>, SUBSCRIBER extends Record<string, new (...args: any[]) => any>, MIGRATION extends Record<string, new (...args: any[]) => any>, MIDDLEWARES extends Record<string, new (...args: any[]) => any>>(configFn: (env: any) =>
|
|
865
|
+
declare const createContext: <CTX extends Record<string, object>, CTRL extends Record<string, new (...args: any[]) => any>, ENTITY extends Record<string, new (...args: any[]) => any>, REPO extends Record<string, new (...args: any[]) => any>, PROVIDER extends Record<string, new (...args: any[]) => any>, SUBSCRIBER extends Record<string, new (...args: any[]) => any>, MIGRATION extends Record<string, new (...args: any[]) => any>, MIDDLEWARES extends Record<string, new (...args: any[]) => any>>(configFn: (env: any) => Models__NS__ContextOptions<CTX, CTRL, ENTITY, REPO, PROVIDER, SUBSCRIBER, MIGRATION, MIDDLEWARES>) => {
|
|
866
866
|
readonly contextName: string;
|
|
867
867
|
readonly appId: string;
|
|
868
868
|
cloneAsRemote: (cloneOpt?: {
|
|
@@ -887,7 +887,7 @@ declare const createContext: <CTX extends Record<string, object>, CTRL extends R
|
|
|
887
887
|
* - create controller instances for context
|
|
888
888
|
* - init database (if enable) + migation scripts
|
|
889
889
|
*/
|
|
890
|
-
initialize: (overrideOptions?:
|
|
890
|
+
initialize: (overrideOptions?: Models__NS__TaonInitializeParams) => Promise<EndpointContext>;
|
|
891
891
|
/**
|
|
892
892
|
* realtime communication with server
|
|
893
893
|
* TCP(upgrade) socket.io (or ipc) based.
|
|
@@ -947,7 +947,7 @@ declare class EntityProcess {
|
|
|
947
947
|
send(): void;
|
|
948
948
|
}
|
|
949
949
|
|
|
950
|
-
declare const getResponseValue: <T>(response:
|
|
950
|
+
declare const getResponseValue: <T>(response: Models__NS__Http__NS__Response<T>, options?: {
|
|
951
951
|
req: Request<any>;
|
|
952
952
|
res: Response<any>;
|
|
953
953
|
}) => Promise<T>;
|
|
@@ -975,14 +975,14 @@ declare class Realtime {
|
|
|
975
975
|
ROOM_SUBSCRIBE_ENTITY_PROPERTY_UPDATE_EVENTS(contextName: string): string;
|
|
976
976
|
ROOM_UNSUBSCRIBE_ENTITY_PROPERTY_UPDATE_EVENTS(contextName: string): string;
|
|
977
977
|
}
|
|
978
|
-
declare const
|
|
979
|
-
declare const
|
|
980
|
-
declare const
|
|
981
|
-
declare const
|
|
982
|
-
declare const
|
|
983
|
-
declare const
|
|
984
|
-
declare const
|
|
985
|
-
declare const
|
|
978
|
+
declare const Symbols__NS__ctxInClassOrClassObj: unique symbol;
|
|
979
|
+
declare const Symbols__NS__classNameStaticProperty: string;
|
|
980
|
+
declare const Symbols__NS__fullClassNameStaticProperty: string;
|
|
981
|
+
declare const Symbols__NS__orignalClass: string;
|
|
982
|
+
declare const Symbols__NS__orignalClassClonesObj: string;
|
|
983
|
+
declare const Symbols__NS__classMethodsNames: string;
|
|
984
|
+
declare const Symbols__NS__REALTIME: Realtime;
|
|
985
|
+
declare const Symbols__NS__metadata: {
|
|
986
986
|
className: string;
|
|
987
987
|
options: {
|
|
988
988
|
controller: string;
|
|
@@ -993,7 +993,7 @@ declare const Symbols_metadata: {
|
|
|
993
993
|
migration: string;
|
|
994
994
|
};
|
|
995
995
|
};
|
|
996
|
-
declare const
|
|
996
|
+
declare const Symbols__NS__old: {
|
|
997
997
|
HAS_TABLE_IN_DB: symbol;
|
|
998
998
|
MDC_KEY: string;
|
|
999
999
|
WEBSQL_REST_PROGRESS_FUN: symbol;
|
|
@@ -1020,7 +1020,7 @@ declare const Symbols_old: {
|
|
|
1020
1020
|
interface TaonAdditionalMiddlewareMethodInfo {
|
|
1021
1021
|
methodName: string;
|
|
1022
1022
|
expressPath: string;
|
|
1023
|
-
httpRequestType:
|
|
1023
|
+
httpRequestType: CoreModels__NS__HttpMethod;
|
|
1024
1024
|
}
|
|
1025
1025
|
/**
|
|
1026
1026
|
* TODO
|
|
@@ -1079,8 +1079,8 @@ interface TaonHttpDecoratorOptions {
|
|
|
1079
1079
|
* @deprecated don't use in production - keep stuff encapsulated
|
|
1080
1080
|
*/
|
|
1081
1081
|
pathIsGlobal?: boolean;
|
|
1082
|
-
overrideContentType?:
|
|
1083
|
-
overrideResponseType?:
|
|
1082
|
+
overrideContentType?: CoreModels__NS__ContentType;
|
|
1083
|
+
overrideResponseType?: Models__NS__ResponseTypeAxios;
|
|
1084
1084
|
/**
|
|
1085
1085
|
* Express will send response as HTML string with proper headers
|
|
1086
1086
|
*/
|
|
@@ -1096,7 +1096,7 @@ declare function GET(pathOrOptions?: string | TaonHttpDecoratorOptions, pathIsGl
|
|
|
1096
1096
|
* ...
|
|
1097
1097
|
* // in your taon controller
|
|
1098
1098
|
* ..Taon.Http.HTML()
|
|
1099
|
-
* sendHtmlDummyWebsite():
|
|
1099
|
+
* sendHtmlDummyWebsite(): Taon__NS__ResponseHtml {
|
|
1100
1100
|
* return `
|
|
1101
1101
|
<html>
|
|
1102
1102
|
<head>
|
|
@@ -1121,7 +1121,7 @@ declare function DELETE(pathOrOptions?: string | TaonHttpDecoratorOptions, pathI
|
|
|
1121
1121
|
|
|
1122
1122
|
declare class ParamConfig {
|
|
1123
1123
|
paramName: string;
|
|
1124
|
-
paramType:
|
|
1124
|
+
paramType: CoreModels__NS__ParamType;
|
|
1125
1125
|
index: number;
|
|
1126
1126
|
defaultType: any;
|
|
1127
1127
|
expireInSeconds?: number;
|
|
@@ -1144,7 +1144,7 @@ declare class MethodConfig implements Pick<TaonHttpDecoratorOptions, 'path' | 'm
|
|
|
1144
1144
|
overrideExpressSendAsHtml?: boolean;
|
|
1145
1145
|
path: string;
|
|
1146
1146
|
descriptor: PropertyDescriptor;
|
|
1147
|
-
type:
|
|
1147
|
+
type: CoreModels__NS__HttpMethod;
|
|
1148
1148
|
parameters: {
|
|
1149
1149
|
[paramName: string]: Partial<ParamConfig>;
|
|
1150
1150
|
};
|
|
@@ -1163,10 +1163,10 @@ declare class MethodConfig implements Pick<TaonHttpDecoratorOptions, 'path' | 'm
|
|
|
1163
1163
|
calculatedMiddlewares: (typeof TaonBaseMiddleware)[];
|
|
1164
1164
|
}
|
|
1165
1165
|
|
|
1166
|
-
declare const
|
|
1167
|
-
declare const
|
|
1168
|
-
declare const
|
|
1169
|
-
declare const
|
|
1166
|
+
declare const Validators__NS__classNameVlidation: (className: any, target: Function) => any;
|
|
1167
|
+
declare const Validators__NS__checkIfMethodsWithReponseTYpeAlowed: (methods: MethodConfig[], current: MethodConfig) => void;
|
|
1168
|
+
declare const Validators__NS__validateClassFunctions: (controllers: any[], entities: any[], proviers: any[], repositories: any[]) => void;
|
|
1169
|
+
declare const Validators__NS__preventUndefinedModel: (model: any, id: any) => void;
|
|
1170
1170
|
|
|
1171
1171
|
declare class TaonBaseClass<CloneT extends TaonBaseClass = any> {
|
|
1172
1172
|
/**
|
|
@@ -1259,7 +1259,7 @@ declare const TaonBaseContext: {
|
|
|
1259
1259
|
readonly __refSync: taon_websql.EndpointContext;
|
|
1260
1260
|
getClassInstance<T>(ctor: new (...args: any[]) => T): T;
|
|
1261
1261
|
getClass<T>(ctor: new (...args: any[]) => T): new (...args: any[]) => T;
|
|
1262
|
-
initialize: (overrideOptions?: taon_websql.
|
|
1262
|
+
initialize: (overrideOptions?: taon_websql.Models__NS__TaonInitializeParams) => Promise<taon_websql.EndpointContext>;
|
|
1263
1263
|
readonly realtime: {
|
|
1264
1264
|
readonly client: taon_websql.RealtimeClient;
|
|
1265
1265
|
readonly server: taon_websql.RealtimeServer;
|
|
@@ -1285,13 +1285,13 @@ declare class TaonBaseController<UPLOAD_FILE_QUERY_PARAMS = {}> extends TaonBase
|
|
|
1285
1285
|
afterAllCtxInited(options: {
|
|
1286
1286
|
ctxStorage: ContextsEndpointStorage;
|
|
1287
1287
|
}): Promise<void>;
|
|
1288
|
-
uploadFormDataToServer(formData: FormData, queryParams?: UPLOAD_FILE_QUERY_PARAMS):
|
|
1288
|
+
uploadFormDataToServer(formData: FormData, queryParams?: UPLOAD_FILE_QUERY_PARAMS): Models__NS__Http__NS__Response<MulterFileUploadResponse[]>;
|
|
1289
1289
|
/**
|
|
1290
1290
|
* Hook after file is uploaded
|
|
1291
1291
|
* through `uploadFormDataToServer` or `uploadLocalFileToServer`
|
|
1292
1292
|
*/
|
|
1293
1293
|
protected afterFileUploadAction(file?: MulterFileUploadResponse, queryParams?: UPLOAD_FILE_QUERY_PARAMS): void | Promise<void>;
|
|
1294
|
-
uploadLocalFileToServer(absFilePath: string, options?: Pick<
|
|
1294
|
+
uploadLocalFileToServer(absFilePath: string, options?: Pick<Models__NS__Ng2RestAxiosRequestConfig, 'onUploadProgress'>, queryParams?: UPLOAD_FILE_QUERY_PARAMS): Promise<MulterFileUploadResponse[]>;
|
|
1295
1295
|
/**
|
|
1296
1296
|
* Easy way to wait for status change with http (1s default) pooling.
|
|
1297
1297
|
*
|
|
@@ -1317,7 +1317,7 @@ declare class TaonBaseController<UPLOAD_FILE_QUERY_PARAMS = {}> extends TaonBase
|
|
|
1317
1317
|
*/
|
|
1318
1318
|
reqIndexNum?: number;
|
|
1319
1319
|
httpErrorsCount?: number;
|
|
1320
|
-
}) => ReturnType<
|
|
1320
|
+
}) => ReturnType<Models__NS__Http__NS__Response<T>['request']>;
|
|
1321
1321
|
poolingInterval?: number;
|
|
1322
1322
|
/**
|
|
1323
1323
|
* default infinite tries
|
|
@@ -1357,18 +1357,18 @@ declare abstract class TaonBaseCrudController<Entity, UPLOAD_FILE_QUERY_PARAMS =
|
|
|
1357
1357
|
*/
|
|
1358
1358
|
abstract entityClassResolveFn: () => any;
|
|
1359
1359
|
_(): Promise<void>;
|
|
1360
|
-
bufforedChanges(id: number | string, property: string, alreadyLength?: number):
|
|
1361
|
-
pagination(pageNumber?: number, pageSize?: number, search?: string):
|
|
1362
|
-
getAll():
|
|
1363
|
-
getBy(id: number | string):
|
|
1364
|
-
updateById(id: number | string, item: Entity):
|
|
1365
|
-
patchById(id: number | string, item: Entity):
|
|
1366
|
-
bulkUpdate(items: Entity[]):
|
|
1367
|
-
deleteById(id: number | string):
|
|
1368
|
-
bulkDelete(ids: (number | string)[]):
|
|
1369
|
-
clearTable():
|
|
1370
|
-
save(item: Entity):
|
|
1371
|
-
bulkCreate(items: Entity):
|
|
1360
|
+
bufforedChanges(id: number | string, property: string, alreadyLength?: number): Models__NS__Http__NS__Response<string | any[]>;
|
|
1361
|
+
pagination(pageNumber?: number, pageSize?: number, search?: string): Models__NS__Http__NS__Response<Entity[]>;
|
|
1362
|
+
getAll(): Models__NS__Http__NS__Response<Entity[]>;
|
|
1363
|
+
getBy(id: number | string): Models__NS__Http__NS__Response<Entity>;
|
|
1364
|
+
updateById(id: number | string, item: Entity): Models__NS__Http__NS__Response<Entity>;
|
|
1365
|
+
patchById(id: number | string, item: Entity): Models__NS__Http__NS__Response<Entity>;
|
|
1366
|
+
bulkUpdate(items: Entity[]): Models__NS__Http__NS__Response<Entity[]>;
|
|
1367
|
+
deleteById(id: number | string): Models__NS__Http__NS__Response<Entity>;
|
|
1368
|
+
bulkDelete(ids: (number | string)[]): Models__NS__Http__NS__Response<(number | string | Entity)[]>;
|
|
1369
|
+
clearTable(): Models__NS__Http__NS__Response<void>;
|
|
1370
|
+
save(item: Entity): Models__NS__Http__NS__Response<Entity>;
|
|
1371
|
+
bulkCreate(items: Entity): Models__NS__Http__NS__Response<Entity[]>;
|
|
1372
1372
|
}
|
|
1373
1373
|
|
|
1374
1374
|
/**
|
|
@@ -1540,7 +1540,7 @@ declare class RepeatTypeComponent extends FieldArrayType {
|
|
|
1540
1540
|
type FormlyInputType = 'input' | 'switch' | 'datepicker' | 'repeat' | 'group' | 'select';
|
|
1541
1541
|
|
|
1542
1542
|
declare function getFromlyConfigFor(target: Function, options?: {
|
|
1543
|
-
formType?:
|
|
1543
|
+
formType?: CoreModels__NS__UIFramework;
|
|
1544
1544
|
keysPathesToInclude?: string[];
|
|
1545
1545
|
keysPathesToExclude?: string[];
|
|
1546
1546
|
parentModel?: string;
|
|
@@ -1578,37 +1578,37 @@ declare function getRegisteredComponents(): FormlyEntityType[];
|
|
|
1578
1578
|
/**
|
|
1579
1579
|
* TODO - repalce in every place when getting class fn from object
|
|
1580
1580
|
*/
|
|
1581
|
-
declare const
|
|
1582
|
-
declare const
|
|
1583
|
-
declare const
|
|
1584
|
-
declare const
|
|
1585
|
-
declare const
|
|
1586
|
-
declare const
|
|
1587
|
-
declare const
|
|
1588
|
-
declare const
|
|
1581
|
+
declare const ClassHelpers__NS__getClassFnFromObject: (json: Object) => any;
|
|
1582
|
+
declare const ClassHelpers__NS__getName: (classFnOrObject: any) => string;
|
|
1583
|
+
declare const ClassHelpers__NS__getOrginalClass: (classFnOrObject: any) => any;
|
|
1584
|
+
declare const ClassHelpers__NS__getFullInternalName: (classFnOrObject: any) => string;
|
|
1585
|
+
declare const ClassHelpers__NS__getUniqueKey: (classFnOrObject: any) => string;
|
|
1586
|
+
declare const ClassHelpers__NS__isContextClassObject: (obj: any) => boolean;
|
|
1587
|
+
declare const ClassHelpers__NS__setName: (target: Function, className: string) => void;
|
|
1588
|
+
declare const ClassHelpers__NS__hasParentClassWithName: (target: Function, className: string, targets?: any[]) => boolean;
|
|
1589
1589
|
/**
|
|
1590
1590
|
* Express async handler for middleware functions.
|
|
1591
1591
|
*/
|
|
1592
|
-
declare const
|
|
1593
|
-
declare const
|
|
1594
|
-
declare const
|
|
1595
|
-
declare const
|
|
1596
|
-
declare const
|
|
1597
|
-
declare const
|
|
1592
|
+
declare const ClassHelpers__NS__asyncHandler: (fn: any) => (req: any, res: any, next: any) => void;
|
|
1593
|
+
declare const ClassHelpers__NS__getMethodsNames: (classOrClassInstance: any, allMethodsNames?: any[]) => string[];
|
|
1594
|
+
declare const ClassHelpers__NS__getControllerConfigs: (target: Function, configs?: ControllerConfig[], callerTarget?: Function) => ControllerConfig[];
|
|
1595
|
+
declare const ClassHelpers__NS__ensureClassConfig: (target: Function) => Partial<ControllerConfig>;
|
|
1596
|
+
declare const ClassHelpers__NS__ensureMethodConfig: (target: any, propertyKey: string | symbol) => Partial<MethodConfig>;
|
|
1597
|
+
declare const ClassHelpers__NS__getClassConfig: (constructor: Function) => Partial<ControllerConfig> | undefined;
|
|
1598
1598
|
|
|
1599
1599
|
declare const cloneObj: <CloneT>(override: Partial<CloneT>, classFn: Function) => CloneT;
|
|
1600
1600
|
|
|
1601
|
-
declare const
|
|
1602
|
-
declare const
|
|
1603
|
-
declare const
|
|
1604
|
-
declare const
|
|
1605
|
-
declare const
|
|
1606
|
-
declare const
|
|
1607
|
-
declare const
|
|
1608
|
-
declare const
|
|
1609
|
-
declare const
|
|
1610
|
-
declare const
|
|
1611
|
-
declare const
|
|
1601
|
+
declare const TaonHelpers__NS__fillUpTo: (s: string, nCharacters: number) => string;
|
|
1602
|
+
declare const TaonHelpers__NS__isGoodPath: (p: string) => boolean;
|
|
1603
|
+
declare const TaonHelpers__NS__firstStringOrElemFromArray: (stringOrArrayOfString: string[] | string) => string;
|
|
1604
|
+
declare const TaonHelpers__NS__tryTransformParam: (param: any) => any;
|
|
1605
|
+
declare const TaonHelpers__NS__getExpressPath: (c: ControllerConfig, pathOrClassConfig: Partial<MethodConfig>) => string;
|
|
1606
|
+
declare const TaonHelpers__NS__defaultType: (value: any) => {};
|
|
1607
|
+
declare const TaonHelpers__NS__parseJSONwithStringJSONs: (object: Object, waring?: boolean) => Object;
|
|
1608
|
+
declare const TaonHelpers__NS__isPlainFileOrFolder: (filePath: any) => boolean;
|
|
1609
|
+
declare const TaonHelpers__NS__ipcKeyNameResponse: (target: Function, methodConfig: Partial<MethodConfig>, expressPath: string) => string;
|
|
1610
|
+
declare const TaonHelpers__NS__ipcKeyNameRequest: (target: Function, methodConfig: Partial<MethodConfig>, expressPath: string) => string;
|
|
1611
|
+
declare const TaonHelpers__NS__websqlMocks: (headers: any) => {
|
|
1612
1612
|
request: Express.Request;
|
|
1613
1613
|
response: Express.Response;
|
|
1614
1614
|
};
|
|
@@ -1693,13 +1693,13 @@ declare abstract class RealtimeStrategy {
|
|
|
1693
1693
|
abstract toString(): string;
|
|
1694
1694
|
}
|
|
1695
1695
|
|
|
1696
|
-
type
|
|
1696
|
+
type RealtimeModels__NS__SubsManagerOpt = {
|
|
1697
1697
|
core: RealtimeCore;
|
|
1698
1698
|
customEvent: string;
|
|
1699
1699
|
roomName: string;
|
|
1700
1700
|
property: string;
|
|
1701
1701
|
};
|
|
1702
|
-
interface
|
|
1702
|
+
interface RealtimeModels__NS__ChangeOption {
|
|
1703
1703
|
/**
|
|
1704
1704
|
* Specify property name to listen changes on that property only;
|
|
1705
1705
|
*/
|
|
@@ -1716,7 +1716,7 @@ interface RealtimeModels_ChangeOption {
|
|
|
1716
1716
|
*/
|
|
1717
1717
|
idOrUniqValue?: any;
|
|
1718
1718
|
}
|
|
1719
|
-
type
|
|
1719
|
+
type RealtimeModels__NS__EventHandler = (...args: any[]) => void;
|
|
1720
1720
|
|
|
1721
1721
|
declare class MockServerIpc {
|
|
1722
1722
|
contextName: string;
|
|
@@ -1742,8 +1742,8 @@ declare class MockNamespaceIpc {
|
|
|
1742
1742
|
* Namespace name
|
|
1743
1743
|
*/
|
|
1744
1744
|
name: string, server: MockServerIpc);
|
|
1745
|
-
on(eventName: string, callback:
|
|
1746
|
-
off(event: string, callback?:
|
|
1745
|
+
on(eventName: string, callback: RealtimeModels__NS__EventHandler): any;
|
|
1746
|
+
off(event: string, callback?: RealtimeModels__NS__EventHandler): any;
|
|
1747
1747
|
emit(eventName: string, ...args: any[]): any;
|
|
1748
1748
|
to(roomName: string): RoomEmitterIpc;
|
|
1749
1749
|
in(roomName: string): RoomEmitterIpc;
|
|
@@ -1876,7 +1876,7 @@ declare class RealtimeClient {
|
|
|
1876
1876
|
* myContext.realtimeServer.triggerEntityChanges(myEntityInstance);
|
|
1877
1877
|
* ...
|
|
1878
1878
|
*/
|
|
1879
|
-
listenChangesEntity<RESULT = any>(entityClassFnOrObj: Function | object, options?:
|
|
1879
|
+
listenChangesEntity<RESULT = any>(entityClassFnOrObj: Function | object, options?: RealtimeModels__NS__ChangeOption): Observable<RESULT>;
|
|
1880
1880
|
/**
|
|
1881
1881
|
* Listen changes entity table
|
|
1882
1882
|
* Example: for pagination, lists update ...
|
|
@@ -1896,7 +1896,7 @@ declare class RealtimeSubsManager {
|
|
|
1896
1896
|
private options;
|
|
1897
1897
|
private isListening;
|
|
1898
1898
|
private observers;
|
|
1899
|
-
constructor(options:
|
|
1899
|
+
constructor(options: RealtimeModels__NS__SubsManagerOpt);
|
|
1900
1900
|
startListenIfNotStarted(realtime: Socket<DefaultEventsMap, DefaultEventsMap>): void;
|
|
1901
1901
|
add(observer: Subscriber<any>): void;
|
|
1902
1902
|
remove(observer: Subscriber<any>): void;
|
|
@@ -1919,8 +1919,8 @@ declare class TaonEntityOptions<T = any> extends DecoratorAbstractOpt {
|
|
|
1919
1919
|
*/
|
|
1920
1920
|
uniqueKeyProp?: string;
|
|
1921
1921
|
createTable?: boolean;
|
|
1922
|
-
defaultModelValues?:
|
|
1923
|
-
defaultModelMapping?:
|
|
1922
|
+
defaultModelValues?: Mapping__NS__ModelValue<T>;
|
|
1923
|
+
defaultModelMapping?: Mapping__NS__Mapping<T>;
|
|
1924
1924
|
defaultModelMappingDeep?: {
|
|
1925
1925
|
[lodashPathes: string]: string | [string];
|
|
1926
1926
|
};
|
|
@@ -1996,18 +1996,20 @@ declare class TaonAdminService {
|
|
|
1996
1996
|
/**
|
|
1997
1997
|
* Remove global taon loader from env.ts [loading.preAngularBootstrap]
|
|
1998
1998
|
*/
|
|
1999
|
-
declare const
|
|
2000
|
-
declare const
|
|
2001
|
-
type
|
|
2002
|
-
|
|
1999
|
+
declare const Taon__NS__removeLoader: (afterMS?: number) => Promise<void>;
|
|
2000
|
+
declare const Taon__NS__error: (opt: Pick<RestErrorResponseWrapper, "message" | "status" | "details" | "code"> | string) => void;
|
|
2001
|
+
type Taon__NS__ResponseHtml = Models__NS__Http__NS__Response<string>;
|
|
2002
|
+
type Taon__NS__Response<T = string> = Models__NS__Http__NS__Response<T>;
|
|
2003
|
+
type Taon__NS__StartParams = Models__NS__StartParams;
|
|
2004
|
+
declare const Taon__NS__getResponseValue: <T>(response: Models__NS__Http__NS__Response<T>, options?: {
|
|
2003
2005
|
req: express.Request<any>;
|
|
2004
2006
|
res: express.Response<any>;
|
|
2005
2007
|
}) => Promise<T>;
|
|
2006
|
-
declare const
|
|
2007
|
-
declare const
|
|
2008
|
-
declare const
|
|
2009
|
-
declare const
|
|
2010
|
-
declare const
|
|
2008
|
+
declare const Taon__NS__isBrowser: boolean;
|
|
2009
|
+
declare const Taon__NS__isNode: boolean;
|
|
2010
|
+
declare const Taon__NS__isWebSQL: boolean;
|
|
2011
|
+
declare const Taon__NS__isElectron: boolean;
|
|
2012
|
+
declare const Taon__NS__createContext: <CTX extends Record<string, object>, CTRL extends Record<string, new (...args: any[]) => any>, ENTITY extends Record<string, new (...args: any[]) => any>, REPO extends Record<string, new (...args: any[]) => any>, PROVIDER extends Record<string, new (...args: any[]) => any>, SUBSCRIBER extends Record<string, new (...args: any[]) => any>, MIGRATION extends Record<string, new (...args: any[]) => any>, MIDDLEWARES extends Record<string, new (...args: any[]) => any>>(configFn: (env: any) => Models__NS__ContextOptions<CTX, CTRL, ENTITY, REPO, PROVIDER, SUBSCRIBER, MIGRATION, MIDDLEWARES>) => {
|
|
2011
2013
|
readonly contextName: string;
|
|
2012
2014
|
readonly appId: string;
|
|
2013
2015
|
cloneAsRemote: (cloneOpt?: {
|
|
@@ -2020,13 +2022,13 @@ declare const Taon_createContext: <CTX extends Record<string, object>, CTRL exte
|
|
|
2020
2022
|
readonly __refSync: EndpointContext;
|
|
2021
2023
|
getClassInstance<T>(ctor: new (...args: any[]) => T): T;
|
|
2022
2024
|
getClass<T>(ctor: new (...args: any[]) => T): new (...args: any[]) => T;
|
|
2023
|
-
initialize: (overrideOptions?:
|
|
2025
|
+
initialize: (overrideOptions?: Models__NS__TaonInitializeParams) => Promise<EndpointContext>;
|
|
2024
2026
|
readonly realtime: {
|
|
2025
2027
|
readonly client: taon_websql.RealtimeClient;
|
|
2026
2028
|
readonly server: taon_websql.RealtimeServer;
|
|
2027
2029
|
};
|
|
2028
2030
|
};
|
|
2029
|
-
declare const
|
|
2031
|
+
declare const Taon__NS__createContextTemplate: <CTX extends Record<string, object>, CTRL extends Record<string, new (...args: any[]) => any>, ENTITY extends Record<string, new (...args: any[]) => any>, REPO extends Record<string, new (...args: any[]) => any>, PROVIDER extends Record<string, new (...args: any[]) => any>, SUBSCRIBER extends Record<string, new (...args: any[]) => any>, MIGRATION extends Record<string, new (...args: any[]) => any>, MIDDLEWARE extends Record<string, new (...args: any[]) => any>>(configFn: (env: any) => Models__NS__ContextOptions<CTX, CTRL, ENTITY, REPO, PROVIDER, SUBSCRIBER, MIGRATION, MIDDLEWARE>) => () => {
|
|
2030
2032
|
readonly contextName: string;
|
|
2031
2033
|
readonly appId: string;
|
|
2032
2034
|
cloneAsRemote: (cloneOpt?: {
|
|
@@ -2039,18 +2041,18 @@ declare const Taon_createContextTemplate: <CTX extends Record<string, object>, C
|
|
|
2039
2041
|
readonly __refSync: EndpointContext;
|
|
2040
2042
|
getClassInstance<T>(ctor: new (...args: any[]) => T): T;
|
|
2041
2043
|
getClass<T>(ctor: new (...args: any[]) => T): new (...args: any[]) => T;
|
|
2042
|
-
initialize: (overrideOptions?:
|
|
2044
|
+
initialize: (overrideOptions?: Models__NS__TaonInitializeParams) => Promise<EndpointContext>;
|
|
2043
2045
|
readonly realtime: {
|
|
2044
2046
|
readonly client: taon_websql.RealtimeClient;
|
|
2045
2047
|
readonly server: taon_websql.RealtimeServer;
|
|
2046
2048
|
};
|
|
2047
2049
|
};
|
|
2048
|
-
declare const
|
|
2050
|
+
declare const Taon__NS__inject: <T>(entity: () => new (...args: any[]) => T) => T;
|
|
2049
2051
|
/**
|
|
2050
2052
|
* @deprecated
|
|
2051
2053
|
* use createContext instead
|
|
2052
2054
|
*/
|
|
2053
|
-
declare const
|
|
2055
|
+
declare const Taon__NS__init: (options: {
|
|
2054
2056
|
host: string;
|
|
2055
2057
|
entities: Function[];
|
|
2056
2058
|
controllers: Function[];
|
|
@@ -2067,7 +2069,7 @@ declare const Taon_init: (options: {
|
|
|
2067
2069
|
readonly __refSync: EndpointContext;
|
|
2068
2070
|
getClassInstance<T>(ctor: new (...args: any[]) => T): T;
|
|
2069
2071
|
getClass<T>(ctor: new (...args: any[]) => T): new (...args: any[]) => T;
|
|
2070
|
-
initialize: (overrideOptions?:
|
|
2072
|
+
initialize: (overrideOptions?: Models__NS__TaonInitializeParams) => Promise<EndpointContext>;
|
|
2071
2073
|
readonly realtime: {
|
|
2072
2074
|
readonly client: taon_websql.RealtimeClient;
|
|
2073
2075
|
readonly server: taon_websql.RealtimeServer;
|
|
@@ -2163,5 +2165,5 @@ declare const TAON_FLATTEN_MAPPING: {
|
|
|
2163
2165
|
};
|
|
2164
2166
|
};
|
|
2165
2167
|
|
|
2166
|
-
export { BaseTaonClassesNames, Body, BooleanColumn, CURRENT_HOST_BACKEND_PORT, CURRENT_HOST_URL,
|
|
2167
|
-
export type { AbstractEntityOmitKeys, FormlyArrayTransformFn, FormlyEntityType, FormlyInputType, MigrationStatus,
|
|
2168
|
+
export { BaseTaonClassesNames, Body, BooleanColumn, CURRENT_HOST_BACKEND_PORT, CURRENT_HOST_URL, ClassHelpers__NS__asyncHandler, ClassHelpers__NS__ensureClassConfig, ClassHelpers__NS__ensureMethodConfig, ClassHelpers__NS__getClassConfig, ClassHelpers__NS__getClassFnFromObject, ClassHelpers__NS__getControllerConfigs, ClassHelpers__NS__getFullInternalName, ClassHelpers__NS__getMethodsNames, ClassHelpers__NS__getName, ClassHelpers__NS__getOrginalClass, ClassHelpers__NS__getUniqueKey, ClassHelpers__NS__hasParentClassWithName, ClassHelpers__NS__isContextClassObject, ClassHelpers__NS__setName, ContextDbMigrations, ContextsEndpointStorage, ControllerConfig, Cookie, DELETE, DITaonContainer, DateTimeColumn, DecimalNumberColumn, DecoratorAbstractOpt, EndpointContext, EntityProcess, FormlyHorizontalWrapper, GET, HEAD, HTML, Header, MethodConfig, MockNamespaceIpc, MockServerIpc, MockSocketIpc, Models__NS__ClassType, Models__NS__ClassTypeKey, Models__NS__DatabaseConfig, Models__NS__DatabaseConfigTypeOrm, Models__NS__DatabasesFolder, NumberColumn, PATCH, POST, PUT, ParamConfig, Path, Query, RealtimeClient, RealtimeCore, RealtimeServer, RealtimeStrategy, RealtimeStrategyIpc, RealtimeStrategyMock, RealtimeStrategySocketIO, RealtimeSubsManager, RegisterComponentType, RegisterComponentTypeForEntity, RepeatTypeComponent, SimpleJsonColumn, String100Column, String200Column, String20Column, String45Column, String500Column, StringColumn, Symbols__NS__REALTIME, Symbols__NS__classMethodsNames, Symbols__NS__classNameStaticProperty, Symbols__NS__ctxInClassOrClassObj, Symbols__NS__fullClassNameStaticProperty, Symbols__NS__metadata, Symbols__NS__old, Symbols__NS__orignalClass, Symbols__NS__orignalClassClonesObj, TAON_CONTEXT, TAON_FLATTEN_MAPPING, TaonAdminService, TaonBaseAbstractEntity, TaonBaseAngularService, TaonBaseClass, TaonBaseContext, TaonBaseController, TaonBaseCrudController, TaonBaseCustomRepository, TaonBaseEntity, TaonBaseFileUploadMiddleware, TaonBaseInjector, TaonBaseMiddleware, TaonBaseMigration, TaonBaseProvider, TaonBaseRepository, TaonBaseSubscriberForEntity, TaonController, TaonControllerOptions, TaonEntity, TaonEntityKeysToOmitArr, TaonEntityOptions, TaonHelpers__NS__defaultType, TaonHelpers__NS__fillUpTo, TaonHelpers__NS__firstStringOrElemFromArray, TaonHelpers__NS__getExpressPath, TaonHelpers__NS__ipcKeyNameRequest, TaonHelpers__NS__ipcKeyNameResponse, TaonHelpers__NS__isGoodPath, TaonHelpers__NS__isPlainFileOrFolder, TaonHelpers__NS__parseJSONwithStringJSONs, TaonHelpers__NS__tryTransformParam, TaonHelpers__NS__websqlMocks, TaonMiddleware, TaonMiddlewareOptions, TaonMigration, TaonMigrationOptions, TaonProvider, TaonProviderOptions, TaonRepository, TaonRepositoryOptions, TaonRestResponseWrapper, TaonSubscriber, TaonSubscriberOptions, TaonTempDatabasesFolder, TaonTempRoutesFolder, Taon__NS__createContext, Taon__NS__createContextTemplate, Taon__NS__error, Taon__NS__getResponseValue, Taon__NS__init, Taon__NS__inject, Taon__NS__isBrowser, Taon__NS__isElectron, Taon__NS__isNode, Taon__NS__isWebSQL, Taon__NS__removeLoader, Validators__NS__checkIfMethodsWithReponseTYpeAlowed, Validators__NS__classNameVlidation, Validators__NS__preventUndefinedModel, Validators__NS__validateClassFunctions, apiPrefix, cloneObj, controllerConfigFrom, createContext, createContextTemplate, findTypeForEntity, getFromlyConfigFor, getRegisteredComponents, getResponseValue, getTransformFunction, inject, singleTransform, typeFromEntity, typeFromName };
|
|
2169
|
+
export type { AbstractEntityOmitKeys, FormlyArrayTransformFn, FormlyEntityType, FormlyInputType, MigrationStatus, Models__NS__ConnectionOptionsLogs, Models__NS__ContextOptions, Models__NS__DBRecreateMode, Models__NS__FrameworkMode, Models__NS__Http__NS__AsyncResponse, Models__NS__Http__NS__AuthCallBack, Models__NS__Http__NS__ClientAction, Models__NS__Http__NS__ContextENDPOINT, Models__NS__Http__NS__ExpressContext, Models__NS__Http__NS__FormlyFromType, Models__NS__Http__NS__MixResponse, Models__NS__Http__NS__Response, Models__NS__Http__NS__ResponseFuncOpt, Models__NS__Http__NS__SyncResponse, Models__NS__Http__NS__SyncResponseFunc, Models__NS__ISession, Models__NS__MiddlewareType, Models__NS__StartParams, Models__NS__TaonCtxCloneParams, Models__NS__TaonInitializeParams, MulterFileUploadResponse, RealtimeModels__NS__ChangeOption, RealtimeModels__NS__EventHandler, RealtimeModels__NS__SubsManagerOpt, TaonAdditionalMiddlewareMethodInfo, TaonContext, TaonEntityKeysToOmit, TaonHttpDecoratorOptions, TaonMiddlewareFunction, TaonMiddlewareInheritanceObj, Taon__NS__Response, Taon__NS__ResponseHtml, Taon__NS__StartParams };
|