taon 21.0.63 → 21.0.71
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 +142 -69
- package/browser/fesm2022/taon-browser.mjs.map +1 -1
- package/browser/package.json +1 -1
- package/browser/types/taon-browser.d.ts +13 -16
- package/browser-prod/fesm2022/taon-browser.mjs +147 -74
- 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 +15 -18
- package/browser-prod.split-namespaces.json +2 -4
- package/cli.js +1 -1
- package/cli.js.map +1 -1
- package/icon-menu-taon.svg +15 -15
- package/lib/base-classes/base-controller.d.ts +2 -3
- package/lib/base-classes/base-controller.js.map +1 -1
- package/lib/build-info._auto-generated_.d.ts +1 -1
- package/lib/build-info._auto-generated_.js +1 -1
- package/lib/decorators/classes/entity-decorator.d.ts +3 -6
- package/lib/decorators/classes/entity-decorator.js +16 -7
- package/lib/decorators/classes/entity-decorator.js.map +1 -1
- package/lib/decorators/http/http-decorators.d.ts +1 -3
- package/lib/decorators/http/http-decorators.js +4 -2
- package/lib/decorators/http/http-decorators.js.map +1 -1
- package/lib/decorators/http/http-methods-decorators.d.ts +2 -2
- package/lib/endpoint-context.js +104 -48
- package/lib/endpoint-context.js.map +1 -1
- package/lib/entity-process.d.ts +0 -1
- package/lib/entity-process.js +39 -41
- package/lib/entity-process.js.map +1 -1
- package/lib/formly/fromly.js +2 -2
- package/lib/formly/fromly.js.map +1 -1
- package/lib/helpers/class-helpers.d.ts +1 -1
- package/lib/helpers/class-helpers.js +9 -6
- package/lib/helpers/class-helpers.js.map +1 -1
- package/lib/models.d.ts +7 -3
- package/lib/models.js.map +1 -1
- package/lib/package.json +1 -1
- package/lib/realtime/realtime-client.js +1 -1
- package/lib/realtime/realtime-client.js.map +1 -1
- package/lib/symbols.d.ts +0 -2
- package/lib/symbols.js +3 -7
- package/lib/symbols.js.map +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-controller.d.ts +2 -3
- package/lib-prod/base-classes/base-controller.js.map +1 -1
- package/lib-prod/base-classes/base-crud-controller.js.map +1 -1
- package/lib-prod/base-classes/base-injector.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/context-db-migrations.js.map +1 -1
- package/lib-prod/create-context.js.map +1 -1
- package/lib-prod/decorators/classes/controller-decorator.js.map +1 -1
- package/lib-prod/decorators/classes/entity-decorator.d.ts +3 -6
- package/lib-prod/decorators/classes/entity-decorator.js +17 -8
- package/lib-prod/decorators/classes/entity-decorator.js.map +1 -1
- package/lib-prod/decorators/classes/middleware-decorator.js.map +1 -1
- package/lib-prod/decorators/classes/migration-decorator.js.map +1 -1
- package/lib-prod/decorators/classes/provider-decorator.js.map +1 -1
- package/lib-prod/decorators/classes/repository-decorator.js.map +1 -1
- package/lib-prod/decorators/classes/subscriber-decorator.js.map +1 -1
- package/lib-prod/decorators/http/http-decorators.d.ts +1 -3
- package/lib-prod/decorators/http/http-decorators.js +4 -3
- package/lib-prod/decorators/http/http-decorators.js.map +1 -1
- package/lib-prod/decorators/http/http-methods-decorators.d.ts +2 -2
- package/lib-prod/decorators/http/http-methods-decorators.js.map +1 -1
- package/lib-prod/endpoint-context-storage.js.map +1 -1
- package/lib-prod/endpoint-context.js +108 -52
- package/lib-prod/endpoint-context.js.map +1 -1
- package/lib-prod/entity-process.d.ts +0 -1
- package/lib-prod/entity-process.js +9 -11
- package/lib-prod/entity-process.js.map +1 -1
- package/lib-prod/formly/fromly.js +5 -5
- package/lib-prod/formly/fromly.js.map +1 -1
- package/lib-prod/helpers/class-helpers.d.ts +1 -1
- package/lib-prod/helpers/class-helpers.js +13 -10
- package/lib-prod/helpers/class-helpers.js.map +1 -1
- package/lib-prod/inject.js.map +1 -1
- package/lib-prod/models.d.ts +7 -3
- package/lib-prod/models.js.map +1 -1
- package/lib-prod/package.json +1 -1
- package/lib-prod/realtime/realtime-client.js +2 -2
- package/lib-prod/realtime/realtime-client.js.map +1 -1
- package/lib-prod/realtime/realtime-server.js.map +1 -1
- package/lib-prod/realtime/realtime-strategy/realtime-strategy-ipc.js.map +1 -1
- package/lib-prod/realtime/realtime-strategy/realtime-strategy-mock.js.map +1 -1
- package/lib-prod/realtime/realtime-subs-manager.js.map +1 -1
- package/lib-prod/symbols.d.ts +0 -2
- package/lib-prod/symbols.js +0 -4
- package/lib-prod/symbols.js.map +1 -1
- package/lib-prod/ui/index.d.ts +1 -1
- package/lib-prod/ui/index.js +1 -1
- package/lib-prod/ui/taon-admin-mode-configuration/index.d.ts +1 -1
- package/lib-prod/ui/taon-admin-mode-configuration/index.js +1 -1
- package/lib-prod.split-namespaces.json +2 -4
- package/package.json +1 -1
- package/websql/fesm2022/taon-websql.mjs +147 -78
- package/websql/fesm2022/taon-websql.mjs.map +1 -1
- package/websql/package.json +1 -1
- package/websql/types/taon-websql.d.ts +13 -16
- package/websql-prod/fesm2022/taon-websql.mjs +152 -83
- 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 +15 -18
- package/websql-prod.split-namespaces.json +2 -4
package/browser/package.json
CHANGED
|
@@ -2,18 +2,18 @@
|
|
|
2
2
|
import * as taon_browser from 'taon/browser';
|
|
3
3
|
import * as expressType from 'express';
|
|
4
4
|
import { Request, Response, Application, RequestHandler } from 'express';
|
|
5
|
-
import {
|
|
5
|
+
import { HttpResponse, Ng2RestAxiosRequestConfig, RestResponseWrapper, TaonServerMiddlewareInterceptOptions, TaonClientMiddlewareInterceptOptions, ResponseTypeAxios, HttpResponseError, RestErrorResponseWrapper, ModelValue, EncodeSchema } from 'ng2-rest/browser';
|
|
6
6
|
export { TaonClientMiddlewareInterceptOptions, TaonServerMiddlewareInterceptOptions } from 'ng2-rest/browser';
|
|
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';
|
|
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';
|
|
10
10
|
import { CoreModels } from 'tnp-core/browser';
|
|
11
11
|
import { MySqlQuerySource } from 'taon-type-sql/browser';
|
|
12
|
+
import * as rxjs from 'rxjs';
|
|
13
|
+
import { Observable, Subscriber } from 'rxjs';
|
|
12
14
|
import * as i0 from '@angular/core';
|
|
13
15
|
import { InjectionToken, ViewContainerRef } from '@angular/core';
|
|
14
16
|
import { AxiosResponse } from 'axios';
|
|
15
|
-
import * as rxjs from 'rxjs';
|
|
16
|
-
import { Observable, Subscriber } from 'rxjs';
|
|
17
17
|
import * as _ngx_formly_core from '@ngx-formly/core';
|
|
18
18
|
import { FieldWrapper, FieldArrayType, FormlyFormBuilder, FormlyFieldConfig } from '@ngx-formly/core';
|
|
19
19
|
import * as Electron from 'electron';
|
|
@@ -601,12 +601,15 @@ declare namespace Models {
|
|
|
601
601
|
};
|
|
602
602
|
type SyncResponseFunc<T> = (options?: ResponseFuncOpt<T>) => SyncResponse<T>;
|
|
603
603
|
type MixResponse<T> = SyncResponse<T> | ExpressContext<T>;
|
|
604
|
+
type PromiseObservableMix<T> = Promise<T> & {
|
|
605
|
+
observable: Observable<T>;
|
|
606
|
+
};
|
|
604
607
|
interface ClientAction<T> {
|
|
605
608
|
/**
|
|
606
609
|
* @deprecated use request() mehods instead
|
|
607
610
|
*/
|
|
608
|
-
readonly received?:
|
|
609
|
-
request?(axiosConfig?:
|
|
611
|
+
readonly received?: PromiseObservableMix<HttpResponse<T>>;
|
|
612
|
+
request?(axiosConfig?: Ng2RestAxiosRequestConfig): PromiseObservableMix<HttpResponse<T>>;
|
|
610
613
|
}
|
|
611
614
|
interface AsyncResponse<T> {
|
|
612
615
|
(req?: Request<any>, res?: Response<any>): Promise<SyncResponse<T> | SyncResponseFunc<T>>;
|
|
@@ -917,7 +920,6 @@ declare class EntityProcess {
|
|
|
917
920
|
*/
|
|
918
921
|
private result;
|
|
919
922
|
private response;
|
|
920
|
-
static init(result: any, response: Response): Promise<void>;
|
|
921
923
|
/**
|
|
922
924
|
* Data to send
|
|
923
925
|
*/
|
|
@@ -972,9 +974,7 @@ declare class Realtime {
|
|
|
972
974
|
}
|
|
973
975
|
declare namespace Symbols {
|
|
974
976
|
const ctxInClassOrClassObj: unique symbol;
|
|
975
|
-
const classNameStaticProperty: string;
|
|
976
977
|
const fullClassNameStaticProperty: string;
|
|
977
|
-
const orignalClass: string;
|
|
978
978
|
const orignalClassClonesObj: string;
|
|
979
979
|
const classMethodsNames: string;
|
|
980
980
|
const REALTIME: Realtime;
|
|
@@ -1077,7 +1077,7 @@ interface TaonHttpDecoratorOptions {
|
|
|
1077
1077
|
*/
|
|
1078
1078
|
pathIsGlobal?: boolean;
|
|
1079
1079
|
overrideContentType?: CoreModels.ContentType;
|
|
1080
|
-
overrideResponseType?:
|
|
1080
|
+
overrideResponseType?: ResponseTypeAxios;
|
|
1081
1081
|
/**
|
|
1082
1082
|
* Express will send response as HTML string with proper headers
|
|
1083
1083
|
*/
|
|
@@ -1290,7 +1290,7 @@ declare class TaonBaseController<UPLOAD_FILE_QUERY_PARAMS = {}> extends TaonBase
|
|
|
1290
1290
|
* through `uploadFormDataToServer` or `uploadLocalFileToServer`
|
|
1291
1291
|
*/
|
|
1292
1292
|
protected afterFileUploadAction(file?: MulterFileUploadResponse, queryParams?: UPLOAD_FILE_QUERY_PARAMS): void | Promise<void>;
|
|
1293
|
-
uploadLocalFileToServer(absFilePath: string, options?: Pick<
|
|
1293
|
+
uploadLocalFileToServer(absFilePath: string, options?: Pick<Ng2RestAxiosRequestConfig, 'onUploadProgress'>, queryParams?: UPLOAD_FILE_QUERY_PARAMS): Promise<MulterFileUploadResponse[]>;
|
|
1294
1294
|
/**
|
|
1295
1295
|
* Easy way to wait for status change with http (1s default) pooling.
|
|
1296
1296
|
*
|
|
@@ -1582,7 +1582,7 @@ declare namespace ClassHelpers {
|
|
|
1582
1582
|
const getName: (classFnOrObject: any) => string;
|
|
1583
1583
|
const getOrginalClass: (classFnOrObject: any) => any;
|
|
1584
1584
|
const getFullInternalName: (classFnOrObject: any) => string;
|
|
1585
|
-
const getUniqueKey: (classFnOrObject: any) => string;
|
|
1585
|
+
const getUniqueKey: (classFnOrObject: any) => string | undefined;
|
|
1586
1586
|
const isContextClassObject: (obj: any) => boolean;
|
|
1587
1587
|
const setName: (target: Function, className: string) => void;
|
|
1588
1588
|
const hasParentClassWithName: (target: Function, className: string, targets?: any[]) => boolean;
|
|
@@ -1924,11 +1924,8 @@ declare class TaonEntityOptions<T = any> extends DecoratorAbstractOpt {
|
|
|
1924
1924
|
*/
|
|
1925
1925
|
uniqueKeyProp?: string;
|
|
1926
1926
|
createTable?: boolean;
|
|
1927
|
-
defaultModelValues?:
|
|
1928
|
-
defaultModelMapping?:
|
|
1929
|
-
defaultModelMappingDeep?: {
|
|
1930
|
-
[lodashPathes: string]: string | [string];
|
|
1931
|
-
};
|
|
1927
|
+
defaultModelValues?: () => ModelValue<T>;
|
|
1928
|
+
defaultModelMapping?: () => EncodeSchema<T>;
|
|
1932
1929
|
}
|
|
1933
1930
|
|
|
1934
1931
|
/**
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import 'reflect-metadata';
|
|
2
|
-
import { ___NS__camelCase, ___NS__isUndefined, ___NS__isArray, ___NS__isFunction, ___NS__isNull, ___NS__isObject, ___NS__isRegExp, ___NS__isBuffer, ___NS__isArrayBuffer, ___NS__isDate, ___NS__isString, Utils__NS__uniqArray, ___NS__uniq, ___NS__times, ___NS__first, ___NS__cloneDeep, ___NS__merge, Helpers__NS__logInfo, UtilsOs__NS__isWebSQL, UtilsOs__NS__isElectron, Helpers__NS__error, UtilsOs__NS__isRunningInDocker, Helpers__NS__throwError, ___NS__isBoolean, ___NS__isNil, ___NS__set, Helpers__NS__info, ___NS__slice, ___NS__last, UtilsOs__NS__isNode, UtilsOs__NS__isBrowser, Helpers__NS__isBlob, config, CoreModels__NS__SPECIAL_APP_READY_MESSAGE, UtilsOs__NS__isRunningInCliMode, Helpers__NS__log, ___NS__isNumber, crossPlatformPath, UtilsTerminal__NS__waitMilliseconds, CoreModels__NS__TaonHttpErrorCustomProp, Helpers__NS__warn, ___NS__startCase } from 'tnp-core/browser-prod';
|
|
2
|
+
import { ___NS__camelCase, ___NS__isUndefined, ___NS__isArray, ___NS__isFunction, ___NS__isNull, CoreModels__NS__ClassNameStaticProperty, CoreModels__NS__OrignalClassKey, ___NS__isObject, ___NS__isRegExp, ___NS__isBuffer, ___NS__isArrayBuffer, ___NS__isDate, ___NS__isString, Utils__NS__uniqArray, ___NS__uniq, ___NS__times, ___NS__first, ___NS__cloneDeep, ___NS__merge, Helpers__NS__logInfo, UtilsOs__NS__isWebSQL, UtilsOs__NS__isElectron, Helpers__NS__error, UtilsOs__NS__isRunningInDocker, Helpers__NS__throwError, ___NS__isBoolean, ___NS__isNil, ___NS__set, Helpers__NS__info, ___NS__slice, ___NS__last, UtilsOs__NS__isNode, UtilsOs__NS__isBrowser, Helpers__NS__isBlob, config, CoreModels__NS__SPECIAL_APP_READY_MESSAGE, UtilsOs__NS__isRunningInCliMode, Helpers__NS__log, ___NS__isNumber, crossPlatformPath, UtilsTerminal__NS__waitMilliseconds, CoreModels__NS__TaonHttpErrorCustomProp, Helpers__NS__warn, ___NS__startCase } from 'tnp-core/browser-prod';
|
|
3
3
|
import axios from 'axios';
|
|
4
4
|
import { JSON10 } from 'json10/browser-prod';
|
|
5
5
|
import { walk } from 'lodash-walk-object/browser-prod';
|
|
6
|
-
import { RestResponseWrapper,
|
|
6
|
+
import { RestResponseWrapper, Resource__NS__globalInterceptors, Resource__NS__methodsInterceptors, HttpResponse, RestHeaders, Resource__NS__create, decodeMappingForHeaderJson, Resource__NS__Cookies, DefaultMapping, DefaultModel, HttpResponseError } from 'ng2-rest/browser-prod';
|
|
7
7
|
import { Observable, from, Subject } from 'rxjs';
|
|
8
8
|
import * as i0 from '@angular/core';
|
|
9
9
|
import { InjectionToken, inject as inject$1, PLATFORM_ID, Injectable, ViewContainerRef, ViewChild, Component } from '@angular/core';
|
|
10
|
-
import { Table,
|
|
10
|
+
import { Table, Column } from 'taon-typeorm/browser-prod';
|
|
11
11
|
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';
|
|
12
|
-
import {
|
|
12
|
+
import { CLASS__NS__getName, CLASS__NS__setName, CLASS__NS__getBy } from 'typescript-class-helpers/browser-prod';
|
|
13
13
|
import * as JSON5 from 'json5';
|
|
14
14
|
import { io } from 'socket.io-client';
|
|
15
15
|
import { isPlatformServer, isPlatformBrowser } from '@angular/common';
|
|
@@ -647,9 +647,7 @@ class Realtime {
|
|
|
647
647
|
}
|
|
648
648
|
//namespace Symbols
|
|
649
649
|
const Symbols__NS__ctxInClassOrClassObj = Symbol();
|
|
650
|
-
const Symbols__NS__classNameStaticProperty = SYMBOL.ClassNameStaticProperty;
|
|
651
650
|
const Symbols__NS__fullClassNameStaticProperty = `$$fullclassName$$`;
|
|
652
|
-
const Symbols__NS__orignalClass = OrignalClassKey;
|
|
653
651
|
const Symbols__NS__orignalClassClonesObj = `$$originalClassClonesObj$$`;
|
|
654
652
|
const Symbols__NS__classMethodsNames = `$$classMethodsNames$$`;
|
|
655
653
|
const Symbols__NS__REALTIME = new Realtime();
|
|
@@ -800,14 +798,14 @@ const ClassHelpers__NS__getName = (classFnOrObject) => {
|
|
|
800
798
|
console.error('OBJECT OR CLASS', classFnOrObject);
|
|
801
799
|
throw new Error(`Cannot get name from this object or class.`);
|
|
802
800
|
}
|
|
803
|
-
return ((classFnOrObject[
|
|
804
|
-
? classFnOrObject[
|
|
805
|
-
: classFnOrObject?.constructor[
|
|
806
|
-
(___NS__isFunction(classFnOrObject) ?
|
|
801
|
+
return ((classFnOrObject[CoreModels__NS__ClassNameStaticProperty]
|
|
802
|
+
? classFnOrObject[CoreModels__NS__ClassNameStaticProperty]
|
|
803
|
+
: classFnOrObject?.constructor[CoreModels__NS__ClassNameStaticProperty]) ||
|
|
804
|
+
(___NS__isFunction(classFnOrObject) ? CLASS__NS__getName(classFnOrObject) : void 0));
|
|
807
805
|
};
|
|
808
806
|
//#endregion
|
|
809
807
|
const ClassHelpers__NS__getOrginalClass = (classFnOrObject) => {
|
|
810
|
-
const org = classFnOrObject[
|
|
808
|
+
const org = classFnOrObject[CoreModels__NS__OrignalClassKey];
|
|
811
809
|
if (!org) {
|
|
812
810
|
return classFnOrObject;
|
|
813
811
|
}
|
|
@@ -829,8 +827,11 @@ const ClassHelpers__NS__getFullInternalName = (classFnOrObject) => {
|
|
|
829
827
|
const ClassHelpers__NS__getUniqueKey = (classFnOrObject) => {
|
|
830
828
|
const classFn = ___NS__isFunction(classFnOrObject)
|
|
831
829
|
? classFnOrObject
|
|
832
|
-
: classFnOrObject
|
|
830
|
+
: classFnOrObject?.constructor;
|
|
833
831
|
const config = Reflect.getMetadata(Symbols__NS__metadata.options.entity, classFn);
|
|
832
|
+
if (!config) {
|
|
833
|
+
return void 0;
|
|
834
|
+
}
|
|
834
835
|
return config.uniqueKeyProp;
|
|
835
836
|
};
|
|
836
837
|
//#endregion
|
|
@@ -854,7 +855,7 @@ const ClassHelpers__NS__isContextClassObject = (obj) => {
|
|
|
854
855
|
const ClassHelpers__NS__setName = (target, className) => {
|
|
855
856
|
// console.log('setName', className, target.name)
|
|
856
857
|
Validators__NS__classNameVlidation(className, target);
|
|
857
|
-
target[
|
|
858
|
+
target[CoreModels__NS__ClassNameStaticProperty] = className;
|
|
858
859
|
};
|
|
859
860
|
//#endregion
|
|
860
861
|
//#region has parent with class name
|
|
@@ -1397,7 +1398,7 @@ class RealtimeClient {
|
|
|
1397
1398
|
* ...
|
|
1398
1399
|
*/
|
|
1399
1400
|
listenChangesEntity(entityClassFnOrObj, options) {
|
|
1400
|
-
options = options || {};
|
|
1401
|
+
options = ___NS__cloneDeep(options || {});
|
|
1401
1402
|
if (___NS__isObject(entityClassFnOrObj)) {
|
|
1402
1403
|
const orgObj = entityClassFnOrObj;
|
|
1403
1404
|
entityClassFnOrObj =
|
|
@@ -2688,23 +2689,18 @@ class EndpointContext {
|
|
|
2688
2689
|
// You can override prototype properties or methods here if needed
|
|
2689
2690
|
// static properties override allowed
|
|
2690
2691
|
}
|
|
2691
|
-
static { _a =
|
|
2692
|
-
// @ts-ignore
|
|
2692
|
+
static { _a = CoreModels__NS__OrignalClassKey, _b = Symbols__NS__fullClassNameStaticProperty, _c = CoreModels__NS__ClassNameStaticProperty, _d = Symbols__NS__ctxInClassOrClassObj, _e = Symbols__NS__ctxInClassOrClassObj; }
|
|
2693
2693
|
static { this[_a] = TaonBaseClass; }
|
|
2694
|
-
// @ts-ignore
|
|
2695
2694
|
static { this[_b] = `${ctx.contextName}.${className}`; }
|
|
2696
|
-
// @ts-ignore
|
|
2697
2695
|
static { this[_c] = className; }
|
|
2698
2696
|
static { this[_d] = ctx; }
|
|
2699
2697
|
// eslint-disable-next-line @typescript-eslint/explicit-function-return-type
|
|
2700
2698
|
static __getFullPathForClass__(arr = []) {
|
|
2701
2699
|
const name = this[Symbols__NS__fullClassNameStaticProperty];
|
|
2702
2700
|
arr.push(name);
|
|
2703
|
-
|
|
2704
|
-
|
|
2705
|
-
this[
|
|
2706
|
-
// @ts-ignore
|
|
2707
|
-
this[Symbols__NS__orignalClass].__getFullPathForClass__(arr);
|
|
2701
|
+
if (this[CoreModels__NS__OrignalClassKey] &&
|
|
2702
|
+
this[CoreModels__NS__OrignalClassKey].__getFullPathForClass__) {
|
|
2703
|
+
this[CoreModels__NS__OrignalClassKey].__getFullPathForClass__(arr);
|
|
2708
2704
|
}
|
|
2709
2705
|
return arr.join('/');
|
|
2710
2706
|
}
|
|
@@ -2754,7 +2750,7 @@ class EndpointContext {
|
|
|
2754
2750
|
// console.warn(`Please provide className for ${TaonBaseClass.name} class`);
|
|
2755
2751
|
// }
|
|
2756
2752
|
className = className || key;
|
|
2757
|
-
TaonBaseClass[
|
|
2753
|
+
TaonBaseClass[CoreModels__NS__ClassNameStaticProperty] = className;
|
|
2758
2754
|
const clonedClass = this.cloneClassWithNewMetadata({
|
|
2759
2755
|
TaonBaseClass,
|
|
2760
2756
|
className,
|
|
@@ -4119,6 +4115,8 @@ class EndpointContext {
|
|
|
4119
4115
|
/* */
|
|
4120
4116
|
/* */
|
|
4121
4117
|
/* */
|
|
4118
|
+
/* */
|
|
4119
|
+
/* */
|
|
4122
4120
|
}
|
|
4123
4121
|
//#endregion
|
|
4124
4122
|
//#region methods & getters / middlewares
|
|
@@ -4136,7 +4134,7 @@ class EndpointContext {
|
|
|
4136
4134
|
middlewares.forEach(middlewareInstanceName => {
|
|
4137
4135
|
const contextName = this.contextName;
|
|
4138
4136
|
const interceptorName = `${contextName}-${ClassHelpers__NS__getName(middlewareInstanceName)}`;
|
|
4139
|
-
|
|
4137
|
+
Resource__NS__globalInterceptors.set(interceptorName, {
|
|
4140
4138
|
intercept: ({ req, next }) => {
|
|
4141
4139
|
const url = new URL(req.url);
|
|
4142
4140
|
if (url.pathname.startsWith(`${this.uriPathnameOrNothingIfRoot}/${apiPrefix}/${contextName}/`)) {
|
|
@@ -4366,6 +4364,9 @@ class EndpointContext {
|
|
|
4366
4364
|
/* */
|
|
4367
4365
|
/* */
|
|
4368
4366
|
/* */
|
|
4367
|
+
/* */
|
|
4368
|
+
/* */
|
|
4369
|
+
/* */
|
|
4369
4370
|
}
|
|
4370
4371
|
if (!this.isRemoteHost) {
|
|
4371
4372
|
//#region apply dummy websql express routers
|
|
@@ -4591,6 +4592,24 @@ class EndpointContext {
|
|
|
4591
4592
|
/* */
|
|
4592
4593
|
/* */
|
|
4593
4594
|
/* */
|
|
4595
|
+
/* */
|
|
4596
|
+
/* */
|
|
4597
|
+
/* */
|
|
4598
|
+
/* */
|
|
4599
|
+
/* */
|
|
4600
|
+
/* */
|
|
4601
|
+
/* */
|
|
4602
|
+
/* */
|
|
4603
|
+
/* */
|
|
4604
|
+
/* */
|
|
4605
|
+
/* */
|
|
4606
|
+
/* */
|
|
4607
|
+
/* */
|
|
4608
|
+
/* */
|
|
4609
|
+
/* */
|
|
4610
|
+
/* */
|
|
4611
|
+
/* */
|
|
4612
|
+
/* */
|
|
4594
4613
|
}
|
|
4595
4614
|
return {
|
|
4596
4615
|
expressPath: expressPath,
|
|
@@ -4652,7 +4671,7 @@ class EndpointContext {
|
|
|
4652
4671
|
const middlewareName = ClassHelpers__NS__getName(instance);
|
|
4653
4672
|
// middlewareName - only needed for inheritace and uniqness of interceptors
|
|
4654
4673
|
const interceptorKey = `${middlewareName}-${methodConfig.type?.toUpperCase()}-${expressPath}`;
|
|
4655
|
-
|
|
4674
|
+
Resource__NS__methodsInterceptors.set(interceptorKey, {
|
|
4656
4675
|
intercept: ({ req, next }) => {
|
|
4657
4676
|
return instance.interceptClientMethod({
|
|
4658
4677
|
req,
|
|
@@ -4688,15 +4707,15 @@ class EndpointContext {
|
|
|
4688
4707
|
console.log({ responseData });
|
|
4689
4708
|
try {
|
|
4690
4709
|
const body = res;
|
|
4691
|
-
|
|
4692
|
-
body: void 0,
|
|
4693
|
-
isArray: void 0,
|
|
4694
|
-
method: methodConfig.type,
|
|
4695
|
-
url: `${ctx.uriOrigin}${'' // TODO express path
|
|
4696
|
-
}${methodConfig.path} `,
|
|
4697
|
-
}, Helpers__NS__isBlob(body) || ___NS__isString(body)
|
|
4710
|
+
const responseStrinOrBlob = Helpers__NS__isBlob(body) || ___NS__isString(body)
|
|
4698
4711
|
? body
|
|
4699
|
-
: JSON.stringify(body)
|
|
4712
|
+
: JSON.stringify(body);
|
|
4713
|
+
res = new HttpResponse(`${ctx.uriOrigin}${'' // TODO express path
|
|
4714
|
+
}${methodConfig.path} `, methodConfig.type, responseStrinOrBlob, RestHeaders.from(headers), 200, {
|
|
4715
|
+
// responseMapping: {
|
|
4716
|
+
// // entity: ()=> TODO for electron
|
|
4717
|
+
// },
|
|
4718
|
+
}, false);
|
|
4700
4719
|
resolve(res);
|
|
4701
4720
|
}
|
|
4702
4721
|
catch (error) {
|
|
@@ -4881,28 +4900,51 @@ class EndpointContext {
|
|
|
4881
4900
|
storage[Symbols__NS__old.ENDPOINT_META_CONFIG][ctx.uriOrigin] = {};
|
|
4882
4901
|
const endpoints = storage[Symbols__NS__old.ENDPOINT_META_CONFIG];
|
|
4883
4902
|
let rest;
|
|
4903
|
+
const requestHeaders = RestHeaders.from({});
|
|
4884
4904
|
if (!endpoints[ctx.uriOrigin][expressPath]) {
|
|
4885
|
-
let headers = {};
|
|
4886
4905
|
if (methodConfig.contentType && !methodConfig.responseType) {
|
|
4887
|
-
rest =
|
|
4906
|
+
rest = Resource__NS__create(ctx.uriOrigin, expressPath, {
|
|
4907
|
+
responseMapping: {
|
|
4908
|
+
entity: Symbols__NS__old.MAPPING_CONFIG_HEADER,
|
|
4909
|
+
circular: Symbols__NS__old.CIRCURAL_OBJECTS_MAP_BODY,
|
|
4910
|
+
},
|
|
4911
|
+
});
|
|
4912
|
+
requestHeaders.apply({
|
|
4888
4913
|
'Content-Type': methodConfig.contentType,
|
|
4889
4914
|
Accept: methodConfig.contentType,
|
|
4890
|
-
})
|
|
4915
|
+
});
|
|
4891
4916
|
}
|
|
4892
4917
|
else if (methodConfig.contentType && methodConfig.responseType) {
|
|
4893
|
-
rest =
|
|
4918
|
+
rest = Resource__NS__create(ctx.uriOrigin, expressPath, {
|
|
4919
|
+
responseMapping: {
|
|
4920
|
+
entity: Symbols__NS__old.MAPPING_CONFIG_HEADER,
|
|
4921
|
+
circular: Symbols__NS__old.CIRCURAL_OBJECTS_MAP_BODY,
|
|
4922
|
+
},
|
|
4923
|
+
});
|
|
4924
|
+
requestHeaders.apply({
|
|
4894
4925
|
'Content-Type': methodConfig.contentType,
|
|
4895
4926
|
Accept: methodConfig.contentType,
|
|
4896
4927
|
responsetypeaxios: methodConfig.responseType,
|
|
4897
|
-
})
|
|
4928
|
+
});
|
|
4898
4929
|
}
|
|
4899
4930
|
else if (!methodConfig.contentType && methodConfig.responseType) {
|
|
4900
|
-
rest =
|
|
4931
|
+
rest = Resource__NS__create(ctx.uriOrigin, expressPath, {
|
|
4932
|
+
responseMapping: {
|
|
4933
|
+
entity: Symbols__NS__old.MAPPING_CONFIG_HEADER,
|
|
4934
|
+
circular: Symbols__NS__old.CIRCURAL_OBJECTS_MAP_BODY,
|
|
4935
|
+
},
|
|
4936
|
+
});
|
|
4937
|
+
requestHeaders.apply({
|
|
4901
4938
|
responsetypeaxios: methodConfig.responseType,
|
|
4902
|
-
})
|
|
4939
|
+
});
|
|
4903
4940
|
}
|
|
4904
4941
|
else {
|
|
4905
|
-
rest =
|
|
4942
|
+
rest = Resource__NS__create(ctx.uriOrigin, expressPath, {
|
|
4943
|
+
responseMapping: {
|
|
4944
|
+
entity: Symbols__NS__old.MAPPING_CONFIG_HEADER,
|
|
4945
|
+
circular: Symbols__NS__old.CIRCURAL_OBJECTS_MAP_BODY,
|
|
4946
|
+
},
|
|
4947
|
+
});
|
|
4906
4948
|
}
|
|
4907
4949
|
endpoints[ctx.uriOrigin][expressPath] = rest;
|
|
4908
4950
|
}
|
|
@@ -4930,47 +4972,60 @@ class EndpointContext {
|
|
|
4930
4972
|
/* */
|
|
4931
4973
|
throw new Error(errorMessage);
|
|
4932
4974
|
}
|
|
4975
|
+
const optionsDecodeHeader = {
|
|
4976
|
+
useFirstArrayItemClassNameForAllElements: true,
|
|
4977
|
+
};
|
|
4933
4978
|
if (currentParam.paramType === 'Path') {
|
|
4979
|
+
//#region handle path params
|
|
4934
4980
|
pathPrams[currentParam.paramName] = param;
|
|
4981
|
+
//#endregion
|
|
4935
4982
|
}
|
|
4936
4983
|
if (currentParam.paramType === 'Query') {
|
|
4984
|
+
//#region handle query params
|
|
4937
4985
|
if (currentParam.paramName) {
|
|
4938
|
-
const mapping =
|
|
4986
|
+
const mapping = decodeMappingForHeaderJson(param, optionsDecodeHeader);
|
|
4939
4987
|
if (mapping) {
|
|
4940
|
-
|
|
4988
|
+
requestHeaders.set(`${Symbols__NS__old.MAPPING_CONFIG_HEADER_QUERY_PARAMS}${currentParam.paramName} `, JSON.stringify(mapping));
|
|
4941
4989
|
}
|
|
4942
4990
|
queryParams[currentParam.paramName] = param;
|
|
4943
4991
|
}
|
|
4944
4992
|
else {
|
|
4945
|
-
const mapping =
|
|
4993
|
+
const mapping = decodeMappingForHeaderJson(param, optionsDecodeHeader);
|
|
4946
4994
|
if (mapping) {
|
|
4947
|
-
|
|
4995
|
+
requestHeaders.set(Symbols__NS__old.MAPPING_CONFIG_HEADER_QUERY_PARAMS, JSON.stringify(mapping));
|
|
4948
4996
|
}
|
|
4949
4997
|
queryParams = ___NS__cloneDeep(param);
|
|
4950
4998
|
}
|
|
4999
|
+
//#endregion
|
|
4951
5000
|
}
|
|
4952
5001
|
if (currentParam.paramType === 'Header') {
|
|
5002
|
+
//#region handler header params
|
|
4953
5003
|
if (currentParam.paramName) {
|
|
4954
5004
|
if (currentParam.paramName === Symbols__NS__old.MDC_KEY) {
|
|
4955
5005
|
// parese MDC
|
|
4956
|
-
|
|
5006
|
+
requestHeaders.set(currentParam.paramName, encodeURIComponent(JSON.stringify(param)));
|
|
4957
5007
|
}
|
|
4958
5008
|
else {
|
|
4959
|
-
|
|
5009
|
+
requestHeaders.set(currentParam.paramName, param);
|
|
4960
5010
|
}
|
|
4961
5011
|
}
|
|
4962
5012
|
else {
|
|
4963
5013
|
for (let header in param) {
|
|
4964
|
-
|
|
5014
|
+
requestHeaders.set(header, param[header]);
|
|
4965
5015
|
}
|
|
4966
5016
|
}
|
|
5017
|
+
//#endregion
|
|
4967
5018
|
}
|
|
4968
5019
|
if (currentParam.paramType === 'Cookie') {
|
|
4969
|
-
|
|
5020
|
+
//#region handle cookie params
|
|
5021
|
+
Resource__NS__Cookies.write(currentParam.paramName, param, currentParam.expireInSeconds);
|
|
5022
|
+
//#endregion
|
|
4970
5023
|
}
|
|
4971
5024
|
if (currentParam.paramType === 'Body') {
|
|
5025
|
+
//#region handle body params
|
|
4972
5026
|
if (currentParam.paramName) {
|
|
4973
5027
|
if (ClassHelpers__NS__getName(bodyObject) === 'FormData') {
|
|
5028
|
+
//#region prevent posting/putting not full body as FormData
|
|
4974
5029
|
throw new Error(`[taon - framework] Don use param names when posting / putting FormData.
|
|
4975
5030
|
Use this:
|
|
4976
5031
|
// ...
|
|
@@ -4982,45 +5037,52 @@ instead
|
|
|
4982
5037
|
(@Taon.Http.Param.Body('${currentParam.paramName}') formData: FormData) ...
|
|
4983
5038
|
// ...
|
|
4984
5039
|
`);
|
|
5040
|
+
//#endregion
|
|
4985
5041
|
}
|
|
4986
|
-
const mapping =
|
|
5042
|
+
const mapping = decodeMappingForHeaderJson(param, optionsDecodeHeader);
|
|
4987
5043
|
if (mapping) {
|
|
4988
|
-
|
|
5044
|
+
requestHeaders.set(`${Symbols__NS__old.MAPPING_CONFIG_HEADER_BODY_PARAMS}${currentParam.paramName} `, JSON.stringify(mapping));
|
|
4989
5045
|
}
|
|
4990
5046
|
bodyObject[currentParam.paramName] = param;
|
|
4991
5047
|
}
|
|
4992
5048
|
else {
|
|
4993
|
-
const mapping =
|
|
5049
|
+
const mapping = decodeMappingForHeaderJson(param, optionsDecodeHeader);
|
|
4994
5050
|
if (mapping) {
|
|
4995
|
-
|
|
5051
|
+
requestHeaders.set(Symbols__NS__old.MAPPING_CONFIG_HEADER_BODY_PARAMS, JSON.stringify(mapping));
|
|
4996
5052
|
}
|
|
4997
5053
|
bodyObject = param;
|
|
4998
5054
|
}
|
|
5055
|
+
//#endregion
|
|
4999
5056
|
}
|
|
5000
5057
|
});
|
|
5001
5058
|
if (typeof bodyObject === 'object' &&
|
|
5002
5059
|
ClassHelpers__NS__getName(bodyObject) !== 'FormData') {
|
|
5060
|
+
//#region handle circular objects in body params
|
|
5003
5061
|
let circuralFromItem = [];
|
|
5004
5062
|
bodyObject = JSON10.parse(JSON10.stringify(bodyObject, void 0, void 0, circs => {
|
|
5005
5063
|
circuralFromItem = circs;
|
|
5006
5064
|
}));
|
|
5007
|
-
|
|
5065
|
+
requestHeaders.set(Symbols__NS__old.CIRCURAL_OBJECTS_MAP_BODY, JSON10.stringify(circuralFromItem));
|
|
5066
|
+
//#endregion
|
|
5008
5067
|
}
|
|
5009
5068
|
if (typeof queryParams === 'object') {
|
|
5069
|
+
//#region handle circular objects in query params
|
|
5010
5070
|
let circuralFromQueryParams = [];
|
|
5011
5071
|
queryParams = JSON10.parse(JSON10.stringify(queryParams, void 0, void 0, circs => {
|
|
5012
5072
|
circuralFromQueryParams = circs;
|
|
5013
5073
|
}));
|
|
5014
|
-
|
|
5074
|
+
requestHeaders.set(Symbols__NS__old.CIRCURAL_OBJECTS_MAP_QUERY_PARAM, JSON10.stringify(circuralFromQueryParams));
|
|
5075
|
+
//#endregion
|
|
5015
5076
|
}
|
|
5016
5077
|
//#endregion
|
|
5017
5078
|
const httpResultObj = {
|
|
5018
5079
|
get received() {
|
|
5019
|
-
return rest
|
|
5080
|
+
return rest
|
|
5081
|
+
.model(pathPrams, { headers: requestHeaders })[method](bodyObject, [queryParams]);
|
|
5020
5082
|
},
|
|
5021
5083
|
request(axiosConfig) {
|
|
5022
5084
|
return rest
|
|
5023
|
-
.model(pathPrams)[method](bodyObject, [queryParams], axiosConfig);
|
|
5085
|
+
.model(pathPrams, { headers: requestHeaders })[method](bodyObject, [queryParams], axiosConfig);
|
|
5024
5086
|
},
|
|
5025
5087
|
};
|
|
5026
5088
|
return httpResultObj;
|
|
@@ -5460,10 +5522,6 @@ const singleTransform = (json) => {
|
|
|
5460
5522
|
};
|
|
5461
5523
|
//#endregion
|
|
5462
5524
|
class EntityProcess {
|
|
5463
|
-
//#region init
|
|
5464
|
-
static async init(result, response) {
|
|
5465
|
-
return await new EntityProcess(result, response).run();
|
|
5466
|
-
}
|
|
5467
5525
|
//#endregion
|
|
5468
5526
|
//#region constructor
|
|
5469
5527
|
constructor(
|
|
@@ -5537,11 +5595,15 @@ class EntityProcess {
|
|
|
5537
5595
|
].includes(className);
|
|
5538
5596
|
// console.log('doNothing', doNothing)
|
|
5539
5597
|
if (!doNothing) {
|
|
5540
|
-
|
|
5541
|
-
|
|
5542
|
-
|
|
5598
|
+
// TODO not needed ?
|
|
5599
|
+
// const cleaned = JSON10.cleaned(this.data, void 0, {
|
|
5600
|
+
// breadthWalk: true,
|
|
5601
|
+
// include,
|
|
5602
|
+
// });
|
|
5603
|
+
// decodeMappingForHeaderJson is handling nested objects ok
|
|
5604
|
+
this.entityMapping = decodeMappingForHeaderJson(this.data, {
|
|
5605
|
+
useFirstArrayItemClassNameForAllElements: !this.advancedManipulation,
|
|
5543
5606
|
});
|
|
5544
|
-
this.entityMapping = Mapping__NS__decode(cleaned, !this.advancedManipulation);
|
|
5545
5607
|
this.response.set(Symbols__NS__old.MAPPING_CONFIG_HEADER, JSON.stringify(this.entityMapping));
|
|
5546
5608
|
if (this.advancedManipulation) {
|
|
5547
5609
|
this.response.set(Symbols__NS__old.CIRCURAL_OBJECTS_MAP_BODY, JSON.stringify(this.circural));
|
|
@@ -5782,15 +5844,26 @@ function TaonEntity(options) {
|
|
|
5782
5844
|
return function (constructor) {
|
|
5783
5845
|
options = options || {};
|
|
5784
5846
|
options.uniqueKeyProp = options.uniqueKeyProp || 'id';
|
|
5847
|
+
if (!options.className) {
|
|
5848
|
+
const nameForClass = constructor?.name || 'AnyClass';
|
|
5849
|
+
throw `Please define 'classname' property inside decorator of class '${nameForClass}':
|
|
5850
|
+
|
|
5851
|
+
@TaonEntity({
|
|
5852
|
+
className: '${nameForClass}'
|
|
5853
|
+
})
|
|
5854
|
+
class ${constructor?.name} {
|
|
5855
|
+
//...
|
|
5856
|
+
|
|
5857
|
+
`;
|
|
5858
|
+
}
|
|
5785
5859
|
ClassHelpers__NS__setName(constructor, options?.className);
|
|
5786
|
-
|
|
5787
|
-
|
|
5788
|
-
Mapping__NS__DefaultModelWithMapping(void 0, {})(constructor);
|
|
5860
|
+
DefaultMapping(options?.defaultModelMapping)(constructor);
|
|
5861
|
+
DefaultModel(options.defaultModelMapping)(constructor);
|
|
5789
5862
|
Reflect.defineMetadata(Symbols__NS__metadata.options.entity, options, constructor);
|
|
5790
5863
|
Reflect.defineMetadata(Symbols__NS__metadata.className, options?.className || constructor.name, constructor);
|
|
5791
5864
|
/* */
|
|
5792
5865
|
/* */
|
|
5793
|
-
|
|
5866
|
+
CLASS__NS__setName(constructor, options?.className); // TODO QUICK_FIX for ng2-rest
|
|
5794
5867
|
};
|
|
5795
5868
|
}
|
|
5796
5869
|
class TaonEntityOptions extends DecoratorAbstractOpt {
|
|
@@ -7901,9 +7974,9 @@ function getFromlyConfigFor(target, options = {}) {
|
|
|
7901
7974
|
if (level === maxLevel) {
|
|
7902
7975
|
return [];
|
|
7903
7976
|
}
|
|
7904
|
-
const mapping =
|
|
7977
|
+
const mapping = decodeMappingForHeaderJson(target);
|
|
7905
7978
|
// console.log('mapping', mapping)
|
|
7906
|
-
const fieldNames =
|
|
7979
|
+
const fieldNames = Object.keys(mapping);
|
|
7907
7980
|
const checkExclude = ___NS__isArray(keysPathesToExclude) && keysPathesToExclude.length > 0;
|
|
7908
7981
|
const checkInclude = ___NS__isArray(keysPathesToInclude) && keysPathesToInclude.length > 0;
|
|
7909
7982
|
if (checkExclude && checkInclude) {
|
|
@@ -8068,7 +8141,7 @@ function getFromlyConfigFor(target, options = {}) {
|
|
|
8068
8141
|
fields.push(inputToPush(key, 'datepicker', parentModel));
|
|
8069
8142
|
}
|
|
8070
8143
|
else {
|
|
8071
|
-
const targetChild =
|
|
8144
|
+
const targetChild = CLASS__NS__getBy(className);
|
|
8072
8145
|
if (targetChild) {
|
|
8073
8146
|
const ftype = findTypeForEntity(targetChild, isArray);
|
|
8074
8147
|
if (ftype) {
|
|
@@ -8363,5 +8436,5 @@ const TAON_FLATTEN_MAPPING = {
|
|
|
8363
8436
|
* Generated bundle index. Do not edit.
|
|
8364
8437
|
*/
|
|
8365
8438
|
|
|
8366
|
-
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,
|
|
8439
|
+
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__ctxInClassOrClassObj, Symbols__NS__fullClassNameStaticProperty, Symbols__NS__metadata, Symbols__NS__old, 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 };
|
|
8367
8440
|
//# sourceMappingURL=taon-browser.mjs.map
|