taon 19.0.29 → 19.0.31

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.
Files changed (88) hide show
  1. package/README.md +5 -21
  2. package/browser/package.json +1 -1
  3. package/client/package.json +1 -1
  4. package/lib/build-info._auto-generated_.d.ts +1 -1
  5. package/lib/build-info._auto-generated_.js +1 -1
  6. package/lib/env/env.angular-node-app.d.ts +4 -0
  7. package/lib/env/env.angular-node-app.js +10 -0
  8. package/lib/env/env.angular-node-app.js.map +1 -0
  9. package/lib/env/env.docs-webapp.d.ts +4 -0
  10. package/lib/env/env.docs-webapp.js +10 -0
  11. package/lib/env/env.docs-webapp.js.map +1 -0
  12. package/lib/env/env.electron-app.d.ts +4 -0
  13. package/lib/env/env.electron-app.js +10 -0
  14. package/lib/env/env.electron-app.js.map +1 -0
  15. package/lib/env/env.mobile-app.d.ts +4 -0
  16. package/lib/env/env.mobile-app.js +10 -0
  17. package/lib/env/env.mobile-app.js.map +1 -0
  18. package/lib/env/env.npm-lib-and-cli-tool.d.ts +4 -0
  19. package/lib/env/env.npm-lib-and-cli-tool.js +10 -0
  20. package/lib/env/env.npm-lib-and-cli-tool.js.map +1 -0
  21. package/lib/env/env.vscode-plugin.d.ts +4 -0
  22. package/lib/env/env.vscode-plugin.js +10 -0
  23. package/lib/env/env.vscode-plugin.js.map +1 -0
  24. package/lib/env/index.d.ts +6 -0
  25. package/lib/env/index.js +23 -0
  26. package/lib/env/index.js.map +1 -0
  27. package/lib/ui/index.js +2 -2
  28. package/lib/ui/taon-admin-mode-configuration/index.js +2 -2
  29. package/package.json +1 -1
  30. package/scss/vars.scss +7 -0
  31. package/websql/package.json +1 -1
  32. package/client/README.md +0 -24
  33. package/client/fesm2022/taon.mjs +0 -6454
  34. package/client/fesm2022/taon.mjs.map +0 -1
  35. package/client/index.d.ts +0 -6
  36. package/client/lib/base-classes/base-abstract-entity.d.ts +0 -8
  37. package/client/lib/base-classes/base-angular-service.d.ts +0 -21
  38. package/client/lib/base-classes/base-class.d.ts +0 -9
  39. package/client/lib/base-classes/base-context.d.ts +0 -27
  40. package/client/lib/base-classes/base-controller.d.ts +0 -10
  41. package/client/lib/base-classes/base-crud-controller.d.ts +0 -28
  42. package/client/lib/base-classes/base-custom-repository.d.ts +0 -4
  43. package/client/lib/base-classes/base-entity.d.ts +0 -17
  44. package/client/lib/base-classes/base-injector.d.ts +0 -69
  45. package/client/lib/base-classes/base-migration.d.ts +0 -12
  46. package/client/lib/base-classes/base-provider.d.ts +0 -9
  47. package/client/lib/base-classes/base-repository.d.ts +0 -264
  48. package/client/lib/base-classes/base-subscriber-for-entity.d.ts +0 -82
  49. package/client/lib/base-classes/base.d.ts +0 -51
  50. package/client/lib/constants.d.ts +0 -8
  51. package/client/lib/context-db-migrations.d.ts +0 -18
  52. package/client/lib/create-context.d.ts +0 -86
  53. package/client/lib/decorators/classes/controller-decorator.d.ts +0 -16
  54. package/client/lib/decorators/classes/entity-decorator.d.ts +0 -20
  55. package/client/lib/decorators/classes/migration-decorator.d.ts +0 -8
  56. package/client/lib/decorators/classes/provider-decorator.d.ts +0 -8
  57. package/client/lib/decorators/classes/repository-decorator.d.ts +0 -8
  58. package/client/lib/decorators/classes/subscriber-decorator.d.ts +0 -9
  59. package/client/lib/decorators/http/http-decorators.d.ts +0 -20
  60. package/client/lib/decorators/http/http-methods-decorators.d.ts +0 -24
  61. package/client/lib/decorators/http/http-params-decorators.d.ts +0 -6
  62. package/client/lib/dependency-injection/di-container.d.ts +0 -6
  63. package/client/lib/endpoint-context.d.ts +0 -133
  64. package/client/lib/entity-process.d.ts +0 -40
  65. package/client/lib/env.d.ts +0 -3
  66. package/client/lib/get-response-value.d.ts +0 -7
  67. package/client/lib/helpers/class-helpers.d.ts +0 -19
  68. package/client/lib/helpers/taon-helpers.d.ts +0 -17
  69. package/client/lib/index.d.ts +0 -136
  70. package/client/lib/inject.d.ts +0 -5
  71. package/client/lib/models.d.ts +0 -212
  72. package/client/lib/orm.d.ts +0 -3
  73. package/client/lib/realtime/realtime-client.d.ts +0 -38
  74. package/client/lib/realtime/realtime-core.d.ts +0 -41
  75. package/client/lib/realtime/realtime-server.d.ts +0 -19
  76. package/client/lib/realtime/realtime-strategy/index.d.ts +0 -5
  77. package/client/lib/realtime/realtime-strategy/realtime-strategy-ipc.d.ts +0 -82
  78. package/client/lib/realtime/realtime-strategy/realtime-strategy-mock.d.ts +0 -15
  79. package/client/lib/realtime/realtime-strategy/realtime-strategy-socket-io.d.ts +0 -16
  80. package/client/lib/realtime/realtime-strategy/realtime-strategy.d.ts +0 -12
  81. package/client/lib/realtime/realtime-subs-manager.d.ts +0 -15
  82. package/client/lib/realtime/realtime.models.d.ts +0 -15
  83. package/client/lib/symbols.d.ts +0 -68
  84. package/client/lib/ui/index.d.ts +0 -2
  85. package/client/lib/ui/taon-admin-mode-configuration/index.d.ts +0 -2
  86. package/client/lib/ui/taon-admin-mode-configuration/taon-admin.service.d.ts +0 -22
  87. package/client/lib/validators.d.ts +0 -8
  88. package/client/public-api.d.ts +0 -2
