taon 0.0.0 → 18.0.12
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 +2 -1
- package/bin/taon-debug +2 -2
- package/bin/taon-debug-brk +3 -2
- 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 +393 -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,6 @@
|
|
|
1
|
+
// @ts-nocheck
|
|
2
|
+
export declare function Path(name: string): (target: any, propertyKey: string | symbol, parameterIndex: number) => void;
|
|
3
|
+
export declare function Query(name?: string): (target: any, propertyKey: string | symbol, parameterIndex: number) => void;
|
|
4
|
+
export declare function Cookie(name: string, expireInSecond?: number): (target: any, propertyKey: string | symbol, parameterIndex: number) => void;
|
|
5
|
+
export declare function Header(name?: string): (target: any, propertyKey: string | symbol, parameterIndex: number) => void;
|
|
6
|
+
export declare function Body(name?: string): (target: any, propertyKey: string | symbol, parameterIndex: number) => void;
|
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
// @ts-nocheck
|
|
2
|
+
import { Models } from './models';
|
|
3
|
+
import type { Application } from 'express';
|
|
4
|
+
import type { NgZone } from '@angular/core';
|
|
5
|
+
import { DataSource } from 'taon-typeorm/websql';
|
|
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(): any;
|
|
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
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
// @ts-nocheck
|
|
2
|
+
import { Response } from 'express';
|
|
3
|
+
/**
|
|
4
|
+
* @deprecated
|
|
5
|
+
*/
|
|
6
|
+
export declare const getTransformFunction: (target: Function) => (entity: any) => any;
|
|
7
|
+
/**
|
|
8
|
+
* @deprecated
|
|
9
|
+
*/
|
|
10
|
+
export declare const singleTransform: (json: any) => any;
|
|
11
|
+
export declare class EntityProcess {
|
|
12
|
+
/**
|
|
13
|
+
* Data from backend
|
|
14
|
+
*/
|
|
15
|
+
private result;
|
|
16
|
+
private response;
|
|
17
|
+
static init(result: any, response: Response): Promise<void>;
|
|
18
|
+
/**
|
|
19
|
+
* Data to send
|
|
20
|
+
*/
|
|
21
|
+
data: any;
|
|
22
|
+
/**
|
|
23
|
+
* Say yes to:
|
|
24
|
+
* - circural object
|
|
25
|
+
* - transform browser fn in decorator
|
|
26
|
+
*/
|
|
27
|
+
private advancedManipulation;
|
|
28
|
+
private entityMapping;
|
|
29
|
+
private circural;
|
|
30
|
+
constructor(
|
|
31
|
+
/**
|
|
32
|
+
* Data from backend
|
|
33
|
+
*/
|
|
34
|
+
result: any, response: Response);
|
|
35
|
+
private checkAdvancedManiupulation;
|
|
36
|
+
run(): Promise<void>;
|
|
37
|
+
applayTransformFn(): void;
|
|
38
|
+
setHeaders(): void;
|
|
39
|
+
send(): void;
|
|
40
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
// @ts-nocheck
|
|
2
|
+
import { Models } from './models';
|
|
3
|
+
import { Response as ExpressResponse, Request as ExpressRequest } from 'express';
|
|
4
|
+
export declare const getResponseValue: <T>(response: Models.Http.Response<T>, options?: {
|
|
5
|
+
req: ExpressRequest;
|
|
6
|
+
res: ExpressResponse;
|
|
7
|
+
}) => Promise<T>;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
// @ts-nocheck
|
|
2
|
+
import { Models } from '../models';
|
|
3
|
+
export declare namespace ClassHelpers {
|
|
4
|
+
/**
|
|
5
|
+
* TODO - repalce in every place when getting class fn from object
|
|
6
|
+
*/
|
|
7
|
+
const getClassFnFromObject: (json: Object) => any;
|
|
8
|
+
const getName: (classFnOrObject: any) => string;
|
|
9
|
+
const getOrginalClass: (classFnOrObject: any) => any;
|
|
10
|
+
const getFullInternalName: (classFnOrObject: any) => string;
|
|
11
|
+
const getUniquKey: (classFnOrObject: any) => string;
|
|
12
|
+
const isContextClassObject: (obj: any) => boolean;
|
|
13
|
+
const setName: (target: Function, className: string) => void;
|
|
14
|
+
const hasParentClassWithName: (target: Function, className: string, targets?: any[]) => boolean;
|
|
15
|
+
const getControllerConfig: (target: Function) => Models.ControllerConfig | undefined;
|
|
16
|
+
const getMethodsNames: (classOrClassInstance: any, allMethodsNames?: any[]) => string[];
|
|
17
|
+
const getControllerConfigs: (target: Function, configs?: Models.ControllerConfig[], callerTarget?: Function) => Models.RuntimeControllerConfig[];
|
|
18
|
+
const getCalculatedPathFor: (target: Function) => string;
|
|
19
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
// @ts-nocheck
|
|
2
|
+
import { Models } from '../models';
|
|
3
|
+
export declare namespace TaonHelpers {
|
|
4
|
+
const fillUpTo: (s: string, nCharacters: number) => string;
|
|
5
|
+
const isGoodPath: (p: string) => boolean;
|
|
6
|
+
const tryTransformParam: (param: any) => any;
|
|
7
|
+
const getExpressPath: (c: Models.RuntimeControllerConfig, pathOrClassConfig: Models.MethodConfig) => string;
|
|
8
|
+
const defaultType: (value: any) => {};
|
|
9
|
+
const parseJSONwithStringJSONs: (object: Object, waring?: boolean) => Object;
|
|
10
|
+
const isPlainFileOrFolder: (filePath: any) => boolean;
|
|
11
|
+
const ipcKeyNameResponse: (target: Function, methodConfig: Models.MethodConfig, expressPath: string) => string;
|
|
12
|
+
const ipcKeyNameRequest: (target: Function, methodConfig: Models.MethodConfig, expressPath: string) => string;
|
|
13
|
+
const websqlMocks: (headers: any) => {
|
|
14
|
+
request: Express.Request;
|
|
15
|
+
response: Express.Response;
|
|
16
|
+
};
|
|
17
|
+
}
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
// @ts-nocheck
|
|
2
|
+
import 'reflect-metadata';
|
|
3
|
+
import * as http from './decorators/http/http-decorators';
|
|
4
|
+
import * as base from './base-classes/base';
|
|
5
|
+
import * as controllerDecorator from './decorators/classes/controller-decorator';
|
|
6
|
+
import * as entityDecorator from './decorators/classes/entity-decorator';
|
|
7
|
+
import * as providerDecorator from './decorators/classes/provider-decorator';
|
|
8
|
+
import * as repositoryDecorator from './decorators/classes/repository-decorator';
|
|
9
|
+
import * as subscriberDecorator from './decorators/classes/subscriber-decorator';
|
|
10
|
+
import * as orm from './orm';
|
|
11
|
+
import * as models from './models';
|
|
12
|
+
import * as endpointContext from './endpoint-context';
|
|
13
|
+
import * as allSymbols from './symbols';
|
|
14
|
+
import { NgZone } from '@angular/core';
|
|
15
|
+
export { BaseRepository } from './base-classes/base-repository';
|
|
16
|
+
export { BaseController } from './base-classes/base-controller';
|
|
17
|
+
export { BaseProvider } from './base-classes/base-provider';
|
|
18
|
+
export { BaseSubscriber } from './base-classes/base-subscriber';
|
|
19
|
+
export { BaseEntity } from './base-classes/base-entity';
|
|
20
|
+
export { BaseContext } from './base-classes/base-context';
|
|
21
|
+
export { createContext } from './create-context';
|
|
22
|
+
export { inject } from './inject';
|
|
23
|
+
export { Models } from './models';
|
|
24
|
+
export * from './constants';
|
|
25
|
+
export { ClassHelpers } from './helpers/class-helpers';
|
|
26
|
+
export declare namespace Taon {
|
|
27
|
+
export import Response = models.Models.Http.Response;
|
|
28
|
+
export import Http = http.Http;
|
|
29
|
+
export import Base = base.Base;
|
|
30
|
+
export import Orm = orm.Orm;
|
|
31
|
+
const getResponseValue: <T>(response: Response<T>, options?: {
|
|
32
|
+
req: import("express").Request;
|
|
33
|
+
res: import("express").Response;
|
|
34
|
+
}) => Promise<T>;
|
|
35
|
+
export import Controller = controllerDecorator.TaonController;
|
|
36
|
+
export import Entity = entityDecorator.TaonEntity;
|
|
37
|
+
export import Provider = providerDecorator.TaonProvider;
|
|
38
|
+
export import Repository = repositoryDecorator.TaonRepository;
|
|
39
|
+
export import Subscriber = subscriberDecorator.TaonSubscriber;
|
|
40
|
+
/**
|
|
41
|
+
* @deprecated
|
|
42
|
+
*/
|
|
43
|
+
const isBrowser: boolean;
|
|
44
|
+
/**
|
|
45
|
+
* @deprecated
|
|
46
|
+
*/
|
|
47
|
+
const isNode: boolean;
|
|
48
|
+
/**
|
|
49
|
+
* @deprecated
|
|
50
|
+
*/
|
|
51
|
+
const isWebSQL: boolean;
|
|
52
|
+
/**
|
|
53
|
+
* @deprecated
|
|
54
|
+
*/
|
|
55
|
+
const isElectron: boolean;
|
|
56
|
+
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>>(configFn: (env: any) => models.Models.ContextOptions<CTX, CTRL, ENTITY, REPO, PROVIDER, SUBSCRIBER>) => {
|
|
57
|
+
types: {
|
|
58
|
+
readonly controllers: CTRL;
|
|
59
|
+
readonly repositories: REPO;
|
|
60
|
+
readonly providers: PROVIDER;
|
|
61
|
+
readonly subscribers: SUBSCRIBER;
|
|
62
|
+
};
|
|
63
|
+
readonly contexts: CTX;
|
|
64
|
+
readonly contextName: string;
|
|
65
|
+
__ref(): Promise<endpointContext.EndpointContext>;
|
|
66
|
+
readonly __refSync: endpointContext.EndpointContext;
|
|
67
|
+
getClassInstance<T>(ctor: new (...args: any[]) => T): T;
|
|
68
|
+
getClass<T>(ctor: new (...args: any[]) => T): new (...args: any[]) => T;
|
|
69
|
+
initialize: () => Promise<endpointContext.EndpointContext>;
|
|
70
|
+
};
|
|
71
|
+
const inject: <T>(entity: () => new (...args: any[]) => T) => T;
|
|
72
|
+
const initNgZone: (ngZone: NgZone) => void;
|
|
73
|
+
const symbols: typeof allSymbols.Symbols;
|
|
74
|
+
/**
|
|
75
|
+
* @deprecated
|
|
76
|
+
* use createContext instead
|
|
77
|
+
*/
|
|
78
|
+
const init: (options: {
|
|
79
|
+
host: string;
|
|
80
|
+
entities: Function[];
|
|
81
|
+
controllers: Function[];
|
|
82
|
+
}) => Promise<{
|
|
83
|
+
types: {
|
|
84
|
+
readonly controllers: any;
|
|
85
|
+
readonly repositories: Record<string, new (...args: any[]) => any>;
|
|
86
|
+
readonly providers: Record<string, new (...args: any[]) => any>;
|
|
87
|
+
readonly subscribers: Record<string, new (...args: any[]) => any>;
|
|
88
|
+
};
|
|
89
|
+
readonly contexts: {
|
|
90
|
+
BaseContext: {
|
|
91
|
+
types: {
|
|
92
|
+
readonly controllers: Record<string, new (...args: any[]) => any>;
|
|
93
|
+
readonly repositories: Record<string, new (...args: any[]) => any>;
|
|
94
|
+
readonly providers: Record<string, new (...args: any[]) => any>;
|
|
95
|
+
readonly subscribers: Record<string, new (...args: any[]) => any>;
|
|
96
|
+
};
|
|
97
|
+
readonly contexts: Record<string, object>;
|
|
98
|
+
readonly contextName: string;
|
|
99
|
+
__ref(): Promise<endpointContext.EndpointContext>;
|
|
100
|
+
readonly __refSync: endpointContext.EndpointContext;
|
|
101
|
+
getClassInstance<T>(ctor: new (...args: any[]) => T): T;
|
|
102
|
+
getClass<T>(ctor: new (...args: any[]) => T): new (...args: any[]) => T;
|
|
103
|
+
initialize: () => Promise<endpointContext.EndpointContext>;
|
|
104
|
+
};
|
|
105
|
+
};
|
|
106
|
+
readonly contextName: string;
|
|
107
|
+
__ref(): Promise<endpointContext.EndpointContext>;
|
|
108
|
+
readonly __refSync: endpointContext.EndpointContext;
|
|
109
|
+
getClassInstance<T>(ctor: new (...args: any[]) => T): T;
|
|
110
|
+
getClass<T>(ctor: new (...args: any[]) => T): new (...args: any[]) => T;
|
|
111
|
+
initialize: () => Promise<endpointContext.EndpointContext>;
|
|
112
|
+
}>;
|
|
113
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
// @ts-nocheck
|
|
2
|
+
import { Observable } from 'rxjs';
|
|
3
|
+
export declare const inject: <T>(entity: () => new (...args: any[]) => T) => T;
|
|
4
|
+
export declare const injectController: <T>(entity: () => new (...args: any[]) => T) => T;
|
|
5
|
+
export type SubscbtionEvent<T> = {
|
|
6
|
+
name: keyof T;
|
|
7
|
+
data: any;
|
|
8
|
+
};
|
|
9
|
+
export declare const injectSubscriberEvents: <T>(subscriberClassResolveFn: () => new (...args: any[]) => T, eventName: keyof T) => Observable<SubscbtionEvent<T>>;
|
|
@@ -0,0 +1,181 @@
|
|
|
1
|
+
// @ts-nocheck
|
|
2
|
+
import { CoreModels } from 'tnp-core/websql';
|
|
3
|
+
import { RequestHandler } from 'express';
|
|
4
|
+
import { Response as ExpressResponse, Request as ExpressRequest } from 'express';
|
|
5
|
+
import { Models as ModelsNg2Rest } from 'ng2-rest/websql';
|
|
6
|
+
export declare namespace Models {
|
|
7
|
+
type FrameworkMode = 'backend-frontend(tcp+udp)' | 'remote-backend(tcp+udp)' | 'backend-frontend(ipc-electron)' | 'backend-frontend(websql)';
|
|
8
|
+
enum ClassType {
|
|
9
|
+
ENTITY = "ENTITY",
|
|
10
|
+
CONTROLLER = "CONTROLLER",
|
|
11
|
+
REPOSITORY = "REPOSITORY",
|
|
12
|
+
PROVIDER = "PROVIDER",
|
|
13
|
+
SUBSCRIBER = "SUBSCRIBER"
|
|
14
|
+
}
|
|
15
|
+
const ClassTypeKey: { [key in ClassType]: keyof ContextOptions<any, any, any, any, any, any>; };
|
|
16
|
+
type MiddlewareType = [Function, any[]];
|
|
17
|
+
interface DatabaseConfig {
|
|
18
|
+
/**
|
|
19
|
+
* database name
|
|
20
|
+
*/
|
|
21
|
+
database?: string;
|
|
22
|
+
/**
|
|
23
|
+
* only for file base db: sqlite, sqljs
|
|
24
|
+
*/
|
|
25
|
+
location?: string;
|
|
26
|
+
synchronize: boolean;
|
|
27
|
+
dropSchema: boolean;
|
|
28
|
+
type?: CoreModels.DatabaseType;
|
|
29
|
+
autoSave: boolean;
|
|
30
|
+
/**
|
|
31
|
+
* for websql db mode
|
|
32
|
+
*/
|
|
33
|
+
useLocalForage?: boolean;
|
|
34
|
+
logging: boolean;
|
|
35
|
+
databasePort?: number;
|
|
36
|
+
databaseHost?: string;
|
|
37
|
+
databaseUsername?: string;
|
|
38
|
+
databasePassword?: string;
|
|
39
|
+
}
|
|
40
|
+
type ISession = {
|
|
41
|
+
secret?: string;
|
|
42
|
+
saveUninitialized?: boolean;
|
|
43
|
+
/**
|
|
44
|
+
* max age of session
|
|
45
|
+
*/
|
|
46
|
+
cookieMaxAge?: number;
|
|
47
|
+
secure?: boolean;
|
|
48
|
+
resave?: boolean;
|
|
49
|
+
};
|
|
50
|
+
type ContectionOptionsLogs = {
|
|
51
|
+
http: boolean;
|
|
52
|
+
realtime: boolean;
|
|
53
|
+
framework: boolean;
|
|
54
|
+
db: boolean;
|
|
55
|
+
};
|
|
56
|
+
interface ContextOptions<CONTEXTS, CONTROLLERS, ENTITIES, REPOSITORIES, PROVIDERS, SUBSCRIBERS> {
|
|
57
|
+
contextName: string;
|
|
58
|
+
host?: string;
|
|
59
|
+
/**
|
|
60
|
+
* frontend host only needed when we are using
|
|
61
|
+
* withCredentials for axios
|
|
62
|
+
* and session cookie
|
|
63
|
+
*/
|
|
64
|
+
frontendHost?: string;
|
|
65
|
+
remoteHost?: string;
|
|
66
|
+
useIpcWhenElectron?: boolean;
|
|
67
|
+
contexts?: CONTEXTS;
|
|
68
|
+
controllers?: CONTROLLERS;
|
|
69
|
+
entities?: ENTITIES;
|
|
70
|
+
repositories?: REPOSITORIES;
|
|
71
|
+
providers?: PROVIDERS;
|
|
72
|
+
subscribers?: SUBSCRIBERS;
|
|
73
|
+
session?: ISession;
|
|
74
|
+
productionMode?: boolean;
|
|
75
|
+
abstract?: boolean;
|
|
76
|
+
logs?: boolean | ContectionOptionsLogs;
|
|
77
|
+
database?: boolean | DatabaseConfig;
|
|
78
|
+
disabledRealtime?: boolean;
|
|
79
|
+
https?: {
|
|
80
|
+
key: string;
|
|
81
|
+
cert: string;
|
|
82
|
+
};
|
|
83
|
+
publicAssets?: {
|
|
84
|
+
serverPath: string;
|
|
85
|
+
locationOnDisk: string;
|
|
86
|
+
}[];
|
|
87
|
+
middlewares?: MiddlewareType[];
|
|
88
|
+
/**
|
|
89
|
+
* @deprecated
|
|
90
|
+
* only for debugging purpose
|
|
91
|
+
*/
|
|
92
|
+
override?: {
|
|
93
|
+
entities?: Function[];
|
|
94
|
+
controllers?: Function[];
|
|
95
|
+
repositories?: Function[];
|
|
96
|
+
providers?: Function[];
|
|
97
|
+
subscribers?: Function[];
|
|
98
|
+
};
|
|
99
|
+
}
|
|
100
|
+
class DecoratorAbstractOpt {
|
|
101
|
+
className: string;
|
|
102
|
+
}
|
|
103
|
+
class ParamConfig {
|
|
104
|
+
paramName: string;
|
|
105
|
+
paramType: CoreModels.ParamType;
|
|
106
|
+
index: number;
|
|
107
|
+
defaultType: any;
|
|
108
|
+
expireInSeconds?: number;
|
|
109
|
+
}
|
|
110
|
+
class MethodConfig {
|
|
111
|
+
methodName: string;
|
|
112
|
+
/**
|
|
113
|
+
* path is global in express app
|
|
114
|
+
*/
|
|
115
|
+
global?: boolean;
|
|
116
|
+
/**
|
|
117
|
+
* override default content type
|
|
118
|
+
*/
|
|
119
|
+
contentType?: any;
|
|
120
|
+
/**
|
|
121
|
+
* override default axiso response type
|
|
122
|
+
*/
|
|
123
|
+
responseType?: any;
|
|
124
|
+
path: string;
|
|
125
|
+
descriptor: PropertyDescriptor;
|
|
126
|
+
type: CoreModels.HttpMethod;
|
|
127
|
+
requestHandler: any;
|
|
128
|
+
parameters: {
|
|
129
|
+
[paramName: string]: ParamConfig;
|
|
130
|
+
};
|
|
131
|
+
}
|
|
132
|
+
class ControllerConfig extends DecoratorAbstractOpt {
|
|
133
|
+
realtime?: boolean;
|
|
134
|
+
path: string;
|
|
135
|
+
uniqueKey?: string;
|
|
136
|
+
methods: {
|
|
137
|
+
[methodName: string]: MethodConfig;
|
|
138
|
+
};
|
|
139
|
+
}
|
|
140
|
+
class RuntimeControllerConfig extends ControllerConfig {
|
|
141
|
+
calculatedPath?: string;
|
|
142
|
+
browserTransformFn?: (entity: any) => any;
|
|
143
|
+
}
|
|
144
|
+
namespace Http {
|
|
145
|
+
export import Rest = ModelsNg2Rest;
|
|
146
|
+
type ContextENDPOINT = {
|
|
147
|
+
target: Function;
|
|
148
|
+
initFN: Function;
|
|
149
|
+
};
|
|
150
|
+
type FormlyFromType = 'material' | 'bootstrap';
|
|
151
|
+
type ExpressContext<T> = (req: ExpressRequest, res: ExpressResponse) => T;
|
|
152
|
+
type SyncResponse<T> = string | T;
|
|
153
|
+
type ResponseFuncOpt<T> = {
|
|
154
|
+
limitSize?: (enties: Function | Function[], include: string[], exclude: string[]) => void;
|
|
155
|
+
};
|
|
156
|
+
type SyncResponseFunc<T> = (options?: ResponseFuncOpt<T>) => SyncResponse<T>;
|
|
157
|
+
type MixResponse<T> = SyncResponse<T> | ExpressContext<T>;
|
|
158
|
+
interface ClientAction<T> {
|
|
159
|
+
received?: Rest.PromiseObservableMix<Rest.HttpResponse<T>>;
|
|
160
|
+
}
|
|
161
|
+
interface __Response<T> {
|
|
162
|
+
send?: MixResponse<T>;
|
|
163
|
+
}
|
|
164
|
+
interface AsyncResponse<T> {
|
|
165
|
+
(req?: ExpressRequest, res?: ExpressResponse): Promise<SyncResponse<T> | SyncResponseFunc<T>>;
|
|
166
|
+
}
|
|
167
|
+
type Response<T = string> = (__Response<T> | AsyncResponse<T>) & ClientAction<T> & __Response<T>;
|
|
168
|
+
class Errors {
|
|
169
|
+
message: string;
|
|
170
|
+
private code;
|
|
171
|
+
toString: () => string;
|
|
172
|
+
private constructor();
|
|
173
|
+
private static create;
|
|
174
|
+
static entityNotFound(entity?: Function): Errors;
|
|
175
|
+
static custom(message: string, code?: ModelsNg2Rest.HttpCode): Errors;
|
|
176
|
+
}
|
|
177
|
+
interface AuthCallBack {
|
|
178
|
+
(methodReference: Function): RequestHandler;
|
|
179
|
+
}
|
|
180
|
+
}
|
|
181
|
+
}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
// @ts-nocheck
|
|
2
|
+
import * as tsorm from 'taon-typeorm/websql';
|
|
3
|
+
export declare namespace Orm {
|
|
4
|
+
const Repository: typeof tsorm.Repository;
|
|
5
|
+
export import Connection = tsorm.Connection;
|
|
6
|
+
namespace ListenEvent {
|
|
7
|
+
export import AfterInsert = tsorm.AfterInsert;
|
|
8
|
+
export import AfterLoad = tsorm.AfterLoad;
|
|
9
|
+
export import AfterRecover = tsorm.AfterRecover;
|
|
10
|
+
export import AfterRemove = tsorm.AfterRemove;
|
|
11
|
+
export import AfterSoftRemove = tsorm.AfterSoftRemove;
|
|
12
|
+
export import AfterUpdate = tsorm.AfterUpdate;
|
|
13
|
+
export import BeforeInsert = tsorm.BeforeInsert;
|
|
14
|
+
export import BeforeRecover = tsorm.BeforeRecover;
|
|
15
|
+
export import BeforeRemove = tsorm.BeforeRemove;
|
|
16
|
+
export import BeforeSoftRemove = tsorm.BeforeSoftRemove;
|
|
17
|
+
export import BeforeUpdate = tsorm.BeforeUpdate;
|
|
18
|
+
}
|
|
19
|
+
namespace Tree {
|
|
20
|
+
export import Children = tsorm.TreeChildren;
|
|
21
|
+
export import Parent = tsorm.TreeParent;
|
|
22
|
+
}
|
|
23
|
+
namespace Column {
|
|
24
|
+
export import Generated = tsorm.PrimaryGeneratedColumn;
|
|
25
|
+
export import Primary = tsorm.PrimaryColumn;
|
|
26
|
+
export import Index = tsorm.Index;
|
|
27
|
+
export import CreateDate = tsorm.CreateDateColumn;
|
|
28
|
+
export import UpdateDate = tsorm.UpdateDateColumn;
|
|
29
|
+
export import DeleteDate = tsorm.DeleteDateColumn;
|
|
30
|
+
export import Custom = tsorm.Column;
|
|
31
|
+
/**
|
|
32
|
+
* 100 characters varchar
|
|
33
|
+
*/
|
|
34
|
+
const String: () => PropertyDecorator;
|
|
35
|
+
const Number: () => PropertyDecorator;
|
|
36
|
+
const DecimalNumber: () => PropertyDecorator;
|
|
37
|
+
const SimpleJson: () => PropertyDecorator;
|
|
38
|
+
const Boolean: (defaultValue: boolean) => PropertyDecorator;
|
|
39
|
+
export import Version = tsorm.VersionColumn;
|
|
40
|
+
export import Virtual = tsorm.VirtualColumn;
|
|
41
|
+
}
|
|
42
|
+
namespace Join {
|
|
43
|
+
export import Table = tsorm.JoinTable;
|
|
44
|
+
export import Column = tsorm.JoinColumn;
|
|
45
|
+
}
|
|
46
|
+
namespace Relation {
|
|
47
|
+
export import OneToMany = tsorm.OneToMany;
|
|
48
|
+
export import OneToOne = tsorm.OneToOne;
|
|
49
|
+
export import ManyToMany = tsorm.ManyToMany;
|
|
50
|
+
export import ManyToOne = tsorm.ManyToOne;
|
|
51
|
+
}
|
|
52
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
// @ts-nocheck
|
|
2
|
+
import { RealtimeCore } from './realtime-core';
|
|
3
|
+
import { Observable } from 'rxjs';
|
|
4
|
+
import { RealtimeModels } from './realtime.models';
|
|
5
|
+
import type { BaseEntity } from '../base-classes/base-entity';
|
|
6
|
+
export declare class RealtimeClient {
|
|
7
|
+
private core;
|
|
8
|
+
private subsmanagers;
|
|
9
|
+
constructor(core: RealtimeCore);
|
|
10
|
+
private init;
|
|
11
|
+
/**
|
|
12
|
+
* Changes trigger on backend needs to be done manually.. example code:
|
|
13
|
+
*
|
|
14
|
+
* ...
|
|
15
|
+
* Context.Realtime.Server.TrigggerEntityChanges(myEntityInstance);
|
|
16
|
+
* ...
|
|
17
|
+
*/
|
|
18
|
+
listenChangesEntity(entityClassFn: Function, idOrUniqValue: any, options: RealtimeModels.ChangeOption): Observable<unknown>;
|
|
19
|
+
listenChangesEntityTable(entityClassFn: Function): Observable<unknown>;
|
|
20
|
+
/**
|
|
21
|
+
* Changes trigger on backend needs to be done manually.. example code:
|
|
22
|
+
*
|
|
23
|
+
* ...
|
|
24
|
+
* Context.Realtime.Server.TrigggerEntityChanges(myEntityInstance);
|
|
25
|
+
* // or
|
|
26
|
+
* Context.Realtime.Server.TrigggerEntityPropertyChanges(myEntityInstance,{ property: 'geolocationX' });
|
|
27
|
+
* ...
|
|
28
|
+
*/
|
|
29
|
+
listenChangesEntityObj<T extends BaseEntity>(entity: T, options?: RealtimeModels.ChangeOption): Observable<unknown>;
|
|
30
|
+
listenChangesCustomEvent(customEvent: string): Observable<unknown>;
|
|
31
|
+
private getRoomIdFrom;
|
|
32
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
// @ts-nocheck
|
|
2
|
+
import { Socket as SocketClient } from 'socket.io-client';
|
|
3
|
+
import type { EndpointContext } from '../endpoint-context';
|
|
4
|
+
import { RealtimeClient } from './realtime-client';
|
|
5
|
+
import { RealtimeServer } from './realtime-server';
|
|
6
|
+
import type { RealtimeStrategy } from './realtime-strategy';
|
|
7
|
+
import { DefaultEventsMap } from 'socket.io/dist/typed-events';
|
|
8
|
+
import { Server } from 'socket.io';
|
|
9
|
+
/**
|
|
10
|
+
* Realtime class
|
|
11
|
+
* - mock (when browser-browser)
|
|
12
|
+
* - sockets (from socket io when backend-browser)
|
|
13
|
+
* - ipc (when electron is used or between processes)
|
|
14
|
+
* - webworker (when webworker is used in browser or nodejs)
|
|
15
|
+
*/
|
|
16
|
+
export declare class RealtimeCore {
|
|
17
|
+
ctx: EndpointContext;
|
|
18
|
+
readonly allHttpMethods: string[];
|
|
19
|
+
readonly client: RealtimeClient;
|
|
20
|
+
readonly server: RealtimeServer;
|
|
21
|
+
readonly strategy: RealtimeStrategy;
|
|
22
|
+
/**
|
|
23
|
+
* global FE socket
|
|
24
|
+
*/
|
|
25
|
+
FE: SocketClient<DefaultEventsMap, DefaultEventsMap>;
|
|
26
|
+
/**
|
|
27
|
+
* socket for namespaces and rooms
|
|
28
|
+
*/
|
|
29
|
+
FE_REALTIME: SocketClient<DefaultEventsMap, DefaultEventsMap>;
|
|
30
|
+
/**
|
|
31
|
+
* global BE socket
|
|
32
|
+
*/
|
|
33
|
+
BE: Server<DefaultEventsMap, DefaultEventsMap, DefaultEventsMap, any>;
|
|
34
|
+
/**
|
|
35
|
+
* socket for namespaces and rooms
|
|
36
|
+
*/
|
|
37
|
+
BE_REALTIME: Server<DefaultEventsMap, DefaultEventsMap, DefaultEventsMap, any>;
|
|
38
|
+
constructor(ctx: EndpointContext);
|
|
39
|
+
private resolveStrategy;
|
|
40
|
+
pathFor(namespace?: string): URL;
|
|
41
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
// @ts-nocheck
|
|
2
|
+
import { RealtimeCore } from './realtime-core';
|
|
3
|
+
import type { BaseEntity } from '../base-classes/base-entity';
|
|
4
|
+
export declare class RealtimeServer {
|
|
5
|
+
private core;
|
|
6
|
+
private jobs;
|
|
7
|
+
constructor(core: RealtimeCore);
|
|
8
|
+
private init;
|
|
9
|
+
private triggerChanges;
|
|
10
|
+
trigggerEntityChanges(entityObjOrClass: Function, idToTrigger?: number | string): void;
|
|
11
|
+
trigggerEntityPropertyChanges<ENTITY extends BaseEntity>(entityObjOrClass: new (...args: any[]) => ENTITY, property: keyof ENTITY | (keyof ENTITY)[], idToTrigger?: number | string): void;
|
|
12
|
+
triggerCustomEvent(customEvent: string, dataToPush: any): void;
|
|
13
|
+
trigggerEntityTableChanges(entityClass: Function): void;
|
|
14
|
+
}
|