taon 21.0.3 → 21.0.6
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.mjs +1953 -1238
- package/browser/fesm2022/taon.mjs.map +1 -1
- package/browser/package.json +1 -1
- package/browser/types/taon.d.ts +2152 -0
- package/lib/base-classes/base-abstract-entity.d.ts +1 -1
- package/lib/base-classes/base-abstract-entity.js +12 -12
- package/lib/base-classes/base-abstract-entity.js.map +1 -1
- package/lib/base-classes/base-angular-service.d.ts +1 -1
- package/lib/base-classes/base-angular-service.js +6 -3
- package/lib/base-classes/base-angular-service.js.map +1 -1
- package/lib/base-classes/base-context.d.ts +2 -2
- package/lib/base-classes/base-controller.js +7 -1
- package/lib/base-classes/base-controller.js.map +1 -1
- package/lib/base-classes/base-crud-controller.js +52 -12
- package/lib/base-classes/base-crud-controller.js.map +1 -1
- package/lib/base-classes/base-entity.js +2 -6
- package/lib/base-classes/base-entity.js.map +1 -1
- package/lib/base-classes/base-repository.d.ts +3 -3
- package/lib/base-classes/base-repository.js +15 -10
- package/lib/base-classes/base-repository.js.map +1 -1
- package/lib/base-classes/base.d.ts +1 -46
- package/lib/base-classes/base.js +17 -30
- package/lib/base-classes/base.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/context-db-migrations.d.ts +2 -1
- package/lib/create-context.d.ts +4 -4
- package/lib/decorators/classes/entity-decorator.js +1 -1
- package/lib/decorators/classes/entity-decorator.js.map +1 -1
- package/lib/decorators/http/http-decorators.d.ts +1 -19
- package/lib/decorators/http/http-decorators.js +20 -22
- package/lib/decorators/http/http-decorators.js.map +1 -1
- package/lib/endpoint-context.d.ts +3 -2
- package/lib/formly/{formly-group-wrapper-component.d.ts → formly-group-wrapper.component.d.ts} +1 -1
- package/lib/formly/{formly-repeat-component.d.ts → formly-repeat.component.d.ts} +1 -1
- package/lib/formly/fromly.js +24 -24
- package/lib/formly/fromly.js.map +1 -1
- package/lib/index.d.ts +146 -45
- package/lib/index.js +166 -55
- package/lib/index.js.map +1 -1
- package/lib/orm/columns.d.ts +28 -0
- package/lib/orm/columns.js +102 -0
- package/lib/orm/columns.js.map +1 -0
- package/lib/orm/index.d.ts +1 -0
- package/lib/orm/index.js +73 -0
- package/lib/orm/index.js.map +1 -0
- package/lib/realtime/realtime-core.d.ts +1 -1
- package/lib/realtime/realtime-strategy/realtime-strategy-socket-io.d.ts +1 -2
- package/lib/realtime/realtime-strategy/realtime-strategy-socket-io.js.map +1 -1
- package/lib/realtime/realtime-strategy/realtime-strategy.d.ts +1 -1
- package/lib/realtime/realtime-subs-manager.d.ts +1 -1
- package/lib/symbols.d.ts +31 -31
- package/lib/symbols.js +59 -59
- 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/package.json +1 -1
- package/websql/fesm2022/taon.mjs +1316 -648
- package/websql/fesm2022/taon.mjs.map +1 -1
- package/websql/package.json +1 -1
- package/websql/types/taon.d.ts +2161 -0
- package/browser/index.d.ts +0 -6
- package/browser/lib/base-classes/base-abstract-entity.d.ts +0 -8
- package/browser/lib/base-classes/base-angular-service.d.ts +0 -34
- package/browser/lib/base-classes/base-class.d.ts +0 -16
- package/browser/lib/base-classes/base-context.d.ts +0 -21
- package/browser/lib/base-classes/base-controller.d.ts +0 -83
- package/browser/lib/base-classes/base-crud-controller.d.ts +0 -29
- package/browser/lib/base-classes/base-custom-repository.d.ts +0 -4
- package/browser/lib/base-classes/base-entity.d.ts +0 -17
- package/browser/lib/base-classes/base-file-upload.middleware.d.ts +0 -15
- package/browser/lib/base-classes/base-injector.d.ts +0 -68
- package/browser/lib/base-classes/base-middleware.d.ts +0 -39
- package/browser/lib/base-classes/base-migration.d.ts +0 -12
- package/browser/lib/base-classes/base-provider.d.ts +0 -9
- package/browser/lib/base-classes/base-repository.d.ts +0 -267
- package/browser/lib/base-classes/base-subscriber-for-entity.d.ts +0 -82
- package/browser/lib/base-classes/base.d.ts +0 -47
- package/browser/lib/config/controller-config.d.ts +0 -22
- package/browser/lib/config/controller-options.d.ts +0 -17
- package/browser/lib/config/method-config.d.ts +0 -40
- package/browser/lib/config/param-config.d.ts +0 -9
- package/browser/lib/constants.d.ts +0 -10
- package/browser/lib/context-db-migrations.d.ts +0 -18
- package/browser/lib/create-context.d.ts +0 -79
- package/browser/lib/decorators/classes/controller-decorator.d.ts +0 -6
- package/browser/lib/decorators/classes/entity-decorator.d.ts +0 -20
- package/browser/lib/decorators/classes/middleware-decorator.d.ts +0 -8
- package/browser/lib/decorators/classes/migration-decorator.d.ts +0 -8
- package/browser/lib/decorators/classes/provider-decorator.d.ts +0 -8
- package/browser/lib/decorators/classes/repository-decorator.d.ts +0 -8
- package/browser/lib/decorators/classes/subscriber-decorator.d.ts +0 -9
- package/browser/lib/decorators/decorator-abstract-opt.d.ts +0 -4
- package/browser/lib/decorators/http/http-decorators.d.ts +0 -21
- package/browser/lib/decorators/http/http-methods-decorators.d.ts +0 -71
- package/browser/lib/decorators/http/http-params-decorators.d.ts +0 -9
- package/browser/lib/dependency-injection/di-container.d.ts +0 -6
- package/browser/lib/endpoint-context-storage.d.ts +0 -12
- package/browser/lib/endpoint-context.d.ts +0 -198
- package/browser/lib/entity-process.d.ts +0 -40
- package/browser/lib/get-response-value.d.ts +0 -7
- package/browser/lib/helpers/class-helpers.d.ts +0 -25
- package/browser/lib/helpers/clone-obj.d.ts +0 -2
- package/browser/lib/helpers/taon-helpers.d.ts +0 -19
- package/browser/lib/index.d.ts +0 -129
- package/browser/lib/inject.d.ts +0 -5
- package/browser/lib/models.d.ts +0 -257
- package/browser/lib/orm.d.ts +0 -3
- package/browser/lib/realtime/realtime-client.d.ts +0 -42
- package/browser/lib/realtime/realtime-core.d.ts +0 -41
- package/browser/lib/realtime/realtime-server.d.ts +0 -44
- package/browser/lib/realtime/realtime-strategy/index.d.ts +0 -5
- package/browser/lib/realtime/realtime-strategy/realtime-strategy-ipc.d.ts +0 -82
- package/browser/lib/realtime/realtime-strategy/realtime-strategy-mock.d.ts +0 -15
- package/browser/lib/realtime/realtime-strategy/realtime-strategy-socket-io.d.ts +0 -16
- package/browser/lib/realtime/realtime-strategy/realtime-strategy.d.ts +0 -12
- package/browser/lib/realtime/realtime-subs-manager.d.ts +0 -15
- package/browser/lib/realtime/realtime.models.d.ts +0 -28
- package/browser/lib/symbols.d.ts +0 -66
- package/browser/lib/ui/index.d.ts +0 -2
- package/browser/lib/ui/taon-admin-mode-configuration/index.d.ts +0 -2
- package/browser/lib/ui/taon-admin-mode-configuration/taon-admin.service.d.ts +0 -22
- package/browser/lib/validators.d.ts +0 -8
- package/browser/public-api.d.ts +0 -2
- package/lib/decorators/classes/controller-config.d.ts +0 -20
- package/lib/decorators/classes/controller-config.js +0 -21
- package/lib/decorators/classes/controller-config.js.map +0 -1
- package/lib/decorators/classes/controller-options.d.ts +0 -16
- package/lib/decorators/classes/controller-options.js +0 -20
- package/lib/decorators/classes/controller-options.js.map +0 -1
- package/lib/formly/formly-group-wrapper-component.js +0 -51
- package/lib/formly/formly-group-wrapper-component.js.map +0 -1
- package/lib/formly/formly-repeat-component.js +0 -95
- package/lib/formly/formly-repeat-component.js.map +0 -1
- package/lib/orm.d.ts +0 -68
- package/lib/orm.js +0 -112
- package/lib/orm.js.map +0 -1
- package/websql/index.d.ts +0 -6
- package/websql/lib/base-classes/base-abstract-entity.d.ts +0 -8
- package/websql/lib/base-classes/base-angular-service.d.ts +0 -34
- package/websql/lib/base-classes/base-class.d.ts +0 -16
- package/websql/lib/base-classes/base-context.d.ts +0 -21
- package/websql/lib/base-classes/base-controller.d.ts +0 -83
- package/websql/lib/base-classes/base-crud-controller.d.ts +0 -29
- package/websql/lib/base-classes/base-custom-repository.d.ts +0 -4
- package/websql/lib/base-classes/base-entity.d.ts +0 -17
- package/websql/lib/base-classes/base-file-upload.middleware.d.ts +0 -15
- package/websql/lib/base-classes/base-injector.d.ts +0 -68
- package/websql/lib/base-classes/base-middleware.d.ts +0 -39
- package/websql/lib/base-classes/base-migration.d.ts +0 -12
- package/websql/lib/base-classes/base-provider.d.ts +0 -9
- package/websql/lib/base-classes/base-repository.d.ts +0 -272
- package/websql/lib/base-classes/base-subscriber-for-entity.d.ts +0 -82
- package/websql/lib/base-classes/base.d.ts +0 -47
- package/websql/lib/config/controller-config.d.ts +0 -22
- package/websql/lib/config/controller-options.d.ts +0 -17
- package/websql/lib/config/method-config.d.ts +0 -40
- package/websql/lib/config/param-config.d.ts +0 -9
- package/websql/lib/constants.d.ts +0 -10
- package/websql/lib/context-db-migrations.d.ts +0 -18
- package/websql/lib/create-context.d.ts +0 -79
- package/websql/lib/decorators/classes/controller-decorator.d.ts +0 -6
- package/websql/lib/decorators/classes/entity-decorator.d.ts +0 -20
- package/websql/lib/decorators/classes/middleware-decorator.d.ts +0 -8
- package/websql/lib/decorators/classes/migration-decorator.d.ts +0 -8
- package/websql/lib/decorators/classes/provider-decorator.d.ts +0 -8
- package/websql/lib/decorators/classes/repository-decorator.d.ts +0 -8
- package/websql/lib/decorators/classes/subscriber-decorator.d.ts +0 -9
- package/websql/lib/decorators/decorator-abstract-opt.d.ts +0 -4
- package/websql/lib/decorators/http/http-decorators.d.ts +0 -21
- package/websql/lib/decorators/http/http-methods-decorators.d.ts +0 -71
- package/websql/lib/decorators/http/http-params-decorators.d.ts +0 -9
- package/websql/lib/dependency-injection/di-container.d.ts +0 -6
- package/websql/lib/endpoint-context-storage.d.ts +0 -12
- package/websql/lib/endpoint-context.d.ts +0 -200
- package/websql/lib/entity-process.d.ts +0 -40
- package/websql/lib/get-response-value.d.ts +0 -7
- package/websql/lib/helpers/class-helpers.d.ts +0 -25
- package/websql/lib/helpers/clone-obj.d.ts +0 -2
- package/websql/lib/helpers/taon-helpers.d.ts +0 -19
- package/websql/lib/index.d.ts +0 -129
- package/websql/lib/inject.d.ts +0 -5
- package/websql/lib/models.d.ts +0 -261
- package/websql/lib/orm.d.ts +0 -69
- package/websql/lib/realtime/realtime-client.d.ts +0 -42
- package/websql/lib/realtime/realtime-core.d.ts +0 -41
- package/websql/lib/realtime/realtime-server.d.ts +0 -44
- package/websql/lib/realtime/realtime-strategy/index.d.ts +0 -5
- package/websql/lib/realtime/realtime-strategy/realtime-strategy-ipc.d.ts +0 -82
- package/websql/lib/realtime/realtime-strategy/realtime-strategy-mock.d.ts +0 -15
- package/websql/lib/realtime/realtime-strategy/realtime-strategy-socket-io.d.ts +0 -16
- package/websql/lib/realtime/realtime-strategy/realtime-strategy.d.ts +0 -12
- package/websql/lib/realtime/realtime-subs-manager.d.ts +0 -15
- package/websql/lib/realtime/realtime.models.d.ts +0 -28
- package/websql/lib/symbols.d.ts +0 -66
- package/websql/lib/ui/index.d.ts +0 -2
- package/websql/lib/ui/taon-admin-mode-configuration/index.d.ts +0 -2
- package/websql/lib/ui/taon-admin-mode-configuration/taon-admin.service.d.ts +0 -22
- package/websql/lib/validators.d.ts +0 -8
- package/websql/public-api.d.ts +0 -2
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
// @ts-nocheck
|
|
2
|
-
import type { EndpointContext } from './endpoint-context';
|
|
3
|
-
import { Table } from 'taon-typeorm/websql';
|
|
4
|
-
export type MigrationStatus = 'completed' | 'pending';
|
|
5
|
-
export declare class ContextDbMigrations {
|
|
6
|
-
private ctx;
|
|
7
|
-
readonly DEFAULT_MIGRATION_TABLE_NAME = "TAON_MIGRATION_META";
|
|
8
|
-
readonly MIGRATION_STATUS_COMPLETED: MigrationStatus;
|
|
9
|
-
readonly MIGRATION_STATUS_PENDING: MigrationStatus;
|
|
10
|
-
readonly table: Table;
|
|
11
|
-
constructor(ctx: EndpointContext);
|
|
12
|
-
ensureMigrationTableExists(): Promise<void>;
|
|
13
|
-
private logSelectALl;
|
|
14
|
-
revertMigrationToTimestamp(timestamp: number): Promise<void>;
|
|
15
|
-
clearMigrationTable(): Promise<void>;
|
|
16
|
-
markAllMigrationsAsApplied(): Promise<void>;
|
|
17
|
-
runAllNotCompletedMigrations(): Promise<void>;
|
|
18
|
-
}
|
|
@@ -1,79 +0,0 @@
|
|
|
1
|
-
// @ts-nocheck
|
|
2
|
-
import { EndpointContext } from './endpoint-context';
|
|
3
|
-
import { Models } from './models';
|
|
4
|
-
/**
|
|
5
|
-
* @returns function that returns context function.
|
|
6
|
-
* Context function can be used to dynamically
|
|
7
|
-
* create context with specific configuration.
|
|
8
|
-
*/
|
|
9
|
-
export 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.ContextOptions<CTX, CTRL, ENTITY, REPO, PROVIDER, SUBSCRIBER, MIGRATION, MIDDLEWARE>) => () => {
|
|
10
|
-
readonly contextName: string;
|
|
11
|
-
readonly appId: string;
|
|
12
|
-
cloneAsRemote: (cloneOpt?: {
|
|
13
|
-
overrideRemoteHost?: string;
|
|
14
|
-
}) => /*elided*/ any;
|
|
15
|
-
cloneAsNormal: (cloneOpt?: {
|
|
16
|
-
overrideHost?: string;
|
|
17
|
-
}) => /*elided*/ any;
|
|
18
|
-
/**
|
|
19
|
-
* @deprecated
|
|
20
|
-
* - get reference to internal context
|
|
21
|
-
*/
|
|
22
|
-
__ref(): Promise<EndpointContext>;
|
|
23
|
-
/**
|
|
24
|
-
* only for internal use
|
|
25
|
-
* @deprecated
|
|
26
|
-
*/
|
|
27
|
-
readonly __refSync: EndpointContext;
|
|
28
|
-
getClassInstance<T>(ctor: new (...args: any[]) => T): T;
|
|
29
|
-
getClass<T>(ctor: new (...args: any[]) => T): new (...args: any[]) => T;
|
|
30
|
-
/**
|
|
31
|
-
* - create controller instances for context
|
|
32
|
-
* - init database (if enable) + migation scripts
|
|
33
|
-
*/
|
|
34
|
-
initialize: (overrideOptions?: Models.TaonInitializeParams) => Promise<EndpointContext>;
|
|
35
|
-
/**
|
|
36
|
-
* realtime communication with server
|
|
37
|
-
* TCP(upgrade) socket.io (or ipc) based.
|
|
38
|
-
*/
|
|
39
|
-
readonly realtime: {
|
|
40
|
-
readonly client: import("./realtime/realtime-client").RealtimeClient;
|
|
41
|
-
readonly server: import("./realtime/realtime-server").RealtimeServer;
|
|
42
|
-
};
|
|
43
|
-
};
|
|
44
|
-
export 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.ContextOptions<CTX, CTRL, ENTITY, REPO, PROVIDER, SUBSCRIBER, MIGRATION, MIDDLEWARES>) => {
|
|
45
|
-
readonly contextName: string;
|
|
46
|
-
readonly appId: string;
|
|
47
|
-
cloneAsRemote: (cloneOpt?: {
|
|
48
|
-
overrideRemoteHost?: string;
|
|
49
|
-
}) => /*elided*/ any;
|
|
50
|
-
cloneAsNormal: (cloneOpt?: {
|
|
51
|
-
overrideHost?: string;
|
|
52
|
-
}) => /*elided*/ any;
|
|
53
|
-
/**
|
|
54
|
-
* @deprecated
|
|
55
|
-
* - get reference to internal context
|
|
56
|
-
*/
|
|
57
|
-
__ref(): Promise<EndpointContext>;
|
|
58
|
-
/**
|
|
59
|
-
* only for internal use
|
|
60
|
-
* @deprecated
|
|
61
|
-
*/
|
|
62
|
-
readonly __refSync: EndpointContext;
|
|
63
|
-
getClassInstance<T>(ctor: new (...args: any[]) => T): T;
|
|
64
|
-
getClass<T>(ctor: new (...args: any[]) => T): new (...args: any[]) => T;
|
|
65
|
-
/**
|
|
66
|
-
* - create controller instances for context
|
|
67
|
-
* - init database (if enable) + migation scripts
|
|
68
|
-
*/
|
|
69
|
-
initialize: (overrideOptions?: Models.TaonInitializeParams) => Promise<EndpointContext>;
|
|
70
|
-
/**
|
|
71
|
-
* realtime communication with server
|
|
72
|
-
* TCP(upgrade) socket.io (or ipc) based.
|
|
73
|
-
*/
|
|
74
|
-
readonly realtime: {
|
|
75
|
-
readonly client: import("./realtime/realtime-client").RealtimeClient;
|
|
76
|
-
readonly server: import("./realtime/realtime-server").RealtimeServer;
|
|
77
|
-
};
|
|
78
|
-
};
|
|
79
|
-
export type TaonContext = ReturnType<typeof createContext>;
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
// @ts-nocheck
|
|
2
|
-
import type { TaonControllerOptions } from '../../config/controller-options';
|
|
3
|
-
/**
|
|
4
|
-
* Controller decorator
|
|
5
|
-
*/
|
|
6
|
-
export declare function TaonController<ControllerClass = any>(options?: TaonControllerOptions<ControllerClass>): (constructor: Function) => void;
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
// @ts-nocheck
|
|
2
|
-
import { Mapping } from 'ng2-rest/websql';
|
|
3
|
-
import { DecoratorAbstractOpt } from '../decorator-abstract-opt';
|
|
4
|
-
/**
|
|
5
|
-
* Entity decorator
|
|
6
|
-
*/
|
|
7
|
-
export declare function TaonEntity<T = any>(options?: TaonEntityOptions<T>): (constructor: Function) => void;
|
|
8
|
-
export declare class TaonEntityOptions<T = any> extends DecoratorAbstractOpt {
|
|
9
|
-
/**
|
|
10
|
-
* default unique property is "id"
|
|
11
|
-
* for your entity it may be something else
|
|
12
|
-
*/
|
|
13
|
-
uniqueKeyProp?: string;
|
|
14
|
-
createTable?: boolean;
|
|
15
|
-
defaultModelValues?: Mapping.ModelValue<T>;
|
|
16
|
-
defaultModelMapping?: Mapping.Mapping<T>;
|
|
17
|
-
defaultModelMappingDeep?: {
|
|
18
|
-
[lodashPathes: string]: string | [string];
|
|
19
|
-
};
|
|
20
|
-
}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
// @ts-nocheck
|
|
2
|
-
import { DecoratorAbstractOpt } from '../decorator-abstract-opt';
|
|
3
|
-
/**
|
|
4
|
-
* Provider decorator
|
|
5
|
-
*/
|
|
6
|
-
export declare function TaonMiddleware<T = any>(options?: TaonMiddlewareOptions<T>): (constructor: Function) => void;
|
|
7
|
-
export declare class TaonMiddlewareOptions<T = any> extends DecoratorAbstractOpt {
|
|
8
|
-
}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
// @ts-nocheck
|
|
2
|
-
import { DecoratorAbstractOpt } from '../decorator-abstract-opt';
|
|
3
|
-
/**
|
|
4
|
-
* Migration decorator
|
|
5
|
-
*/
|
|
6
|
-
export declare function TaonMigration(options: TaonMigrationOptions): any;
|
|
7
|
-
export declare class TaonMigrationOptions<T = any> extends DecoratorAbstractOpt {
|
|
8
|
-
}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
// @ts-nocheck
|
|
2
|
-
import { DecoratorAbstractOpt } from '../decorator-abstract-opt';
|
|
3
|
-
/**
|
|
4
|
-
* Provider decorator
|
|
5
|
-
*/
|
|
6
|
-
export declare function TaonProvider<T = any>(options?: TaonProviderOptions<T>): (constructor: Function) => void;
|
|
7
|
-
export declare class TaonProviderOptions<T = any> extends DecoratorAbstractOpt {
|
|
8
|
-
}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
// @ts-nocheck
|
|
2
|
-
import { DecoratorAbstractOpt } from '../decorator-abstract-opt';
|
|
3
|
-
/**
|
|
4
|
-
* Repository decorator
|
|
5
|
-
*/
|
|
6
|
-
export declare function TaonRepository(options: TaonRepositoryOptions): (constructor: Function) => void;
|
|
7
|
-
export declare class TaonRepositoryOptions<T = any> extends DecoratorAbstractOpt {
|
|
8
|
-
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
// @ts-nocheck
|
|
2
|
-
import { DecoratorAbstractOpt } from '../decorator-abstract-opt';
|
|
3
|
-
/**
|
|
4
|
-
* Subscriber decorator
|
|
5
|
-
*/
|
|
6
|
-
export declare function TaonSubscriber(options: TaonSubscriberOptions): any;
|
|
7
|
-
export declare class TaonSubscriberOptions<T = any> extends DecoratorAbstractOpt {
|
|
8
|
-
allowedEvents?: (keyof T)[];
|
|
9
|
-
}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
// @ts-nocheck
|
|
2
|
-
import { Models } from 'ng2-rest/websql';
|
|
3
|
-
import * as methods from './http-methods-decorators';
|
|
4
|
-
import * as params from './http-params-decorators';
|
|
5
|
-
export declare namespace Http {
|
|
6
|
-
export import GET = methods.GET;
|
|
7
|
-
export import POST = methods.POST;
|
|
8
|
-
export import PUT = methods.PUT;
|
|
9
|
-
export import DELETE = methods.DELETE;
|
|
10
|
-
export import PATCH = methods.PATCH;
|
|
11
|
-
export import HEAD = methods.HEAD;
|
|
12
|
-
export import HTML = methods.HTML;
|
|
13
|
-
export import Response = Models.HttpResponse;
|
|
14
|
-
namespace Param {
|
|
15
|
-
export import Query = params.Query;
|
|
16
|
-
export import Path = params.Path;
|
|
17
|
-
export import Body = params.Body;
|
|
18
|
-
export import Cookie = params.Cookie;
|
|
19
|
-
export import Header = params.Header;
|
|
20
|
-
}
|
|
21
|
-
}
|
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
// @ts-nocheck
|
|
2
|
-
import { Models as ModelsNg2Rest } from 'ng2-rest/websql';
|
|
3
|
-
import { CoreModels } from 'tnp-core/websql';
|
|
4
|
-
import { TaonBaseMiddleware } from '../../base-classes/base-middleware';
|
|
5
|
-
export type TaonMiddlewareInheritanceObj = {
|
|
6
|
-
[parentMiddlewaresName: string]: typeof TaonBaseMiddleware;
|
|
7
|
-
};
|
|
8
|
-
export type TaonMiddlewareFunction = (options: {
|
|
9
|
-
/**
|
|
10
|
-
* middlewares inherited from parent class
|
|
11
|
-
*/
|
|
12
|
-
parentMiddlewares: TaonMiddlewareInheritanceObj;
|
|
13
|
-
/**
|
|
14
|
-
* Get real class name - needed when code is minified
|
|
15
|
-
*/
|
|
16
|
-
className: (middlewareClass: Function) => string;
|
|
17
|
-
}) => TaonMiddlewareInheritanceObj;
|
|
18
|
-
export interface TaonHttpDecoratorOptions {
|
|
19
|
-
/**
|
|
20
|
-
* @deprecated don't use in production - keep stuff encapsulated
|
|
21
|
-
* normally path is generated from method name and its params
|
|
22
|
-
*/
|
|
23
|
-
path?: string;
|
|
24
|
-
/**
|
|
25
|
-
* If true, the path will be global
|
|
26
|
-
*
|
|
27
|
-
* ! BE CAREFUL ! global path IS NOT GLOBAL inside dockerized app
|
|
28
|
-
* (/api/contextName is automatically added to global path in docker)
|
|
29
|
-
*
|
|
30
|
-
* @deprecated don't use in production - keep stuff encapsulated
|
|
31
|
-
*/
|
|
32
|
-
pathIsGlobal?: boolean;
|
|
33
|
-
overrideContentType?: CoreModels.ContentType;
|
|
34
|
-
overrideResponseType?: ModelsNg2Rest.ResponseTypeAxios;
|
|
35
|
-
/**
|
|
36
|
-
* Express will send response as HTML string with proper headers
|
|
37
|
-
*/
|
|
38
|
-
overrideExpressSendAsHtml?: boolean;
|
|
39
|
-
middlewares?: TaonMiddlewareFunction;
|
|
40
|
-
}
|
|
41
|
-
export declare function GET(pathOrOptions?: string | TaonHttpDecoratorOptions, pathIsGlobal?: boolean): (target: any, propertyKey: string, descriptor: PropertyDescriptor) => void;
|
|
42
|
-
/**
|
|
43
|
-
* Method for sending html website from text
|
|
44
|
-
* Example
|
|
45
|
-
*
|
|
46
|
-
* ```ts
|
|
47
|
-
* ...
|
|
48
|
-
* // in your taon controller
|
|
49
|
-
* ..Taon.Http.HTML()
|
|
50
|
-
* sendHtmlDummyWebsite(): Taon.ResponseHtml {
|
|
51
|
-
* return `
|
|
52
|
-
<html>
|
|
53
|
-
<head>
|
|
54
|
-
<title>Dummy website</title>
|
|
55
|
-
</head>
|
|
56
|
-
<body>
|
|
57
|
-
<h1>This is dummy website</h1>
|
|
58
|
-
<p>Served as HTML string from Taon controller method</p>
|
|
59
|
-
</body>
|
|
60
|
-
</html>
|
|
61
|
-
* `; *
|
|
62
|
-
* }
|
|
63
|
-
* ...
|
|
64
|
-
* ```
|
|
65
|
-
*/
|
|
66
|
-
export declare function HTML(pathOrOptions?: Pick<TaonHttpDecoratorOptions, 'path' | 'pathIsGlobal'>): (target: any, propertyKey: string, descriptor: PropertyDescriptor) => void;
|
|
67
|
-
export declare function HEAD(pathOrOptions?: string | TaonHttpDecoratorOptions, pathIsGlobal?: boolean): (target: any, propertyKey: string, descriptor: PropertyDescriptor) => void;
|
|
68
|
-
export declare function POST(pathOrOptions?: string | TaonHttpDecoratorOptions, pathIsGlobal?: boolean): (target: any, propertyKey: string, descriptor: PropertyDescriptor) => void;
|
|
69
|
-
export declare function PUT(pathOrOptions?: string | TaonHttpDecoratorOptions, pathIsGlobal?: boolean): (target: any, propertyKey: string, descriptor: PropertyDescriptor) => void;
|
|
70
|
-
export declare function PATCH(pathOrOptions?: string | TaonHttpDecoratorOptions, pathIsGlobal?: boolean): (target: any, propertyKey: string, descriptor: PropertyDescriptor) => void;
|
|
71
|
-
export declare function DELETE(pathOrOptions?: string | TaonHttpDecoratorOptions, pathIsGlobal?: boolean): (target: any, propertyKey: string, descriptor: PropertyDescriptor) => void;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
// @ts-nocheck
|
|
2
|
-
/**
|
|
3
|
-
* @deprecated use Taon.Http.Param.Path (is more safe and cleaner)
|
|
4
|
-
*/
|
|
5
|
-
export declare function Path(name: string): (target: any, propertyKey: string | symbol, parameterIndex: number) => void;
|
|
6
|
-
export declare function Query(name?: string): (target: any, propertyKey: string | symbol, parameterIndex: number) => void;
|
|
7
|
-
export declare function Cookie(name: string, expireInSecond?: number): (target: any, propertyKey: string | symbol, parameterIndex: number) => void;
|
|
8
|
-
export declare function Header(name?: string): (target: any, propertyKey: string | symbol, parameterIndex: number) => void;
|
|
9
|
-
export declare function Body(name?: string): (target: any, propertyKey: string | symbol, parameterIndex: number) => void;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
// @ts-nocheck
|
|
2
|
-
import type { EndpointContext } from './endpoint-context';
|
|
3
|
-
export declare class ContextsEndpointStorage {
|
|
4
|
-
SPECIAL_APP_READY_MESSAGE: string;
|
|
5
|
-
private taonEndpointContexts;
|
|
6
|
-
private static instance;
|
|
7
|
-
private constructor();
|
|
8
|
-
static get Instance(): ContextsEndpointStorage;
|
|
9
|
-
set(context: EndpointContext): void;
|
|
10
|
-
get arr(): EndpointContext[];
|
|
11
|
-
getBy(context: Partial<EndpointContext> | string): EndpointContext | undefined;
|
|
12
|
-
}
|
|
@@ -1,200 +0,0 @@
|
|
|
1
|
-
// @ts-nocheck
|
|
2
|
-
import type { Server } from 'http';
|
|
3
|
-
import type { NgZone } from '@angular/core';
|
|
4
|
-
import * as express from 'express';
|
|
5
|
-
import type { Application } from 'express';
|
|
6
|
-
import type { Repository } from 'taon-typeorm/websql';
|
|
7
|
-
import { DataSource } from 'taon-typeorm/websql';
|
|
8
|
-
import type { TaonBaseInjector } from './base-classes/base-injector';
|
|
9
|
-
import { ContextDbMigrations } from './context-db-migrations';
|
|
10
|
-
import type { ContextsEndpointStorage } from './endpoint-context-storage';
|
|
11
|
-
import { Models } from './models';
|
|
12
|
-
export declare class EndpointContext {
|
|
13
|
-
private originalConfig;
|
|
14
|
-
private configFn;
|
|
15
|
-
/**
|
|
16
|
-
* (@default: false)
|
|
17
|
-
* If TRUE context is NOT going to create db/express server/http endpoints
|
|
18
|
-
* PURPOSE OF THIS PROPERTY
|
|
19
|
-
* -> ONLY remote access from backend or frontend to specific backend
|
|
20
|
-
*/
|
|
21
|
-
private readonly cloneOptions;
|
|
22
|
-
private static ngZone;
|
|
23
|
-
static initNgZone(ngZone: NgZone): void;
|
|
24
|
-
/**
|
|
25
|
-
* JUST FOR TESTING PURPOSES
|
|
26
|
-
*/
|
|
27
|
-
readonly USE_MARIADB_MYSQL_IN_DOCKER: boolean;
|
|
28
|
-
disabledRealtime: boolean;
|
|
29
|
-
/**
|
|
30
|
-
* check whether context is inited
|
|
31
|
-
* (with init() function )
|
|
32
|
-
*/
|
|
33
|
-
inited: boolean;
|
|
34
|
-
readonly dbMigrations: ContextDbMigrations;
|
|
35
|
-
private readonly localInstaceObjSymbol;
|
|
36
|
-
/**
|
|
37
|
-
* all instances of classes from context
|
|
38
|
-
* key is class name
|
|
39
|
-
*/
|
|
40
|
-
readonly allClassesInstances: {};
|
|
41
|
-
private readonly classInstancesByNameObj;
|
|
42
|
-
private readonly objWithClassesInstancesArr;
|
|
43
|
-
readonly activeRoutes: {
|
|
44
|
-
expressPath: string;
|
|
45
|
-
method: Models.Http.Rest.HttpMethod;
|
|
46
|
-
}[];
|
|
47
|
-
repos: Map<string, Repository<any>>;
|
|
48
|
-
get sourceContext(): EndpointContext | undefined;
|
|
49
|
-
readonly skipWritingServerRoutes: boolean;
|
|
50
|
-
private injectableTypesfromContexts;
|
|
51
|
-
private allTypesfromContexts;
|
|
52
|
-
expressApp: Application;
|
|
53
|
-
serverTcpUdp: Server;
|
|
54
|
-
databaseConfig?: Models.DatabaseConfigTypeOrm;
|
|
55
|
-
mode: Models.FrameworkMode;
|
|
56
|
-
readonly onlyMigrationRun?: boolean;
|
|
57
|
-
readonly onlyMigrationRevertToTimestamp?: number;
|
|
58
|
-
get isRunOrRevertOnlyMigrationAppStart(): boolean;
|
|
59
|
-
session?: Models.ISession;
|
|
60
|
-
connection: DataSource;
|
|
61
|
-
private entitiesTriggers;
|
|
62
|
-
private realtime;
|
|
63
|
-
get realtimeClient(): import("./realtime/realtime-client").RealtimeClient;
|
|
64
|
-
get realtimeServer(): import("./realtime/realtime-server").RealtimeServer;
|
|
65
|
-
/**
|
|
66
|
-
* available after init()
|
|
67
|
-
*/
|
|
68
|
-
config: Models.ContextOptions<any, any, any, any, any, any, any, any>;
|
|
69
|
-
get logHttp(): boolean;
|
|
70
|
-
get logRealtime(): boolean;
|
|
71
|
-
get logFramework(): boolean;
|
|
72
|
-
get logRoutes(): boolean;
|
|
73
|
-
get logDb(): boolean;
|
|
74
|
-
get logMigrations(): boolean;
|
|
75
|
-
/**
|
|
76
|
-
* Inside docker there is not need for https secure server
|
|
77
|
-
*/
|
|
78
|
-
readonly isRunningInsideDocker: boolean;
|
|
79
|
-
constructor(originalConfig: Models.ContextOptions<any, any, any, any, any, any, any, any>, configFn: (env: any) => Models.ContextOptions<any, any, any, any, any, any, any, any>,
|
|
80
|
-
/**
|
|
81
|
-
* (@default: false)
|
|
82
|
-
* If TRUE context is NOT going to create db/express server/http endpoints
|
|
83
|
-
* PURPOSE OF THIS PROPERTY
|
|
84
|
-
* -> ONLY remote access from backend or frontend to specific backend
|
|
85
|
-
*/
|
|
86
|
-
cloneOptions: Models.TaonCtxCloneParams);
|
|
87
|
-
init(options?: {
|
|
88
|
-
initFromRecrusiveContextResovle?: boolean;
|
|
89
|
-
onlyMigrationRun?: boolean;
|
|
90
|
-
onlyMigrationRevertToTimestamp?: number;
|
|
91
|
-
}): Promise<void>;
|
|
92
|
-
private getAutoGeneratedConfig;
|
|
93
|
-
get ngZone(): any;
|
|
94
|
-
startServer(): Promise<void>;
|
|
95
|
-
displayRoutes(app: any): void;
|
|
96
|
-
get modeAllowsDatabaseCreation(): boolean;
|
|
97
|
-
private cloneClassWithNewMetadata;
|
|
98
|
-
private cloneClassesObjWithNewMetadata;
|
|
99
|
-
private getRecrusiveClassesfromContextsObj;
|
|
100
|
-
private getRecrusiveClassesfromContexts;
|
|
101
|
-
getClassInstanceObjBy(classType: Models.ClassType): any;
|
|
102
|
-
private getClassesInstancesArrBy;
|
|
103
|
-
inject<T>(ctor: new (...args: any[]) => T, options: {
|
|
104
|
-
localInstance?: boolean;
|
|
105
|
-
contextClassInstance?: TaonBaseInjector;
|
|
106
|
-
locaInstanceConstructorArgs?: ConstructorParameters<typeof ctor>;
|
|
107
|
-
parentInstanceThatWillGetInjectedStuff: object;
|
|
108
|
-
}): T;
|
|
109
|
-
/**
|
|
110
|
-
* alias for inject
|
|
111
|
-
*/
|
|
112
|
-
getInstanceBy<T>(ctor: new (...args: any[]) => T): T;
|
|
113
|
-
checkIfContextInitialized(): void;
|
|
114
|
-
getClassFunBy(classType: Models.ClassType): any;
|
|
115
|
-
isCLassType(classType: Models.ClassType, classFn: Function): boolean;
|
|
116
|
-
/**
|
|
117
|
-
* Only for injectable types
|
|
118
|
-
* Only for classType: CONTROLLER, REPOSITORY, PROVIDER, MIDDLEWARES
|
|
119
|
-
*/
|
|
120
|
-
getClassFunByClassName(className: string): Function;
|
|
121
|
-
getClassFunByClass(classFunction: Function): Function;
|
|
122
|
-
getClassFunByArr(classType: Models.ClassType): Function[];
|
|
123
|
-
private createInstances;
|
|
124
|
-
initClasses(): Promise<void>;
|
|
125
|
-
isActiveOn(classInstance: object): boolean;
|
|
126
|
-
get frontendHostUri(): URL;
|
|
127
|
-
get uri(): URL | undefined;
|
|
128
|
-
get uriProtocol(): string | undefined;
|
|
129
|
-
/**
|
|
130
|
-
* Examples
|
|
131
|
-
* http://localhost:3000
|
|
132
|
-
* https://localhost (from localhost:80) *
|
|
133
|
-
*/
|
|
134
|
-
get uriOrigin(): string | undefined;
|
|
135
|
-
/**
|
|
136
|
-
* Exampels
|
|
137
|
-
* http://localhost:3000/path/to/somewhere
|
|
138
|
-
* https://localhost/path/to/somewhere (from localhost:80)
|
|
139
|
-
*/
|
|
140
|
-
get uriPathname(): string | undefined;
|
|
141
|
-
/**
|
|
142
|
-
* Examples
|
|
143
|
-
* http://localhost:3000/path/to/somewhere -> '/path/to/somewhere'
|
|
144
|
-
* http://localhost:3000 -> '' #
|
|
145
|
-
* https://localhost/path/to/ -> '/path/to/somewhere' # remove last slash
|
|
146
|
-
*/
|
|
147
|
-
get uriPathnameOrNothingIfRoot(): string;
|
|
148
|
-
get uriPort(): string | undefined;
|
|
149
|
-
/**
|
|
150
|
-
* Port from uri as number
|
|
151
|
-
* @returns {Number | undefined}
|
|
152
|
-
*/
|
|
153
|
-
get port(): Number | undefined;
|
|
154
|
-
get isHttpServer(): boolean;
|
|
155
|
-
/**
|
|
156
|
-
* Check if context is for remote only
|
|
157
|
-
*/
|
|
158
|
-
get isRemoteHost(): boolean;
|
|
159
|
-
/**
|
|
160
|
-
* ipc/udp needs this
|
|
161
|
-
*/
|
|
162
|
-
get contextName(): string;
|
|
163
|
-
/**
|
|
164
|
-
* ipc/udp needs this
|
|
165
|
-
*/
|
|
166
|
-
get contextNameForCommunication(): string;
|
|
167
|
-
/**
|
|
168
|
-
* Check context type
|
|
169
|
-
*/
|
|
170
|
-
get contextType(): 'normal' | 'remote' | 'abstract' | 'invalid';
|
|
171
|
-
get cwd(): string;
|
|
172
|
-
get activeContext(): string | null;
|
|
173
|
-
get appId(): string;
|
|
174
|
-
get publicAssets(): {
|
|
175
|
-
serverPath: string;
|
|
176
|
-
locationOnDisk: string;
|
|
177
|
-
}[];
|
|
178
|
-
get isProductionMode(): boolean;
|
|
179
|
-
get host(): string | undefined;
|
|
180
|
-
get origin(): string | undefined;
|
|
181
|
-
initSubscribers(): Promise<void>;
|
|
182
|
-
initEntities(): Promise<void>;
|
|
183
|
-
destroy(): Promise<void>;
|
|
184
|
-
initDatabaseConnection(): Promise<void>;
|
|
185
|
-
private updateCalculatedPathsForControllers;
|
|
186
|
-
private mergeControllerMethodsConfigs;
|
|
187
|
-
initControllersHook(ctxStorage: ContextsEndpointStorage): Promise<void>;
|
|
188
|
-
initControllers(): Promise<void>;
|
|
189
|
-
writeActiveRoutes(): void;
|
|
190
|
-
get middlewares(): Models.MiddlewareType[];
|
|
191
|
-
private initCustomClientMiddlewares;
|
|
192
|
-
private initCustomBackendMiddlewares;
|
|
193
|
-
private initBackendMiddlewares;
|
|
194
|
-
private initServer;
|
|
195
|
-
protected sendError(res: express.Response, error: unknown, req: express.Request, expressPath: string): void;
|
|
196
|
-
/**
|
|
197
|
-
* client can be browser or nodejs (when remote host)
|
|
198
|
-
*/
|
|
199
|
-
private initClient;
|
|
200
|
-
}
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
// @ts-nocheck
|
|
2
|
-
import { Response } from 'express';
|
|
3
|
-
/**
|
|
4
|
-
* @deprecated
|
|
5
|
-
*/
|
|
6
|
-
export declare const getTransformFunction: (target: Function) => (entity: any) => any;
|
|
7
|
-
/**
|
|
8
|
-
* @deprecated
|
|
9
|
-
*/
|
|
10
|
-
export declare const singleTransform: (json: any) => any;
|
|
11
|
-
export declare class EntityProcess {
|
|
12
|
-
/**
|
|
13
|
-
* Data from backend
|
|
14
|
-
*/
|
|
15
|
-
private result;
|
|
16
|
-
private response;
|
|
17
|
-
static init(result: any, response: Response): Promise<void>;
|
|
18
|
-
/**
|
|
19
|
-
* Data to send
|
|
20
|
-
*/
|
|
21
|
-
data: any;
|
|
22
|
-
/**
|
|
23
|
-
* Say yes to:
|
|
24
|
-
* - circural object
|
|
25
|
-
* - transform browser fn in decorator
|
|
26
|
-
*/
|
|
27
|
-
private advancedManipulation;
|
|
28
|
-
private entityMapping;
|
|
29
|
-
private circural;
|
|
30
|
-
constructor(
|
|
31
|
-
/**
|
|
32
|
-
* Data from backend
|
|
33
|
-
*/
|
|
34
|
-
result: any, response: Response);
|
|
35
|
-
private checkAdvancedManiupulation;
|
|
36
|
-
run(): Promise<void>;
|
|
37
|
-
applayTransformFn(): void;
|
|
38
|
-
setHeaders(): void;
|
|
39
|
-
send(): void;
|
|
40
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
// @ts-nocheck
|
|
2
|
-
import { Response as ExpressResponse, Request as ExpressRequest } from 'express';
|
|
3
|
-
import { Models } from './models';
|
|
4
|
-
export declare const getResponseValue: <T>(response: Models.Http.Response<T>, options?: {
|
|
5
|
-
req: ExpressRequest;
|
|
6
|
-
res: ExpressResponse;
|
|
7
|
-
}) => Promise<T>;
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
// @ts-nocheck
|
|
2
|
-
import { ControllerConfig } from '../config/controller-config';
|
|
3
|
-
import { MethodConfig } from '../config/method-config';
|
|
4
|
-
export declare namespace ClassHelpers {
|
|
5
|
-
/**
|
|
6
|
-
* TODO - repalce in every place when getting class fn from object
|
|
7
|
-
*/
|
|
8
|
-
const getClassFnFromObject: (json: Object) => any;
|
|
9
|
-
const getName: (classFnOrObject: any) => string;
|
|
10
|
-
const getOrginalClass: (classFnOrObject: any) => any;
|
|
11
|
-
const getFullInternalName: (classFnOrObject: any) => string;
|
|
12
|
-
const getUniqueKey: (classFnOrObject: any) => string;
|
|
13
|
-
const isContextClassObject: (obj: any) => boolean;
|
|
14
|
-
const setName: (target: Function, className: string) => void;
|
|
15
|
-
const hasParentClassWithName: (target: Function, className: string, targets?: any[]) => boolean;
|
|
16
|
-
/**
|
|
17
|
-
* Express async handler for middleware functions.
|
|
18
|
-
*/
|
|
19
|
-
const asyncHandler: (fn: any) => (req: any, res: any, next: any) => void;
|
|
20
|
-
const getMethodsNames: (classOrClassInstance: any, allMethodsNames?: any[]) => string[];
|
|
21
|
-
const getControllerConfigs: (target: Function, configs?: ControllerConfig[], callerTarget?: Function) => ControllerConfig[];
|
|
22
|
-
const ensureClassConfig: (target: Function) => Partial<ControllerConfig>;
|
|
23
|
-
const ensureMethodConfig: (target: any, propertyKey: string | symbol) => Partial<MethodConfig>;
|
|
24
|
-
const getClassConfig: (constructor: Function) => Partial<ControllerConfig> | undefined;
|
|
25
|
-
}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
// @ts-nocheck
|
|
2
|
-
import type { ControllerConfig } from '../config/controller-config';
|
|
3
|
-
import { MethodConfig } from '../config/method-config';
|
|
4
|
-
export declare namespace TaonHelpers {
|
|
5
|
-
const fillUpTo: (s: string, nCharacters: number) => string;
|
|
6
|
-
const isGoodPath: (p: string) => boolean;
|
|
7
|
-
const firstStringOrElemFromArray: (stringOrArrayOfString: string[] | string) => string;
|
|
8
|
-
const tryTransformParam: (param: any) => any;
|
|
9
|
-
const getExpressPath: (c: ControllerConfig, pathOrClassConfig: Partial<MethodConfig>) => string;
|
|
10
|
-
const defaultType: (value: any) => {};
|
|
11
|
-
const parseJSONwithStringJSONs: (object: Object, waring?: boolean) => Object;
|
|
12
|
-
const isPlainFileOrFolder: (filePath: any) => boolean;
|
|
13
|
-
const ipcKeyNameResponse: (target: Function, methodConfig: Partial<MethodConfig>, expressPath: string) => string;
|
|
14
|
-
const ipcKeyNameRequest: (target: Function, methodConfig: Partial<MethodConfig>, expressPath: string) => string;
|
|
15
|
-
const websqlMocks: (headers: any) => {
|
|
16
|
-
request: Express.Request;
|
|
17
|
-
response: Express.Response;
|
|
18
|
-
};
|
|
19
|
-
}
|