taon 19.0.50 → 19.0.52

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 (204) hide show
  1. package/browser/fesm2022/taon.mjs +167 -77
  2. package/browser/fesm2022/taon.mjs.map +1 -1
  3. package/browser/lib/base-classes/base-context.d.ts +1 -0
  4. package/browser/lib/base-classes/base-controller.d.ts +0 -6
  5. package/browser/lib/base-classes/base-injector.d.ts +4 -5
  6. package/browser/lib/base-classes/base-middleware.d.ts +17 -0
  7. package/browser/lib/base-classes/base.d.ts +3 -0
  8. package/browser/lib/constants.d.ts +1 -1
  9. package/browser/lib/create-context.d.ts +4 -2
  10. package/browser/lib/decorators/classes/middleware-decorator.d.ts +8 -0
  11. package/browser/lib/endpoint-context.d.ts +6 -5
  12. package/browser/lib/index.d.ts +8 -2
  13. package/browser/lib/models.d.ts +65 -5
  14. package/browser/package.json +1 -1
  15. package/lib/base-classes/base-context.d.ts +1 -0
  16. package/lib/base-classes/base-controller.d.ts +0 -6
  17. package/lib/base-classes/base-controller.js +0 -8
  18. package/lib/base-classes/base-controller.js.map +1 -1
  19. package/lib/base-classes/base-injector.d.ts +4 -5
  20. package/lib/base-classes/base-injector.js +6 -7
  21. package/lib/base-classes/base-injector.js.map +1 -1
  22. package/lib/base-classes/base-middleware.d.ts +20 -0
  23. package/lib/base-classes/base-middleware.js +13 -0
  24. package/lib/base-classes/base-middleware.js.map +1 -0
  25. package/lib/base-classes/base.d.ts +3 -0
  26. package/lib/base-classes/base.js +2 -0
  27. package/lib/base-classes/base.js.map +1 -1
  28. package/lib/build-info._auto-generated_.d.ts +1 -1
  29. package/lib/build-info._auto-generated_.js +1 -1
  30. package/lib/constants.d.ts +1 -1
  31. package/lib/constants.js +2 -3
  32. package/lib/constants.js.map +1 -1
  33. package/lib/create-context.d.ts +4 -2
  34. package/lib/create-context.js +40 -36
  35. package/lib/create-context.js.map +1 -1
  36. package/lib/decorators/classes/middleware-decorator.d.ts +7 -0
  37. package/lib/decorators/classes/middleware-decorator.js +21 -0
  38. package/lib/decorators/classes/middleware-decorator.js.map +1 -0
  39. package/lib/decorators/classes/provider-decorator.js +1 -1
  40. package/lib/decorators/classes/provider-decorator.js.map +1 -1
  41. package/lib/endpoint-context.d.ts +6 -5
  42. package/lib/endpoint-context.js +79 -29
  43. package/lib/endpoint-context.js.map +1 -1
  44. package/lib/env/env.angular-node-app.d.ts +1 -0
  45. package/lib/env/env.angular-node-app.js +3 -2
  46. package/lib/env/env.angular-node-app.js.map +1 -1
  47. package/lib/env/env.docs-webapp.d.ts +1 -0
  48. package/lib/env/env.docs-webapp.js +3 -2
  49. package/lib/env/env.docs-webapp.js.map +1 -1
  50. package/lib/env/env.electron-app.d.ts +1 -0
  51. package/lib/env/env.electron-app.js +3 -2
  52. package/lib/env/env.electron-app.js.map +1 -1
  53. package/lib/env/env.mobile-app.d.ts +1 -0
  54. package/lib/env/env.mobile-app.js +3 -2
  55. package/lib/env/env.mobile-app.js.map +1 -1
  56. package/lib/env/env.npm-lib-and-cli-tool.d.ts +1 -0
  57. package/lib/env/env.npm-lib-and-cli-tool.js +3 -2
  58. package/lib/env/env.npm-lib-and-cli-tool.js.map +1 -1
  59. package/lib/env/env.vscode-plugin.d.ts +1 -0
  60. package/lib/env/env.vscode-plugin.js +3 -2
  61. package/lib/env/env.vscode-plugin.js.map +1 -1
  62. package/lib/env.js +1 -5
  63. package/lib/env.js.map +1 -1
  64. package/lib/index.d.ts +8 -2
  65. package/lib/index.js +2 -0
  66. package/lib/index.js.map +1 -1
  67. package/lib/models.d.ts +65 -5
  68. package/lib/models.js +7 -5
  69. package/lib/models.js.map +1 -1
  70. package/lib/storage.d.ts +1 -1
  71. package/lib/storage.js +1 -5
  72. package/lib/storage.js.map +1 -1
  73. package/lib/ui/index.js +2 -2
  74. package/lib/ui/taon-admin-mode-configuration/index.js +2 -2
  75. package/package.json +1 -1
  76. package/websql/fesm2022/taon.mjs +168 -78
  77. package/websql/fesm2022/taon.mjs.map +1 -1
  78. package/websql/lib/base-classes/base-context.d.ts +1 -0
  79. package/websql/lib/base-classes/base-controller.d.ts +0 -6
  80. package/websql/lib/base-classes/base-injector.d.ts +4 -5
  81. package/websql/lib/base-classes/base-middleware.d.ts +21 -0
  82. package/websql/lib/base-classes/base.d.ts +3 -0
  83. package/websql/lib/constants.d.ts +1 -1
  84. package/websql/lib/create-context.d.ts +4 -2
  85. package/websql/lib/decorators/classes/middleware-decorator.d.ts +8 -0
  86. package/websql/lib/endpoint-context.d.ts +6 -5
  87. package/websql/lib/index.d.ts +8 -2
  88. package/websql/lib/models.d.ts +65 -5
  89. package/websql/package.json +1 -1
  90. package/lib/base-classes/base-subscriber.d.ts +0 -4
  91. package/lib/base-classes/base-subscriber.js +0 -25
  92. package/lib/base-classes/base-subscriber.js.map +0 -1
  93. package/lib/realtime/realtime-strategy/realtime-abstract-mock.d.ts +0 -10
  94. package/lib/realtime/realtime-strategy/realtime-abstract-mock.js +0 -214
  95. package/lib/realtime/realtime-strategy/realtime-abstract-mock.js.map +0 -1
  96. package/lib/realtime/realtime-strategy/realtime-strategy-ipc-models/index.d.ts +0 -0
  97. package/lib/realtime/realtime-strategy/realtime-strategy-ipc-models/index.js +0 -5
  98. package/lib/realtime/realtime-strategy/realtime-strategy-ipc-models/index.js.map +0 -1
  99. package/lib/realtime/realtime-strategy/realtime-strategy-ipc-models/realtime-strategy-ipc-main-namespace.d.ts +0 -22
  100. package/lib/realtime/realtime-strategy/realtime-strategy-ipc-models/realtime-strategy-ipc-main-namespace.js +0 -139
  101. package/lib/realtime/realtime-strategy/realtime-strategy-ipc-models/realtime-strategy-ipc-main-namespace.js.map +0 -1
  102. package/lib/realtime/realtime-strategy/realtime-strategy-ipc-models/realtime-strategy-ipc-main-wrapper.d.ts +0 -16
  103. package/lib/realtime/realtime-strategy/realtime-strategy-ipc-models/realtime-strategy-ipc-main-wrapper.js +0 -68
  104. package/lib/realtime/realtime-strategy/realtime-strategy-ipc-models/realtime-strategy-ipc-main-wrapper.js.map +0 -1
  105. package/lib/realtime/realtime-strategy/realtime-strategy-ipc-models/realtime-strategy-ipc-renderer-namespace.d.ts +0 -10
  106. package/lib/realtime/realtime-strategy/realtime-strategy-ipc-models/realtime-strategy-ipc-renderer-namespace.js +0 -56
  107. package/lib/realtime/realtime-strategy/realtime-strategy-ipc-models/realtime-strategy-ipc-renderer-namespace.js.map +0 -1
  108. package/lib/realtime/realtime-strategy/realtime-strategy-ipc-models/realtime-strategy-ipc-renderer-wrapper.d.ts +0 -10
  109. package/lib/realtime/realtime-strategy/realtime-strategy-ipc-models/realtime-strategy-ipc-renderer-wrapper.js +0 -50
  110. package/lib/realtime/realtime-strategy/realtime-strategy-ipc-models/realtime-strategy-ipc-renderer-wrapper.js.map +0 -1
  111. package/lib/realtime/realtime-strategy/realtime-strategy-ipc-models/realtime-strategy-ipc.models.d.ts +0 -13
  112. package/lib/realtime/realtime-strategy/realtime-strategy-ipc-models/realtime-strategy-ipc.models.js +0 -3
  113. package/lib/realtime/realtime-strategy/realtime-strategy-ipc-models/realtime-strategy-ipc.models.js.map +0 -1
  114. package/lib/realtime/realtime-strategy/realtime-strategy-mock-models/index.d.ts +0 -2
  115. package/lib/realtime/realtime-strategy/realtime-strategy-mock-models/index.js +0 -6
  116. package/lib/realtime/realtime-strategy/realtime-strategy-mock-models/index.js.map +0 -1
  117. package/lib/realtime/realtime-strategy/realtime-strategy-mock-models/realtime-strategy-mock-client.d.ts +0 -16
  118. package/lib/realtime/realtime-strategy/realtime-strategy-mock-models/realtime-strategy-mock-client.js +0 -54
  119. package/lib/realtime/realtime-strategy/realtime-strategy-mock-models/realtime-strategy-mock-client.js.map +0 -1
  120. package/lib/realtime/realtime-strategy/realtime-strategy-mock-models/realtime-strategy-mock-namespaces.d.ts +0 -17
  121. package/lib/realtime/realtime-strategy/realtime-strategy-mock-models/realtime-strategy-mock-namespaces.js +0 -52
  122. package/lib/realtime/realtime-strategy/realtime-strategy-mock-models/realtime-strategy-mock-namespaces.js.map +0 -1
  123. package/lib/realtime/realtime-strategy/realtime-strategy-mock-models/realtime-strategy-mock-server.d.ts +0 -11
  124. package/lib/realtime/realtime-strategy/realtime-strategy-mock-models/realtime-strategy-mock-server.js +0 -39
  125. package/lib/realtime/realtime-strategy/realtime-strategy-mock-models/realtime-strategy-mock-server.js.map +0 -1
  126. package/lib/realtime/realtime-strategy/realtime-strategy-mock-models/realtime-strategy-mock-socket.d.ts +0 -13
  127. package/lib/realtime/realtime-strategy/realtime-strategy-mock-models/realtime-strategy-mock-socket.js +0 -46
  128. package/lib/realtime/realtime-strategy/realtime-strategy-mock-models/realtime-strategy-mock-socket.js.map +0 -1
  129. package/lib/realtime/realtime-strategy/realtime-strategy-mock-models/realtime-strategy-mock.models.d.ts +0 -11
  130. package/lib/realtime/realtime-strategy/realtime-strategy-mock-models/realtime-strategy-mock.models.js +0 -3
  131. package/lib/realtime/realtime-strategy/realtime-strategy-mock-models/realtime-strategy-mock.models.js.map +0 -1
  132. package/lib/ui/directives/firedev-inject-html.directive.d.ts +0 -6
  133. package/lib/ui/directives/firedev-long-press.directive.d.ts +0 -22
  134. package/lib/ui/directives/index.d.ts +0 -3
  135. package/lib/ui/directives/index.js +0 -5
  136. package/lib/ui/directives/index.js.map +0 -1
  137. package/lib/ui/directives/safe.pipe.d.ts +0 -7
  138. package/lib/ui/directives/taon-inject-html.directive.d.ts +0 -6
  139. package/lib/ui/directives/taon-long-press.directive.d.ts +0 -22
  140. package/lib/ui/directives/view-mode.d.ts +0 -5
  141. package/lib/ui/directives/view-mode.js +0 -10
  142. package/lib/ui/directives/view-mode.js.map +0 -1
  143. package/lib/ui/taon-admin-mode-configuration/components/taon-admin-edit-mode/index.d.ts +0 -2
  144. package/lib/ui/taon-admin-mode-configuration/components/taon-admin-edit-mode/index.js +0 -5
  145. package/lib/ui/taon-admin-mode-configuration/components/taon-admin-edit-mode/index.js.map +0 -1
  146. package/lib/ui/taon-admin-mode-configuration/components/taon-admin-edit-mode/taon-admin-edit-mode.component.d.ts +0 -29
  147. package/lib/ui/taon-admin-mode-configuration/components/taon-admin-edit-mode/taon-admin-edit-mode.module.d.ts +0 -2
  148. package/lib/ui/taon-admin-mode-configuration/components/taon-db-admin/index.d.ts +0 -1
  149. package/lib/ui/taon-admin-mode-configuration/components/taon-db-admin/index.js +0 -5
  150. package/lib/ui/taon-admin-mode-configuration/components/taon-db-admin/index.js.map +0 -1
  151. package/lib/ui/taon-admin-mode-configuration/components/taon-db-admin/taon-db-admin.component.d.ts +0 -8
  152. package/lib/ui/taon-admin-mode-configuration/components/taon-file-general-opt/index.d.ts +0 -2
  153. package/lib/ui/taon-admin-mode-configuration/components/taon-file-general-opt/index.js +0 -5
  154. package/lib/ui/taon-admin-mode-configuration/components/taon-file-general-opt/index.js.map +0 -1
  155. package/lib/ui/taon-admin-mode-configuration/components/taon-file-general-opt/taon-file-general-opt.component.d.ts +0 -13
  156. package/lib/ui/taon-admin-mode-configuration/components/taon-file-general-opt/taon-file-general-opt.module.d.ts +0 -2
  157. package/lib/ui/taon-admin-mode-configuration/models/taon-admin-mode-tabs.d.ts +0 -5
  158. package/lib/ui/taon-admin-mode-configuration/models/taon-admin-mode-tabs.js +0 -3
  159. package/lib/ui/taon-admin-mode-configuration/models/taon-admin-mode-tabs.js.map +0 -1
  160. package/lib/ui/taon-admin-mode-configuration/taon-admin-control.service.d.ts +0 -14
  161. package/lib/ui/taon-admin-mode-configuration/taon-admin-mode-configuration.component.d.ts +0 -43
  162. package/lib/ui/taon-admin-mode-configuration/taon-admin-mode-configuration.module.d.ts +0 -2
  163. package/lib/ui/taon-admin-mode-configuration/taon-admin.models.d.ts +0 -5
  164. package/lib/ui/taon-admin-mode-configuration/taon-admin.models.js +0 -3
  165. package/lib/ui/taon-admin-mode-configuration/taon-admin.models.js.map +0 -1
  166. package/lib/ui/taon-full-material.module.d.ts +0 -5
  167. package/lib/ui/taon-github-fork-me-corner/index.d.ts +0 -2
  168. package/lib/ui/taon-github-fork-me-corner/index.js +0 -5
  169. package/lib/ui/taon-github-fork-me-corner/index.js.map +0 -1
  170. package/lib/ui/taon-github-fork-me-corner/taon-github-fork-me-corner.component.d.ts +0 -3
  171. package/lib/ui/taon-github-fork-me-corner/taon-github-fork-me-corner.module.d.ts +0 -2
  172. package/lib/ui/taon-github-fork-me-ribbon/index.d.ts +0 -2
  173. package/lib/ui/taon-github-fork-me-ribbon/index.js +0 -5
  174. package/lib/ui/taon-github-fork-me-ribbon/index.js.map +0 -1
  175. package/lib/ui/taon-github-fork-me-ribbon/taon-github-fork-me-ribbon.component.d.ts +0 -3
  176. package/lib/ui/taon-github-fork-me-ribbon/taon-github-fork-me-ribbon.module.d.ts +0 -2
  177. package/lib/ui/taon-notifications/index.d.ts +0 -4
  178. package/lib/ui/taon-notifications/index.js +0 -24
  179. package/lib/ui/taon-notifications/index.js.map +0 -1
  180. package/lib/ui/taon-notifications/taon-notifications.component.d.ts +0 -9
  181. package/lib/ui/taon-notifications/taon-notifications.models.d.ts +0 -6
  182. package/lib/ui/taon-notifications/taon-notifications.models.js +0 -5
  183. package/lib/ui/taon-notifications/taon-notifications.models.js.map +0 -1
  184. package/lib/ui/taon-notifications/taon-notifications.module.d.ts +0 -2
  185. package/lib/ui/taon-notifications/taon-notifications.service.d.ts +0 -11
  186. package/lib/ui/taon-progress-bar/index.d.ts +0 -2
  187. package/lib/ui/taon-progress-bar/index.js +0 -5
  188. package/lib/ui/taon-progress-bar/index.js.map +0 -1
  189. package/lib/ui/taon-progress-bar/taon-progress-bar.component.d.ts +0 -13
  190. package/lib/ui/taon-progress-bar/taon-progress-bar.module.d.ts +0 -2
  191. package/lib/ui/taon-session-passcode/index.d.ts +0 -1
  192. package/lib/ui/taon-session-passcode/index.js +0 -5
  193. package/lib/ui/taon-session-passcode/index.js.map +0 -1
  194. package/lib/ui/taon-session-passcode/taon-session-passcode.component.d.ts +0 -35
  195. package/lib/ui/taon-table/index.d.ts +0 -2
  196. package/lib/ui/taon-table/index.js +0 -5
  197. package/lib/ui/taon-table/index.js.map +0 -1
  198. package/lib/ui/taon-table/taon-table.component.d.ts +0 -34
  199. package/lib/ui/taon-table/taon-table.module.d.ts +0 -2
  200. package/lib/ui/taon.models.d.ts +0 -11
  201. package/lib/ui/taon.models.js +0 -3
  202. package/lib/ui/taon.models.js.map +0 -1
  203. package/lib/ui/toan-full-material.module.d.ts +0 -2
  204. package/tmp-environment.json +0 -43