@@ -1,212 +0,0 @@
1
- // @ts-nocheck
2
- import { CoreModels } from 'tnp-core/browser';
3
- import { Response as ExpressResponse, Request as ExpressRequest } from 'express';
4
- import { Models as ModelsNg2Rest } from 'ng2-rest/browser';
5
- export declare namespace Models {
6
- type FrameworkMode = 'backend-frontend(tcp+udp)' | 'remote-backend(tcp+udp)' | 'backend-frontend(ipc-electron)' | 'backend-frontend(websql-electron)' | 'backend-frontend(websql)';
7
- enum ClassType {
8
- ENTITY = "ENTITY",
9
- CONTROLLER = "CONTROLLER",
10
- REPOSITORY = "REPOSITORY",
11
- PROVIDER = "PROVIDER",
12
- SUBSCRIBER = "SUBSCRIBER",
13
- MIGRATION = "MIGRATION"
14
- }
15
- const ClassTypeKey: { [key in ClassType]: keyof ContextOptions<any, any, any, any, any, any, any>; };
16
- type MiddlewareType = [Function, any[]];
17
- /**
18
- * DROP_DB+MIGRATIONS (default for development)
19
- * Drop all tables + recreate them + run migrations
20
- * synchronize: true , dropSchema: true
21
- * use migrations: true
22
- *
23
- * MIGRATIONS (default for production)
24
- * Do not drop tables, only run migrations
25
- * synchronize: false, dropSchema: false
26
- * use migrations: true
27
- */
28
- type DBRecreateMode = 'DROP_DB+MIGRATIONS' | 'PRESERVE_DATA+MIGRATIONS';
29
- class DatabaseConfigTypeOrm {
30
- /**
31
- * database name
32
- */
33
- database?: string;
34
- /**
35
- * only for file base db: sqlite, sqljs
36
- */
37
- location?: string;
38
- synchronize: boolean;
39
- dropSchema: boolean;
40
- type?: CoreModels.DatabaseType;
41
- /**
42
- * Persists db on disk/local-storage if serverless db
43
- */
44
- autoSave?: boolean;
45
- /**
46
- * for websql db mode
47
- * true by default
48
- */
49
- useLocalForage?: boolean;
50
- logging: boolean;
51
- databasePort?: number;
52
- databaseHost?: string;
53
- databaseUsername?: string;
54
- databasePassword?: string;
55
- }
56
- class DatabaseConfig extends DatabaseConfigTypeOrm {
57
- /**
58
- * Default value 'DROP_ALL'.
59
- *
60
- * Tell framework what is happening with db
61
- * when context is starting.
62
- */
63
- recreateMode?: DBRecreateMode;
64
- static from(databasePartialConfig: Partial<Omit<DatabaseConfig, 'synchronize' | 'dropSchema' | 'databaseConfigTypeORM'>>): DatabaseConfig;
65
- get databaseConfigTypeORM(): DatabaseConfigTypeOrm;
66
- }
67
- type ISession = {
68
- secret?: string;
69
- saveUninitialized?: boolean;
70
- /**
71
- * max age of session
72
- */
73
- cookieMaxAge?: number;
74
- secure?: boolean;
75
- resave?: boolean;
76
- };
77
- type ConnectionOptionsLogs = {
78
- http?: boolean;
79
- realtime?: boolean;
80
- framework?: boolean;
81
- db?: boolean;
82
- migrations?: boolean;
83
- };
84
- interface ContextOptions<CONTEXTS, CONTROLLERS, ENTITIES, REPOSITORIES, PROVIDERS, SUBSCRIBERS, MIGRATIONS> {
85
- contextName: string;
86
- /**
87
- * host/port for initing backend server
88
- */
89
- host?: string;
90
- /**
91
- * frontend host only needed when we are
92
- * using withCredentials for axios
93
- * and session cookie
94
- * or realtime communication
95
- */
96
- frontendHost?: string;
97
- /**
98
- * backend way of communication
99
- * between taon backends/processes
100
- */
101
- remoteHost?: string;
102
- /**
103
- * User ipc for communication between BE/FE
104
- * when electron is used as a platform
105
- * Default: true
106
- */
107
- useIpcWhenElectron?: boolean;
108
- contexts?: CONTEXTS;
109
- controllers?: CONTROLLERS;
110
- entities?: ENTITIES;
111
- repositories?: REPOSITORIES;
112
- providers?: PROVIDERS;
113
- subscribers?: SUBSCRIBERS;
114
- migrations?: MIGRATIONS;
115
- session?: ISession;
116
- skipWritingServerRoutes?: boolean;
117
- productionMode?: boolean;
118
- abstract?: boolean;
119
- logs?: boolean | ConnectionOptionsLogs;
120
- database?: boolean | Partial<DatabaseConfig>;
121
- disabledRealtime?: boolean;
122
- https?: {
123
- key: string;
124
- cert: string;
125
- };
126
- publicAssets?: {
127
- serverPath: string;
128
- locationOnDisk: string;
129
- }[];
130
- middlewares?: MiddlewareType[];
131
- }
132
- class DecoratorAbstractOpt {
133
- className: string;
134
- }
135
- class ParamConfig {
136
- paramName: string;
137
- paramType: CoreModels.ParamType;
138
- index: number;
139
- defaultType: any;
140
- expireInSeconds?: number;
141
- }
142
- class MethodConfig {
143
- methodName: string;
144
- /**
145
- * path is global in express app
146
- */
147
- global?: boolean;
148
- /**
149
- * override default content type
150
- */
151
- contentType?: any;
152
- /**
153
- * override default axiso response type
154
- */
155
- responseType?: any;
156
- path: string;
157
- descriptor: PropertyDescriptor;
158
- type: CoreModels.HttpMethod;
159
- parameters: {
160
- [paramName: string]: ParamConfig;
161
- };
162
- }
163
- class ControllerConfig extends DecoratorAbstractOpt {
164
- realtime?: boolean;
165
- path: string;
166
- uniqueKey?: string;
167
- methods: {
168
- [methodName: string]: MethodConfig;
169
- };
170
- }
171
- class RuntimeControllerConfig extends ControllerConfig {
172
- calculatedPath?: string;
173
- browserTransformFn?: (entity: any) => any;
174
- }
175
- namespace Http {
176
- export import Rest = ModelsNg2Rest;
177
- type ContextENDPOINT = {
178
- target: Function;
179
- initFN: Function;
180
- };
181
- type FormlyFromType = 'material' | 'bootstrap';
182
- type ExpressContext<T> = (req: ExpressRequest, res: ExpressResponse) => T;
183
- type SyncResponse<T> = string | T;
184
- type ResponseFuncOpt<T> = {
185
- limitSize?: (enties: Function | Function[], include: string[], exclude: string[]) => void;
186
- };
187
- type SyncResponseFunc<T> = (options?: ResponseFuncOpt<T>) => SyncResponse<T>;
188
- type MixResponse<T> = SyncResponse<T> | ExpressContext<T>;
189
- interface ClientAction<T> {
190
- received?: Rest.PromiseObservableMix<Rest.HttpResponse<T>>;
191
- }
192
- interface AsyncResponse<T> {
193
- (req?: ExpressRequest, res?: ExpressResponse): Promise<SyncResponse<T> | SyncResponseFunc<T>>;
194
- }
195
- type Response<T = string> = AsyncResponse<T> & ClientAction<T>;
196
- class Errors {
197
- message: string;
198
- private code;
199
- toString: () => string;
200
- private constructor();
201
- private static create;
202
- static entityNotFound(entity?: Function): Errors;
203
- static custom(message: string, code?: ModelsNg2Rest.HttpCode): Errors;
204
- }
205
- }
206
- interface StartParams {
207
- port: number;
208
- args: string[];
209
- onlyMigrationRun?: boolean;
210
- onlyMigrationRevertToTimestamp?: number;
211
- }
212
- }
@@ -1,3 +0,0 @@
1
- // @ts-nocheck
2
- export declare namespace Orm {
3
- }
@@ -1,38 +0,0 @@
1
- // @ts-nocheck
2
- import { RealtimeCore } from './realtime-core';
3
- import { Observable } from 'rxjs';
4
- import { RealtimeModels } from './realtime.models';
5
- import type { BaseEntity } from '../base-classes/base-entity';
6
- export declare class RealtimeClient {
7
- private core;
8
- private subsManagers;
9
- constructor(core: RealtimeCore);
10
- private init;
11
- /**
12
- * Changes trigger on backend needs to be done manually.. example code:
13
- *
14
- * ...
15
- * Context.Realtime.Server.TrigggerEntityChanges(myEntityInstance);
16
- * ...
17
- */
18
- listenChangesEntity(entityClassFn: Function, idOrUniqValue: any, options: RealtimeModels.ChangeOption): Observable<unknown>;
19
- listenChangesEntityTable(entityClassFn: Function): Observable<unknown>;
20
- /**
21
- * Changes trigger on backend needs to be done manually.. example code:
22
- *
23
- * ...
24
- * Context.Realtime.Server.TrigggerEntityChanges(myEntityInstance);
25
- * // or
26
- * Context.Realtime.Server.TrigggerEntityPropertyChanges(myEntityInstance,{ property: 'geolocationX' });
27
- * ...
28
- */
29
- listenChangesEntityObj<T extends BaseEntity>(entity: T, options?: RealtimeModels.ChangeOption): Observable<unknown>;
30
- listenChangesCustomEvent(customEvent: string): Observable<unknown>;
31
- /**
32
- * Trigger custom event on backend
33
- * @param customEvent global event name
34
- * @param dataToPush
35
- */
36
- triggerCustomEvent(customEvent: string, dataToPush?: any): void;
37
- private getUniqueIdentifierForConnection;
38
- }
@@ -1,41 +0,0 @@
1
- // @ts-nocheck
2
- import { Socket as SocketClient } from 'socket.io-client';
3
- import type { EndpointContext } from '../endpoint-context';
4
- import { RealtimeClient } from './realtime-client';
5
- import { RealtimeServer } from './realtime-server';
6
- import type { RealtimeStrategy } from './realtime-strategy';
7
- import { DefaultEventsMap } from 'socket.io/dist/typed-events';
8
- import { Server } from 'socket.io';
9
- /**
10
- * Realtime class
11
- * - mock (when browser-browser)
12
- * - sockets (from socket io when backend-browser)
13
- * - ipc (when electron is used or between processes)
14
- * - webworker (when webworker is used in browser or nodejs)
15
- */
16
- export declare class RealtimeCore {
17
- ctx: EndpointContext;
18
- readonly allHttpMethods: string[];
19
- readonly client: RealtimeClient;
20
- readonly server: RealtimeServer;
21
- readonly strategy: RealtimeStrategy;
22
- /**
23
- * global FE socket - only for established connection
24
- */
25
- conectSocketFE: SocketClient<DefaultEventsMap, DefaultEventsMap>;
26
- /**
27
- * socket for namespaces and rooms
28
- */
29
- socketFE: SocketClient<DefaultEventsMap, DefaultEventsMap>;
30
- /**
31
- * global BE socket - only for established connection
32
- */
33
- connectSocketBE: Server<DefaultEventsMap, DefaultEventsMap, DefaultEventsMap, any>;
34
- /**
35
- * socket for namespaces and rooms
36
- */
37
- socketBE: Server<DefaultEventsMap, DefaultEventsMap, DefaultEventsMap, any>;
38
- constructor(ctx: EndpointContext);
39
- private resolveStrategy;
40
- pathFor(namespace?: string): URL;
41
- }
@@ -1,19 +0,0 @@
1
- // @ts-nocheck
2
- import { RealtimeCore } from './realtime-core';
3
- import type { BaseEntity } from '../base-classes/base-entity';
4
- import { Observable } from 'rxjs';
5
- export declare class RealtimeServer {
6
- private core;
7
- constructor(core: RealtimeCore);
8
- private init;
9
- private triggerChanges;
10
- triggerEntityChanges(entityObjOrClass: Function, idToTrigger?: number | string): void;
11
- triggerEntityPropertyChanges<ENTITY extends BaseEntity>(entityObjOrClass: new (...args: any[]) => ENTITY, property: keyof ENTITY | (keyof ENTITY)[], idToTrigger?: number | string): void;
12
- triggerEntityTableChanges(entityClassOrInstance: Function | object): void;
13
- triggerCustomEvent(customEvent: string, dataToPush: any): void;
14
- /**
15
- * Listen to custom events from users
16
- * @param customEvent global event name
17
- */
18
- listenChangesCustomEvent(customEvent: string): Observable<any>;
19
- }
@@ -1,5 +0,0 @@
1
- // @ts-nocheck
2
- export * from './realtime-strategy';
3
- export * from './realtime-strategy-ipc';
4
- export * from './realtime-strategy-mock';
5
- export * from './realtime-strategy-socket-io';
@@ -1,82 +0,0 @@
1
- // @ts-nocheck
2
- import type { ipcRenderer } from 'electron';
3
- import { ServerOptions } from 'socket.io';
4
- import { EndpointContext } from '../../endpoint-context';
5
- import { RealtimeModels } from '../realtime.models';
6
- import { RealtimeStrategy } from './realtime-strategy';
7
- export declare class MockServerIpc {
8
- contextName: string;
9
- static serverByContextName: Map<string, MockServerIpc>;
10
- static from(contextName: string): MockServerIpc;
11
- namespacesByName: Map<string, MockNamespaceIpc>;
12
- constructor(contextName: string);
13
- of(namespace: string): MockNamespaceIpc;
14
- }
15
- export declare class MockNamespaceIpc {
16
- /**
17
- * Namespace name
18
- */
19
- name: string;
20
- server: MockServerIpc;
21
- electronClients: Set<Electron.WebContents>;
22
- roomsByRoomName: {
23
- [roomName: string]: Set<Electron.WebContents>;
24
- };
25
- private namespaceEventHandlers;
26
- constructor(
27
- /**
28
- * Namespace name
29
- */
30
- name: string, server: MockServerIpc);
31
- on(eventName: string, callback: RealtimeModels.EventHandler): any;
32
- off(event: string, callback?: RealtimeModels.EventHandler): any;
33
- emit(eventName: string, ...args: any[]): any;
34
- to(roomName: string): RoomEmitterIpc;
35
- in(roomName: string): RoomEmitterIpc;
36
- join(webContents: Electron.WebContents, roomName: string): void;
37
- leave(webContents: Electron.WebContents, roomName: string): void;
38
- path(): string;
39
- get nsp(): {
40
- readonly name: string;
41
- };
42
- }
43
- declare class RoomEmitterIpc {
44
- private electronClients;
45
- /**
46
- * namespace name
47
- */
48
- private name;
49
- private includeSender;
50
- private sender;
51
- constructor(electronClients: Set<Electron.WebContents>,
52
- /**
53
- * namespace name
54
- */
55
- name: string, includeSender?: boolean, sender?: MockSocketIpc);
56
- emit(eventName: string, ...args: any[]): void;
57
- }
58
- export declare class MockSocketIpc {
59
- namespaceName: string;
60
- ipcRenderer: typeof ipcRenderer;
61
- private socketEventHandlers;
62
- get name(): string;
63
- /**
64
- * @param namespaceName instead url for ipc
65
- */
66
- constructor(namespaceName: string);
67
- on(eventName: string, callback: (event: any, ...args: any[]) => void): void;
68
- off(event: string, callback?: (event: any, ...args: any[]) => void): void;
69
- emit(event: string, ...args: any[]): void;
70
- }
71
- /**
72
- * Purpose:
73
- * - backend-browser communication between 2 processes in electron mode
74
- */
75
- export declare class RealtimeStrategyIpc extends RealtimeStrategy {
76
- protected ctx: EndpointContext;
77
- toString(): string;
78
- constructor(ctx: EndpointContext);
79
- ioServer(__: string, opt: ServerOptions): any;
80
- get ioClient(): any;
81
- }
82
- export {};
@@ -1,15 +0,0 @@
1
- // @ts-nocheck
2
- import type { EndpointContext } from '../../endpoint-context';
3
- import { RealtimeStrategy } from './realtime-strategy';
4
- import { ServerOptions } from 'socket.io';
5
- /**
6
- * Purpose:
7
- * - browser-browser communication mock (in websql mode)
8
- */
9
- export declare class RealtimeStrategyMock extends RealtimeStrategy {
10
- protected ctx: EndpointContext;
11
- toString(): string;
12
- constructor(ctx: EndpointContext);
13
- ioServer(url: string, opt: ServerOptions): any;
14
- get ioClient(): any;
15
- }
@@ -1,16 +0,0 @@
1
- // @ts-nocheck
2
- import { EndpointContext } from '../../endpoint-context';
3
- import { RealtimeStrategy } from './realtime-strategy';
4
- import { io } from 'socket.io-client';
5
- /**
6
- * Purpose:
7
- * - backend-browser communication
8
- * - backend-backend communication
9
- */
10
- export declare class RealtimeStrategySocketIO extends RealtimeStrategy {
11
- protected ctx: EndpointContext;
12
- toString(): string;
13
- constructor(ctx: EndpointContext);
14
- ioServer(...args: any[]): any;
15
- get ioClient(): typeof io;
16
- }
@@ -1,12 +0,0 @@
1
- // @ts-nocheck
2
- import { EndpointContext } from '../../endpoint-context';
3
- import type { Server, ServerOptions } from 'socket.io';
4
- import type { io } from 'socket.io-client';
5
- import { DefaultEventsMap } from 'socket.io/dist/typed-events';
6
- export declare abstract class RealtimeStrategy {
7
- protected ctx: EndpointContext;
8
- constructor(ctx: EndpointContext);
9
- get ioClient(): typeof io;
10
- ioServer(url: string, opt: ServerOptions): Server<DefaultEventsMap, DefaultEventsMap, DefaultEventsMap, any>;
11
- abstract toString(): string;
12
- }
@@ -1,15 +0,0 @@
1
- // @ts-nocheck
2
- import { Subscriber } from 'rxjs';
3
- import { Socket as SocketClient } from 'socket.io-client';
4
- import { DefaultEventsMap } from 'socket.io/dist/typed-events';
5
- import { RealtimeModels } from './realtime.models';
6
- export declare class RealtimeSubsManager {
7
- private options;
8
- private isListening;
9
- private observers;
10
- constructor(options: RealtimeModels.SubsManagerOpt);
11
- startListenIfNotStarted(realtime: SocketClient<DefaultEventsMap, DefaultEventsMap>): void;
12
- add(observer: Subscriber<any>): void;
13
- remove(observer: Subscriber<any>): void;
14
- private update;
15
- }
@@ -1,15 +0,0 @@
1
- // @ts-nocheck
2
- import type { RealtimeCore } from './realtime-core';
3
- export declare namespace RealtimeModels {
4
- type SubsManagerOpt = {
5
- core: RealtimeCore;
6
- customEvent: string;
7
- roomName: string;
8
- property: string;
9
- };
10
- type ChangeOption = {
11
- property?: string;
12
- customEvent?: string;
13
- };
14
- type EventHandler = (...args: any[]) => void;
15
- }
@@ -1,68 +0,0 @@
1
- // @ts-nocheck
2
- export declare namespace Symbols {
3
- export const ctxInClassOrClassObj: unique symbol;
4
- export const classNameStaticProperty: string;
5
- export const fullClassNameStaticProperty: string;
6
- export const orignalClass: string;
7
- export const orignalClassClonesObj: string;
8
- export const classMethodsNames: string;
9
- /**
10
- * for backendSocket.in(ROOM_NAME).emit(EVENT)
11
- *
12
- * Room names are uniqe..
13
- * here I am limiting number of event for clients.
14
- */
15
- class Realtime {
16
- NAMESPACE(contextName: string): string;
17
- TABLE_CHANGE(contextName: string, tableName: string): string;
18
- readonly KEYroomSubscribe = "roomSubscribe";
19
- readonly KEYroomUnsubscribe = "roomUnsubscribe";
20
- ROOM_NAME_CUSTOM(contextName: string, customEvent: string): string;
21
- ROOM_SUBSCRIBE_CUSTOM(contextName: string): string;
22
- ROOM_UNSUBSCRIBE_CUSTOM(contextName: string): string;
23
- ROOM_NAME_UPDATE_ENTITY(contextName: string, className: string, entityId: number | string): string;
24
- ROOM_SUBSCRIBE_ENTITY_UPDATE_EVENTS(contextName: string): string;
25
- ROOM_UNSUBSCRIBE_ENTITY_UPDATE_EVENTS(contextName: string): string;
26
- ROOM_NAME_UPDATE_ENTITY_PROPERTY(contextName: string, className: string, property: string, entityId: number | string): string;
27
- ROOM_SUBSCRIBE_ENTITY_PROPERTY_UPDATE_EVENTS(contextName: string): string;
28
- ROOM_UNSUBSCRIBE_ENTITY_PROPERTY_UPDATE_EVENTS(contextName: string): string;
29
- }
30
- export const REALTIME: Realtime;
31
- export const metadata: {
32
- className: string;
33
- options: {
34
- runtimeController: string;
35
- controller: string;
36
- controllerMethod: string;
37
- entity: string;
38
- repository: string;
39
- provider: string;
40
- subscriber: string;
41
- migration: string;
42
- };
43
- };
44
- export const old: {
45
- HAS_TABLE_IN_DB: symbol;
46
- MDC_KEY: string;
47
- WEBSQL_REST_PROGRESS_FUN: symbol;
48
- WEBSQL_REST_PROGRESS_FUN_START: symbol;
49
- WEBSQL_REST_PROGRESS_FUN_DONE: symbol;
50
- WEBSQL_REST_PROGRESS_TIMEOUT: symbol;
51
- X_TOTAL_COUNT: string;
52
- CIRCURAL_OBJECTS_MAP_BODY: string;
53
- CIRCURAL_OBJECTS_MAP_QUERY_PARAM: string;
54
- MAPPING_CONFIG_HEADER: string;
55
- MAPPING_CONFIG_HEADER_BODY_PARAMS: string;
56
- MAPPING_CONFIG_HEADER_QUERY_PARAMS: string;
57
- ENDPOINT_META_CONFIG: string;
58
- CLASS_DECORATOR_CONTEXT: string;
59
- SOCKET_MSG: string;
60
- ANGULAR: {
61
- INPUT_NAMES: symbol;
62
- };
63
- ERROR_MESSAGES: {
64
- CLASS_NAME_MATCH: string;
65
- };
66
- };
67
- export {};
68
- }
@@ -1,2 +0,0 @@
1
- // @ts-nocheck
2
- export * from './taon-admin-mode-configuration';
@@ -1,2 +0,0 @@
1
- // @ts-nocheck
2
- export * from './taon-admin.service';
@@ -1,22 +0,0 @@
1
- // @ts-nocheck
2
- export declare class TaonAdminService {
3
- private static _instance;
4
- static get Instance(): TaonAdminService;
5
- scrollableEnabled: boolean;
6
- private onEditMode;
7
- onEditMode$: import("rxjs").Observable<unknown>;
8
- adminPanelIsOpen: boolean;
9
- draggablePopupMode: boolean;
10
- draggablePopupModeFullScreen: boolean;
11
- /**
12
- * Property used in taon
13
- */
14
- keepWebsqlDbDataAfterReload: boolean;
15
- constructor();
16
- setEditMode(value: boolean): void;
17
- setKeepWebsqlDbDataAfterReload(value: boolean): void;
18
- enabledTabs: any[];
19
- hide(): void;
20
- show(): void;
21
- logout(): void;
22
- }
@@ -1,8 +0,0 @@
1
- // @ts-nocheck
2
- import { Models } from './models';
3
- export declare namespace Validators {
4
- const classNameVlidation: (className: any, target: Function) => any;
5
- const checkIfMethodsWithReponseTYpeAlowed: (methods: Models.MethodConfig[], current: Models.MethodConfig) => void;
6
- const validateClassFunctions: (controllers: any[], entities: any[], proviers: any[], repositories: any[]) => void;
7
- const preventUndefinedModel: (model: any, id: any) => void;
8
- }
@@ -1,2 +0,0 @@
1
- // @ts-nocheck
2
- export * from './lib';