taon 0.0.0 → 18.0.15
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/README.md +115 -0
- package/assets/shared/shared_folder_info.txt +7 -0
- package/bin/start.js +279 -0
- package/bin/taon +6 -5
- package/bin/taon-debug +5 -5
- package/bin/taon-debug-brk +5 -4
- package/browser/README.md +24 -0
- package/browser/esm2022/lib/base-classes/base-abstract-entity.mjs +18 -0
- package/browser/esm2022/lib/base-classes/base-class.mjs +17 -0
- package/browser/esm2022/lib/base-classes/base-context.mjs +14 -0
- package/browser/esm2022/lib/base-classes/base-controller.mjs +18 -0
- package/browser/esm2022/lib/base-classes/base-crud-controller.mjs +279 -0
- package/browser/esm2022/lib/base-classes/base-entity.mjs +18 -0
- package/browser/esm2022/lib/base-classes/base-injector.mjs +160 -0
- package/browser/esm2022/lib/base-classes/base-provider.mjs +6 -0
- package/browser/esm2022/lib/base-classes/base-repository.mjs +514 -0
- package/browser/esm2022/lib/base-classes/base-subscriber-for-entity.mjs +137 -0
- package/browser/esm2022/lib/base-classes/base-subscriber.mjs +27 -0
- package/browser/esm2022/lib/base-classes/base.mjs +26 -0
- package/browser/esm2022/lib/constants.mjs +4 -0
- package/browser/esm2022/lib/create-context.mjs +87 -0
- package/browser/esm2022/lib/decorators/classes/controller-decorator.mjs +15 -0
- package/browser/esm2022/lib/decorators/classes/entity-decorator.mjs +27 -0
- package/browser/esm2022/lib/decorators/classes/provider-decorator.mjs +15 -0
- package/browser/esm2022/lib/decorators/classes/repository-decorator.mjs +15 -0
- package/browser/esm2022/lib/decorators/classes/subscriber-decorator.mjs +41 -0
- package/browser/esm2022/lib/decorators/http/http-decorators.mjs +22 -0
- package/browser/esm2022/lib/decorators/http/http-methods-decorators.mjs +78 -0
- package/browser/esm2022/lib/decorators/http/http-params-decorators.mjs +47 -0
- package/browser/esm2022/lib/dependency-injection/di-container.mjs +32 -0
- package/browser/esm2022/lib/endpoint-context.mjs +1746 -0
- package/browser/esm2022/lib/entity-process.mjs +207 -0
- package/browser/esm2022/lib/env.mjs +6 -0
- package/browser/esm2022/lib/get-response-value.mjs +41 -0
- package/browser/esm2022/lib/helpers/class-helpers.mjs +183 -0
- package/browser/esm2022/lib/helpers/taon-helpers.mjs +120 -0
- package/browser/esm2022/lib/index.mjs +79 -0
- package/browser/esm2022/lib/inject.mjs +70 -0
- package/browser/esm2022/lib/models.mjs +77 -0
- package/browser/esm2022/lib/orm.mjs +6 -0
- package/browser/esm2022/lib/realtime/realtime-client.mjs +129 -0
- package/browser/esm2022/lib/realtime/realtime-core.mjs +54 -0
- package/browser/esm2022/lib/realtime/realtime-server.mjs +274 -0
- package/browser/esm2022/lib/realtime/realtime-strategy/index.mjs +7 -0
- package/browser/esm2022/lib/realtime/realtime-strategy/realtime-strategy-ipc-models/realtime-strategy-ipc-main-namespace.mjs +98 -0
- package/browser/esm2022/lib/realtime/realtime-strategy/realtime-strategy-ipc-models/realtime-strategy-ipc-main-wrapper.mjs +45 -0
- package/browser/esm2022/lib/realtime/realtime-strategy/realtime-strategy-ipc-models/realtime-strategy-ipc-renderer-namespace.mjs +40 -0
- package/browser/esm2022/lib/realtime/realtime-strategy/realtime-strategy-ipc-models/realtime-strategy-ipc-renderer-wrapper.mjs +25 -0
- package/browser/esm2022/lib/realtime/realtime-strategy/realtime-strategy-ipc-models/realtime-strategy-ipc.models.mjs +4 -0
- package/browser/esm2022/lib/realtime/realtime-strategy/realtime-strategy-ipc.mjs +49 -0
- package/browser/esm2022/lib/realtime/realtime-strategy/realtime-strategy-mock-models/index.mjs +5 -0
- package/browser/esm2022/lib/realtime/realtime-strategy/realtime-strategy-mock-models/realtime-strategy-mock-client.mjs +50 -0
- package/browser/esm2022/lib/realtime/realtime-strategy/realtime-strategy-mock-models/realtime-strategy-mock-namespaces.mjs +48 -0
- package/browser/esm2022/lib/realtime/realtime-strategy/realtime-strategy-mock-models/realtime-strategy-mock-server.mjs +35 -0
- package/browser/esm2022/lib/realtime/realtime-strategy/realtime-strategy-mock-models/realtime-strategy-mock-socket.mjs +43 -0
- package/browser/esm2022/lib/realtime/realtime-strategy/realtime-strategy-mock-models/realtime-strategy-mock.models.mjs +4 -0
- package/browser/esm2022/lib/realtime/realtime-strategy/realtime-strategy-mock.mjs +28 -0
- package/browser/esm2022/lib/realtime/realtime-strategy/realtime-strategy-socket-io.mjs +33 -0
- package/browser/esm2022/lib/realtime/realtime-strategy/realtime-strategy.mjs +10 -0
- package/browser/esm2022/lib/realtime/realtime-subs-manager.mjs +79 -0
- package/browser/esm2022/lib/realtime/realtime.models.mjs +4 -0
- package/browser/esm2022/lib/storage.mjs +5 -0
- package/browser/esm2022/lib/symbols.mjs +89 -0
- package/browser/esm2022/lib/ui/taon-admin-mode-configuration/models/taon-admin-mode-tabs.mjs +4 -0
- package/browser/esm2022/lib/ui/taon-admin-mode-configuration/taon-admin-control.service.mjs +32 -0
- package/browser/esm2022/lib/ui/taon-admin-mode-configuration/taon-admin-mode-configuration.component.mjs +167 -0
- package/browser/esm2022/lib/ui/taon-admin-mode-configuration/taon-admin.service.mjs +64 -0
- package/browser/esm2022/lib/validators.mjs +76 -0
- package/browser/esm2022/public-api.mjs +2 -0
- package/browser/esm2022/taon.mjs +5 -0
- package/browser/fesm2022/taon.mjs +4901 -0
- package/browser/fesm2022/taon.mjs.map +1 -0
- package/browser/index.d.ts +6 -0
- package/browser/lib/base-classes/base-abstract-entity.d.ts +7 -0
- package/browser/lib/base-classes/base-class.d.ts +9 -0
- package/browser/lib/base-classes/base-context.d.ts +17 -0
- package/browser/lib/base-classes/base-controller.d.ts +8 -0
- package/browser/lib/base-classes/base-crud-controller.d.ts +28 -0
- package/browser/lib/base-classes/base-entity.d.ts +8 -0
- package/browser/lib/base-classes/base-injector.d.ts +60 -0
- package/browser/lib/base-classes/base-provider.d.ts +4 -0
- package/browser/lib/base-classes/base-repository.d.ts +249 -0
- package/browser/lib/base-classes/base-subscriber-for-entity.d.ts +82 -0
- package/browser/lib/base-classes/base-subscriber.d.ts +5 -0
- package/browser/lib/base-classes/base.d.ts +36 -0
- package/browser/lib/constants.d.ts +2 -0
- package/browser/lib/create-context.d.ts +25 -0
- package/browser/lib/decorators/classes/controller-decorator.d.ts +13 -0
- package/browser/lib/decorators/classes/entity-decorator.d.ts +17 -0
- package/browser/lib/decorators/classes/provider-decorator.d.ts +5 -0
- package/browser/lib/decorators/classes/repository-decorator.d.ts +5 -0
- package/browser/lib/decorators/classes/subscriber-decorator.d.ts +6 -0
- package/browser/lib/decorators/http/http-decorators.d.ts +18 -0
- package/browser/lib/decorators/http/http-methods-decorators.d.ts +15 -0
- package/browser/lib/decorators/http/http-params-decorators.d.ts +6 -0
- package/browser/lib/dependency-injection/di-container.d.ts +6 -0
- package/browser/lib/endpoint-context.d.ts +117 -0
- package/browser/lib/entity-process.d.ts +40 -0
- package/browser/lib/env.d.ts +3 -0
- package/browser/lib/get-response-value.d.ts +7 -0
- package/browser/lib/helpers/class-helpers.d.ts +19 -0
- package/browser/lib/helpers/taon-helpers.d.ts +17 -0
- package/browser/lib/index.d.ts +113 -0
- package/browser/lib/inject.d.ts +9 -0
- package/browser/lib/models.d.ts +175 -0
- package/browser/lib/orm.d.ts +3 -0
- package/browser/lib/realtime/realtime-client.d.ts +32 -0
- package/browser/lib/realtime/realtime-core.d.ts +41 -0
- package/browser/lib/realtime/realtime-server.d.ts +14 -0
- package/browser/lib/realtime/realtime-strategy/index.d.ts +5 -0
- package/browser/lib/realtime/realtime-strategy/realtime-strategy-ipc-models/realtime-strategy-ipc-main-namespace.d.ts +22 -0
- package/browser/lib/realtime/realtime-strategy/realtime-strategy-ipc-models/realtime-strategy-ipc-main-wrapper.d.ts +17 -0
- package/browser/lib/realtime/realtime-strategy/realtime-strategy-ipc-models/realtime-strategy-ipc-renderer-namespace.d.ts +11 -0
- package/browser/lib/realtime/realtime-strategy/realtime-strategy-ipc-models/realtime-strategy-ipc-renderer-wrapper.d.ts +11 -0
- package/browser/lib/realtime/realtime-strategy/realtime-strategy-ipc-models/realtime-strategy-ipc.models.d.ts +14 -0
- package/browser/lib/realtime/realtime-strategy/realtime-strategy-ipc.d.ts +23 -0
- package/browser/lib/realtime/realtime-strategy/realtime-strategy-mock-models/index.d.ts +3 -0
- package/browser/lib/realtime/realtime-strategy/realtime-strategy-mock-models/realtime-strategy-mock-client.d.ts +17 -0
- package/browser/lib/realtime/realtime-strategy/realtime-strategy-mock-models/realtime-strategy-mock-namespaces.d.ts +18 -0
- package/browser/lib/realtime/realtime-strategy/realtime-strategy-mock-models/realtime-strategy-mock-server.d.ts +12 -0
- package/browser/lib/realtime/realtime-strategy/realtime-strategy-mock-models/realtime-strategy-mock-socket.d.ts +14 -0
- package/browser/lib/realtime/realtime-strategy/realtime-strategy-mock-models/realtime-strategy-mock.models.d.ts +12 -0
- package/browser/lib/realtime/realtime-strategy/realtime-strategy-mock.d.ts +15 -0
- package/browser/lib/realtime/realtime-strategy/realtime-strategy-socket-io.d.ts +17 -0
- package/browser/lib/realtime/realtime-strategy/realtime-strategy.d.ts +13 -0
- package/browser/lib/realtime/realtime-subs-manager.d.ts +15 -0
- package/browser/lib/realtime/realtime.models.d.ts +14 -0
- package/browser/lib/storage.d.ts +2 -0
- package/browser/lib/symbols.d.ts +73 -0
- package/browser/lib/ui/taon-admin-mode-configuration/models/taon-admin-mode-tabs.d.ts +6 -0
- package/browser/lib/ui/taon-admin-mode-configuration/taon-admin-control.service.d.ts +18 -0
- package/browser/lib/ui/taon-admin-mode-configuration/taon-admin-mode-configuration.component.d.ts +51 -0
- package/browser/lib/ui/taon-admin-mode-configuration/taon-admin.service.d.ts +25 -0
- package/browser/lib/validators.d.ts +8 -0
- package/browser/package.json +25 -0
- package/browser/public-api.d.ts +2 -0
- package/cli.d.ts +1 -0
- package/cli.js +24 -0
- package/cli.js.map +1 -0
- package/client/README.md +24 -0
- package/client/esm2022/lib/base-classes/base-abstract-entity.mjs +18 -0
- package/client/esm2022/lib/base-classes/base-class.mjs +17 -0
- package/client/esm2022/lib/base-classes/base-context.mjs +14 -0
- package/client/esm2022/lib/base-classes/base-controller.mjs +18 -0
- package/client/esm2022/lib/base-classes/base-crud-controller.mjs +279 -0
- package/client/esm2022/lib/base-classes/base-entity.mjs +18 -0
- package/client/esm2022/lib/base-classes/base-injector.mjs +160 -0
- package/client/esm2022/lib/base-classes/base-provider.mjs +6 -0
- package/client/esm2022/lib/base-classes/base-repository.mjs +514 -0
- package/client/esm2022/lib/base-classes/base-subscriber-for-entity.mjs +137 -0
- package/client/esm2022/lib/base-classes/base-subscriber.mjs +27 -0
- package/client/esm2022/lib/base-classes/base.mjs +26 -0
- package/client/esm2022/lib/constants.mjs +4 -0
- package/client/esm2022/lib/create-context.mjs +87 -0
- package/client/esm2022/lib/decorators/classes/controller-decorator.mjs +15 -0
- package/client/esm2022/lib/decorators/classes/entity-decorator.mjs +27 -0
- package/client/esm2022/lib/decorators/classes/provider-decorator.mjs +15 -0
- package/client/esm2022/lib/decorators/classes/repository-decorator.mjs +15 -0
- package/client/esm2022/lib/decorators/classes/subscriber-decorator.mjs +41 -0
- package/client/esm2022/lib/decorators/http/http-decorators.mjs +22 -0
- package/client/esm2022/lib/decorators/http/http-methods-decorators.mjs +78 -0
- package/client/esm2022/lib/decorators/http/http-params-decorators.mjs +47 -0
- package/client/esm2022/lib/dependency-injection/di-container.mjs +32 -0
- package/client/esm2022/lib/endpoint-context.mjs +1746 -0
- package/client/esm2022/lib/entity-process.mjs +207 -0
- package/client/esm2022/lib/env.mjs +6 -0
- package/client/esm2022/lib/get-response-value.mjs +41 -0
- package/client/esm2022/lib/helpers/class-helpers.mjs +183 -0
- package/client/esm2022/lib/helpers/taon-helpers.mjs +120 -0
- package/client/esm2022/lib/index.mjs +79 -0
- package/client/esm2022/lib/inject.mjs +70 -0
- package/client/esm2022/lib/models.mjs +77 -0
- package/client/esm2022/lib/orm.mjs +6 -0
- package/client/esm2022/lib/realtime/realtime-client.mjs +129 -0
- package/client/esm2022/lib/realtime/realtime-core.mjs +54 -0
- package/client/esm2022/lib/realtime/realtime-server.mjs +274 -0
- package/client/esm2022/lib/realtime/realtime-strategy/index.mjs +7 -0
- package/client/esm2022/lib/realtime/realtime-strategy/realtime-strategy-ipc-models/realtime-strategy-ipc-main-namespace.mjs +98 -0
- package/client/esm2022/lib/realtime/realtime-strategy/realtime-strategy-ipc-models/realtime-strategy-ipc-main-wrapper.mjs +45 -0
- package/client/esm2022/lib/realtime/realtime-strategy/realtime-strategy-ipc-models/realtime-strategy-ipc-renderer-namespace.mjs +40 -0
- package/client/esm2022/lib/realtime/realtime-strategy/realtime-strategy-ipc-models/realtime-strategy-ipc-renderer-wrapper.mjs +25 -0
- package/client/esm2022/lib/realtime/realtime-strategy/realtime-strategy-ipc-models/realtime-strategy-ipc.models.mjs +4 -0
- package/client/esm2022/lib/realtime/realtime-strategy/realtime-strategy-ipc.mjs +49 -0
- package/client/esm2022/lib/realtime/realtime-strategy/realtime-strategy-mock-models/index.mjs +5 -0
- package/client/esm2022/lib/realtime/realtime-strategy/realtime-strategy-mock-models/realtime-strategy-mock-client.mjs +50 -0
- package/client/esm2022/lib/realtime/realtime-strategy/realtime-strategy-mock-models/realtime-strategy-mock-namespaces.mjs +48 -0
- package/client/esm2022/lib/realtime/realtime-strategy/realtime-strategy-mock-models/realtime-strategy-mock-server.mjs +35 -0
- package/client/esm2022/lib/realtime/realtime-strategy/realtime-strategy-mock-models/realtime-strategy-mock-socket.mjs +43 -0
- package/client/esm2022/lib/realtime/realtime-strategy/realtime-strategy-mock-models/realtime-strategy-mock.models.mjs +4 -0
- package/client/esm2022/lib/realtime/realtime-strategy/realtime-strategy-mock.mjs +28 -0
- package/client/esm2022/lib/realtime/realtime-strategy/realtime-strategy-socket-io.mjs +33 -0
- package/client/esm2022/lib/realtime/realtime-strategy/realtime-strategy.mjs +10 -0
- package/client/esm2022/lib/realtime/realtime-subs-manager.mjs +79 -0
- package/client/esm2022/lib/realtime/realtime.models.mjs +4 -0
- package/client/esm2022/lib/storage.mjs +5 -0
- package/client/esm2022/lib/symbols.mjs +89 -0
- package/client/esm2022/lib/ui/taon-admin-mode-configuration/models/taon-admin-mode-tabs.mjs +4 -0
- package/client/esm2022/lib/ui/taon-admin-mode-configuration/taon-admin-control.service.mjs +32 -0
- package/client/esm2022/lib/ui/taon-admin-mode-configuration/taon-admin-mode-configuration.component.mjs +167 -0
- package/client/esm2022/lib/ui/taon-admin-mode-configuration/taon-admin.service.mjs +64 -0
- package/client/esm2022/lib/validators.mjs +76 -0
- package/client/esm2022/public-api.mjs +2 -0
- package/client/esm2022/taon.mjs +5 -0
- package/client/fesm2022/taon.mjs +4901 -0
- package/client/fesm2022/taon.mjs.map +1 -0
- package/client/index.d.ts +6 -0
- package/client/lib/base-classes/base-abstract-entity.d.ts +7 -0
- package/client/lib/base-classes/base-class.d.ts +9 -0
- package/client/lib/base-classes/base-context.d.ts +17 -0
- package/client/lib/base-classes/base-controller.d.ts +8 -0
- package/client/lib/base-classes/base-crud-controller.d.ts +28 -0
- package/client/lib/base-classes/base-entity.d.ts +8 -0
- package/client/lib/base-classes/base-injector.d.ts +60 -0
- package/client/lib/base-classes/base-provider.d.ts +4 -0
- package/client/lib/base-classes/base-repository.d.ts +249 -0
- package/client/lib/base-classes/base-subscriber-for-entity.d.ts +82 -0
- package/client/lib/base-classes/base-subscriber.d.ts +5 -0
- package/client/lib/base-classes/base.d.ts +36 -0
- package/client/lib/constants.d.ts +2 -0
- package/client/lib/create-context.d.ts +25 -0
- package/client/lib/decorators/classes/controller-decorator.d.ts +13 -0
- package/client/lib/decorators/classes/entity-decorator.d.ts +17 -0
- package/client/lib/decorators/classes/provider-decorator.d.ts +5 -0
- package/client/lib/decorators/classes/repository-decorator.d.ts +5 -0
- package/client/lib/decorators/classes/subscriber-decorator.d.ts +6 -0
- package/client/lib/decorators/http/http-decorators.d.ts +18 -0
- package/client/lib/decorators/http/http-methods-decorators.d.ts +15 -0
- package/client/lib/decorators/http/http-params-decorators.d.ts +6 -0
- package/client/lib/dependency-injection/di-container.d.ts +6 -0
- package/client/lib/endpoint-context.d.ts +117 -0
- package/client/lib/entity-process.d.ts +40 -0
- package/client/lib/env.d.ts +3 -0
- package/client/lib/get-response-value.d.ts +7 -0
- package/client/lib/helpers/class-helpers.d.ts +19 -0
- package/client/lib/helpers/taon-helpers.d.ts +17 -0
- package/client/lib/index.d.ts +113 -0
- package/client/lib/inject.d.ts +9 -0
- package/client/lib/models.d.ts +175 -0
- package/client/lib/orm.d.ts +3 -0
- package/client/lib/realtime/realtime-client.d.ts +32 -0
- package/client/lib/realtime/realtime-core.d.ts +41 -0
- package/client/lib/realtime/realtime-server.d.ts +14 -0
- package/client/lib/realtime/realtime-strategy/index.d.ts +5 -0
- package/client/lib/realtime/realtime-strategy/realtime-strategy-ipc-models/realtime-strategy-ipc-main-namespace.d.ts +22 -0
- package/client/lib/realtime/realtime-strategy/realtime-strategy-ipc-models/realtime-strategy-ipc-main-wrapper.d.ts +17 -0
- package/client/lib/realtime/realtime-strategy/realtime-strategy-ipc-models/realtime-strategy-ipc-renderer-namespace.d.ts +11 -0
- package/client/lib/realtime/realtime-strategy/realtime-strategy-ipc-models/realtime-strategy-ipc-renderer-wrapper.d.ts +11 -0
- package/client/lib/realtime/realtime-strategy/realtime-strategy-ipc-models/realtime-strategy-ipc.models.d.ts +14 -0
- package/client/lib/realtime/realtime-strategy/realtime-strategy-ipc.d.ts +23 -0
- package/client/lib/realtime/realtime-strategy/realtime-strategy-mock-models/index.d.ts +3 -0
- package/client/lib/realtime/realtime-strategy/realtime-strategy-mock-models/realtime-strategy-mock-client.d.ts +17 -0
- package/client/lib/realtime/realtime-strategy/realtime-strategy-mock-models/realtime-strategy-mock-namespaces.d.ts +18 -0
- package/client/lib/realtime/realtime-strategy/realtime-strategy-mock-models/realtime-strategy-mock-server.d.ts +12 -0
- package/client/lib/realtime/realtime-strategy/realtime-strategy-mock-models/realtime-strategy-mock-socket.d.ts +14 -0
- package/client/lib/realtime/realtime-strategy/realtime-strategy-mock-models/realtime-strategy-mock.models.d.ts +12 -0
- package/client/lib/realtime/realtime-strategy/realtime-strategy-mock.d.ts +15 -0
- package/client/lib/realtime/realtime-strategy/realtime-strategy-socket-io.d.ts +17 -0
- package/client/lib/realtime/realtime-strategy/realtime-strategy.d.ts +13 -0
- package/client/lib/realtime/realtime-subs-manager.d.ts +15 -0
- package/client/lib/realtime/realtime.models.d.ts +14 -0
- package/client/lib/storage.d.ts +2 -0
- package/client/lib/symbols.d.ts +73 -0
- package/client/lib/ui/taon-admin-mode-configuration/models/taon-admin-mode-tabs.d.ts +6 -0
- package/client/lib/ui/taon-admin-mode-configuration/taon-admin-control.service.d.ts +18 -0
- package/client/lib/ui/taon-admin-mode-configuration/taon-admin-mode-configuration.component.d.ts +51 -0
- package/client/lib/ui/taon-admin-mode-configuration/taon-admin.service.d.ts +25 -0
- package/client/lib/validators.d.ts +8 -0
- package/client/public-api.d.ts +2 -0
- package/index.d.ts +1 -0
- package/index.js +5 -1
- package/index.js.map +1 -0
- package/lib/base-classes/base-abstract-entity.d.ts +6 -0
- package/lib/base-classes/base-abstract-entity.js +40 -0
- package/lib/base-classes/base-abstract-entity.js.map +1 -0
- package/lib/base-classes/base-class.d.ts +8 -0
- package/lib/base-classes/base-class.js +35 -0
- package/lib/base-classes/base-class.js.map +1 -0
- package/lib/base-classes/base-context.d.ts +16 -0
- package/lib/base-classes/base-context.js +15 -0
- package/lib/base-classes/base-context.js.map +1 -0
- package/lib/base-classes/base-controller.d.ts +7 -0
- package/lib/base-classes/base-controller.js +24 -0
- package/lib/base-classes/base-controller.js.map +1 -0
- package/lib/base-classes/base-crud-controller.d.ts +27 -0
- package/lib/base-classes/base-crud-controller.js +385 -0
- package/lib/base-classes/base-crud-controller.js.map +1 -0
- package/lib/base-classes/base-entity.d.ts +7 -0
- package/lib/base-classes/base-entity.js +25 -0
- package/lib/base-classes/base-entity.js.map +1 -0
- package/lib/base-classes/base-injector.d.ts +59 -0
- package/lib/base-classes/base-injector.js +220 -0
- package/lib/base-classes/base-injector.js.map +1 -0
- package/lib/base-classes/base-provider.d.ts +3 -0
- package/lib/base-classes/base-provider.js +14 -0
- package/lib/base-classes/base-provider.js.map +1 -0
- package/lib/base-classes/base-repository.d.ts +254 -0
- package/lib/base-classes/base-repository.js +780 -0
- package/lib/base-classes/base-repository.js.map +1 -0
- package/lib/base-classes/base-subscriber-for-entity.d.ts +81 -0
- package/lib/base-classes/base-subscriber-for-entity.js +136 -0
- package/lib/base-classes/base-subscriber-for-entity.js.map +1 -0
- package/lib/base-classes/base-subscriber.d.ts +4 -0
- package/lib/base-classes/base-subscriber.js +25 -0
- package/lib/base-classes/base-subscriber.js.map +1 -0
- package/lib/base-classes/base.d.ts +35 -0
- package/lib/base-classes/base.js +27 -0
- package/lib/base-classes/base.js.map +1 -0
- package/lib/build-info._auto-generated_.d.ts +1 -0
- package/lib/build-info._auto-generated_.js +5 -0
- package/lib/build-info._auto-generated_.js.map +1 -0
- package/lib/constants.d.ts +1 -0
- package/lib/constants.js +3 -0
- package/lib/constants.js.map +1 -0
- package/lib/create-context.d.ts +24 -0
- package/lib/create-context.js +183 -0
- package/lib/create-context.js.map +1 -0
- package/lib/decorators/classes/controller-decorator.d.ts +12 -0
- package/lib/decorators/classes/controller-decorator.js +24 -0
- package/lib/decorators/classes/controller-decorator.js.map +1 -0
- package/lib/decorators/classes/entity-decorator.d.ts +16 -0
- package/lib/decorators/classes/entity-decorator.js +39 -0
- package/lib/decorators/classes/entity-decorator.js.map +1 -0
- package/lib/decorators/classes/provider-decorator.d.ts +4 -0
- package/lib/decorators/classes/provider-decorator.js +24 -0
- package/lib/decorators/classes/provider-decorator.js.map +1 -0
- package/lib/decorators/classes/repository-decorator.d.ts +4 -0
- package/lib/decorators/classes/repository-decorator.js +24 -0
- package/lib/decorators/classes/repository-decorator.js.map +1 -0
- package/lib/decorators/classes/subscriber-decorator.d.ts +5 -0
- package/lib/decorators/classes/subscriber-decorator.js +75 -0
- package/lib/decorators/classes/subscriber-decorator.js.map +1 -0
- package/lib/decorators/http/http-decorators.d.ts +17 -0
- package/lib/decorators/http/http-decorators.js +23 -0
- package/lib/decorators/http/http-decorators.js.map +1 -0
- package/lib/decorators/http/http-methods-decorators.d.ts +14 -0
- package/lib/decorators/http/http-methods-decorators.js +91 -0
- package/lib/decorators/http/http-methods-decorators.js.map +1 -0
- package/lib/decorators/http/http-params-decorators.d.ts +5 -0
- package/lib/decorators/http/http-params-decorators.js +55 -0
- package/lib/decorators/http/http-params-decorators.js.map +1 -0
- package/lib/dependency-injection/di-container.d.ts +5 -0
- package/lib/dependency-injection/di-container.js +40 -0
- package/lib/dependency-injection/di-container.js.map +1 -0
- package/lib/endpoint-context.d.ts +117 -0
- package/lib/endpoint-context.js +2128 -0
- package/lib/endpoint-context.js.map +1 -0
- package/lib/entity-process.d.ts +39 -0
- package/lib/entity-process.js +261 -0
- package/lib/entity-process.js.map +1 -0
- package/lib/env.d.ts +2 -0
- package/lib/env.js +7 -0
- package/lib/env.js.map +1 -0
- package/lib/formly/formly-group-wrapper-component.d.ts +5 -0
- package/lib/formly/formly-group-wrapper-component.js +28 -0
- package/lib/formly/formly-group-wrapper-component.js.map +1 -0
- package/lib/formly/formly-repeat-component.d.ts +5 -0
- package/lib/formly/formly-repeat-component.js +47 -0
- package/lib/formly/formly-repeat-component.js.map +1 -0
- package/lib/formly/formly.models.d.ts +1 -0
- package/lib/formly/formly.models.js +3 -0
- package/lib/formly/formly.models.js.map +1 -0
- package/lib/formly/fromly.d.ts +16 -0
- package/lib/formly/fromly.js +213 -0
- package/lib/formly/fromly.js.map +1 -0
- package/lib/formly/type-from-entity.d.ts +20 -0
- package/lib/formly/type-from-entity.js +65 -0
- package/lib/formly/type-from-entity.js.map +1 -0
- package/lib/get-response-value.d.ts +6 -0
- package/lib/get-response-value.js +65 -0
- package/lib/get-response-value.js.map +1 -0
- package/lib/helpers/class-helpers.d.ts +18 -0
- package/lib/helpers/class-helpers.js +227 -0
- package/lib/helpers/class-helpers.js.map +1 -0
- package/lib/helpers/taon-helpers.d.ts +16 -0
- package/lib/helpers/taon-helpers.js +144 -0
- package/lib/helpers/taon-helpers.js.map +1 -0
- package/lib/index.d.ts +112 -0
- package/lib/index.js +113 -0
- package/lib/index.js.map +1 -0
- package/lib/inject.d.ts +8 -0
- package/lib/inject.js +84 -0
- package/lib/inject.js.map +1 -0
- package/lib/models.d.ts +180 -0
- package/lib/models.js +107 -0
- package/lib/models.js.map +1 -0
- package/lib/orm.d.ts +51 -0
- package/lib/orm.js +79 -0
- package/lib/orm.js.map +1 -0
- package/lib/realtime/realtime-client.d.ts +31 -0
- package/lib/realtime/realtime-client.js +158 -0
- package/lib/realtime/realtime-client.js.map +1 -0
- package/lib/realtime/realtime-core.d.ts +40 -0
- package/lib/realtime/realtime-core.js +72 -0
- package/lib/realtime/realtime-core.js.map +1 -0
- package/lib/realtime/realtime-server.d.ts +13 -0
- package/lib/realtime/realtime-server.js +193 -0
- package/lib/realtime/realtime-server.js.map +1 -0
- package/lib/realtime/realtime-strategy/index.d.ts +4 -0
- package/lib/realtime/realtime-strategy/index.js +8 -0
- package/lib/realtime/realtime-strategy/index.js.map +1 -0
- package/lib/realtime/realtime-strategy/realtime-strategy-ipc-models/index.d.ts +0 -0
- package/lib/realtime/realtime-strategy/realtime-strategy-ipc-models/index.js +5 -0
- package/lib/realtime/realtime-strategy/realtime-strategy-ipc-models/index.js.map +1 -0
- package/lib/realtime/realtime-strategy/realtime-strategy-ipc-models/realtime-strategy-ipc-main-namespace.d.ts +22 -0
- package/lib/realtime/realtime-strategy/realtime-strategy-ipc-models/realtime-strategy-ipc-main-namespace.js +139 -0
- package/lib/realtime/realtime-strategy/realtime-strategy-ipc-models/realtime-strategy-ipc-main-namespace.js.map +1 -0
- package/lib/realtime/realtime-strategy/realtime-strategy-ipc-models/realtime-strategy-ipc-main-wrapper.d.ts +16 -0
- package/lib/realtime/realtime-strategy/realtime-strategy-ipc-models/realtime-strategy-ipc-main-wrapper.js +68 -0
- package/lib/realtime/realtime-strategy/realtime-strategy-ipc-models/realtime-strategy-ipc-main-wrapper.js.map +1 -0
- package/lib/realtime/realtime-strategy/realtime-strategy-ipc-models/realtime-strategy-ipc-renderer-namespace.d.ts +10 -0
- package/lib/realtime/realtime-strategy/realtime-strategy-ipc-models/realtime-strategy-ipc-renderer-namespace.js +56 -0
- package/lib/realtime/realtime-strategy/realtime-strategy-ipc-models/realtime-strategy-ipc-renderer-namespace.js.map +1 -0
- package/lib/realtime/realtime-strategy/realtime-strategy-ipc-models/realtime-strategy-ipc-renderer-wrapper.d.ts +10 -0
- package/lib/realtime/realtime-strategy/realtime-strategy-ipc-models/realtime-strategy-ipc-renderer-wrapper.js +50 -0
- package/lib/realtime/realtime-strategy/realtime-strategy-ipc-models/realtime-strategy-ipc-renderer-wrapper.js.map +1 -0
- package/lib/realtime/realtime-strategy/realtime-strategy-ipc-models/realtime-strategy-ipc.models.d.ts +13 -0
- package/lib/realtime/realtime-strategy/realtime-strategy-ipc-models/realtime-strategy-ipc.models.js +3 -0
- package/lib/realtime/realtime-strategy/realtime-strategy-ipc-models/realtime-strategy-ipc.models.js.map +1 -0
- package/lib/realtime/realtime-strategy/realtime-strategy-ipc.d.ts +22 -0
- package/lib/realtime/realtime-strategy/realtime-strategy-ipc.js +68 -0
- package/lib/realtime/realtime-strategy/realtime-strategy-ipc.js.map +1 -0
- package/lib/realtime/realtime-strategy/realtime-strategy-mock-models/index.d.ts +2 -0
- package/lib/realtime/realtime-strategy/realtime-strategy-mock-models/index.js +6 -0
- package/lib/realtime/realtime-strategy/realtime-strategy-mock-models/index.js.map +1 -0
- package/lib/realtime/realtime-strategy/realtime-strategy-mock-models/realtime-strategy-mock-client.d.ts +16 -0
- package/lib/realtime/realtime-strategy/realtime-strategy-mock-models/realtime-strategy-mock-client.js +54 -0
- package/lib/realtime/realtime-strategy/realtime-strategy-mock-models/realtime-strategy-mock-client.js.map +1 -0
- package/lib/realtime/realtime-strategy/realtime-strategy-mock-models/realtime-strategy-mock-namespaces.d.ts +17 -0
- package/lib/realtime/realtime-strategy/realtime-strategy-mock-models/realtime-strategy-mock-namespaces.js +52 -0
- package/lib/realtime/realtime-strategy/realtime-strategy-mock-models/realtime-strategy-mock-namespaces.js.map +1 -0
- package/lib/realtime/realtime-strategy/realtime-strategy-mock-models/realtime-strategy-mock-server.d.ts +11 -0
- package/lib/realtime/realtime-strategy/realtime-strategy-mock-models/realtime-strategy-mock-server.js +39 -0
- package/lib/realtime/realtime-strategy/realtime-strategy-mock-models/realtime-strategy-mock-server.js.map +1 -0
- package/lib/realtime/realtime-strategy/realtime-strategy-mock-models/realtime-strategy-mock-socket.d.ts +13 -0
- package/lib/realtime/realtime-strategy/realtime-strategy-mock-models/realtime-strategy-mock-socket.js +46 -0
- package/lib/realtime/realtime-strategy/realtime-strategy-mock-models/realtime-strategy-mock-socket.js.map +1 -0
- package/lib/realtime/realtime-strategy/realtime-strategy-mock-models/realtime-strategy-mock.models.d.ts +11 -0
- package/lib/realtime/realtime-strategy/realtime-strategy-mock-models/realtime-strategy-mock.models.js +3 -0
- package/lib/realtime/realtime-strategy/realtime-strategy-mock-models/realtime-strategy-mock.models.js.map +1 -0
- package/lib/realtime/realtime-strategy/realtime-strategy-mock.d.ts +14 -0
- package/lib/realtime/realtime-strategy/realtime-strategy-mock.js +42 -0
- package/lib/realtime/realtime-strategy/realtime-strategy-mock.js.map +1 -0
- package/lib/realtime/realtime-strategy/realtime-strategy-socket-io.d.ts +17 -0
- package/lib/realtime/realtime-strategy/realtime-strategy-socket-io.js +48 -0
- package/lib/realtime/realtime-strategy/realtime-strategy-socket-io.js.map +1 -0
- package/lib/realtime/realtime-strategy/realtime-strategy.d.ts +12 -0
- package/lib/realtime/realtime-strategy/realtime-strategy.js +14 -0
- package/lib/realtime/realtime-strategy/realtime-strategy.js.map +1 -0
- package/lib/realtime/realtime-subs-manager.d.ts +14 -0
- package/lib/realtime/realtime-subs-manager.js +102 -0
- package/lib/realtime/realtime-subs-manager.js.map +1 -0
- package/lib/realtime/realtime.models.d.ts +13 -0
- package/lib/realtime/realtime.models.js +3 -0
- package/lib/realtime/realtime.models.js.map +1 -0
- package/lib/storage.d.ts +1 -0
- package/lib/storage.js +6 -0
- package/lib/storage.js.map +1 -0
- package/lib/symbols.d.ts +72 -0
- package/lib/symbols.js +91 -0
- package/lib/symbols.js.map +1 -0
- package/lib/ui/directives/firedev-inject-html.directive.d.ts +6 -0
- package/lib/ui/directives/firedev-long-press.directive.d.ts +22 -0
- package/lib/ui/directives/index.d.ts +4 -0
- package/lib/ui/directives/index.js +5 -0
- package/lib/ui/directives/index.js.map +1 -0
- package/lib/ui/directives/safe.pipe.d.ts +7 -0
- package/lib/ui/directives/view-mode.d.ts +5 -0
- package/lib/ui/directives/view-mode.js +10 -0
- package/lib/ui/directives/view-mode.js.map +1 -0
- package/lib/ui/taon-admin-mode-configuration/components/taon-admin-edit-mode/index.d.ts +2 -0
- package/lib/ui/taon-admin-mode-configuration/components/taon-admin-edit-mode/index.js +5 -0
- package/lib/ui/taon-admin-mode-configuration/components/taon-admin-edit-mode/index.js.map +1 -0
- package/lib/ui/taon-admin-mode-configuration/components/taon-admin-edit-mode/taon-admin-edit-mode.component.d.ts +31 -0
- package/lib/ui/taon-admin-mode-configuration/components/taon-admin-edit-mode/taon-admin-edit-mode.module.d.ts +2 -0
- package/lib/ui/taon-admin-mode-configuration/components/taon-db-admin/index.d.ts +1 -0
- package/lib/ui/taon-admin-mode-configuration/components/taon-db-admin/index.js +5 -0
- package/lib/ui/taon-admin-mode-configuration/components/taon-db-admin/index.js.map +1 -0
- package/lib/ui/taon-admin-mode-configuration/components/taon-db-admin/taon-db-admin.component.d.ts +9 -0
- package/lib/ui/taon-admin-mode-configuration/components/taon-file-general-opt/index.d.ts +2 -0
- package/lib/ui/taon-admin-mode-configuration/components/taon-file-general-opt/index.js +5 -0
- package/lib/ui/taon-admin-mode-configuration/components/taon-file-general-opt/index.js.map +1 -0
- package/lib/ui/taon-admin-mode-configuration/components/taon-file-general-opt/taon-file-general-opt.component.d.ts +14 -0
- package/lib/ui/taon-admin-mode-configuration/components/taon-file-general-opt/taon-file-general-opt.module.d.ts +2 -0
- package/lib/ui/taon-admin-mode-configuration/index.d.ts +4 -0
- package/lib/ui/taon-admin-mode-configuration/index.js +5 -0
- package/lib/ui/taon-admin-mode-configuration/index.js.map +1 -0
- package/lib/ui/taon-admin-mode-configuration/models/taon-admin-mode-tabs.d.ts +5 -0
- package/lib/ui/taon-admin-mode-configuration/models/taon-admin-mode-tabs.js +3 -0
- package/lib/ui/taon-admin-mode-configuration/models/taon-admin-mode-tabs.js.map +1 -0
- package/lib/ui/taon-admin-mode-configuration/taon-admin-control.service.d.ts +14 -0
- package/lib/ui/taon-admin-mode-configuration/taon-admin-mode-configuration.component.d.ts +47 -0
- package/lib/ui/taon-admin-mode-configuration/taon-admin-mode-configuration.module.d.ts +2 -0
- package/lib/ui/taon-admin-mode-configuration/taon-admin.service.d.ts +21 -0
- package/lib/ui/taon-github-fork-me-corner/index.d.ts +2 -0
- package/lib/ui/taon-github-fork-me-corner/index.js +5 -0
- package/lib/ui/taon-github-fork-me-corner/index.js.map +1 -0
- package/lib/ui/taon-github-fork-me-corner/taon-github-fork-me-corner.component.d.ts +3 -0
- package/lib/ui/taon-github-fork-me-corner/taon-github-fork-me-corner.module.d.ts +2 -0
- package/lib/ui/taon-github-fork-me-ribbon/index.d.ts +2 -0
- package/lib/ui/taon-github-fork-me-ribbon/index.js +5 -0
- package/lib/ui/taon-github-fork-me-ribbon/index.js.map +1 -0
- package/lib/ui/taon-github-fork-me-ribbon/taon-github-fork-me-ribbon.component.d.ts +3 -0
- package/lib/ui/taon-github-fork-me-ribbon/taon-github-fork-me-ribbon.module.d.ts +2 -0
- package/lib/ui/taon-notifications/index.d.ts +4 -0
- package/lib/ui/taon-notifications/index.js +11 -0
- package/lib/ui/taon-notifications/index.js.map +1 -0
- package/lib/ui/taon-notifications/taon-notifications.component.d.ts +9 -0
- package/lib/ui/taon-notifications/taon-notifications.models.d.ts +6 -0
- package/lib/ui/taon-notifications/taon-notifications.models.js +5 -0
- package/lib/ui/taon-notifications/taon-notifications.models.js.map +1 -0
- package/lib/ui/taon-notifications/taon-notifications.module.d.ts +2 -0
- package/lib/ui/taon-notifications/taon-notifications.service.d.ts +11 -0
- package/lib/ui/taon-progress-bar/index.d.ts +2 -0
- package/lib/ui/taon-progress-bar/index.js +5 -0
- package/lib/ui/taon-progress-bar/index.js.map +1 -0
- package/lib/ui/taon-progress-bar/taon-progress-bar.component.d.ts +14 -0
- package/lib/ui/taon-progress-bar/taon-progress-bar.module.d.ts +2 -0
- package/lib/ui/taon-session-passcode/index.d.ts +1 -0
- package/lib/ui/taon-session-passcode/index.js +5 -0
- package/lib/ui/taon-session-passcode/index.js.map +1 -0
- package/lib/ui/taon-session-passcode/taon-session-passcode.component.d.ts +35 -0
- package/lib/ui/taon.models.d.ts +11 -0
- package/lib/ui/taon.models.js +3 -0
- package/lib/ui/taon.models.js.map +1 -0
- package/lib/ui/toan-full-material.module.d.ts +2 -0
- package/lib/validators.d.ts +7 -0
- package/lib/validators.js +53 -0
- package/lib/validators.js.map +1 -0
- package/old-app .d.ts +0 -0
- package/old-app .js +115 -0
- package/old-app .js.map +1 -0
- package/package.json +74 -11
- package/playground.d.ts +0 -0
- package/playground.js +172 -0
- package/playground.js.map +1 -0
- package/src.d.ts +6 -0
- package/taon.jsonc +48 -0
- package/tmp-environment.json +392 -0
- package/websql/README.md +24 -0
- package/websql/esm2022/lib/base-classes/base-abstract-entity.mjs +25 -0
- package/websql/esm2022/lib/base-classes/base-class.mjs +17 -0
- package/websql/esm2022/lib/base-classes/base-context.mjs +14 -0
- package/websql/esm2022/lib/base-classes/base-controller.mjs +18 -0
- package/websql/esm2022/lib/base-classes/base-crud-controller.mjs +238 -0
- package/websql/esm2022/lib/base-classes/base-entity.mjs +16 -0
- package/websql/esm2022/lib/base-classes/base-injector.mjs +160 -0
- package/websql/esm2022/lib/base-classes/base-provider.mjs +6 -0
- package/websql/esm2022/lib/base-classes/base-repository.mjs +431 -0
- package/websql/esm2022/lib/base-classes/base-subscriber-for-entity.mjs +137 -0
- package/websql/esm2022/lib/base-classes/base-subscriber.mjs +27 -0
- package/websql/esm2022/lib/base-classes/base.mjs +26 -0
- package/websql/esm2022/lib/constants.mjs +4 -0
- package/websql/esm2022/lib/create-context.mjs +86 -0
- package/websql/esm2022/lib/decorators/classes/controller-decorator.mjs +15 -0
- package/websql/esm2022/lib/decorators/classes/entity-decorator.mjs +25 -0
- package/websql/esm2022/lib/decorators/classes/provider-decorator.mjs +15 -0
- package/websql/esm2022/lib/decorators/classes/repository-decorator.mjs +15 -0
- package/websql/esm2022/lib/decorators/classes/subscriber-decorator.mjs +41 -0
- package/websql/esm2022/lib/decorators/http/http-decorators.mjs +22 -0
- package/websql/esm2022/lib/decorators/http/http-methods-decorators.mjs +78 -0
- package/websql/esm2022/lib/decorators/http/http-params-decorators.mjs +47 -0
- package/websql/esm2022/lib/dependency-injection/di-container.mjs +32 -0
- package/websql/esm2022/lib/endpoint-context.mjs +1506 -0
- package/websql/esm2022/lib/entity-process.mjs +207 -0
- package/websql/esm2022/lib/env.mjs +6 -0
- package/websql/esm2022/lib/get-response-value.mjs +45 -0
- package/websql/esm2022/lib/helpers/class-helpers.mjs +183 -0
- package/websql/esm2022/lib/helpers/taon-helpers.mjs +120 -0
- package/websql/esm2022/lib/index.mjs +81 -0
- package/websql/esm2022/lib/inject.mjs +70 -0
- package/websql/esm2022/lib/models.mjs +70 -0
- package/websql/esm2022/lib/orm.mjs +60 -0
- package/websql/esm2022/lib/realtime/realtime-client.mjs +129 -0
- package/websql/esm2022/lib/realtime/realtime-core.mjs +54 -0
- package/websql/esm2022/lib/realtime/realtime-server.mjs +158 -0
- package/websql/esm2022/lib/realtime/realtime-strategy/index.mjs +7 -0
- package/websql/esm2022/lib/realtime/realtime-strategy/realtime-strategy-ipc-models/realtime-strategy-ipc-main-namespace.mjs +98 -0
- package/websql/esm2022/lib/realtime/realtime-strategy/realtime-strategy-ipc-models/realtime-strategy-ipc-main-wrapper.mjs +45 -0
- package/websql/esm2022/lib/realtime/realtime-strategy/realtime-strategy-ipc-models/realtime-strategy-ipc-renderer-namespace.mjs +40 -0
- package/websql/esm2022/lib/realtime/realtime-strategy/realtime-strategy-ipc-models/realtime-strategy-ipc-renderer-wrapper.mjs +25 -0
- package/websql/esm2022/lib/realtime/realtime-strategy/realtime-strategy-ipc-models/realtime-strategy-ipc.models.mjs +4 -0
- package/websql/esm2022/lib/realtime/realtime-strategy/realtime-strategy-ipc.mjs +48 -0
- package/websql/esm2022/lib/realtime/realtime-strategy/realtime-strategy-mock-models/index.mjs +5 -0
- package/websql/esm2022/lib/realtime/realtime-strategy/realtime-strategy-mock-models/realtime-strategy-mock-client.mjs +50 -0
- package/websql/esm2022/lib/realtime/realtime-strategy/realtime-strategy-mock-models/realtime-strategy-mock-namespaces.mjs +48 -0
- package/websql/esm2022/lib/realtime/realtime-strategy/realtime-strategy-mock-models/realtime-strategy-mock-server.mjs +35 -0
- package/websql/esm2022/lib/realtime/realtime-strategy/realtime-strategy-mock-models/realtime-strategy-mock-socket.mjs +43 -0
- package/websql/esm2022/lib/realtime/realtime-strategy/realtime-strategy-mock-models/realtime-strategy-mock.models.mjs +4 -0
- package/websql/esm2022/lib/realtime/realtime-strategy/realtime-strategy-mock.mjs +28 -0
- package/websql/esm2022/lib/realtime/realtime-strategy/realtime-strategy-socket-io.mjs +33 -0
- package/websql/esm2022/lib/realtime/realtime-strategy/realtime-strategy.mjs +10 -0
- package/websql/esm2022/lib/realtime/realtime-subs-manager.mjs +79 -0
- package/websql/esm2022/lib/realtime/realtime.models.mjs +4 -0
- package/websql/esm2022/lib/storage.mjs +5 -0
- package/websql/esm2022/lib/symbols.mjs +89 -0
- package/websql/esm2022/lib/ui/taon-admin-mode-configuration/models/taon-admin-mode-tabs.mjs +4 -0
- package/websql/esm2022/lib/ui/taon-admin-mode-configuration/taon-admin-control.service.mjs +32 -0
- package/websql/esm2022/lib/ui/taon-admin-mode-configuration/taon-admin-mode-configuration.component.mjs +167 -0
- package/websql/esm2022/lib/ui/taon-admin-mode-configuration/taon-admin.service.mjs +64 -0
- package/websql/esm2022/lib/validators.mjs +76 -0
- package/websql/esm2022/public-api.mjs +2 -0
- package/websql/esm2022/taon.mjs +5 -0
- package/websql/fesm2022/taon.mjs +4595 -0
- package/websql/fesm2022/taon.mjs.map +1 -0
- package/websql/index.d.ts +6 -0
- package/websql/lib/base-classes/base-abstract-entity.d.ts +7 -0
- package/websql/lib/base-classes/base-class.d.ts +9 -0
- package/websql/lib/base-classes/base-context.d.ts +17 -0
- package/websql/lib/base-classes/base-controller.d.ts +8 -0
- package/websql/lib/base-classes/base-crud-controller.d.ts +28 -0
- package/websql/lib/base-classes/base-entity.d.ts +8 -0
- package/websql/lib/base-classes/base-injector.d.ts +60 -0
- package/websql/lib/base-classes/base-provider.d.ts +4 -0
- package/websql/lib/base-classes/base-repository.d.ts +255 -0
- package/websql/lib/base-classes/base-subscriber-for-entity.d.ts +82 -0
- package/websql/lib/base-classes/base-subscriber.d.ts +5 -0
- package/websql/lib/base-classes/base.d.ts +36 -0
- package/websql/lib/constants.d.ts +2 -0
- package/websql/lib/create-context.d.ts +25 -0
- package/websql/lib/decorators/classes/controller-decorator.d.ts +13 -0
- package/websql/lib/decorators/classes/entity-decorator.d.ts +17 -0
- package/websql/lib/decorators/classes/provider-decorator.d.ts +5 -0
- package/websql/lib/decorators/classes/repository-decorator.d.ts +5 -0
- package/websql/lib/decorators/classes/subscriber-decorator.d.ts +6 -0
- package/websql/lib/decorators/http/http-decorators.d.ts +18 -0
- package/websql/lib/decorators/http/http-methods-decorators.d.ts +15 -0
- package/websql/lib/decorators/http/http-params-decorators.d.ts +6 -0
- package/websql/lib/dependency-injection/di-container.d.ts +6 -0
- package/websql/lib/endpoint-context.d.ts +117 -0
- package/websql/lib/entity-process.d.ts +40 -0
- package/websql/lib/env.d.ts +3 -0
- package/websql/lib/get-response-value.d.ts +7 -0
- package/websql/lib/helpers/class-helpers.d.ts +19 -0
- package/websql/lib/helpers/taon-helpers.d.ts +17 -0
- package/websql/lib/index.d.ts +113 -0
- package/websql/lib/inject.d.ts +9 -0
- package/websql/lib/models.d.ts +181 -0
- package/websql/lib/orm.d.ts +52 -0
- package/websql/lib/realtime/realtime-client.d.ts +32 -0
- package/websql/lib/realtime/realtime-core.d.ts +41 -0
- package/websql/lib/realtime/realtime-server.d.ts +14 -0
- package/websql/lib/realtime/realtime-strategy/index.d.ts +5 -0
- package/websql/lib/realtime/realtime-strategy/realtime-strategy-ipc-models/realtime-strategy-ipc-main-namespace.d.ts +22 -0
- package/websql/lib/realtime/realtime-strategy/realtime-strategy-ipc-models/realtime-strategy-ipc-main-wrapper.d.ts +17 -0
- package/websql/lib/realtime/realtime-strategy/realtime-strategy-ipc-models/realtime-strategy-ipc-renderer-namespace.d.ts +11 -0
- package/websql/lib/realtime/realtime-strategy/realtime-strategy-ipc-models/realtime-strategy-ipc-renderer-wrapper.d.ts +11 -0
- package/websql/lib/realtime/realtime-strategy/realtime-strategy-ipc-models/realtime-strategy-ipc.models.d.ts +14 -0
- package/websql/lib/realtime/realtime-strategy/realtime-strategy-ipc.d.ts +23 -0
- package/websql/lib/realtime/realtime-strategy/realtime-strategy-mock-models/index.d.ts +3 -0
- package/websql/lib/realtime/realtime-strategy/realtime-strategy-mock-models/realtime-strategy-mock-client.d.ts +17 -0
- package/websql/lib/realtime/realtime-strategy/realtime-strategy-mock-models/realtime-strategy-mock-namespaces.d.ts +18 -0
- package/websql/lib/realtime/realtime-strategy/realtime-strategy-mock-models/realtime-strategy-mock-server.d.ts +12 -0
- package/websql/lib/realtime/realtime-strategy/realtime-strategy-mock-models/realtime-strategy-mock-socket.d.ts +14 -0
- package/websql/lib/realtime/realtime-strategy/realtime-strategy-mock-models/realtime-strategy-mock.models.d.ts +12 -0
- package/websql/lib/realtime/realtime-strategy/realtime-strategy-mock.d.ts +15 -0
- package/websql/lib/realtime/realtime-strategy/realtime-strategy-socket-io.d.ts +17 -0
- package/websql/lib/realtime/realtime-strategy/realtime-strategy.d.ts +13 -0
- package/websql/lib/realtime/realtime-subs-manager.d.ts +15 -0
- package/websql/lib/realtime/realtime.models.d.ts +14 -0
- package/websql/lib/storage.d.ts +2 -0
- package/websql/lib/symbols.d.ts +73 -0
- package/websql/lib/ui/taon-admin-mode-configuration/models/taon-admin-mode-tabs.d.ts +6 -0
- package/websql/lib/ui/taon-admin-mode-configuration/taon-admin-control.service.d.ts +18 -0
- package/websql/lib/ui/taon-admin-mode-configuration/taon-admin-mode-configuration.component.d.ts +51 -0
- package/websql/lib/ui/taon-admin-mode-configuration/taon-admin.service.d.ts +25 -0
- package/websql/lib/validators.d.ts +8 -0
- package/websql/package.json +25 -0
- package/websql/public-api.d.ts +2 -0
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Mapping } from 'ng2-rest/src';
|
|
2
|
+
import { Models } from '../../models';
|
|
3
|
+
export declare function TaonEntity<T = any>(options?: TaonEntityOptions<T>): (constructor: Function) => void;
|
|
4
|
+
export declare class TaonEntityOptions<T = any> extends Models.DecoratorAbstractOpt {
|
|
5
|
+
/**
|
|
6
|
+
* default unique property is "id"
|
|
7
|
+
* for your entity it may be something else
|
|
8
|
+
*/
|
|
9
|
+
uniqueKeyProp?: string;
|
|
10
|
+
createTable?: boolean;
|
|
11
|
+
defaultModelValues?: Mapping.ModelValue<T>;
|
|
12
|
+
defaultModelMapping?: Mapping.Mapping<T>;
|
|
13
|
+
defaultModelMappingDeep?: {
|
|
14
|
+
[lodashPathes: string]: string | [string];
|
|
15
|
+
};
|
|
16
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.TaonEntityOptions = void 0;
|
|
4
|
+
exports.TaonEntity = TaonEntity;
|
|
5
|
+
var tslib_1 = require("tslib");
|
|
6
|
+
var ng2_rest_1 = require("ng2-rest");
|
|
7
|
+
var class_helpers_1 = require("../../helpers/class-helpers");
|
|
8
|
+
var typescript_class_helpers_1 = require("typescript-class-helpers");
|
|
9
|
+
var symbols_1 = require("../../symbols");
|
|
10
|
+
var tnp_core_1 = require("tnp-core");
|
|
11
|
+
var models_1 = require("../../models");
|
|
12
|
+
//#region @websql
|
|
13
|
+
var taon_typeorm_1 = require("taon-typeorm");
|
|
14
|
+
//#endregion
|
|
15
|
+
function TaonEntity(options) {
|
|
16
|
+
return function (constructor) {
|
|
17
|
+
options = options || {};
|
|
18
|
+
options.uniqueKeyProp = options.uniqueKeyProp || 'id';
|
|
19
|
+
class_helpers_1.ClassHelpers.setName(constructor, options === null || options === void 0 ? void 0 : options.className);
|
|
20
|
+
ng2_rest_1.Mapping.DefaultModelWithMapping((options === null || options === void 0 ? void 0 : options.defaultModelValues) || {}, tnp_core_1._.merge((options === null || options === void 0 ? void 0 : options.defaultModelMapping) || {}, ((options === null || options === void 0 ? void 0 : options.defaultModelMappingDeep) || {})))(constructor);
|
|
21
|
+
// TODO when entit metadata generator read use this
|
|
22
|
+
ng2_rest_1.Mapping.DefaultModelWithMapping(void 0, {})(constructor);
|
|
23
|
+
Reflect.defineMetadata(symbols_1.Symbols.metadata.options.entity, options, constructor);
|
|
24
|
+
Reflect.defineMetadata(symbols_1.Symbols.metadata.className, (options === null || options === void 0 ? void 0 : options.className) || constructor.name, constructor);
|
|
25
|
+
//#region @websql
|
|
26
|
+
(0, taon_typeorm_1.Entity)(options === null || options === void 0 ? void 0 : options.className)(constructor);
|
|
27
|
+
//#endregion
|
|
28
|
+
typescript_class_helpers_1.CLASS.setName(constructor, options === null || options === void 0 ? void 0 : options.className); // TODO QUICK_FIX for ng2-rest
|
|
29
|
+
};
|
|
30
|
+
}
|
|
31
|
+
var TaonEntityOptions = /** @class */ (function (_super) {
|
|
32
|
+
tslib_1.__extends(TaonEntityOptions, _super);
|
|
33
|
+
function TaonEntityOptions() {
|
|
34
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
35
|
+
}
|
|
36
|
+
return TaonEntityOptions;
|
|
37
|
+
}(models_1.Models.DecoratorAbstractOpt));
|
|
38
|
+
exports.TaonEntityOptions = TaonEntityOptions;
|
|
39
|
+
//# sourceMappingURL=entity-decorator.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"entity-decorator.js","sourceRoot":"","sources":[""],"names":[],"mappings":";;;AAUA,gCAgCC;;AA1CD,qCAAmC;AACnC,6DAA2D;AAC3D,qEAAiD;AACjD,yCAAwC;AACxC,qCAA6B;AAC7B,uCAAsC;AACtC,iBAAiB;AACjB,6CAA6D;AAC7D,YAAY;AAEZ,SAAgB,UAAU,CAAU,OAA8B;IAChE,OAAO,UAAU,WAAqB;QACpC,OAAO,GAAG,OAAO,IAAK,EAAU,CAAC;QACjC,OAAO,CAAC,aAAa,GAAG,OAAO,CAAC,aAAa,IAAK,IAAY,CAAC;QAC/D,4BAAY,CAAC,OAAO,CAAC,WAAW,EAAE,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,SAAS,CAAC,CAAC;QAEtD,kBAAO,CAAC,uBAAuB,CAC7B,CAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,kBAAkB,KAAI,EAAE,EACjC,YAAC,CAAC,KAAK,CACL,CAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,mBAAmB,KAAI,EAAE,EAClC,CAAC,CAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,uBAAuB,KAAI,EAAE,CAAQ,CAChD,CACF,CAAC,WAAW,CAAC,CAAC;QAEf,mDAAmD;QACnD,kBAAO,CAAC,uBAAuB,CAAI,KAAK,CAAC,EAAE,EAAE,CAAC,CAAC,WAAW,CAAC,CAAC;QAE5D,OAAO,CAAC,cAAc,CACpB,iBAAO,CAAC,QAAQ,CAAC,OAAO,CAAC,MAAM,EAC/B,OAAO,EACP,WAAW,CACZ,CAAC;QACF,OAAO,CAAC,cAAc,CACpB,iBAAO,CAAC,QAAQ,CAAC,SAAS,EAC1B,CAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,SAAS,KAAI,WAAW,CAAC,IAAI,EACtC,WAAW,CACZ,CAAC;QACF,iBAAiB;QACjB,IAAA,qBAAa,EAAC,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,SAAS,CAAC,CAAC,WAAW,CAAC,CAAC;QAC/C,YAAY;QACZ,gCAAK,CAAC,OAAO,CAAC,WAAW,EAAE,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,SAAS,CAAC,CAAC,CAAC,8BAA8B;IAChF,CAAC,CAAC;AACJ,CAAC;AAED;IAAgD,6CAA2B;IAA3E;;IAUA,CAAC;IAAD,wBAAC;AAAD,CAAC,AAVD,CAAgD,eAAM,CAAC,oBAAoB,GAU1E;AAVY,8CAAiB"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.TaonProviderOptions = void 0;
|
|
4
|
+
exports.TaonProvider = TaonProvider;
|
|
5
|
+
var tslib_1 = require("tslib");
|
|
6
|
+
var class_helpers_1 = require("../../helpers/class-helpers");
|
|
7
|
+
var symbols_1 = require("../../symbols");
|
|
8
|
+
var models_1 = require("../../models");
|
|
9
|
+
function TaonProvider(options) {
|
|
10
|
+
return function (constructor) {
|
|
11
|
+
Reflect.defineMetadata(symbols_1.Symbols.metadata.options.provider, options, constructor);
|
|
12
|
+
Reflect.defineMetadata(symbols_1.Symbols.metadata.className, (options === null || options === void 0 ? void 0 : options.className) || constructor.name, constructor);
|
|
13
|
+
class_helpers_1.ClassHelpers.setName(constructor, (options === null || options === void 0 ? void 0 : options.className) || constructor.name);
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
var TaonProviderOptions = /** @class */ (function (_super) {
|
|
17
|
+
tslib_1.__extends(TaonProviderOptions, _super);
|
|
18
|
+
function TaonProviderOptions() {
|
|
19
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
20
|
+
}
|
|
21
|
+
return TaonProviderOptions;
|
|
22
|
+
}(models_1.Models.DecoratorAbstractOpt));
|
|
23
|
+
exports.TaonProviderOptions = TaonProviderOptions;
|
|
24
|
+
//# sourceMappingURL=provider-decorator.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"provider-decorator.js","sourceRoot":"","sources":[""],"names":[],"mappings":";;;AAIA,oCAcC;;AAlBD,6DAA2D;AAC3D,yCAAwC;AACxC,uCAAsC;AAEtC,SAAgB,YAAY,CAAU,OAAgC;IACpE,OAAO,UAAU,WAAqB;QACpC,OAAO,CAAC,cAAc,CACpB,iBAAO,CAAC,QAAQ,CAAC,OAAO,CAAC,QAAQ,EACjC,OAAO,EACP,WAAW,CACZ,CAAC;QACF,OAAO,CAAC,cAAc,CACpB,iBAAO,CAAC,QAAQ,CAAC,SAAS,EAC1B,CAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,SAAS,KAAI,WAAW,CAAC,IAAI,EACtC,WAAW,CACZ,CAAC;QACF,4BAAY,CAAC,OAAO,CAAC,WAAW,EAAE,CAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,SAAS,KAAI,WAAW,CAAC,IAAI,CAAC,CAAC;IAC5E,CAAC,CAAC;AACJ,CAAC;AAED;IAEU,+CAA2B;IAFrC;;IAIA,CAAC;IAAD,0BAAC;AAAD,CAAC,AAJD,CAEU,eAAM,CAAC,oBAAoB,GAEpC;AAJY,kDAAmB"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.TaonRepositoryOptions = void 0;
|
|
4
|
+
exports.TaonRepository = TaonRepository;
|
|
5
|
+
var tslib_1 = require("tslib");
|
|
6
|
+
var class_helpers_1 = require("../../helpers/class-helpers");
|
|
7
|
+
var symbols_1 = require("../../symbols");
|
|
8
|
+
var models_1 = require("../../models");
|
|
9
|
+
function TaonRepository(options) {
|
|
10
|
+
return function (constructor) {
|
|
11
|
+
Reflect.defineMetadata(symbols_1.Symbols.metadata.options.repository, options, constructor);
|
|
12
|
+
Reflect.defineMetadata(symbols_1.Symbols.metadata.className, (options === null || options === void 0 ? void 0 : options.className) || constructor.name, constructor);
|
|
13
|
+
class_helpers_1.ClassHelpers.setName(constructor, options === null || options === void 0 ? void 0 : options.className);
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
var TaonRepositoryOptions = /** @class */ (function (_super) {
|
|
17
|
+
tslib_1.__extends(TaonRepositoryOptions, _super);
|
|
18
|
+
function TaonRepositoryOptions() {
|
|
19
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
20
|
+
}
|
|
21
|
+
return TaonRepositoryOptions;
|
|
22
|
+
}(models_1.Models.DecoratorAbstractOpt));
|
|
23
|
+
exports.TaonRepositoryOptions = TaonRepositoryOptions;
|
|
24
|
+
//# sourceMappingURL=repository-decorator.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"repository-decorator.js","sourceRoot":"","sources":[""],"names":[],"mappings":";;;AASA,wCAcC;;AAvBD,6DAA2D;AAC3D,yCAAwC;AACxC,uCAAsC;AAOtC,SAAgB,cAAc,CAAC,OAA8B;IAC3D,OAAO,UAAU,WAAqB;QACpC,OAAO,CAAC,cAAc,CACpB,iBAAO,CAAC,QAAQ,CAAC,OAAO,CAAC,UAAU,EACnC,OAAO,EACP,WAAW,CACZ,CAAC;QACF,OAAO,CAAC,cAAc,CACpB,iBAAO,CAAC,QAAQ,CAAC,SAAS,EAC1B,CAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,SAAS,KAAI,WAAW,CAAC,IAAI,EACtC,WAAW,CACZ,CAAC;QACF,4BAAY,CAAC,OAAO,CAAC,WAAW,EAAE,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,SAAS,CAAC,CAAC;IACxD,CAAC,CAAC;AACJ,CAAC;AAED;IAEU,iDAA2B;IAFrC;;IAEuC,CAAC;IAAD,4BAAC;AAAD,CAAC,AAFxC,CAEU,eAAM,CAAC,oBAAoB,GAAG;AAF3B,sDAAqB"}
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.TaonSubscriberOptions = void 0;
|
|
4
|
+
exports.TaonSubscriber = TaonSubscriber;
|
|
5
|
+
var tslib_1 = require("tslib");
|
|
6
|
+
var class_helpers_1 = require("../../helpers/class-helpers");
|
|
7
|
+
var symbols_1 = require("../../symbols");
|
|
8
|
+
var models_1 = require("../../models");
|
|
9
|
+
var TaonSubscriberOptions = /** @class */ (function (_super) {
|
|
10
|
+
tslib_1.__extends(TaonSubscriberOptions, _super);
|
|
11
|
+
function TaonSubscriberOptions() {
|
|
12
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
13
|
+
}
|
|
14
|
+
return TaonSubscriberOptions;
|
|
15
|
+
}(models_1.Models.DecoratorAbstractOpt));
|
|
16
|
+
exports.TaonSubscriberOptions = TaonSubscriberOptions;
|
|
17
|
+
function TaonSubscriber(options) {
|
|
18
|
+
return function (constructor) {
|
|
19
|
+
Reflect.defineMetadata(symbols_1.Symbols.metadata.options.repository, options, constructor);
|
|
20
|
+
Reflect.defineMetadata(symbols_1.Symbols.metadata.className, (options === null || options === void 0 ? void 0 : options.className) || constructor.name, constructor);
|
|
21
|
+
class_helpers_1.ClassHelpers.setName(constructor, options === null || options === void 0 ? void 0 : options.className);
|
|
22
|
+
return /** @class */ (function (_super) {
|
|
23
|
+
tslib_1.__extends(class_1, _super);
|
|
24
|
+
function class_1() {
|
|
25
|
+
var args = [];
|
|
26
|
+
for (var _i = 0; _i < arguments.length; _i++) {
|
|
27
|
+
args[_i] = arguments[_i];
|
|
28
|
+
}
|
|
29
|
+
var _this = _super.apply(this, tslib_1.__spreadArray([], tslib_1.__read(args), false)) || this;
|
|
30
|
+
// Get all method names of the class
|
|
31
|
+
var methodNamesAll = class_helpers_1.ClassHelpers.getMethodsNames(constructor.prototype);
|
|
32
|
+
var methodNames = methodNamesAll.filter(function (m) {
|
|
33
|
+
return (!['__trigger_event__', 'clone'].includes(m) &&
|
|
34
|
+
!m.startsWith('_') &&
|
|
35
|
+
!m.startsWith('inject'));
|
|
36
|
+
});
|
|
37
|
+
// Wrap each method
|
|
38
|
+
methodNames.forEach(function (methodName) {
|
|
39
|
+
var originalMethod = _this[methodName];
|
|
40
|
+
_this[methodName] = function () {
|
|
41
|
+
var methodArgs = [];
|
|
42
|
+
for (var _i = 0; _i < arguments.length; _i++) {
|
|
43
|
+
methodArgs[_i] = arguments[_i];
|
|
44
|
+
}
|
|
45
|
+
return tslib_1.__awaiter(_this, void 0, void 0, function () {
|
|
46
|
+
var result;
|
|
47
|
+
return tslib_1.__generator(this, function (_a) {
|
|
48
|
+
switch (_a.label) {
|
|
49
|
+
case 0:
|
|
50
|
+
result = originalMethod.apply(this, methodArgs);
|
|
51
|
+
if (!(result instanceof Promise)) return [3 /*break*/, 2];
|
|
52
|
+
return [4 /*yield*/, result];
|
|
53
|
+
case 1:
|
|
54
|
+
_a.sent();
|
|
55
|
+
_a.label = 2;
|
|
56
|
+
case 2:
|
|
57
|
+
// Check if we need to trigger the manual event
|
|
58
|
+
if (options.allowedEvents === undefined ||
|
|
59
|
+
options.allowedEvents.includes(methodName)) {
|
|
60
|
+
// @ts-ignore
|
|
61
|
+
this.__trigger_event__(methodName);
|
|
62
|
+
}
|
|
63
|
+
return [2 /*return*/, result];
|
|
64
|
+
}
|
|
65
|
+
});
|
|
66
|
+
});
|
|
67
|
+
};
|
|
68
|
+
});
|
|
69
|
+
return _this;
|
|
70
|
+
}
|
|
71
|
+
return class_1;
|
|
72
|
+
}(constructor));
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
//# sourceMappingURL=subscriber-decorator.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"subscriber-decorator.js","sourceRoot":"","sources":[""],"names":[],"mappings":";;;AAYA,wCAyDC;;AArED,6DAA2D;AAC3D,yCAAwC;AACxC,uCAAsC;AAItC;IAEU,iDAA2B;IAFrC;;IAIA,CAAC;IAAD,4BAAC;AAAD,CAAC,AAJD,CAEU,eAAM,CAAC,oBAAoB,GAEpC;AAJY,sDAAqB;AAMlC,SAAgB,cAAc,CAAC,OAA8B;IAC3D,OAAO,UAAkD,WAAc;QACrE,OAAO,CAAC,cAAc,CACpB,iBAAO,CAAC,QAAQ,CAAC,OAAO,CAAC,UAAU,EACnC,OAAO,EACP,WAAW,CACZ,CAAC;QACF,OAAO,CAAC,cAAc,CACpB,iBAAO,CAAC,QAAQ,CAAC,SAAS,EAC1B,CAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,SAAS,KAAI,WAAW,CAAC,IAAI,EACtC,WAAW,CACZ,CAAC;QACF,4BAAY,CAAC,OAAO,CAAC,WAAW,EAAE,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,SAAS,CAAC,CAAC;QACtD,OAAO;YAAc,mCAAW;YAC9B;gBAAY,cAAc;qBAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;oBAAd,yBAAc;;gBACxB,YAAA,MAAK,sDAAI,IAAI,mBAAE;gBAEf,oCAAoC;gBACpC,IAAM,cAAc,GAAG,4BAAY,CAAC,eAAe,CACjD,WAAW,CAAC,SAAS,CACtB,CAAC;gBAEF,IAAM,WAAW,GAAG,cAAc,CAAC,MAAM,CAAC,UAAA,CAAC;oBACzC,OAAO,CACL,CAAC,CAAC,mBAAmB,EAAE,OAAO,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC;wBAC3C,CAAC,CAAC,CAAC,UAAU,CAAC,GAAG,CAAC;wBAClB,CAAC,CAAC,CAAC,UAAU,CAAC,QAAQ,CAAC,CACxB,CAAC;gBACJ,CAAC,CAAC,CAAC;gBAEH,mBAAmB;gBACnB,WAAW,CAAC,OAAO,CAAC,UAAA,UAAU;oBAC5B,IAAM,cAAc,GAAI,KAAY,CAAC,UAAU,CAAC,CAAC;oBAEhD,KAAY,CAAC,UAAU,CAAC,GAAG;wBAAO,oBAAoB;6BAApB,UAAoB,EAApB,qBAAoB,EAApB,IAAoB;4BAApB,+BAAoB;;;;;;;wCAC/C,MAAM,GAAG,cAAc,CAAC,KAAK,CAAC,IAAI,EAAE,UAAU,CAAC,CAAC;6CAGlD,CAAA,MAAM,YAAY,OAAO,CAAA,EAAzB,wBAAyB;wCAC3B,qBAAM,MAAM,EAAA;;wCAAZ,SAAY,CAAC;;;wCAGf,+CAA+C;wCAC/C,IACE,OAAO,CAAC,aAAa,KAAK,SAAS;4CACnC,OAAO,CAAC,aAAa,CAAC,QAAQ,CAAC,UAAU,CAAC,EAC1C,CAAC;4CACD,aAAa;4CACZ,IAAuB,CAAC,iBAAiB,CAAC,UAAiB,CAAC,CAAC;wCAChE,CAAC;wCAED,sBAAO,MAAM,EAAC;;;;qBACf,CAAC;gBACJ,CAAC,CAAC,CAAC;;YACL,CAAC;YACH,cAAC;QAAD,CAAC,AA1CM,CAAc,WAAW,EA0CxB,CAAC;IACX,CAAQ,CAAC;AACX,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import * as methods from './http-methods-decorators';
|
|
2
|
+
import * as params from './http-params-decorators';
|
|
3
|
+
export declare namespace Http {
|
|
4
|
+
export import GET = methods.GET;
|
|
5
|
+
export import POST = methods.POST;
|
|
6
|
+
export import PUT = methods.PUT;
|
|
7
|
+
export import DELETE = methods.DELETE;
|
|
8
|
+
export import PATCH = methods.PATCH;
|
|
9
|
+
export import HEAD = methods.HEAD;
|
|
10
|
+
namespace Param {
|
|
11
|
+
export import Query = params.Query;
|
|
12
|
+
export import Path = params.Path;
|
|
13
|
+
export import Body = params.Body;
|
|
14
|
+
export import Cookie = params.Cookie;
|
|
15
|
+
export import Header = params.Header;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Http = void 0;
|
|
4
|
+
var methods = require("./http-methods-decorators");
|
|
5
|
+
var params = require("./http-params-decorators");
|
|
6
|
+
var Http;
|
|
7
|
+
(function (Http) {
|
|
8
|
+
Http.GET = methods.GET;
|
|
9
|
+
Http.POST = methods.POST;
|
|
10
|
+
Http.PUT = methods.PUT;
|
|
11
|
+
Http.DELETE = methods.DELETE;
|
|
12
|
+
Http.PATCH = methods.PATCH;
|
|
13
|
+
Http.HEAD = methods.HEAD;
|
|
14
|
+
var Param;
|
|
15
|
+
(function (Param) {
|
|
16
|
+
Param.Query = params.Query;
|
|
17
|
+
Param.Path = params.Path;
|
|
18
|
+
Param.Body = params.Body;
|
|
19
|
+
Param.Cookie = params.Cookie;
|
|
20
|
+
Param.Header = params.Header;
|
|
21
|
+
})(Param = Http.Param || (Http.Param = {}));
|
|
22
|
+
})(Http || (exports.Http = Http = {}));
|
|
23
|
+
//# sourceMappingURL=http-decorators.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"http-decorators.js","sourceRoot":"","sources":[""],"names":[],"mappings":";;;AAAA,mDAAqD;AACrD,iDAAmD;AAEnD,IAAiB,IAAI,CAcpB;AAdD,WAAiB,IAAI;IACL,QAAG,GAAG,OAAO,CAAC,GAAG,CAAC;IAClB,SAAI,GAAG,OAAO,CAAC,IAAI,CAAC;IACpB,QAAG,GAAG,OAAO,CAAC,GAAG,CAAC;IAClB,WAAM,GAAG,OAAO,CAAC,MAAM,CAAC;IACxB,UAAK,GAAG,OAAO,CAAC,KAAK,CAAC;IACtB,SAAI,GAAG,OAAO,CAAC,IAAI,CAAC;IAClC,IAAiB,KAAK,CAMrB;IAND,WAAiB,KAAK;QACN,WAAK,GAAG,MAAM,CAAC,KAAK,CAAC;QACrB,UAAI,GAAG,MAAM,CAAC,IAAI,CAAC;QACnB,UAAI,GAAG,MAAM,CAAC,IAAI,CAAC;QACnB,YAAM,GAAG,MAAM,CAAC,MAAM,CAAC;QACvB,YAAM,GAAG,MAAM,CAAC,MAAM,CAAC;IACvC,CAAC,EANgB,KAAK,GAAL,UAAK,KAAL,UAAK,QAMrB;AACH,CAAC,EAdgB,IAAI,oBAAJ,IAAI,QAcpB"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { CoreModels } from 'tnp-core/src';
|
|
2
|
+
import { Models as ModelsNg2Rest } from 'ng2-rest/src';
|
|
3
|
+
export interface TaonHttpDecoratorOptions {
|
|
4
|
+
path?: string;
|
|
5
|
+
pathIsGlobal?: boolean;
|
|
6
|
+
overrideContentType?: CoreModels.ContentType;
|
|
7
|
+
overridResponseType?: ModelsNg2Rest.ResponseTypeAxios;
|
|
8
|
+
}
|
|
9
|
+
export declare function GET(pathOrOptions?: string | TaonHttpDecoratorOptions, pathIsGlobal?: boolean): (target: any, propertyKey: string, descriptor: PropertyDescriptor) => void;
|
|
10
|
+
export declare function HEAD(pathOrOptions?: string | TaonHttpDecoratorOptions, pathIsGlobal?: boolean): (target: any, propertyKey: string, descriptor: PropertyDescriptor) => void;
|
|
11
|
+
export declare function POST(pathOrOptions?: string | TaonHttpDecoratorOptions, pathIsGlobal?: boolean): (target: any, propertyKey: string, descriptor: PropertyDescriptor) => void;
|
|
12
|
+
export declare function PUT(pathOrOptions?: string | TaonHttpDecoratorOptions, pathIsGlobal?: boolean): (target: any, propertyKey: string, descriptor: PropertyDescriptor) => void;
|
|
13
|
+
export declare function PATCH(pathOrOptions?: string | TaonHttpDecoratorOptions, pathIsGlobal?: boolean): (target: any, propertyKey: string, descriptor: PropertyDescriptor) => void;
|
|
14
|
+
export declare function DELETE(pathOrOptions?: string | TaonHttpDecoratorOptions, pathIsGlobal?: boolean): (target: any, propertyKey: string, descriptor: PropertyDescriptor) => void;
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GET = GET;
|
|
4
|
+
exports.HEAD = HEAD;
|
|
5
|
+
exports.POST = POST;
|
|
6
|
+
exports.PUT = PUT;
|
|
7
|
+
exports.PATCH = PATCH;
|
|
8
|
+
exports.DELETE = DELETE;
|
|
9
|
+
var tnp_core_1 = require("tnp-core");
|
|
10
|
+
var models_1 = require("../../models");
|
|
11
|
+
var symbols_1 = require("../../symbols");
|
|
12
|
+
var metaReq = function (method, path, target, propertyKey, descriptor, pathOrOptions, pathIsGlobal) {
|
|
13
|
+
var options;
|
|
14
|
+
if (typeof pathOrOptions === 'object') {
|
|
15
|
+
options = pathOrOptions;
|
|
16
|
+
pathOrOptions = options.path;
|
|
17
|
+
pathIsGlobal = !!options.pathIsGlobal;
|
|
18
|
+
path = options.path;
|
|
19
|
+
}
|
|
20
|
+
else {
|
|
21
|
+
options = { pathOrOptions: pathOrOptions, pathIsGlobal: pathIsGlobal };
|
|
22
|
+
}
|
|
23
|
+
var overrideContentType = options.overrideContentType, overridResponseType = options.overridResponseType;
|
|
24
|
+
var methodConfig = Reflect.getMetadata(symbols_1.Symbols.metadata.options.controllerMethod, target.constructor, propertyKey);
|
|
25
|
+
if (!methodConfig) {
|
|
26
|
+
methodConfig = new models_1.Models.MethodConfig();
|
|
27
|
+
Reflect.defineMetadata(symbols_1.Symbols.metadata.options.controllerMethod, methodConfig, target.constructor, propertyKey);
|
|
28
|
+
}
|
|
29
|
+
methodConfig.methodName = propertyKey;
|
|
30
|
+
methodConfig.type = method;
|
|
31
|
+
if (!path) {
|
|
32
|
+
var paramsPathConcatedPath = '';
|
|
33
|
+
for (var key in methodConfig.parameters) {
|
|
34
|
+
if (methodConfig.parameters.hasOwnProperty(key)) {
|
|
35
|
+
var element = methodConfig.parameters[key];
|
|
36
|
+
if (element.paramType === 'Path' &&
|
|
37
|
+
tnp_core_1._.isString(element.paramName) &&
|
|
38
|
+
element.paramName.trim().length > 0) {
|
|
39
|
+
paramsPathConcatedPath += "/".concat(element.paramName, "/:").concat(element.paramName);
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
methodConfig.path = "/".concat(propertyKey).concat(paramsPathConcatedPath);
|
|
44
|
+
}
|
|
45
|
+
else {
|
|
46
|
+
methodConfig.path = path;
|
|
47
|
+
}
|
|
48
|
+
methodConfig.descriptor = descriptor;
|
|
49
|
+
methodConfig.global = pathIsGlobal;
|
|
50
|
+
methodConfig.contentType = overrideContentType;
|
|
51
|
+
methodConfig.responseType = overridResponseType;
|
|
52
|
+
Reflect.defineMetadata(symbols_1.Symbols.metadata.options.controllerMethod, methodConfig, target.constructor, propertyKey);
|
|
53
|
+
// console.log('methods updated', methodConfig);
|
|
54
|
+
};
|
|
55
|
+
function GET(pathOrOptions, pathIsGlobal) {
|
|
56
|
+
if (pathIsGlobal === void 0) { pathIsGlobal = false; }
|
|
57
|
+
return function (target, propertyKey, descriptor) {
|
|
58
|
+
metaReq('get', pathOrOptions, target, propertyKey, descriptor, pathOrOptions, pathIsGlobal);
|
|
59
|
+
};
|
|
60
|
+
}
|
|
61
|
+
function HEAD(pathOrOptions, pathIsGlobal) {
|
|
62
|
+
if (pathIsGlobal === void 0) { pathIsGlobal = false; }
|
|
63
|
+
return function (target, propertyKey, descriptor) {
|
|
64
|
+
metaReq('head', pathOrOptions, target, propertyKey, descriptor, pathOrOptions, pathIsGlobal);
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
function POST(pathOrOptions, pathIsGlobal) {
|
|
68
|
+
if (pathIsGlobal === void 0) { pathIsGlobal = false; }
|
|
69
|
+
return function (target, propertyKey, descriptor) {
|
|
70
|
+
metaReq('post', pathOrOptions, target, propertyKey, descriptor, pathOrOptions, pathIsGlobal);
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
function PUT(pathOrOptions, pathIsGlobal) {
|
|
74
|
+
if (pathIsGlobal === void 0) { pathIsGlobal = false; }
|
|
75
|
+
return function (target, propertyKey, descriptor) {
|
|
76
|
+
metaReq('put', pathOrOptions, target, propertyKey, descriptor, pathOrOptions, pathIsGlobal);
|
|
77
|
+
};
|
|
78
|
+
}
|
|
79
|
+
function PATCH(pathOrOptions, pathIsGlobal) {
|
|
80
|
+
if (pathIsGlobal === void 0) { pathIsGlobal = false; }
|
|
81
|
+
return function (target, propertyKey, descriptor) {
|
|
82
|
+
metaReq('patch', pathOrOptions, target, propertyKey, descriptor, pathOrOptions, pathIsGlobal);
|
|
83
|
+
};
|
|
84
|
+
}
|
|
85
|
+
function DELETE(pathOrOptions, pathIsGlobal) {
|
|
86
|
+
if (pathIsGlobal === void 0) { pathIsGlobal = false; }
|
|
87
|
+
return function (target, propertyKey, descriptor) {
|
|
88
|
+
metaReq('delete', pathOrOptions, target, propertyKey, descriptor, pathOrOptions, pathIsGlobal);
|
|
89
|
+
};
|
|
90
|
+
}
|
|
91
|
+
//# sourceMappingURL=http-methods-decorators.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"http-methods-decorators.js","sourceRoot":"","sources":[""],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export declare function Path(name: string): (target: any, propertyKey: string | symbol, parameterIndex: number) => void;
|
|
2
|
+
export declare function Query(name?: string): (target: any, propertyKey: string | symbol, parameterIndex: number) => void;
|
|
3
|
+
export declare function Cookie(name: string, expireInSecond?: number): (target: any, propertyKey: string | symbol, parameterIndex: number) => void;
|
|
4
|
+
export declare function Header(name?: string): (target: any, propertyKey: string | symbol, parameterIndex: number) => void;
|
|
5
|
+
export declare function Body(name?: string): (target: any, propertyKey: string | symbol, parameterIndex: number) => void;
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Path = Path;
|
|
4
|
+
exports.Query = Query;
|
|
5
|
+
exports.Cookie = Cookie;
|
|
6
|
+
exports.Header = Header;
|
|
7
|
+
exports.Body = Body;
|
|
8
|
+
var models_1 = require("../../models");
|
|
9
|
+
var symbols_1 = require("../../symbols");
|
|
10
|
+
function metaParam(param, name, expire, defaultValue, target, propertyKey, parameterIndex) {
|
|
11
|
+
if (defaultValue === void 0) { defaultValue = undefined; }
|
|
12
|
+
var methodConfig = Reflect.getMetadata(symbols_1.Symbols.metadata.options.controllerMethod, target.constructor, propertyKey);
|
|
13
|
+
if (!methodConfig) {
|
|
14
|
+
methodConfig = new models_1.Models.MethodConfig();
|
|
15
|
+
Reflect.defineMetadata(symbols_1.Symbols.metadata.options.controllerMethod, methodConfig, target.constructor, propertyKey);
|
|
16
|
+
}
|
|
17
|
+
var nameKey = name ? name : param;
|
|
18
|
+
var p = (methodConfig.parameters[nameKey] = !methodConfig.parameters[nameKey]
|
|
19
|
+
? new models_1.Models.ParamConfig()
|
|
20
|
+
: methodConfig.parameters[nameKey]);
|
|
21
|
+
p.index = parameterIndex;
|
|
22
|
+
p.paramName = name;
|
|
23
|
+
p.paramType = param;
|
|
24
|
+
p.defaultType = defaultValue;
|
|
25
|
+
p.expireInSeconds = expire;
|
|
26
|
+
Reflect.defineMetadata(symbols_1.Symbols.metadata.options.controllerMethod, methodConfig, target.constructor, propertyKey);
|
|
27
|
+
// console.log('params updated', methodConfig);
|
|
28
|
+
}
|
|
29
|
+
function Path(name) {
|
|
30
|
+
return function (target, propertyKey, parameterIndex) {
|
|
31
|
+
metaParam('Path', name, undefined, {}, target, propertyKey, parameterIndex);
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
function Query(name) {
|
|
35
|
+
return function (target, propertyKey, parameterIndex) {
|
|
36
|
+
metaParam('Query', name, undefined, {}, target, propertyKey, parameterIndex);
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
function Cookie(name, expireInSecond) {
|
|
40
|
+
if (expireInSecond === void 0) { expireInSecond = 3600; }
|
|
41
|
+
return function (target, propertyKey, parameterIndex) {
|
|
42
|
+
metaParam('Cookie', name, expireInSecond, {}, target, propertyKey, parameterIndex);
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
function Header(name) {
|
|
46
|
+
return function (target, propertyKey, parameterIndex) {
|
|
47
|
+
metaParam('Header', name, undefined, {}, target, propertyKey, parameterIndex);
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
function Body(name) {
|
|
51
|
+
return function (target, propertyKey, parameterIndex) {
|
|
52
|
+
metaParam('Body', name, undefined, {}, target, propertyKey, parameterIndex);
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
//# sourceMappingURL=http-params-decorators.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"http-params-decorators.js","sourceRoot":"","sources":[""],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DITaonContainer = void 0;
|
|
4
|
+
var tslib_1 = require("tslib");
|
|
5
|
+
var DITaonContainer = /** @class */ (function () {
|
|
6
|
+
function DITaonContainer() {
|
|
7
|
+
}
|
|
8
|
+
DITaonContainer.resolve = function (target) {
|
|
9
|
+
var _a;
|
|
10
|
+
if (DITaonContainer.instances.has(target)) {
|
|
11
|
+
return DITaonContainer.instances.get(target);
|
|
12
|
+
}
|
|
13
|
+
// const tokens = Reflect.getMetadata('design:paramtypes', target) || [];
|
|
14
|
+
var injections = []; // tokens.map(token => Container.inject<any>(token));
|
|
15
|
+
var instance = new ((_a = target).bind.apply(_a, tslib_1.__spreadArray([void 0], tslib_1.__read(injections), false)))();
|
|
16
|
+
DITaonContainer.instances.set(target, instance);
|
|
17
|
+
return instance;
|
|
18
|
+
};
|
|
19
|
+
DITaonContainer.inject = function (target) {
|
|
20
|
+
return new Proxy({}, {
|
|
21
|
+
get: function (_, propName) {
|
|
22
|
+
var instance = DITaonContainer.instances.get(target) ||
|
|
23
|
+
DITaonContainer.resolve(target);
|
|
24
|
+
return typeof instance[propName] === 'function'
|
|
25
|
+
? instance[propName].bind(instance)
|
|
26
|
+
: instance[propName];
|
|
27
|
+
},
|
|
28
|
+
set: function (_, propName, value) {
|
|
29
|
+
var instance = DITaonContainer.instances.get(target) ||
|
|
30
|
+
DITaonContainer.resolve(target);
|
|
31
|
+
instance[propName] = value;
|
|
32
|
+
return true;
|
|
33
|
+
},
|
|
34
|
+
});
|
|
35
|
+
};
|
|
36
|
+
DITaonContainer.instances = new Map();
|
|
37
|
+
return DITaonContainer;
|
|
38
|
+
}());
|
|
39
|
+
exports.DITaonContainer = DITaonContainer;
|
|
40
|
+
//# sourceMappingURL=di-container.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"di-container.js","sourceRoot":"","sources":[""],"names":[],"mappings":";;;;AAAA;IAAA;IAsCA,CAAC;IAnCQ,uBAAO,GAAd,UAAkB,MAAgB;;QAChC,IAAI,eAAe,CAAC,SAAS,CAAC,GAAG,CAAC,MAAM,CAAC,EAAE,CAAC;YAC1C,OAAO,eAAe,CAAC,SAAS,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;QAC/C,CAAC;QAED,yEAAyE;QACzE,IAAM,UAAU,GAAG,EAAE,CAAC,CAAC,sDAAsD;QAE7E,IAAM,QAAQ,QAAO,CAAA,KAAC,MAAc,CAAA,+DAAI,UAAU,aAAC,CAAC;QACpD,eAAe,CAAC,SAAS,CAAC,GAAG,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC;QAChD,OAAO,QAAQ,CAAC;IAClB,CAAC;IAEM,sBAAM,GAAb,UAAiB,MAAiC;QAChD,OAAO,IAAI,KAAK,CACd,EAAE,EACF;YACE,GAAG,EAAE,UAAC,CAAC,EAAE,QAAQ;gBACf,IAAI,QAAQ,GACV,eAAe,CAAC,SAAS,CAAC,GAAG,CAAC,MAAM,CAAC;oBACrC,eAAe,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC;gBAClC,OAAO,OAAO,QAAQ,CAAC,QAAQ,CAAC,KAAK,UAAU;oBAC7C,CAAC,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC;oBACnC,CAAC,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC;YACzB,CAAC;YACD,GAAG,EAAE,UAAC,CAAC,EAAE,QAAQ,EAAE,KAAK;gBACtB,IAAI,QAAQ,GACV,eAAe,CAAC,SAAS,CAAC,GAAG,CAAC,MAAM,CAAC;oBACrC,eAAe,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC;gBAClC,QAAQ,CAAC,QAAQ,CAAC,GAAG,KAAK,CAAC;gBAC3B,OAAO,IAAI,CAAC;YACd,CAAC;SACF,CACG,CAAC;IACT,CAAC;IApCc,yBAAS,GAAG,IAAI,GAAG,EAAE,CAAC;IAqCvC,sBAAC;CAAA,AAtCD,IAsCC;AAtCY,0CAAe"}
|
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
import { URL } from 'url';
|
|
2
|
+
import { Models } from './models';
|
|
3
|
+
import type { Application } from 'express';
|
|
4
|
+
import type { NgZone } from '@angular/core';
|
|
5
|
+
import { DataSource } from 'taon-typeorm/src';
|
|
6
|
+
import type { Server } from 'http';
|
|
7
|
+
import type { BaseClass } from './base-classes/base-class';
|
|
8
|
+
export declare class EndpointContext {
|
|
9
|
+
private originalConfig;
|
|
10
|
+
private configFn;
|
|
11
|
+
private static ngZone;
|
|
12
|
+
static initNgZone(ngZone: NgZone): void;
|
|
13
|
+
static findForTraget(classFnOrObject: any): EndpointContext;
|
|
14
|
+
disabledRealtime: boolean;
|
|
15
|
+
/**
|
|
16
|
+
* check whether context is inited
|
|
17
|
+
* (with init() function )
|
|
18
|
+
*/
|
|
19
|
+
inited: boolean;
|
|
20
|
+
private readonly localInstaceObjSymbol;
|
|
21
|
+
/**
|
|
22
|
+
* all instances of classes from context
|
|
23
|
+
* key is class name
|
|
24
|
+
*/
|
|
25
|
+
readonly allClassesInstances: {};
|
|
26
|
+
private readonly classInstancesByNameObj;
|
|
27
|
+
private readonly objWithClassesInstancesArr;
|
|
28
|
+
readonly activeRoutes: {
|
|
29
|
+
routePath: string;
|
|
30
|
+
method: Models.Http.Rest.HttpMethod;
|
|
31
|
+
}[];
|
|
32
|
+
private injectableTypesfromContexts;
|
|
33
|
+
private allTypesfromContexts;
|
|
34
|
+
expressApp: Application;
|
|
35
|
+
serverTcpUdp: Server;
|
|
36
|
+
databaseConfig?: Models.DatabaseConfig;
|
|
37
|
+
private autoGeneratedConfig?;
|
|
38
|
+
mode: Models.FrameworkMode;
|
|
39
|
+
session?: Models.ISession;
|
|
40
|
+
connection: DataSource;
|
|
41
|
+
private entitiesTriggers;
|
|
42
|
+
private realtime;
|
|
43
|
+
get realtimeClient(): import("./realtime/realtime-client").RealtimeClient;
|
|
44
|
+
get realtimeServer(): import("./realtime/realtime-server").RealtimeServer;
|
|
45
|
+
/**
|
|
46
|
+
* available after init()
|
|
47
|
+
*/
|
|
48
|
+
config: Models.ContextOptions<any, any, any, any, any, any>;
|
|
49
|
+
get logHttp(): boolean;
|
|
50
|
+
get logRealtime(): boolean;
|
|
51
|
+
get logFramework(): boolean;
|
|
52
|
+
get logDb(): boolean;
|
|
53
|
+
constructor(originalConfig: Models.ContextOptions<any, any, any, any, any, any>, configFn: (env: any) => Models.ContextOptions<any, any, any, any, any, any>);
|
|
54
|
+
init(options?: {
|
|
55
|
+
initFromRecrusiveContextResovle?: boolean;
|
|
56
|
+
}): Promise<void>;
|
|
57
|
+
private getAutoGeneratedConfig;
|
|
58
|
+
get ngZone(): any;
|
|
59
|
+
startServer(): void;
|
|
60
|
+
displayRoutes(app: any): void;
|
|
61
|
+
get modeAllowsDatabaseCreation(): boolean;
|
|
62
|
+
private cloneClassWithNewMetadata;
|
|
63
|
+
private cloneClassesObjWithNewMetadata;
|
|
64
|
+
private getRecrusiveClassesfromContextsObj;
|
|
65
|
+
private getRecrusiveClassesfromContexts;
|
|
66
|
+
getClassInstanceObjBy(classType: Models.ClassType): any;
|
|
67
|
+
private getClassesInstancesArrBy;
|
|
68
|
+
inject<T>(ctor: new (...args: any[]) => T, options?: {
|
|
69
|
+
localInstance?: boolean;
|
|
70
|
+
contextClassInstance?: BaseClass;
|
|
71
|
+
locaInstanceConstructorArgs?: ConstructorParameters<typeof ctor>;
|
|
72
|
+
}): T;
|
|
73
|
+
/**
|
|
74
|
+
* alias for inject
|
|
75
|
+
*/
|
|
76
|
+
getInstanceBy<T>(ctor: new (...args: any[]) => T): T;
|
|
77
|
+
checkIfContextInitialized(): void;
|
|
78
|
+
getClassFunBy(classType: Models.ClassType): any;
|
|
79
|
+
isCLassType(classType: Models.ClassType, classFn: Function): boolean;
|
|
80
|
+
/**
|
|
81
|
+
* Only for injectable types
|
|
82
|
+
* Only for classType: CONTROLLER, REPOSITORY, PROVIDER
|
|
83
|
+
*/
|
|
84
|
+
getClassFunByClassName(className: string): Function;
|
|
85
|
+
getClassFunByClass(classFunction: Function): Function;
|
|
86
|
+
getClassFunByArr(classType: Models.ClassType): Function[];
|
|
87
|
+
private createInstances;
|
|
88
|
+
reinitControllers(): Promise<void>;
|
|
89
|
+
initClasses(): Promise<void>;
|
|
90
|
+
isActiveOn(classInstance: object): boolean;
|
|
91
|
+
get uri(): URL;
|
|
92
|
+
get isHttpServer(): boolean;
|
|
93
|
+
/**
|
|
94
|
+
* ipc/udp needs this
|
|
95
|
+
*/
|
|
96
|
+
get contextName(): string;
|
|
97
|
+
get publicAssets(): {
|
|
98
|
+
serverPath: string;
|
|
99
|
+
locationOnDisk: string;
|
|
100
|
+
}[];
|
|
101
|
+
get isProductionMode(): boolean;
|
|
102
|
+
get remoteHost(): string;
|
|
103
|
+
get host(): string;
|
|
104
|
+
get orgin(): string;
|
|
105
|
+
initSubscribers(): Promise<void>;
|
|
106
|
+
initEntities(): Promise<void>;
|
|
107
|
+
initDatabaseConnection(): Promise<void>;
|
|
108
|
+
initMetadata(): void;
|
|
109
|
+
writeActiveRoutes(): void;
|
|
110
|
+
get middlewares(): Models.MiddlewareType[];
|
|
111
|
+
private initMidleware;
|
|
112
|
+
private initServer;
|
|
113
|
+
/**
|
|
114
|
+
* client can be browser or nodejs (when remote host)
|
|
115
|
+
*/
|
|
116
|
+
private initClient;
|
|
117
|
+
}
|