@@ -6,6 +6,7 @@ declare const BaseContext: {
6
6
  readonly providers: any;
7
7
  readonly subscribers: any;
8
8
  readonly migrations: any;
9
+ readonly middlewares: any;
9
10
  };
10
11
  readonly contexts: any;
11
12
  readonly contextName: string;
@@ -1,10 +1,4 @@
1
1
  // @ts-nocheck
2
2
  import { BaseInjector } from './base-injector';
3
3
  export declare class BaseController extends BaseInjector {
4
- /**
5
- * @deprecated use migration instead
6
- * THIS ONLY WORKS IF NO MIGRATIONS PROVIDED IN CONFIG
7
- * Purpose: init example data for db.
8
- */
9
- initExampleDbData(): Promise<any>;
10
4
  }
@@ -53,14 +53,13 @@ export declare class BaseInjector {
53
53
  */
54
54
  injectCtrl<T>(ctor: new (...args: any[]) => T): T;
55
55
  /**
56
- * global provider available in every context
56
+ * inject middleware for context
57
57
  */
58
- injectGlobalProvider<T>(ctor: new (...args: any[]) => T): T;
58
+ injectMiddleware<T>(ctor: new (...args: any[]) => T): T;
59
59
  /**
60
- * context scoped provider
61
- * TODO
60
+ * inject provider for context
62
61
  */
63
- injectContextProvider<T>(ctor: new (...args: any[]) => T): T;
62
+ injectProvider<T>(ctor: new (...args: any[]) => T): T;
64
63
  /**
65
64
  * Inject: Controllers, Providers, Repositories, Services, etc.
66
65
  * TODO addd nest js injecting
@@ -0,0 +1,17 @@
1
+ // @ts-nocheck
2
+ import type { AxiosRequestConfig } from 'axios';
3
+ import { BaseInjector } from './base-injector';
4
+ export interface TaonMiddlewareInterceptOptions {
5
+ client?: {
6
+ req: AxiosRequestConfig<unknown>;
7
+ } | undefined;
8
+ server?: {} | undefined;
9
+ }
10
+ /**
11
+ * TODO
12
+ * - global provider available in all contexts
13
+ * - provider available in own context
14
+ */
15
+ export declare abstract class BaseMiddleware extends BaseInjector {
16
+ abstract intercept({ server, client, }: TaonMiddlewareInterceptOptions): Promise<void>;
17
+ }
@@ -6,6 +6,7 @@ import * as controller from './base-controller';
6
6
  import * as crudController from './base-crud-controller';
7
7
  import * as customRepository from './base-custom-repository';
8
8
  import * as entity from './base-entity';
9
+ import * as baseMiddleware from './base-middleware';
9
10
  import * as baseMigration from './base-migration';
10
11
  import * as provider from './base-provider';
11
12
  import * as repository from './base-repository';
@@ -22,6 +23,7 @@ export declare namespace Base {
22
23
  export import CustomRepository = customRepository.BaseCustomRepository;
23
24
  export import SubscriberForEntity = baseSubscriberEntity.BaseSubscriberForEntity;
24
25
  export import Migration = baseMigration.BaseMigration;
26
+ export import Middleware = baseMiddleware.BaseMiddleware;
25
27
  export import AngularService = baseService.BaseAngularsService;
26
28
  const Context: {
27
29
  types: {
@@ -30,6 +32,7 @@ export declare namespace Base {
30
32
  readonly providers: any;
31
33
  readonly subscribers: any;
32
34
  readonly migrations: any;
35
+ readonly middlewares: any;
33
36
  };
34
37
  readonly contexts: any;
35
38
  readonly contextName: string;
@@ -1,5 +1,5 @@
1
1
  // @ts-nocheck
2
- export type TaonEntityKeysToOmit = 'ctrl' | 'clone' | '__endpoint_context__' | 'ctx' | 'inject' | '_' | 'relation' | 'relations' | 'inject' | 'injectRepo' | 'injectCustomRepository' | 'injectCustomRepo' | 'injectController' | 'injectCtrl' | 'injectGlobalProvider' | 'injectLocalProvider' | 'injectContextProvider';
2
+ export type TaonEntityKeysToOmit = 'ctrl' | 'clone' | '__endpoint_context__' | 'ctx' | 'inject' | '_' | 'relation' | 'relations' | 'inject' | 'injectRepo' | 'injectCustomRepository' | 'injectCustomRepo' | 'injectController' | 'injectCtrl' | 'injectProvider' | 'injectMiddleware';
3
3
  export declare const TaonEntityKeysToOmitArr: TaonEntityKeysToOmit[];
4
4
  import { InjectionToken } from '@angular/core';
5
5
  import type { TaonContext } from './create-context';
@@ -6,13 +6,14 @@ import { Models } from './models';
6
6
  * Context function can be used to dynamically
7
7
  * create context with specific configuration.
8
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>>(configFn: (env: any) => Models.ContextOptions<CTX, CTRL, ENTITY, REPO, PROVIDER, SUBSCRIBER, MIGRATION>) => () => {
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
10
  types: {
11
11
  readonly controllers: any;
12
12
  readonly repositories: any;
13
13
  readonly providers: any;
14
14
  readonly subscribers: any;
15
15
  readonly migrations: any;
16
+ readonly middlewares: any;
16
17
  };
17
18
  readonly contexts: any;
18
19
  readonly contextName: string;
@@ -52,13 +53,14 @@ export declare const createContextTemplate: <CTX extends Record<string, object>,
52
53
  * REQURIED PROPERTY:
53
54
  * - contextName
54
55
  */
55
- 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>>(configFn: (env: any) => Models.ContextOptions<CTX, CTRL, ENTITY, REPO, PROVIDER, SUBSCRIBER, MIGRATION>) => {
56
+ 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>) => {
56
57
  types: {
57
58
  readonly controllers: any;
58
59
  readonly repositories: any;
59
60
  readonly providers: any;
60
61
  readonly subscribers: any;
61
62
  readonly migrations: any;
63
+ readonly middlewares: any;
62
64
  };
63
65
  readonly contexts: any;
64
66
  readonly contextName: string;
@@ -0,0 +1,8 @@
1
+ // @ts-nocheck
2
+ import { Models } from '../../models';
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 Models.DecoratorAbstractOpt {
8
+ }
@@ -4,6 +4,7 @@ import type { NgZone } from '@angular/core';
4
4
  import type { Application } from 'express';
5
5
  import { DataSource } from 'taon-typeorm/browser';
6
6
  import type { BaseInjector } from './base-classes/base-injector';
7
+ export type { TaonMiddlewareInterceptOptions } from './base-classes/base-middleware';
7
8
  import { ContextDbMigrations } from './context-db-migrations';
8
9
  import { Models } from './models';
9
10
  export declare class EndpointContext {
@@ -53,7 +54,7 @@ export declare class EndpointContext {
53
54
  /**
54
55
  * available after init()
55
56
  */
56
- config: Models.ContextOptions<any, any, any, any, any, any, any>;
57
+ config: Models.ContextOptions<any, any, any, any, any, any, any, any>;
57
58
  get logHttp(): boolean;
58
59
  get logRealtime(): boolean;
59
60
  get logFramework(): boolean;
@@ -63,7 +64,7 @@ export declare class EndpointContext {
63
64
  * Inside docker there is not need for https secure server
64
65
  */
65
66
  private isRunningInsideDocker;
66
- constructor(originalConfig: Models.ContextOptions<any, any, any, any, any, any, any>, configFn: (env: any) => Models.ContextOptions<any, any, any, any, any, any, any>);
67
+ 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>);
67
68
  init(options?: {
68
69
  initFromRecrusiveContextResovle?: boolean;
69
70
  overrideHost?: string | null;
@@ -97,13 +98,12 @@ export declare class EndpointContext {
97
98
  isCLassType(classType: Models.ClassType, classFn: Function): boolean;
98
99
  /**
99
100
  * Only for injectable types
100
- * Only for classType: CONTROLLER, REPOSITORY, PROVIDER
101
+ * Only for classType: CONTROLLER, REPOSITORY, PROVIDER, MIDDLEWARES
101
102
  */
102
103
  getClassFunByClassName(className: string): Function;
103
104
  getClassFunByClass(classFunction: Function): Function;
104
105
  getClassFunByArr(classType: Models.ClassType): Function[];
105
106
  private createInstances;
106
- reinitControllers(): Promise<void>;
107
107
  initClasses(): Promise<void>;
108
108
  isActiveOn(classInstance: object): boolean;
109
109
  get frontendHostUri(): URL;
@@ -156,7 +156,8 @@ export declare class EndpointContext {
156
156
  initControllers(): Promise<void>;
157
157
  writeActiveRoutes(): void;
158
158
  get middlewares(): Models.MiddlewareType[];
159
- private initMiddlewares;
159
+ private initFrontnedMiddlewares;
160
+ private initBackendMiddlewares;
160
161
  private initServer;
161
162
  /**
162
163
  * client can be browser or nodejs (when remote host)
@@ -4,6 +4,7 @@ import { NgZone } from '@angular/core';
4
4
  import * as base from './base-classes/base';
5
5
  import * as controllerDecorator from './decorators/classes/controller-decorator';
6
6
  import * as entityDecorator from './decorators/classes/entity-decorator';
7
+ import * as middlewareDecorator from './decorators/classes/middleware-decorator';
7
8
  import * as migrationDecorator from './decorators/classes/migration-decorator';
8
9
  import * as providerDecorator from './decorators/classes/provider-decorator';
9
10
  import * as repositoryDecorator from './decorators/classes/repository-decorator';
@@ -27,6 +28,7 @@ export { inject } from './inject';
27
28
  export { Models } from './models';
28
29
  export * from './constants';
29
30
  export { ClassHelpers } from './helpers/class-helpers';
31
+ export type { TaonMiddlewareInterceptOptions } from './base-classes/base-middleware';
30
32
  export declare namespace Taon {
31
33
  export import Response = models.Models.Http.Response;
32
34
  export import Http = http.Http;
@@ -43,17 +45,19 @@ export declare namespace Taon {
43
45
  export import Repository = repositoryDecorator.TaonRepository;
44
46
  export import Subscriber = subscriberDecorator.TaonSubscriber;
45
47
  export import Migration = migrationDecorator.TaonMigration;
48
+ export import Middleware = middlewareDecorator.TaonMiddleware;
46
49
  const isBrowser: boolean;
47
50
  const isNode: boolean;
48
51
  const isWebSQL: boolean;
49
52
  const isElectron: boolean;
50
- 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>>(configFn: (env: any) => models.Models.ContextOptions<CTX, CTRL, ENTITY, REPO, PROVIDER, SUBSCRIBER, MIGRATION>) => {
53
+ 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.Models.ContextOptions<CTX, CTRL, ENTITY, REPO, PROVIDER, SUBSCRIBER, MIGRATION, MIDDLEWARES>) => {
51
54
  types: {
52
55
  readonly controllers: any;
53
56
  readonly repositories: any;
54
57
  readonly providers: any;
55
58
  readonly subscribers: any;
56
59
  readonly migrations: any;
60
+ readonly middlewares: any;
57
61
  };
58
62
  readonly contexts: any;
59
63
  readonly contextName: string;
@@ -73,13 +77,14 @@ export declare namespace Taon {
73
77
  readonly server: import("./realtime/realtime-server").RealtimeServer;
74
78
  };
75
79
  };
76
- 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>>(configFn: (env: any) => models.Models.ContextOptions<CTX, CTRL, ENTITY, REPO, PROVIDER, SUBSCRIBER, MIGRATION>) => () => {
80
+ 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.Models.ContextOptions<CTX, CTRL, ENTITY, REPO, PROVIDER, SUBSCRIBER, MIGRATION, MIDDLEWARE>) => () => {
77
81
  types: {
78
82
  readonly controllers: any;
79
83
  readonly repositories: any;
80
84
  readonly providers: any;
81
85
  readonly subscribers: any;
82
86
  readonly migrations: any;
87
+ readonly middlewares: any;
83
88
  };
84
89
  readonly contexts: any;
85
90
  readonly contextName: string;
@@ -117,6 +122,7 @@ export declare namespace Taon {
117
122
  readonly providers: any;
118
123
  readonly subscribers: any;
119
124
  readonly migrations: any;
125
+ readonly middlewares: any;
120
126
  };
121
127
  readonly contexts: any;
122
128
  readonly contextName: string;
@@ -1,7 +1,7 @@
1
1
  // @ts-nocheck
2
- import { CoreModels } from 'tnp-core/browser';
3
2
  import { Response as ExpressResponse, Request as ExpressRequest } from 'express';
4
3
  import { Models as ModelsNg2Rest } from 'ng2-rest/browser';
4
+ import { CoreModels } from 'tnp-core/browser';
5
5
  export declare namespace Models {
6
6
  type FrameworkMode = 'backend-frontend(tcp+udp)' | 'remote-backend(tcp+udp)' | 'backend-frontend(ipc-electron)' | 'backend-frontend(websql-electron)' | 'backend-frontend(websql)';
7
7
  enum ClassType {
@@ -10,9 +10,10 @@ export declare namespace Models {
10
10
  REPOSITORY = "REPOSITORY",
11
11
  PROVIDER = "PROVIDER",
12
12
  SUBSCRIBER = "SUBSCRIBER",
13
- MIGRATION = "MIGRATION"
13
+ MIGRATION = "MIGRATION",
14
+ MIDDLEWARE = "MIDDLEWARE"
14
15
  }
15
- const ClassTypeKey: { [key in ClassType]: keyof ContextOptions<any, any, any, any, any, any, any>; };
16
+ const ClassTypeKey: { [key in ClassType]: keyof ContextOptions<any, any, any, any, any, any, any, any>; };
16
17
  type MiddlewareType = [Function, any[]];
17
18
  /**
18
19
  * DROP_DB+MIGRATIONS (default for development)
@@ -81,7 +82,7 @@ export declare namespace Models {
81
82
  db?: boolean;
82
83
  migrations?: boolean;
83
84
  };
84
- interface ContextOptions<CONTEXTS, CONTROLLERS, ENTITIES, REPOSITORIES, PROVIDERS, SUBSCRIBERS, MIGRATIONS> {
85
+ interface ContextOptions<CONTEXTS, CONTROLLERS, ENTITIES, REPOSITORIES, PROVIDERS, SUBSCRIBERS, MIGRATIONS, MIDDLEWARES> {
85
86
  appId?: string;
86
87
  contextName: string;
87
88
  /**
@@ -122,29 +123,88 @@ export declare namespace Models {
122
123
  * Default: true
123
124
  */
124
125
  useIpcWhenElectron?: boolean;
126
+ /**
127
+ * taon contexts here
128
+ * (module like structure)
129
+ */
125
130
  contexts?: CONTEXTS;
131
+ /**
132
+ * taon controller here
133
+ * (glue between frontend and backend)
134
+ */
126
135
  controllers?: CONTROLLERS;
136
+ /**
137
+ * taon entities
138
+ * (entities are used to create tables in db)
139
+ */
127
140
  entities?: ENTITIES;
141
+ /**
142
+ * taon repositories
143
+ * (repositories are used to access data from db)
144
+ */
128
145
  repositories?: REPOSITORIES;
146
+ /**
147
+ * taon providers
148
+ * (context singletons)
149
+ */
129
150
  providers?: PROVIDERS;
151
+ /**
152
+ * taon subscribers
153
+ * (subscribers are used to listen to db events)
154
+ */
130
155
  subscribers?: SUBSCRIBERS;
156
+ /**
157
+ * taon migrations
158
+ * (migrations are used to update db schema and achieve proper CI/CD)
159
+ */
131
160
  migrations?: MIGRATIONS;
161
+ /**
162
+ * taon middlewares
163
+ * middlewares are used to intercept requests
164
+ * and responses in the context
165
+ */
166
+ middlewares?: MIDDLEWARES;
167
+ /**
168
+ * Config for express session
169
+ */
132
170
  session?: ISession;
171
+ /**
172
+ * taon is not going to write .rest files to cwd()
173
+ */
133
174
  skipWritingServerRoutes?: boolean;
175
+ /**
176
+ * TODO - this is still in progress
177
+ * @deprecated
178
+ */
134
179
  productionMode?: boolean;
180
+ /**
181
+ * If you want your context to never be started as separated server
182
+ * use abstract: true
183
+ * @default: false
184
+ */
135
185
  abstract?: boolean;
136
186
  logs?: boolean | ConnectionOptionsLogs;
137
187
  database?: boolean | Partial<DatabaseConfig>;
188
+ /**
189
+ * disable default realtime communication through TCP upgrade sockets
190
+ */
138
191
  disabledRealtime?: boolean;
192
+ /**
193
+ * Will be removed soon - cloud will handle certs and https
194
+ * @deprecated
195
+ */
139
196
  https?: {
140
197
  key: string;
141
198
  cert: string;
142
199
  };
200
+ /**
201
+ * TODO - will be removed soon
202
+ * @deprecated
203
+ */
143
204
  publicAssets?: {
144
205
  serverPath: string;
145
206
  locationOnDisk: string;
146
207
  }[];
147
- middlewares?: MiddlewareType[];
148
208
  }
149
209
  class DecoratorAbstractOpt {
150
210
  className: string;
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "taon/browser",
3
- "version": "19.0.50",
3
+ "version": "19.0.52",
4
4
  "module": "fesm2022/taon.mjs",
5
5
  "typings": "index.d.ts",
6
6
  "exports": {
@@ -5,6 +5,7 @@ declare const BaseContext: {
5
5
  readonly providers: any;
6
6
  readonly subscribers: any;
7
7
  readonly migrations: any;
8
+ readonly middlewares: any;
8
9
  };
9
10
  readonly contexts: any;
10
11
  readonly contextName: string;
@@ -1,9 +1,3 @@
1
1
  import { BaseInjector } from './base-injector';
2
2
  export declare class BaseController extends BaseInjector {
3
- /**
4
- * @deprecated use migration instead
5
- * THIS ONLY WORKS IF NO MIGRATIONS PROVIDED IN CONFIG
6
- * Purpose: init example data for db.
7
- */
8
- initExampleDbData(): Promise<any>;
9
3
  }
@@ -10,14 +10,6 @@ exports.BaseController = void 0;
10
10
  const controller_decorator_1 = require("../decorators/classes/controller-decorator");
11
11
  const base_injector_1 = require("./base-injector");
12
12
  let BaseController = class BaseController extends base_injector_1.BaseInjector {
13
- /**
14
- * @deprecated use migration instead
15
- * THIS ONLY WORKS IF NO MIGRATIONS PROVIDED IN CONFIG
16
- * Purpose: init example data for db.
17
- */
18
- initExampleDbData() {
19
- return void 0;
20
- }
21
13
  };
22
14
  exports.BaseController = BaseController;
23
15
  exports.BaseController = BaseController = __decorate([
@@ -1 +1 @@
1
- {"version":3,"file":"base-controller.js","sourceRoot":"","sources":[""],"names":[],"mappings":";;;;;;;;;AAAA,qFAA4E;AAE5E,mDAA+C;AAGxC,IAAM,cAAc,GAApB,MAAM,cAAe,SAAQ,4BAAY;IAC9C;;;;OAIG;IACH,iBAAiB;QACf,OAAO,KAAK,CAAC,CAAC;IAChB,CAAC;CACF,CAAA;AATY,wCAAc;yBAAd,cAAc;IAD1B,IAAA,qCAAc,EAAC,EAAE,SAAS,EAAE,gBAAgB,EAAE,CAAC;GACnC,cAAc,CAS1B"}
1
+ {"version":3,"file":"base-controller.js","sourceRoot":"","sources":[""],"names":[],"mappings":";;;;;;;;;AAAA,qFAA4E;AAE5E,mDAA+C;AAGxC,IAAM,cAAc,GAApB,MAAM,cAAe,SAAQ,4BAAY;CAE/C,CAAA;AAFY,wCAAc;yBAAd,cAAc;IAD1B,IAAA,qCAAc,EAAC,EAAE,SAAS,EAAE,gBAAgB,EAAE,CAAC;GACnC,cAAc,CAE1B"}
@@ -52,14 +52,13 @@ export declare class BaseInjector {
52
52
  */
53
53
  injectCtrl<T>(ctor: new (...args: any[]) => T): T;
54
54
  /**
55
- * global provider available in every context
55
+ * inject middleware for context
56
56
  */
57
- injectGlobalProvider<T>(ctor: new (...args: any[]) => T): T;
57
+ injectMiddleware<T>(ctor: new (...args: any[]) => T): T;
58
58
  /**
59
- * context scoped provider
60
- * TODO
59
+ * inject provider for context
61
60
  */
62
- injectContextProvider<T>(ctor: new (...args: any[]) => T): T;
61
+ injectProvider<T>(ctor: new (...args: any[]) => T): T;
63
62
  /**
64
63
  * Inject: Controllers, Providers, Repositories, Services, etc.
65
64
  * TODO addd nest js injecting
@@ -106,18 +106,17 @@ class BaseInjector {
106
106
  //#endregion
107
107
  //#region inject / global provider
108
108
  /**
109
- * global provider available in every context
109
+ * inject middleware for context
110
110
  */
111
- injectGlobalProvider(ctor) {
111
+ injectMiddleware(ctor) {
112
112
  return this.__inject(ctor, { localInstance: false });
113
113
  }
114
114
  //#endregion
115
115
  //#region inject / context provider
116
116
  /**
117
- * context scoped provider
118
- * TODO
117
+ * inject provider for context
119
118
  */
120
- injectContextProvider(ctor) {
119
+ injectProvider(ctor) {
121
120
  return this.__inject(ctor, { localInstance: false });
122
121
  }
123
122
  //#endregion
@@ -151,7 +150,7 @@ class BaseInjector {
151
150
  throw new Error(`Not able to inject "${class_helpers_1.ClassHelpers.getName(ctor) || ctor.name}" inside ` +
152
151
  `property "${propName?.toString()}" on class "${class_helpers_1.ClassHelpers.getName(this)}".
153
152
 
154
- Please add "${class_helpers_1.ClassHelpers.getName(ctor) || ctor.name}" to (entites or contorllers or providers or repositories)
153
+ Please add "${class_helpers_1.ClassHelpers.getName(ctor) || ctor.name}" to (entites or contorllers or providers or repositories or middlewares)
155
154
 
156
155
  `);
157
156
  }
@@ -184,7 +183,7 @@ class BaseInjector {
184
183
  throw new Error(`Not able to inject "${classNameNotResolved}" inside ` +
185
184
  `property "${propName?.toString()}" on class "${class_helpers_1.ClassHelpers.getName(this)}".
186
185
 
187
- Please add "${class_helpers_1.ClassHelpers.getName(ctor) || ctor.name}" to (entites or contorllers or providers or repositories)
186
+ Please add "${class_helpers_1.ClassHelpers.getName(ctor) || ctor.name}" to (entites or contorllers or providers or repositories or middlewares)
188
187
 
189
188
  `);
190
189
  }
@@ -1 +1 @@
1
- {"version":3,"file":"base-injector.js","sourceRoot":"","sources":[""],"names":[],"mappings":";;;AAIA,4DAAwD;AACxD,wCAAqC;AAIrC,YAAY;AAEZ,MAAa,YAAY;IACvB,8BAA8B;IAC9B;;OAEG;IACH,oBAAoB,CAAY;IAChC;;OAEG;IACH,sBAAsB,CAAY;IAClC,YAAY;IAEZ,mCAAmC;IACnC;;;OAGG;IACH,KAAK,CAAC,CAAC,KAAmB,CAAC;IAC3B,YAAY;IAEZ,iBAAiB;IACjB;;;OAGG;IACH,IAAI,oBAAoB;QACtB,OAAO,IAAI,CAAC,iBAAO,CAAC,oBAAoB,CAAoB,CAAC;IAC/D,CAAC;IAED;;OAEG;IACH,IAAI,GAAG;QACL,OAAO,IAAI,CAAC,oBAAoB,CAAC;IACnC,CAAC;IACD,YAAY;IAEZ,gBAAgB;IAEhB,kCAAkC;IAClC;;OAEG;IACH,UAAU,CAAI,aAAwC;QACpD,MAAM,SAAS,GAAG,IAAI,CAAC,QAAQ,CAAC,KAAK,CAAC,EAAE;YACtC,aAAa,EAAE,IAAI;YACnB,uBAAuB,EAAE,gBAAgB;YACzC,2BAA2B,EAAE,CAAC,GAAG,EAAE,CAAC,aAAa,CAAC;SACnD,CAAC,CAAC;QACH,OAAO,SAAgB,CAAC;IAC1B,CAAC;IACD,YAAY;IAEZ,oCAAoC;IACpC,sBAAsB,CACpB,oBAA+C;QAE/C,MAAM,SAAS,GAAG,IAAI,CAAC,QAAQ,CAAI,oBAAoB,EAAE;YACv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d,CAAC;SACF,CACG,CAAC;IACT,CAAC;CAIF;AA1QD,oCA0QC"}
@@ -0,0 +1,20 @@
1
+ import type { AxiosRequestConfig } from 'axios';
2
+ import type express from 'express';
3
+ import { BaseInjector } from './base-injector';
4
+ export interface TaonMiddlewareInterceptOptions {
5
+ client?: {
6
+ req: AxiosRequestConfig<unknown>;
7
+ } | undefined;
8
+ server?: {
9
+ req: express.Request;
10
+ res: express.Response;
11
+ } | undefined;
12
+ }
13
+ /**
14
+ * TODO
15
+ * - global provider available in all contexts
16
+ * - provider available in own context
17
+ */
18
+ export declare abstract class BaseMiddleware extends BaseInjector {
19
+ abstract intercept({ server, client, }: TaonMiddlewareInterceptOptions): Promise<void>;
20
+ }
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.BaseMiddleware = void 0;
4
+ const base_injector_1 = require("./base-injector");
5
+ /**
6
+ * TODO
7
+ * - global provider available in all contexts
8
+ * - provider available in own context
9
+ */
10
+ class BaseMiddleware extends base_injector_1.BaseInjector {
11
+ }
12
+ exports.BaseMiddleware = BaseMiddleware;
13
+ //# sourceMappingURL=base-middleware.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"base-middleware.js","sourceRoot":"","sources":[""],"names":[],"mappings":";;;AAIA,mDAA+C;AAsB/C;;;;GAIG;AACH,MAAsB,cAAe,SAAQ,4BAAY;CAKxD;AALD,wCAKC"}
@@ -5,6 +5,7 @@ import * as controller from './base-controller';
5
5
  import * as crudController from './base-crud-controller';
6
6
  import * as customRepository from './base-custom-repository';
7
7
  import * as entity from './base-entity';
8
+ import * as baseMiddleware from './base-middleware';
8
9
  import * as baseMigration from './base-migration';
9
10
  import * as provider from './base-provider';
10
11
  import * as repository from './base-repository';
@@ -21,6 +22,7 @@ export declare namespace Base {
21
22
  export import CustomRepository = customRepository.BaseCustomRepository;
22
23
  export import SubscriberForEntity = baseSubscriberEntity.BaseSubscriberForEntity;
23
24
  export import Migration = baseMigration.BaseMigration;
25
+ export import Middleware = baseMiddleware.BaseMiddleware;
24
26
  export import AngularService = baseService.BaseAngularsService;
25
27
  const Context: {
26
28
  types: {
@@ -29,6 +31,7 @@ export declare namespace Base {
29
31
  readonly providers: any;
30
32
  readonly subscribers: any;
31
33
  readonly migrations: any;
34
+ readonly middlewares: any;
32
35
  };
33
36
  readonly contexts: any;
34
37
  readonly contextName: string;
@@ -9,6 +9,7 @@ const controller = require("./base-controller");
9
9
  const crudController = require("./base-crud-controller");
10
10
  const customRepository = require("./base-custom-repository");
11
11
  const entity = require("./base-entity");
12
+ const baseMiddleware = require("./base-middleware");
12
13
  const baseMigration = require("./base-migration");
13
14
  const provider = require("./base-provider");
14
15
  const repository = require("./base-repository");
@@ -25,6 +26,7 @@ var Base;
25
26
  Base.CustomRepository = customRepository.BaseCustomRepository;
26
27
  Base.SubscriberForEntity = baseSubscriberEntity.BaseSubscriberForEntity;
27
28
  Base.Migration = baseMigration.BaseMigration;
29
+ Base.Middleware = baseMiddleware.BaseMiddleware;
28
30
  Base.AngularService = baseService.BaseAngularsService;
29
31
  Base.Context = baseContext.BaseContext;
30
32
  })(Base || (exports.Base = Base = {}));
@@ -1 +1 @@
1
- {"version":3,"file":"base.js","sourceRoot":"","sources":[""],"names":[],"mappings":";;;AAAA,yDAAyD;AACzD,sDAAsD;AACtD,0CAA0C;AAC1C,8CAA8C;AAC9C,gDAAgD;AAChD,yDAAyD;AACzD,6DAA6D;AAC7D,wCAAwC;AACxC,kDAAkD;AAClD,4CAA4C;AAC5C,gDAAgD;AAChD,qEAAqE;AACrE,IAAiB,IAAI,CAcpB;AAdD,WAAiB,IAAI;IACL,eAAU,GAAG,UAAU,CAAC,cAAc,CAAC;IACvC,mBAAc,GAAG,cAAc,CAAC,kBAAkB,CAAC;IACnD,WAAM,GAAG,MAAM,CAAC,UAAU,CAAC;IAC3B,mBAAc,GAAG,cAAc,CAAC,kBAAkB,CAAC;IAEnD,aAAQ,GAAG,QAAQ,CAAC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AC,WAAW,CAAC;AACjD,CAAC,EAfgB,IAAI,oBAAJ,IAAI,QAepB"}
@@ -17,4 +17,4 @@ export declare const PROJECT_NPM_NAME = "taon";
17
17
  /**
18
18
  * Autogenerated by current cli tool. Use *tnp release* to bump version.
19
19
  */
20
- export declare const CURRENT_PACKAGE_VERSION = "19.0.50";
20
+ export declare const CURRENT_PACKAGE_VERSION = "19.0.52";
@@ -21,6 +21,6 @@ exports.PROJECT_NPM_NAME = 'taon';
21
21
  /**
22
22
  * Autogenerated by current cli tool. Use *tnp release* to bump version.
23
23
  */
24
- exports.CURRENT_PACKAGE_VERSION = '19.0.50';
24
+ exports.CURRENT_PACKAGE_VERSION = '19.0.52';
25
25
  // THIS FILE IS GENERATED - DO NOT MODIFY
26
26
  //# sourceMappingURL=build-info._auto-generated_.js.map
@@ -1,4 +1,4 @@
1
- export type TaonEntityKeysToOmit = 'ctrl' | 'clone' | '__endpoint_context__' | 'ctx' | 'inject' | '_' | 'relation' | 'relations' | 'inject' | 'injectRepo' | 'injectCustomRepository' | 'injectCustomRepo' | 'injectController' | 'injectCtrl' | 'injectGlobalProvider' | 'injectLocalProvider' | 'injectContextProvider';
1
+ export type TaonEntityKeysToOmit = 'ctrl' | 'clone' | '__endpoint_context__' | 'ctx' | 'inject' | '_' | 'relation' | 'relations' | 'inject' | 'injectRepo' | 'injectCustomRepository' | 'injectCustomRepo' | 'injectController' | 'injectCtrl' | 'injectProvider' | 'injectMiddleware';
2
2
  export declare const TaonEntityKeysToOmitArr: TaonEntityKeysToOmit[];
3
3
  import { InjectionToken } from '@angular/core';
4
4
  import type { TaonContext } from './create-context';
package/lib/constants.js CHANGED
@@ -16,9 +16,8 @@ exports.TaonEntityKeysToOmitArr = [
16
16
  'injectCustomRepo',
17
17
  'injectController',
18
18
  'injectCtrl',
19
- 'injectGlobalProvider',
20
- 'injectLocalProvider',
21
- 'injectContextProvider',
19
+ 'injectProvider',
20
+ 'injectMiddleware',
22
21
  ];
23
22
  let TAON_CONTEXT;
24
23
  /* */
@@ -1 +1 @@
1
- {"version":3,"file":"constants.js","sourceRoot":"","sources":[""],"names":[],"mappings":";;;AAmBa,QAAA,uBAAuB,GAA2B;IAC7D,MAAM;IACN,OAAO;IACP,sBAAsB;IACtB,KAAK;IACL,QAAQ;IACR,GAAG;IACH,UAAU;IACV,WAAW;IACX,QAAQ;IACR,YAAY;IACZ,wBAAwB;IACxB,kBAAkB;IAClB,kBAAkB;IAClB,YAAY;IACZ,sBAAsB;IACtB,qBAAqB;IACrB,uBAAuB;CACxB,CAAC;AAMF,IAAI,YAAyC,CAAC;AAC9C,KAAK;AACL,KAAK;AAGL,IAAI,yBAAiD,CAAC;AASzC,QAAA,SAAS,GAAG,KAAK,CAAC"}
1
+ {"version":3,"file":"constants.js","sourceRoot":"","sources":[""],"names":[],"mappings":";;;AAkBa,QAAA,uBAAuB,GAA2B;IAC7D,MAAM;IACN,OAAO;IACP,sBAAsB;IACtB,KAAK;IACL,QAAQ;IACR,GAAG;IACH,UAAU;IACV,WAAW;IACX,QAAQ;IACR,YAAY;IACZ,wBAAwB;IACxB,kBAAkB;IAClB,kBAAkB;IAClB,YAAY;IACZ,gBAAgB;IAChB,kBAAkB;CACnB,CAAC;AAMF,IAAI,YAAyC,CAAC;AAC9C,KAAK;AACL,KAAK;AAGL,IAAI,yBAAiD,CAAC;AASzC,QAAA,SAAS,GAAG,KAAK,CAAC"}