taon 21.0.34 → 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/package.json +1 -1
- package/browser/types/taon-browser.d.ts +3 -3
- 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 -145
- 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/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/package.json +1 -1
- package/websql/types/taon-websql.d.ts +3 -3
- 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 -146
- package/websql-prod.split-namespaces.json +164 -164
|
@@ -2,25 +2,25 @@
|
|
|
2
2
|
import * as taon_browser from 'taon/browser';
|
|
3
3
|
import * as express from 'express';
|
|
4
4
|
import express__default, { Request, Response, 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/browser-prod';
|
|
6
6
|
export { TaonClientMiddlewareInterceptOptions, TaonServerMiddlewareInterceptOptions } from 'ng2-rest/browser-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/browser-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/browser-prod';
|
|
10
|
-
import {
|
|
10
|
+
import { CoreModels__NS__DatabaseType, CoreModels__NS__HttpMethod, CoreModels__NS__ContentType, CoreModels__NS__ParamType, CoreModels__NS__UIFramework } from 'tnp-core/browser-prod';
|
|
11
11
|
import { MySqlQuerySource } from 'taon-type-sql/browser-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
|
}
|
|
@@ -384,9 +384,9 @@ declare class TaonRestResponseWrapper extends RestResponseWrapper {
|
|
|
384
384
|
declare const BaseTaonClassesNames: readonly ["BaseCrudController", "BaseController", "BaseAbstractEntity", "BaseEntity", "BaseContext", "BaseCustomRepository", "BaseFileUploadMiddleware", "BaseMiddleware", "BaseClass", "BaseInjector", "BaseMigration", "BaseProvider", "BaseRepository", "BaseSubscriberForEntity", "BaseCliWorkerController", "PortsController", "PortsContext"];
|
|
385
385
|
declare const TaonTempDatabasesFolder = "databases";
|
|
386
386
|
declare const TaonTempRoutesFolder = "routes";
|
|
387
|
-
declare const
|
|
388
|
-
type
|
|
389
|
-
declare enum
|
|
387
|
+
declare const Models__NS__DatabasesFolder = "databases";
|
|
388
|
+
type Models__NS__FrameworkMode = 'backend-frontend(tcp+udp)' | 'remote-backend(tcp+udp)' | 'backend-frontend(ipc-electron)' | 'backend-frontend(websql-electron)' | 'backend-frontend(websql)';
|
|
389
|
+
declare enum Models__NS__ClassType {
|
|
390
390
|
ENTITY = "ENTITY",
|
|
391
391
|
CONTROLLER = "CONTROLLER",
|
|
392
392
|
REPOSITORY = "REPOSITORY",
|
|
@@ -395,8 +395,8 @@ declare enum Models_ClassType {
|
|
|
395
395
|
MIGRATION = "MIGRATION",
|
|
396
396
|
MIDDLEWARE = "MIDDLEWARE"
|
|
397
397
|
}
|
|
398
|
-
declare const
|
|
399
|
-
type
|
|
398
|
+
declare const Models__NS__ClassTypeKey: { [key in Models__NS__ClassType]: keyof Models__NS__ContextOptions<any, any, any, any, any, any, any, any>; };
|
|
399
|
+
type Models__NS__MiddlewareType = [Function, any[]];
|
|
400
400
|
/**
|
|
401
401
|
* DROP_DB+MIGRATIONS (default for development)
|
|
402
402
|
* Drop all tables + recreate them + run migrations
|
|
@@ -408,8 +408,8 @@ type Models_MiddlewareType = [Function, any[]];
|
|
|
408
408
|
* synchronize: false, dropSchema: false
|
|
409
409
|
* use migrations: true
|
|
410
410
|
*/
|
|
411
|
-
type
|
|
412
|
-
declare class
|
|
411
|
+
type Models__NS__DBRecreateMode = 'DROP_DB+MIGRATIONS' | 'PRESERVE_DATA+MIGRATIONS';
|
|
412
|
+
declare class Models__NS__DatabaseConfigTypeOrm {
|
|
413
413
|
/**
|
|
414
414
|
* database name
|
|
415
415
|
*/
|
|
@@ -420,7 +420,7 @@ declare class Models_DatabaseConfigTypeOrm {
|
|
|
420
420
|
location?: string;
|
|
421
421
|
synchronize: boolean;
|
|
422
422
|
dropSchema: boolean;
|
|
423
|
-
type?:
|
|
423
|
+
type?: CoreModels__NS__DatabaseType;
|
|
424
424
|
/**
|
|
425
425
|
* Persists db on disk/local-storage if serverless db
|
|
426
426
|
*/
|
|
@@ -436,18 +436,18 @@ declare class Models_DatabaseConfigTypeOrm {
|
|
|
436
436
|
databaseUsername?: string;
|
|
437
437
|
databasePassword?: string;
|
|
438
438
|
}
|
|
439
|
-
declare class
|
|
439
|
+
declare class Models__NS__DatabaseConfig extends Models__NS__DatabaseConfigTypeOrm {
|
|
440
440
|
/**
|
|
441
441
|
* Default value 'DROP_ALL'.
|
|
442
442
|
*
|
|
443
443
|
* Tell framework what is happening with db
|
|
444
444
|
* when context is starting.
|
|
445
445
|
*/
|
|
446
|
-
recreateMode?:
|
|
447
|
-
static from(databasePartialConfig: Partial<Omit<
|
|
448
|
-
get databaseConfigTypeORM():
|
|
446
|
+
recreateMode?: Models__NS__DBRecreateMode;
|
|
447
|
+
static from(databasePartialConfig: Partial<Omit<Models__NS__DatabaseConfig, 'synchronize' | 'dropSchema' | 'databaseConfigTypeORM'>>): Models__NS__DatabaseConfig;
|
|
448
|
+
get databaseConfigTypeORM(): Models__NS__DatabaseConfigTypeOrm;
|
|
449
449
|
}
|
|
450
|
-
type
|
|
450
|
+
type Models__NS__ISession = {
|
|
451
451
|
secret?: string;
|
|
452
452
|
saveUninitialized?: boolean;
|
|
453
453
|
/**
|
|
@@ -457,7 +457,7 @@ type Models_ISession = {
|
|
|
457
457
|
secure?: boolean;
|
|
458
458
|
resave?: boolean;
|
|
459
459
|
};
|
|
460
|
-
type
|
|
460
|
+
type Models__NS__ConnectionOptionsLogs = {
|
|
461
461
|
http?: boolean;
|
|
462
462
|
realtime?: boolean;
|
|
463
463
|
framework?: boolean;
|
|
@@ -465,7 +465,7 @@ type Models_ConnectionOptionsLogs = {
|
|
|
465
465
|
migrations?: boolean;
|
|
466
466
|
routes?: boolean;
|
|
467
467
|
};
|
|
468
|
-
interface
|
|
468
|
+
interface Models__NS__ContextOptions<CONTEXTS, CONTROLLERS, ENTITIES, REPOSITORIES, PROVIDERS, SUBSCRIBERS, MIGRATIONS, MIDDLEWARES> {
|
|
469
469
|
appId?: string;
|
|
470
470
|
contextName: string;
|
|
471
471
|
/**
|
|
@@ -544,7 +544,7 @@ interface Models_ContextOptions<CONTEXTS, CONTROLLERS, ENTITIES, REPOSITORIES, P
|
|
|
544
544
|
/**
|
|
545
545
|
* Config for express session
|
|
546
546
|
*/
|
|
547
|
-
session?:
|
|
547
|
+
session?: Models__NS__ISession;
|
|
548
548
|
/**
|
|
549
549
|
* taon is not going to write .rest files to cwd()
|
|
550
550
|
*/
|
|
@@ -560,8 +560,8 @@ interface Models_ContextOptions<CONTEXTS, CONTROLLERS, ENTITIES, REPOSITORIES, P
|
|
|
560
560
|
* @default: false
|
|
561
561
|
*/
|
|
562
562
|
abstract?: boolean;
|
|
563
|
-
logs?: boolean |
|
|
564
|
-
database?: boolean | Partial<
|
|
563
|
+
logs?: boolean | Models__NS__ConnectionOptionsLogs;
|
|
564
|
+
database?: boolean | Partial<Models__NS__DatabaseConfig>;
|
|
565
565
|
/**
|
|
566
566
|
* disable default realtime communication through TCP upgrade sockets
|
|
567
567
|
*/
|
|
@@ -587,40 +587,40 @@ interface Models_ContextOptions<CONTEXTS, CONTROLLERS, ENTITIES, REPOSITORIES, P
|
|
|
587
587
|
*/
|
|
588
588
|
cwd?: string;
|
|
589
589
|
}
|
|
590
|
-
type
|
|
590
|
+
type Models__NS__Http__NS__ContextENDPOINT = {
|
|
591
591
|
target: Function;
|
|
592
592
|
initFN: Function;
|
|
593
593
|
};
|
|
594
|
-
type
|
|
595
|
-
type
|
|
596
|
-
type
|
|
597
|
-
type
|
|
594
|
+
type Models__NS__Http__NS__FormlyFromType = 'material' | 'bootstrap';
|
|
595
|
+
type Models__NS__Http__NS__ExpressContext<T> = (req: Request<any>, res: Response<any>) => T;
|
|
596
|
+
type Models__NS__Http__NS__SyncResponse<T> = string | T;
|
|
597
|
+
type Models__NS__Http__NS__ResponseFuncOpt<T> = {
|
|
598
598
|
limitSize?: (enties: Function | Function[], include: string[], exclude: string[]) => void;
|
|
599
599
|
};
|
|
600
|
-
type
|
|
601
|
-
type
|
|
602
|
-
interface
|
|
600
|
+
type Models__NS__Http__NS__SyncResponseFunc<T> = (options?: Models__NS__Http__NS__ResponseFuncOpt<T>) => Models__NS__Http__NS__SyncResponse<T>;
|
|
601
|
+
type Models__NS__Http__NS__MixResponse<T> = Models__NS__Http__NS__SyncResponse<T> | Models__NS__Http__NS__ExpressContext<T>;
|
|
602
|
+
interface Models__NS__Http__NS__ClientAction<T> {
|
|
603
603
|
/**
|
|
604
604
|
* @deprecated use request() mehods instead
|
|
605
605
|
*/
|
|
606
|
-
readonly received?:
|
|
607
|
-
request?(axiosConfig?:
|
|
606
|
+
readonly received?: Models__NS__PromiseObservableMix<Models__NS__HttpResponse<T>>;
|
|
607
|
+
request?(axiosConfig?: Models__NS__Ng2RestAxiosRequestConfig): Models__NS__PromiseObservableMix<Models__NS__HttpResponse<T>>;
|
|
608
608
|
}
|
|
609
|
-
interface
|
|
610
|
-
(req?: Request<any>, res?: Response<any>): Promise<
|
|
609
|
+
interface Models__NS__Http__NS__AsyncResponse<T> {
|
|
610
|
+
(req?: Request<any>, res?: Response<any>): Promise<Models__NS__Http__NS__SyncResponse<T> | Models__NS__Http__NS__SyncResponseFunc<T>>;
|
|
611
611
|
}
|
|
612
|
-
type
|
|
613
|
-
interface
|
|
612
|
+
type Models__NS__Http__NS__Response<T = string> = Models__NS__Http__NS__AsyncResponse<T> & Models__NS__Http__NS__ClientAction<T>;
|
|
613
|
+
interface Models__NS__StartParams {
|
|
614
614
|
port: number;
|
|
615
615
|
args: string[];
|
|
616
616
|
onlyMigrationRun?: boolean;
|
|
617
617
|
onlyMigrationRevertToTimestamp?: number;
|
|
618
618
|
}
|
|
619
|
-
interface
|
|
619
|
+
interface Models__NS__TaonInitializeParams {
|
|
620
620
|
onlyMigrationRun?: boolean;
|
|
621
621
|
onlyMigrationRevertToTimestamp?: number;
|
|
622
622
|
}
|
|
623
|
-
interface
|
|
623
|
+
interface Models__NS__TaonCtxCloneParams {
|
|
624
624
|
useAsRemoteContext?: boolean;
|
|
625
625
|
overrideRemoteHost?: string;
|
|
626
626
|
overrideHost?: string;
|
|
@@ -658,7 +658,7 @@ declare class EndpointContext {
|
|
|
658
658
|
private readonly objWithClassesInstancesArr;
|
|
659
659
|
readonly activeRoutes: {
|
|
660
660
|
expressPath: string;
|
|
661
|
-
method:
|
|
661
|
+
method: CoreModels__NS__HttpMethod;
|
|
662
662
|
}[];
|
|
663
663
|
get sourceContext(): EndpointContext | undefined;
|
|
664
664
|
readonly skipWritingServerRoutes: boolean;
|
|
@@ -666,12 +666,12 @@ declare class EndpointContext {
|
|
|
666
666
|
private allTypesfromContexts;
|
|
667
667
|
expressApp: Application;
|
|
668
668
|
serverTcpUdp: Server;
|
|
669
|
-
databaseConfig?:
|
|
670
|
-
mode:
|
|
669
|
+
databaseConfig?: Models__NS__DatabaseConfigTypeOrm;
|
|
670
|
+
mode: Models__NS__FrameworkMode;
|
|
671
671
|
readonly onlyMigrationRun?: boolean;
|
|
672
672
|
readonly onlyMigrationRevertToTimestamp?: number;
|
|
673
673
|
get isRunOrRevertOnlyMigrationAppStart(): boolean;
|
|
674
|
-
session?:
|
|
674
|
+
session?: Models__NS__ISession;
|
|
675
675
|
connection: DataSource;
|
|
676
676
|
private entitiesTriggers;
|
|
677
677
|
private realtime;
|
|
@@ -680,7 +680,7 @@ declare class EndpointContext {
|
|
|
680
680
|
/**
|
|
681
681
|
* available after init()
|
|
682
682
|
*/
|
|
683
|
-
config:
|
|
683
|
+
config: Models__NS__ContextOptions<any, any, any, any, any, any, any, any>;
|
|
684
684
|
get logHttp(): boolean;
|
|
685
685
|
get logRealtime(): boolean;
|
|
686
686
|
get logFramework(): boolean;
|
|
@@ -691,14 +691,14 @@ declare class EndpointContext {
|
|
|
691
691
|
* Inside docker there is not need for https secure server
|
|
692
692
|
*/
|
|
693
693
|
readonly isRunningInsideDocker: boolean;
|
|
694
|
-
constructor(originalConfig:
|
|
694
|
+
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>,
|
|
695
695
|
/**
|
|
696
696
|
* (@default: false)
|
|
697
697
|
* If TRUE context is NOT going to create db/express server/http endpoints
|
|
698
698
|
* PURPOSE OF THIS PROPERTY
|
|
699
699
|
* -> ONLY remote access from backend or frontend to specific backend
|
|
700
700
|
*/
|
|
701
|
-
cloneOptions:
|
|
701
|
+
cloneOptions: Models__NS__TaonCtxCloneParams);
|
|
702
702
|
init(options?: {
|
|
703
703
|
initFromRecrusiveContextResovle?: boolean;
|
|
704
704
|
onlyMigrationRun?: boolean;
|
|
@@ -712,7 +712,7 @@ declare class EndpointContext {
|
|
|
712
712
|
private cloneClassesObjWithNewMetadata;
|
|
713
713
|
private getRecrusiveClassesfromContextsObj;
|
|
714
714
|
private getRecrusiveClassesfromContexts;
|
|
715
|
-
getClassInstanceObjBy(classType:
|
|
715
|
+
getClassInstanceObjBy(classType: Models__NS__ClassType): any;
|
|
716
716
|
private getClassesInstancesArrBy;
|
|
717
717
|
inject<T>(ctor: new (...args: any[]) => T, options: {
|
|
718
718
|
localInstance?: boolean;
|
|
@@ -725,15 +725,15 @@ declare class EndpointContext {
|
|
|
725
725
|
*/
|
|
726
726
|
getInstanceBy<T>(ctor: new (...args: any[]) => T): T;
|
|
727
727
|
checkIfContextInitialized(): void;
|
|
728
|
-
getClassFunBy(classType:
|
|
729
|
-
isCLassType(classType:
|
|
728
|
+
getClassFunBy(classType: Models__NS__ClassType): any;
|
|
729
|
+
isCLassType(classType: Models__NS__ClassType, classFn: Function): boolean;
|
|
730
730
|
/**
|
|
731
731
|
* Only for injectable types
|
|
732
732
|
* Only for classType: CONTROLLER, REPOSITORY, PROVIDER, MIDDLEWARES
|
|
733
733
|
*/
|
|
734
734
|
getClassFunByClassName(className: string): Function;
|
|
735
735
|
getClassFunByClass(classFunction: Function): Function;
|
|
736
|
-
getClassFunByArr(classType:
|
|
736
|
+
getClassFunByArr(classType: Models__NS__ClassType): Function[];
|
|
737
737
|
private createInstances;
|
|
738
738
|
initClasses(): Promise<void>;
|
|
739
739
|
isActiveOn(classInstance: object): boolean;
|
|
@@ -801,7 +801,7 @@ declare class EndpointContext {
|
|
|
801
801
|
initControllersHook(ctxStorage: ContextsEndpointStorage): Promise<void>;
|
|
802
802
|
initControllers(): Promise<void>;
|
|
803
803
|
writeActiveRoutes(): void;
|
|
804
|
-
get middlewares():
|
|
804
|
+
get middlewares(): Models__NS__MiddlewareType[];
|
|
805
805
|
private initCustomClientMiddlewares;
|
|
806
806
|
private initCustomBackendMiddlewares;
|
|
807
807
|
private initBackendMiddlewares;
|
|
@@ -818,7 +818,7 @@ declare class EndpointContext {
|
|
|
818
818
|
* Context function can be used to dynamically
|
|
819
819
|
* create context with specific configuration.
|
|
820
820
|
*/
|
|
821
|
-
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) =>
|
|
821
|
+
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>) => () => {
|
|
822
822
|
readonly contextName: string;
|
|
823
823
|
readonly appId: string;
|
|
824
824
|
cloneAsRemote: (cloneOpt?: {
|
|
@@ -843,7 +843,7 @@ declare const createContextTemplate: <CTX extends Record<string, object>, CTRL e
|
|
|
843
843
|
* - create controller instances for context
|
|
844
844
|
* - init database (if enable) + migation scripts
|
|
845
845
|
*/
|
|
846
|
-
initialize: (overrideOptions?:
|
|
846
|
+
initialize: (overrideOptions?: Models__NS__TaonInitializeParams) => Promise<EndpointContext>;
|
|
847
847
|
/**
|
|
848
848
|
* realtime communication with server
|
|
849
849
|
* TCP(upgrade) socket.io (or ipc) based.
|
|
@@ -853,7 +853,7 @@ declare const createContextTemplate: <CTX extends Record<string, object>, CTRL e
|
|
|
853
853
|
readonly server: taon_browser.RealtimeServer;
|
|
854
854
|
};
|
|
855
855
|
};
|
|
856
|
-
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) =>
|
|
856
|
+
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>) => {
|
|
857
857
|
readonly contextName: string;
|
|
858
858
|
readonly appId: string;
|
|
859
859
|
cloneAsRemote: (cloneOpt?: {
|
|
@@ -878,7 +878,7 @@ declare const createContext: <CTX extends Record<string, object>, CTRL extends R
|
|
|
878
878
|
* - create controller instances for context
|
|
879
879
|
* - init database (if enable) + migation scripts
|
|
880
880
|
*/
|
|
881
|
-
initialize: (overrideOptions?:
|
|
881
|
+
initialize: (overrideOptions?: Models__NS__TaonInitializeParams) => Promise<EndpointContext>;
|
|
882
882
|
/**
|
|
883
883
|
* realtime communication with server
|
|
884
884
|
* TCP(upgrade) socket.io (or ipc) based.
|
|
@@ -938,7 +938,7 @@ declare class EntityProcess {
|
|
|
938
938
|
send(): void;
|
|
939
939
|
}
|
|
940
940
|
|
|
941
|
-
declare const getResponseValue: <T>(response:
|
|
941
|
+
declare const getResponseValue: <T>(response: Models__NS__Http__NS__Response<T>, options?: {
|
|
942
942
|
req: Request<any>;
|
|
943
943
|
res: Response<any>;
|
|
944
944
|
}) => Promise<T>;
|
|
@@ -966,14 +966,14 @@ declare class Realtime {
|
|
|
966
966
|
ROOM_SUBSCRIBE_ENTITY_PROPERTY_UPDATE_EVENTS(contextName: string): string;
|
|
967
967
|
ROOM_UNSUBSCRIBE_ENTITY_PROPERTY_UPDATE_EVENTS(contextName: string): string;
|
|
968
968
|
}
|
|
969
|
-
declare const
|
|
970
|
-
declare const
|
|
971
|
-
declare const
|
|
972
|
-
declare const
|
|
973
|
-
declare const
|
|
974
|
-
declare const
|
|
975
|
-
declare const
|
|
976
|
-
declare const
|
|
969
|
+
declare const Symbols__NS__ctxInClassOrClassObj: unique symbol;
|
|
970
|
+
declare const Symbols__NS__classNameStaticProperty: string;
|
|
971
|
+
declare const Symbols__NS__fullClassNameStaticProperty: string;
|
|
972
|
+
declare const Symbols__NS__orignalClass: string;
|
|
973
|
+
declare const Symbols__NS__orignalClassClonesObj: string;
|
|
974
|
+
declare const Symbols__NS__classMethodsNames: string;
|
|
975
|
+
declare const Symbols__NS__REALTIME: Realtime;
|
|
976
|
+
declare const Symbols__NS__metadata: {
|
|
977
977
|
className: string;
|
|
978
978
|
options: {
|
|
979
979
|
controller: string;
|
|
@@ -984,7 +984,7 @@ declare const Symbols_metadata: {
|
|
|
984
984
|
migration: string;
|
|
985
985
|
};
|
|
986
986
|
};
|
|
987
|
-
declare const
|
|
987
|
+
declare const Symbols__NS__old: {
|
|
988
988
|
HAS_TABLE_IN_DB: symbol;
|
|
989
989
|
MDC_KEY: string;
|
|
990
990
|
WEBSQL_REST_PROGRESS_FUN: symbol;
|
|
@@ -1011,7 +1011,7 @@ declare const Symbols_old: {
|
|
|
1011
1011
|
interface TaonAdditionalMiddlewareMethodInfo {
|
|
1012
1012
|
methodName: string;
|
|
1013
1013
|
expressPath: string;
|
|
1014
|
-
httpRequestType:
|
|
1014
|
+
httpRequestType: CoreModels__NS__HttpMethod;
|
|
1015
1015
|
}
|
|
1016
1016
|
/**
|
|
1017
1017
|
* TODO
|
|
@@ -1070,8 +1070,8 @@ interface TaonHttpDecoratorOptions {
|
|
|
1070
1070
|
* @deprecated don't use in production - keep stuff encapsulated
|
|
1071
1071
|
*/
|
|
1072
1072
|
pathIsGlobal?: boolean;
|
|
1073
|
-
overrideContentType?:
|
|
1074
|
-
overrideResponseType?:
|
|
1073
|
+
overrideContentType?: CoreModels__NS__ContentType;
|
|
1074
|
+
overrideResponseType?: Models__NS__ResponseTypeAxios;
|
|
1075
1075
|
/**
|
|
1076
1076
|
* Express will send response as HTML string with proper headers
|
|
1077
1077
|
*/
|
|
@@ -1087,7 +1087,7 @@ declare function GET(pathOrOptions?: string | TaonHttpDecoratorOptions, pathIsGl
|
|
|
1087
1087
|
* ...
|
|
1088
1088
|
* // in your taon controller
|
|
1089
1089
|
* ..Taon.Http.HTML()
|
|
1090
|
-
* sendHtmlDummyWebsite():
|
|
1090
|
+
* sendHtmlDummyWebsite(): Taon__NS__ResponseHtml {
|
|
1091
1091
|
* return `
|
|
1092
1092
|
<html>
|
|
1093
1093
|
<head>
|
|
@@ -1112,7 +1112,7 @@ declare function DELETE(pathOrOptions?: string | TaonHttpDecoratorOptions, pathI
|
|
|
1112
1112
|
|
|
1113
1113
|
declare class ParamConfig {
|
|
1114
1114
|
paramName: string;
|
|
1115
|
-
paramType:
|
|
1115
|
+
paramType: CoreModels__NS__ParamType;
|
|
1116
1116
|
index: number;
|
|
1117
1117
|
defaultType: any;
|
|
1118
1118
|
expireInSeconds?: number;
|
|
@@ -1135,7 +1135,7 @@ declare class MethodConfig implements Pick<TaonHttpDecoratorOptions, 'path' | 'm
|
|
|
1135
1135
|
overrideExpressSendAsHtml?: boolean;
|
|
1136
1136
|
path: string;
|
|
1137
1137
|
descriptor: PropertyDescriptor;
|
|
1138
|
-
type:
|
|
1138
|
+
type: CoreModels__NS__HttpMethod;
|
|
1139
1139
|
parameters: {
|
|
1140
1140
|
[paramName: string]: Partial<ParamConfig>;
|
|
1141
1141
|
};
|
|
@@ -1154,10 +1154,10 @@ declare class MethodConfig implements Pick<TaonHttpDecoratorOptions, 'path' | 'm
|
|
|
1154
1154
|
calculatedMiddlewares: (typeof TaonBaseMiddleware)[];
|
|
1155
1155
|
}
|
|
1156
1156
|
|
|
1157
|
-
declare const
|
|
1158
|
-
declare const
|
|
1159
|
-
declare const
|
|
1160
|
-
declare const
|
|
1157
|
+
declare const Validators__NS__classNameVlidation: (className: any, target: Function) => any;
|
|
1158
|
+
declare const Validators__NS__checkIfMethodsWithReponseTYpeAlowed: (methods: MethodConfig[], current: MethodConfig) => void;
|
|
1159
|
+
declare const Validators__NS__validateClassFunctions: (controllers: any[], entities: any[], proviers: any[], repositories: any[]) => void;
|
|
1160
|
+
declare const Validators__NS__preventUndefinedModel: (model: any, id: any) => void;
|
|
1161
1161
|
|
|
1162
1162
|
declare class TaonBaseClass<CloneT extends TaonBaseClass = any> {
|
|
1163
1163
|
/**
|
|
@@ -1250,7 +1250,7 @@ declare const TaonBaseContext: {
|
|
|
1250
1250
|
readonly __refSync: taon_browser.EndpointContext;
|
|
1251
1251
|
getClassInstance<T>(ctor: new (...args: any[]) => T): T;
|
|
1252
1252
|
getClass<T>(ctor: new (...args: any[]) => T): new (...args: any[]) => T;
|
|
1253
|
-
initialize: (overrideOptions?: taon_browser.
|
|
1253
|
+
initialize: (overrideOptions?: taon_browser.Models__NS__TaonInitializeParams) => Promise<taon_browser.EndpointContext>;
|
|
1254
1254
|
readonly realtime: {
|
|
1255
1255
|
readonly client: taon_browser.RealtimeClient;
|
|
1256
1256
|
readonly server: taon_browser.RealtimeServer;
|
|
@@ -1276,13 +1276,13 @@ declare class TaonBaseController<UPLOAD_FILE_QUERY_PARAMS = {}> extends TaonBase
|
|
|
1276
1276
|
afterAllCtxInited(options: {
|
|
1277
1277
|
ctxStorage: ContextsEndpointStorage;
|
|
1278
1278
|
}): Promise<void>;
|
|
1279
|
-
uploadFormDataToServer(formData: FormData, queryParams?: UPLOAD_FILE_QUERY_PARAMS):
|
|
1279
|
+
uploadFormDataToServer(formData: FormData, queryParams?: UPLOAD_FILE_QUERY_PARAMS): Models__NS__Http__NS__Response<MulterFileUploadResponse[]>;
|
|
1280
1280
|
/**
|
|
1281
1281
|
* Hook after file is uploaded
|
|
1282
1282
|
* through `uploadFormDataToServer` or `uploadLocalFileToServer`
|
|
1283
1283
|
*/
|
|
1284
1284
|
protected afterFileUploadAction(file?: MulterFileUploadResponse, queryParams?: UPLOAD_FILE_QUERY_PARAMS): void | Promise<void>;
|
|
1285
|
-
uploadLocalFileToServer(absFilePath: string, options?: Pick<
|
|
1285
|
+
uploadLocalFileToServer(absFilePath: string, options?: Pick<Models__NS__Ng2RestAxiosRequestConfig, 'onUploadProgress'>, queryParams?: UPLOAD_FILE_QUERY_PARAMS): Promise<MulterFileUploadResponse[]>;
|
|
1286
1286
|
/**
|
|
1287
1287
|
* Easy way to wait for status change with http (1s default) pooling.
|
|
1288
1288
|
*
|
|
@@ -1308,7 +1308,7 @@ declare class TaonBaseController<UPLOAD_FILE_QUERY_PARAMS = {}> extends TaonBase
|
|
|
1308
1308
|
*/
|
|
1309
1309
|
reqIndexNum?: number;
|
|
1310
1310
|
httpErrorsCount?: number;
|
|
1311
|
-
}) => ReturnType<
|
|
1311
|
+
}) => ReturnType<Models__NS__Http__NS__Response<T>['request']>;
|
|
1312
1312
|
poolingInterval?: number;
|
|
1313
1313
|
/**
|
|
1314
1314
|
* default infinite tries
|
|
@@ -1348,18 +1348,18 @@ declare abstract class TaonBaseCrudController<Entity, UPLOAD_FILE_QUERY_PARAMS =
|
|
|
1348
1348
|
*/
|
|
1349
1349
|
abstract entityClassResolveFn: () => any;
|
|
1350
1350
|
_(): Promise<void>;
|
|
1351
|
-
bufforedChanges(id: number | string, property: string, alreadyLength?: number):
|
|
1352
|
-
pagination(pageNumber?: number, pageSize?: number, search?: string):
|
|
1353
|
-
getAll():
|
|
1354
|
-
getBy(id: number | string):
|
|
1355
|
-
updateById(id: number | string, item: Entity):
|
|
1356
|
-
patchById(id: number | string, item: Entity):
|
|
1357
|
-
bulkUpdate(items: Entity[]):
|
|
1358
|
-
deleteById(id: number | string):
|
|
1359
|
-
bulkDelete(ids: (number | string)[]):
|
|
1360
|
-
clearTable():
|
|
1361
|
-
save(item: Entity):
|
|
1362
|
-
bulkCreate(items: Entity):
|
|
1351
|
+
bufforedChanges(id: number | string, property: string, alreadyLength?: number): Models__NS__Http__NS__Response<string | any[]>;
|
|
1352
|
+
pagination(pageNumber?: number, pageSize?: number, search?: string): Models__NS__Http__NS__Response<Entity[]>;
|
|
1353
|
+
getAll(): Models__NS__Http__NS__Response<Entity[]>;
|
|
1354
|
+
getBy(id: number | string): Models__NS__Http__NS__Response<Entity>;
|
|
1355
|
+
updateById(id: number | string, item: Entity): Models__NS__Http__NS__Response<Entity>;
|
|
1356
|
+
patchById(id: number | string, item: Entity): Models__NS__Http__NS__Response<Entity>;
|
|
1357
|
+
bulkUpdate(items: Entity[]): Models__NS__Http__NS__Response<Entity[]>;
|
|
1358
|
+
deleteById(id: number | string): Models__NS__Http__NS__Response<Entity>;
|
|
1359
|
+
bulkDelete(ids: (number | string)[]): Models__NS__Http__NS__Response<(number | string | Entity)[]>;
|
|
1360
|
+
clearTable(): Models__NS__Http__NS__Response<void>;
|
|
1361
|
+
save(item: Entity): Models__NS__Http__NS__Response<Entity>;
|
|
1362
|
+
bulkCreate(items: Entity): Models__NS__Http__NS__Response<Entity[]>;
|
|
1363
1363
|
}
|
|
1364
1364
|
|
|
1365
1365
|
/**
|
|
@@ -1531,7 +1531,7 @@ declare class RepeatTypeComponent extends FieldArrayType {
|
|
|
1531
1531
|
type FormlyInputType = 'input' | 'switch' | 'datepicker' | 'repeat' | 'group' | 'select';
|
|
1532
1532
|
|
|
1533
1533
|
declare function getFromlyConfigFor(target: Function, options?: {
|
|
1534
|
-
formType?:
|
|
1534
|
+
formType?: CoreModels__NS__UIFramework;
|
|
1535
1535
|
keysPathesToInclude?: string[];
|
|
1536
1536
|
keysPathesToExclude?: string[];
|
|
1537
1537
|
parentModel?: string;
|
|
@@ -1569,37 +1569,37 @@ declare function getRegisteredComponents(): FormlyEntityType[];
|
|
|
1569
1569
|
/**
|
|
1570
1570
|
* TODO - repalce in every place when getting class fn from object
|
|
1571
1571
|
*/
|
|
1572
|
-
declare const
|
|
1573
|
-
declare const
|
|
1574
|
-
declare const
|
|
1575
|
-
declare const
|
|
1576
|
-
declare const
|
|
1577
|
-
declare const
|
|
1578
|
-
declare const
|
|
1579
|
-
declare const
|
|
1572
|
+
declare const ClassHelpers__NS__getClassFnFromObject: (json: Object) => any;
|
|
1573
|
+
declare const ClassHelpers__NS__getName: (classFnOrObject: any) => string;
|
|
1574
|
+
declare const ClassHelpers__NS__getOrginalClass: (classFnOrObject: any) => any;
|
|
1575
|
+
declare const ClassHelpers__NS__getFullInternalName: (classFnOrObject: any) => string;
|
|
1576
|
+
declare const ClassHelpers__NS__getUniqueKey: (classFnOrObject: any) => string;
|
|
1577
|
+
declare const ClassHelpers__NS__isContextClassObject: (obj: any) => boolean;
|
|
1578
|
+
declare const ClassHelpers__NS__setName: (target: Function, className: string) => void;
|
|
1579
|
+
declare const ClassHelpers__NS__hasParentClassWithName: (target: Function, className: string, targets?: any[]) => boolean;
|
|
1580
1580
|
/**
|
|
1581
1581
|
* Express async handler for middleware functions.
|
|
1582
1582
|
*/
|
|
1583
|
-
declare const
|
|
1584
|
-
declare const
|
|
1585
|
-
declare const
|
|
1586
|
-
declare const
|
|
1587
|
-
declare const
|
|
1588
|
-
declare const
|
|
1583
|
+
declare const ClassHelpers__NS__asyncHandler: (fn: any) => (req: any, res: any, next: any) => void;
|
|
1584
|
+
declare const ClassHelpers__NS__getMethodsNames: (classOrClassInstance: any, allMethodsNames?: any[]) => string[];
|
|
1585
|
+
declare const ClassHelpers__NS__getControllerConfigs: (target: Function, configs?: ControllerConfig[], callerTarget?: Function) => ControllerConfig[];
|
|
1586
|
+
declare const ClassHelpers__NS__ensureClassConfig: (target: Function) => Partial<ControllerConfig>;
|
|
1587
|
+
declare const ClassHelpers__NS__ensureMethodConfig: (target: any, propertyKey: string | symbol) => Partial<MethodConfig>;
|
|
1588
|
+
declare const ClassHelpers__NS__getClassConfig: (constructor: Function) => Partial<ControllerConfig> | undefined;
|
|
1589
1589
|
|
|
1590
1590
|
declare const cloneObj: <CloneT>(override: Partial<CloneT>, classFn: Function) => CloneT;
|
|
1591
1591
|
|
|
1592
|
-
declare const
|
|
1593
|
-
declare const
|
|
1594
|
-
declare const
|
|
1595
|
-
declare const
|
|
1596
|
-
declare const
|
|
1597
|
-
declare const
|
|
1598
|
-
declare const
|
|
1599
|
-
declare const
|
|
1600
|
-
declare const
|
|
1601
|
-
declare const
|
|
1602
|
-
declare const
|
|
1592
|
+
declare const TaonHelpers__NS__fillUpTo: (s: string, nCharacters: number) => string;
|
|
1593
|
+
declare const TaonHelpers__NS__isGoodPath: (p: string) => boolean;
|
|
1594
|
+
declare const TaonHelpers__NS__firstStringOrElemFromArray: (stringOrArrayOfString: string[] | string) => string;
|
|
1595
|
+
declare const TaonHelpers__NS__tryTransformParam: (param: any) => any;
|
|
1596
|
+
declare const TaonHelpers__NS__getExpressPath: (c: ControllerConfig, pathOrClassConfig: Partial<MethodConfig>) => string;
|
|
1597
|
+
declare const TaonHelpers__NS__defaultType: (value: any) => {};
|
|
1598
|
+
declare const TaonHelpers__NS__parseJSONwithStringJSONs: (object: Object, waring?: boolean) => Object;
|
|
1599
|
+
declare const TaonHelpers__NS__isPlainFileOrFolder: (filePath: any) => boolean;
|
|
1600
|
+
declare const TaonHelpers__NS__ipcKeyNameResponse: (target: Function, methodConfig: Partial<MethodConfig>, expressPath: string) => string;
|
|
1601
|
+
declare const TaonHelpers__NS__ipcKeyNameRequest: (target: Function, methodConfig: Partial<MethodConfig>, expressPath: string) => string;
|
|
1602
|
+
declare const TaonHelpers__NS__websqlMocks: (headers: any) => {
|
|
1603
1603
|
request: Express.Request;
|
|
1604
1604
|
response: Express.Response;
|
|
1605
1605
|
};
|
|
@@ -1684,13 +1684,13 @@ declare abstract class RealtimeStrategy {
|
|
|
1684
1684
|
abstract toString(): string;
|
|
1685
1685
|
}
|
|
1686
1686
|
|
|
1687
|
-
type
|
|
1687
|
+
type RealtimeModels__NS__SubsManagerOpt = {
|
|
1688
1688
|
core: RealtimeCore;
|
|
1689
1689
|
customEvent: string;
|
|
1690
1690
|
roomName: string;
|
|
1691
1691
|
property: string;
|
|
1692
1692
|
};
|
|
1693
|
-
interface
|
|
1693
|
+
interface RealtimeModels__NS__ChangeOption {
|
|
1694
1694
|
/**
|
|
1695
1695
|
* Specify property name to listen changes on that property only;
|
|
1696
1696
|
*/
|
|
@@ -1707,7 +1707,7 @@ interface RealtimeModels_ChangeOption {
|
|
|
1707
1707
|
*/
|
|
1708
1708
|
idOrUniqValue?: any;
|
|
1709
1709
|
}
|
|
1710
|
-
type
|
|
1710
|
+
type RealtimeModels__NS__EventHandler = (...args: any[]) => void;
|
|
1711
1711
|
|
|
1712
1712
|
declare class MockServerIpc {
|
|
1713
1713
|
contextName: string;
|
|
@@ -1733,8 +1733,8 @@ declare class MockNamespaceIpc {
|
|
|
1733
1733
|
* Namespace name
|
|
1734
1734
|
*/
|
|
1735
1735
|
name: string, server: MockServerIpc);
|
|
1736
|
-
on(eventName: string, callback:
|
|
1737
|
-
off(event: string, callback?:
|
|
1736
|
+
on(eventName: string, callback: RealtimeModels__NS__EventHandler): any;
|
|
1737
|
+
off(event: string, callback?: RealtimeModels__NS__EventHandler): any;
|
|
1738
1738
|
emit(eventName: string, ...args: any[]): any;
|
|
1739
1739
|
to(roomName: string): RoomEmitterIpc;
|
|
1740
1740
|
in(roomName: string): RoomEmitterIpc;
|
|
@@ -1867,7 +1867,7 @@ declare class RealtimeClient {
|
|
|
1867
1867
|
* myContext.realtimeServer.triggerEntityChanges(myEntityInstance);
|
|
1868
1868
|
* ...
|
|
1869
1869
|
*/
|
|
1870
|
-
listenChangesEntity<RESULT = any>(entityClassFnOrObj: Function | object, options?:
|
|
1870
|
+
listenChangesEntity<RESULT = any>(entityClassFnOrObj: Function | object, options?: RealtimeModels__NS__ChangeOption): Observable<RESULT>;
|
|
1871
1871
|
/**
|
|
1872
1872
|
* Listen changes entity table
|
|
1873
1873
|
* Example: for pagination, lists update ...
|
|
@@ -1887,7 +1887,7 @@ declare class RealtimeSubsManager {
|
|
|
1887
1887
|
private options;
|
|
1888
1888
|
private isListening;
|
|
1889
1889
|
private observers;
|
|
1890
|
-
constructor(options:
|
|
1890
|
+
constructor(options: RealtimeModels__NS__SubsManagerOpt);
|
|
1891
1891
|
startListenIfNotStarted(realtime: Socket<DefaultEventsMap, DefaultEventsMap>): void;
|
|
1892
1892
|
add(observer: Subscriber<any>): void;
|
|
1893
1893
|
remove(observer: Subscriber<any>): void;
|
|
@@ -1910,8 +1910,8 @@ declare class TaonEntityOptions<T = any> extends DecoratorAbstractOpt {
|
|
|
1910
1910
|
*/
|
|
1911
1911
|
uniqueKeyProp?: string;
|
|
1912
1912
|
createTable?: boolean;
|
|
1913
|
-
defaultModelValues?:
|
|
1914
|
-
defaultModelMapping?:
|
|
1913
|
+
defaultModelValues?: Mapping__NS__ModelValue<T>;
|
|
1914
|
+
defaultModelMapping?: Mapping__NS__Mapping<T>;
|
|
1915
1915
|
defaultModelMappingDeep?: {
|
|
1916
1916
|
[lodashPathes: string]: string | [string];
|
|
1917
1917
|
};
|
|
@@ -1987,20 +1987,20 @@ declare class TaonAdminService {
|
|
|
1987
1987
|
/**
|
|
1988
1988
|
* Remove global taon loader from env.ts [loading.preAngularBootstrap]
|
|
1989
1989
|
*/
|
|
1990
|
-
declare const
|
|
1991
|
-
declare const
|
|
1992
|
-
type
|
|
1993
|
-
type
|
|
1994
|
-
type
|
|
1995
|
-
declare const
|
|
1990
|
+
declare const Taon__NS__removeLoader: (afterMS?: number) => Promise<void>;
|
|
1991
|
+
declare const Taon__NS__error: (opt: Pick<RestErrorResponseWrapper, "message" | "status" | "details" | "code"> | string) => void;
|
|
1992
|
+
type Taon__NS__ResponseHtml = Models__NS__Http__NS__Response<string>;
|
|
1993
|
+
type Taon__NS__Response<T = string> = Models__NS__Http__NS__Response<T>;
|
|
1994
|
+
type Taon__NS__StartParams = Models__NS__StartParams;
|
|
1995
|
+
declare const Taon__NS__getResponseValue: <T>(response: Models__NS__Http__NS__Response<T>, options?: {
|
|
1996
1996
|
req: express.Request<any>;
|
|
1997
1997
|
res: express.Response<any>;
|
|
1998
1998
|
}) => Promise<T>;
|
|
1999
|
-
declare const
|
|
2000
|
-
declare const
|
|
2001
|
-
declare const
|
|
2002
|
-
declare const
|
|
2003
|
-
declare const
|
|
1999
|
+
declare const Taon__NS__isBrowser: boolean;
|
|
2000
|
+
declare const Taon__NS__isNode: boolean;
|
|
2001
|
+
declare const Taon__NS__isWebSQL: boolean;
|
|
2002
|
+
declare const Taon__NS__isElectron: boolean;
|
|
2003
|
+
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>) => {
|
|
2004
2004
|
readonly contextName: string;
|
|
2005
2005
|
readonly appId: string;
|
|
2006
2006
|
cloneAsRemote: (cloneOpt?: {
|
|
@@ -2013,13 +2013,13 @@ declare const Taon_createContext: <CTX extends Record<string, object>, CTRL exte
|
|
|
2013
2013
|
readonly __refSync: EndpointContext;
|
|
2014
2014
|
getClassInstance<T>(ctor: new (...args: any[]) => T): T;
|
|
2015
2015
|
getClass<T>(ctor: new (...args: any[]) => T): new (...args: any[]) => T;
|
|
2016
|
-
initialize: (overrideOptions?:
|
|
2016
|
+
initialize: (overrideOptions?: Models__NS__TaonInitializeParams) => Promise<EndpointContext>;
|
|
2017
2017
|
readonly realtime: {
|
|
2018
2018
|
readonly client: taon_browser.RealtimeClient;
|
|
2019
2019
|
readonly server: taon_browser.RealtimeServer;
|
|
2020
2020
|
};
|
|
2021
2021
|
};
|
|
2022
|
-
declare const
|
|
2022
|
+
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>) => () => {
|
|
2023
2023
|
readonly contextName: string;
|
|
2024
2024
|
readonly appId: string;
|
|
2025
2025
|
cloneAsRemote: (cloneOpt?: {
|
|
@@ -2032,18 +2032,18 @@ declare const Taon_createContextTemplate: <CTX extends Record<string, object>, C
|
|
|
2032
2032
|
readonly __refSync: EndpointContext;
|
|
2033
2033
|
getClassInstance<T>(ctor: new (...args: any[]) => T): T;
|
|
2034
2034
|
getClass<T>(ctor: new (...args: any[]) => T): new (...args: any[]) => T;
|
|
2035
|
-
initialize: (overrideOptions?:
|
|
2035
|
+
initialize: (overrideOptions?: Models__NS__TaonInitializeParams) => Promise<EndpointContext>;
|
|
2036
2036
|
readonly realtime: {
|
|
2037
2037
|
readonly client: taon_browser.RealtimeClient;
|
|
2038
2038
|
readonly server: taon_browser.RealtimeServer;
|
|
2039
2039
|
};
|
|
2040
2040
|
};
|
|
2041
|
-
declare const
|
|
2041
|
+
declare const Taon__NS__inject: <T>(entity: () => new (...args: any[]) => T) => T;
|
|
2042
2042
|
/**
|
|
2043
2043
|
* @deprecated
|
|
2044
2044
|
* use createContext instead
|
|
2045
2045
|
*/
|
|
2046
|
-
declare const
|
|
2046
|
+
declare const Taon__NS__init: (options: {
|
|
2047
2047
|
host: string;
|
|
2048
2048
|
entities: Function[];
|
|
2049
2049
|
controllers: Function[];
|
|
@@ -2060,7 +2060,7 @@ declare const Taon_init: (options: {
|
|
|
2060
2060
|
readonly __refSync: EndpointContext;
|
|
2061
2061
|
getClassInstance<T>(ctor: new (...args: any[]) => T): T;
|
|
2062
2062
|
getClass<T>(ctor: new (...args: any[]) => T): new (...args: any[]) => T;
|
|
2063
|
-
initialize: (overrideOptions?:
|
|
2063
|
+
initialize: (overrideOptions?: Models__NS__TaonInitializeParams) => Promise<EndpointContext>;
|
|
2064
2064
|
readonly realtime: {
|
|
2065
2065
|
readonly client: taon_browser.RealtimeClient;
|
|
2066
2066
|
readonly server: taon_browser.RealtimeServer;
|
|
@@ -2156,5 +2156,5 @@ declare const TAON_FLATTEN_MAPPING: {
|
|
|
2156
2156
|
};
|
|
2157
2157
|
};
|
|
2158
2158
|
|
|
2159
|
-
export { BaseTaonClassesNames, Body, BooleanColumn, CURRENT_HOST_BACKEND_PORT, CURRENT_HOST_URL,
|
|
2160
|
-
export type { AbstractEntityOmitKeys, FormlyArrayTransformFn, FormlyEntityType, FormlyInputType, MigrationStatus,
|
|
2159
|
+
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 };
|
|
2160
|
+
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__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 };
|