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,17 @@
|
|
|
1
|
+
// @ts-nocheck
|
|
2
|
+
declare const BaseContext: {
|
|
3
|
+
types: {
|
|
4
|
+
readonly controllers: Record<string, new (...args: any[]) => any>;
|
|
5
|
+
readonly repositories: Record<string, new (...args: any[]) => any>;
|
|
6
|
+
readonly providers: Record<string, new (...args: any[]) => any>;
|
|
7
|
+
readonly subscribers: Record<string, new (...args: any[]) => any>;
|
|
8
|
+
};
|
|
9
|
+
readonly contexts: Record<string, object>;
|
|
10
|
+
readonly contextName: string;
|
|
11
|
+
__ref(): Promise<import("../endpoint-context").EndpointContext>;
|
|
12
|
+
readonly __refSync: import("../endpoint-context").EndpointContext;
|
|
13
|
+
getClassInstance<T>(ctor: new (...args: any[]) => T): T;
|
|
14
|
+
getClass<T>(ctor: new (...args: any[]) => T): new (...args: any[]) => T;
|
|
15
|
+
initialize: () => Promise<import("../endpoint-context").EndpointContext>;
|
|
16
|
+
};
|
|
17
|
+
export { BaseContext };
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
// @ts-nocheck
|
|
2
|
+
import { BaseController } from './base-controller';
|
|
3
|
+
import { BaseRepository } from './base-repository';
|
|
4
|
+
import { Models } from '../models';
|
|
5
|
+
/**
|
|
6
|
+
* Please override property entityClassFn with entity class.
|
|
7
|
+
*/
|
|
8
|
+
export declare abstract class BaseCrudController<Entity> extends BaseController {
|
|
9
|
+
protected db?: BaseRepository<Entity>;
|
|
10
|
+
/**
|
|
11
|
+
* Please provide entity as class propery entityClassFn:
|
|
12
|
+
* @returns class function
|
|
13
|
+
*
|
|
14
|
+
*/
|
|
15
|
+
abstract entityClassResolveFn: () => any;
|
|
16
|
+
_(): Promise<void>;
|
|
17
|
+
bufforedChanges(id: number | string, property: string, alreadyLength?: number): Models.Http.Response<string | any[]>;
|
|
18
|
+
pagination(pageNumber?: number, pageSize?: number, search?: string): Models.Http.Response<Entity[]>;
|
|
19
|
+
getAll(): Models.Http.Response<Entity[]>;
|
|
20
|
+
getBy(id: number | string): Models.Http.Response<Entity>;
|
|
21
|
+
updateById(id: number | string, item: Entity): Models.Http.Response<Entity>;
|
|
22
|
+
patchById(id: number | string, item: Entity): Models.Http.Response<Entity>;
|
|
23
|
+
bulkUpdate(items: Entity[]): Models.Http.Response<Entity[]>;
|
|
24
|
+
deleteById(id: number): Models.Http.Response<Entity>;
|
|
25
|
+
bulkDelete(ids: (number | string)[]): Models.Http.Response<(number | string | Entity)[]>;
|
|
26
|
+
create(item: Entity): Models.Http.Response<Entity>;
|
|
27
|
+
bulkCreate(items: Entity): Models.Http.Response<Entity[]>;
|
|
28
|
+
}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
// @ts-nocheck
|
|
2
|
+
import { EndpointContext } from '../endpoint-context';
|
|
3
|
+
import type { BaseRepository } from './base-repository';
|
|
4
|
+
import { BaseClass } from './base-class';
|
|
5
|
+
export declare class BaseInjector<CloneT extends BaseClass = any> {
|
|
6
|
+
/**
|
|
7
|
+
* for proxy purposes
|
|
8
|
+
*/
|
|
9
|
+
getOriginalPrototype: () => any;
|
|
10
|
+
/**
|
|
11
|
+
* for proxy purposes
|
|
12
|
+
*/
|
|
13
|
+
getOriginalConstructor: () => any;
|
|
14
|
+
/**
|
|
15
|
+
* class initialization hook
|
|
16
|
+
* taon after class instace creation
|
|
17
|
+
*/
|
|
18
|
+
_(): Promise<void>;
|
|
19
|
+
/**
|
|
20
|
+
* Current endpoint context
|
|
21
|
+
*/
|
|
22
|
+
get __endpoint_context__(): EndpointContext;
|
|
23
|
+
/**
|
|
24
|
+
* inject crud repo for entity
|
|
25
|
+
*/
|
|
26
|
+
injectRepo<T>(entityForCrud: new (...args: any[]) => T): BaseRepository<T>;
|
|
27
|
+
injectCustomRepository<T>(cutomRepositoryClass: new (...args: any[]) => T): T;
|
|
28
|
+
/**
|
|
29
|
+
* aliast to .injectRepository()
|
|
30
|
+
*/
|
|
31
|
+
injectCustomRepo<T>(cutomRepositoryClass: new (...args: any[]) => T): T;
|
|
32
|
+
injectController<T>(ctor: new (...args: any[]) => T): T;
|
|
33
|
+
/**
|
|
34
|
+
* aliast to .injectController()
|
|
35
|
+
*/
|
|
36
|
+
injectSubscriber<T>(ctor: new (...args: any[]) => T): T;
|
|
37
|
+
/**
|
|
38
|
+
* aliast to .injectController()
|
|
39
|
+
*/
|
|
40
|
+
injectCtrl<T>(ctor: new (...args: any[]) => T): T;
|
|
41
|
+
/**
|
|
42
|
+
* global provider available in every context
|
|
43
|
+
*/
|
|
44
|
+
injectGlobalProvider<T>(ctor: new (...args: any[]) => T): T;
|
|
45
|
+
/**
|
|
46
|
+
* context scoped provider
|
|
47
|
+
* TODO
|
|
48
|
+
*/
|
|
49
|
+
injectContextProvider<T>(ctor: new (...args: any[]) => T): T;
|
|
50
|
+
/**
|
|
51
|
+
* Repositories to init (by controller)
|
|
52
|
+
*/
|
|
53
|
+
protected __repositories_to_init__: BaseRepository<any>[];
|
|
54
|
+
/**
|
|
55
|
+
* Inject: Controllers, Providers, Repositories, Services, etc.
|
|
56
|
+
* TODO addd nest js injecting
|
|
57
|
+
*/
|
|
58
|
+
private __inject;
|
|
59
|
+
clone(override: Partial<CloneT>): CloneT;
|
|
60
|
+
}
|
|
@@ -0,0 +1,249 @@
|
|
|
1
|
+
// @ts-nocheck
|
|
2
|
+
import type { FindManyOptions, FindOneOptions, FindOptionsWhere, InsertResult, SaveOptions, UpdateResult } from 'taon-typeorm';
|
|
3
|
+
import type { QueryDeepPartialEntity } from 'taon-typeorm/lib/typeorm/query-builder/QueryPartialEntity';
|
|
4
|
+
import type { UpsertOptions } from 'taon-typeorm/lib/typeorm/repository/UpsertOptions';
|
|
5
|
+
import type { DataSource as DataSourceType } from 'taon-typeorm/browser';
|
|
6
|
+
import { MySqlQuerySource } from 'taon-type-sql/browser';
|
|
7
|
+
import { BaseInjector } from './base-injector';
|
|
8
|
+
export declare abstract class BaseRepository<Entity extends {
|
|
9
|
+
id?: any;
|
|
10
|
+
}> extends BaseInjector {
|
|
11
|
+
private __entityClassResolveFn;
|
|
12
|
+
abstract entityClassResolveFn: () => any;
|
|
13
|
+
constructor(__entityClassResolveFn: () => any);
|
|
14
|
+
private __dbQuery;
|
|
15
|
+
get dbQuery(): MySqlQuerySource;
|
|
16
|
+
get connection(): DataSourceType;
|
|
17
|
+
protected get repository(): any;
|
|
18
|
+
/**
|
|
19
|
+
* target for repository
|
|
20
|
+
*/
|
|
21
|
+
get target(): Function;
|
|
22
|
+
/**
|
|
23
|
+
* alias to repository
|
|
24
|
+
*/
|
|
25
|
+
protected get repo(): any;
|
|
26
|
+
get repositoryExists(): boolean;
|
|
27
|
+
__init(context?: any): Promise<void>;
|
|
28
|
+
/**
|
|
29
|
+
* Checks if entity has an id.
|
|
30
|
+
* If entity composite compose ids, it will check them all.
|
|
31
|
+
*/
|
|
32
|
+
hasId(entity: Entity): boolean;
|
|
33
|
+
/**
|
|
34
|
+
* Gets entity mixed id.
|
|
35
|
+
*/
|
|
36
|
+
getId(entity: Entity): any;
|
|
37
|
+
/**
|
|
38
|
+
Saves a given entity in the database.
|
|
39
|
+
* If entity does not exist in the database then inserts, otherwise updates.
|
|
40
|
+
*/
|
|
41
|
+
save(item: Entity, options?: SaveOptions & {
|
|
42
|
+
reload: false;
|
|
43
|
+
}): Promise<Entity>;
|
|
44
|
+
/**
|
|
45
|
+
* alias to save
|
|
46
|
+
* -> it will actuall create new entity in db
|
|
47
|
+
* in oposite to typeorm create method
|
|
48
|
+
*/
|
|
49
|
+
create(item: Entity, options?: SaveOptions & {
|
|
50
|
+
reload: false;
|
|
51
|
+
}): Promise<Entity>;
|
|
52
|
+
bulkSave(items: Entity[], options?: SaveOptions & {
|
|
53
|
+
reload: false;
|
|
54
|
+
}): Promise<Entity[]>;
|
|
55
|
+
bulkCreate(items: Entity[], options?: SaveOptions & {
|
|
56
|
+
reload: false;
|
|
57
|
+
}): Promise<Entity[]>;
|
|
58
|
+
/**
|
|
59
|
+
* Saves all given entities in the database.
|
|
60
|
+
* If entities do not exist in the database then inserts, otherwise updates.
|
|
61
|
+
*/
|
|
62
|
+
/**
|
|
63
|
+
* Merges multiple entities (or entity-like objects) into a given entity.
|
|
64
|
+
*/
|
|
65
|
+
merge(mergeIntoEntity: Entity, ...entityLikes: Entity[]): Entity;
|
|
66
|
+
/**
|
|
67
|
+
* Creates a new entity from the given plain javascript object. If entity already exist in the database, then
|
|
68
|
+
* it loads it (and everything related to it), replaces all values with the new ones from the given object
|
|
69
|
+
* and returns this new entity. This new entity is actually a loaded from the db entity with all properties
|
|
70
|
+
* replaced from the new object.
|
|
71
|
+
*
|
|
72
|
+
* Note that given entity-like object must have an entity id / primary key to find entity by.
|
|
73
|
+
* Returns undefined if entity with given id was not found.
|
|
74
|
+
*/
|
|
75
|
+
preload(entityLike: Entity): Promise<Entity | undefined>;
|
|
76
|
+
/**
|
|
77
|
+
* Removes a given entities from the database.
|
|
78
|
+
*/
|
|
79
|
+
remove(idOrEntity: number | string | Entity): Promise<Entity>;
|
|
80
|
+
/**
|
|
81
|
+
* alias to remove
|
|
82
|
+
*/
|
|
83
|
+
delete(idOrEntity: number | string | Entity): Promise<Entity>;
|
|
84
|
+
/**
|
|
85
|
+
* alias to removeById
|
|
86
|
+
*/
|
|
87
|
+
deleteById(id: number | string): Promise<Entity>;
|
|
88
|
+
bulkRemove(idsOrEntities: (number | string | Entity)[]): Promise<Entity[]>;
|
|
89
|
+
bulkDelete(ids: (number | string | Entity)[]): Promise<Entity[]>;
|
|
90
|
+
/**
|
|
91
|
+
* Records the delete date of all given entities.
|
|
92
|
+
*/
|
|
93
|
+
softRemove<T extends Entity>(entities: T[], options: SaveOptions & {
|
|
94
|
+
reload: false;
|
|
95
|
+
}): Promise<T[]>;
|
|
96
|
+
/**
|
|
97
|
+
* Records the delete date of all given entities.
|
|
98
|
+
*/
|
|
99
|
+
softRemove<T extends Entity>(entities: T[], options?: SaveOptions): Promise<(T & Entity)[]>;
|
|
100
|
+
/**
|
|
101
|
+
* Records the delete date of a given entity.
|
|
102
|
+
*/
|
|
103
|
+
softRemove<T extends Entity>(entity: T, options: SaveOptions & {
|
|
104
|
+
reload: false;
|
|
105
|
+
}): Promise<T>;
|
|
106
|
+
/**
|
|
107
|
+
* Recovers all given entities in the database.
|
|
108
|
+
*/
|
|
109
|
+
recover<T extends Entity>(entities: T[], options: SaveOptions & {
|
|
110
|
+
reload: false;
|
|
111
|
+
}): Promise<T[]>;
|
|
112
|
+
/**
|
|
113
|
+
* Recovers all given entities in the database.
|
|
114
|
+
*/
|
|
115
|
+
recover<T extends Entity>(entities: T[], options?: SaveOptions): Promise<(T & Entity)[]>;
|
|
116
|
+
/**
|
|
117
|
+
* Recovers a given entity in the database.
|
|
118
|
+
*/
|
|
119
|
+
recover<T extends Entity>(entity: T, options: SaveOptions & {
|
|
120
|
+
reload: false;
|
|
121
|
+
}): Promise<T>;
|
|
122
|
+
/**
|
|
123
|
+
* Inserts a given entity into the database.
|
|
124
|
+
* Unlike save method executes a primitive operation without cascades, relations and other operations included.
|
|
125
|
+
* Executes fast and efficient INSERT query.
|
|
126
|
+
* Does not check if entity exist in the database, so query will fail if duplicate entity is being inserted.
|
|
127
|
+
*/
|
|
128
|
+
insert(entity: QueryDeepPartialEntity<Entity> | QueryDeepPartialEntity<Entity>[]): Promise<InsertResult>;
|
|
129
|
+
update(item: Entity): Promise<any>;
|
|
130
|
+
updateById(id: number | string, item: Entity): Promise<any>;
|
|
131
|
+
bulkUpdate(items: Entity[]): Promise<any>;
|
|
132
|
+
/**
|
|
133
|
+
* Inserts a given entity into the database, unless a unique constraint conflicts then updates the entity
|
|
134
|
+
* Unlike save method executes a primitive operation without cascades, relations and other operations included.
|
|
135
|
+
* Executes fast and efficient INSERT ... ON CONFLICT DO UPDATE/ON DUPLICATE KEY UPDATE query.
|
|
136
|
+
*/
|
|
137
|
+
upsert(entityOrEntities: QueryDeepPartialEntity<Entity> | QueryDeepPartialEntity<Entity>[], conflictPathsOrOptions: string[] | UpsertOptions<Entity>): Promise<InsertResult>;
|
|
138
|
+
/**
|
|
139
|
+
* Records the delete date of entities by a given criteria.
|
|
140
|
+
* Unlike save method executes a primitive operation without cascades, relations and other operations included.
|
|
141
|
+
* Executes fast and efficient SOFT-DELETE query.
|
|
142
|
+
* Does not check if entity exist in the database.
|
|
143
|
+
*/
|
|
144
|
+
softDelete(criteria: string | string[] | number | number[] | Date | Date[] | FindOptionsWhere<Entity>): Promise<UpdateResult>;
|
|
145
|
+
/**
|
|
146
|
+
* Restores entities by a given criteria.
|
|
147
|
+
* Unlike save method executes a primitive operation without cascades, relations and other operations included.
|
|
148
|
+
* Executes fast and efficient SOFT-DELETE query.
|
|
149
|
+
* Does not check if entity exist in the database.
|
|
150
|
+
*/
|
|
151
|
+
restore(criteria: string | string[] | number | number[] | Date | Date[] | FindOptionsWhere<Entity>): Promise<UpdateResult>;
|
|
152
|
+
/**
|
|
153
|
+
* Counts entities that match given options.
|
|
154
|
+
* Useful for pagination.
|
|
155
|
+
*/
|
|
156
|
+
count(options?: FindManyOptions<Entity>): Promise<number>;
|
|
157
|
+
/**
|
|
158
|
+
* Counts entities that match given conditions.
|
|
159
|
+
* Useful for pagination.
|
|
160
|
+
*/
|
|
161
|
+
countBy(where: FindOptionsWhere<Entity> | FindOptionsWhere<Entity>[]): Promise<number>;
|
|
162
|
+
/**
|
|
163
|
+
* Finds entities that match given find options.
|
|
164
|
+
*/
|
|
165
|
+
find(options?: FindManyOptions<Entity>): Promise<Entity[]>;
|
|
166
|
+
/**
|
|
167
|
+
* Finds entities that match given find options.
|
|
168
|
+
*/
|
|
169
|
+
findBy(where: FindOptionsWhere<Entity> | FindOptionsWhere<Entity>[]): Promise<Entity[]>;
|
|
170
|
+
/**
|
|
171
|
+
* Finds entities that match given find options.
|
|
172
|
+
* Also counts all entities that match given conditions,
|
|
173
|
+
* but ignores pagination settings (from and take options).
|
|
174
|
+
*/
|
|
175
|
+
findAndCount(options?: FindManyOptions<Entity>): Promise<[Entity[], number]>;
|
|
176
|
+
/**
|
|
177
|
+
* Finds entities that match given WHERE conditions.
|
|
178
|
+
* Also counts all entities that match given conditions,
|
|
179
|
+
* but ignores pagination settings (from and take options).
|
|
180
|
+
*/
|
|
181
|
+
findAndCountBy(where: FindOptionsWhere<Entity> | FindOptionsWhere<Entity>[]): Promise<[Entity[], number]>;
|
|
182
|
+
/**
|
|
183
|
+
* Finds entities with ids.
|
|
184
|
+
* Optionally find options or conditions can be applied.
|
|
185
|
+
*
|
|
186
|
+
* @deprecated use `findBy` method instead in conjunction with `In` operator, for example:
|
|
187
|
+
*
|
|
188
|
+
* .findBy({
|
|
189
|
+
* id: In([1, 2, 3])
|
|
190
|
+
* })
|
|
191
|
+
*/
|
|
192
|
+
findByIds(ids: any[]): Promise<Entity[]>;
|
|
193
|
+
/**
|
|
194
|
+
* Finds first entity by a given find options.
|
|
195
|
+
* If entity was not found in the database - returns null.
|
|
196
|
+
*/
|
|
197
|
+
findOne(options: FindOneOptions<Entity>): Promise<Entity | null>;
|
|
198
|
+
/**
|
|
199
|
+
* Finds first entity that matches given where condition.
|
|
200
|
+
* If entity was not found in the database - returns null.
|
|
201
|
+
*/
|
|
202
|
+
findOneBy(where: FindOptionsWhere<Entity> | FindOptionsWhere<Entity>[]): Promise<Entity | null>;
|
|
203
|
+
/**
|
|
204
|
+
* Finds first entity that matches given id.
|
|
205
|
+
* If entity was not found in the database - returns null.
|
|
206
|
+
*
|
|
207
|
+
* @deprecated use `findOneBy` method instead in conjunction with `In` operator, for example:
|
|
208
|
+
*
|
|
209
|
+
* .findOneBy({
|
|
210
|
+
* id: 1 // where "id" is your primary column name
|
|
211
|
+
* })
|
|
212
|
+
*/
|
|
213
|
+
findOneById(id: number | string | Date): Promise<Entity | null>;
|
|
214
|
+
/**
|
|
215
|
+
* Finds first entity by a given find options.
|
|
216
|
+
* If entity was not found in the database - rejects with error.
|
|
217
|
+
*/
|
|
218
|
+
findOneOrFail(options: FindOneOptions<Entity>): Promise<Entity>;
|
|
219
|
+
/**
|
|
220
|
+
* Finds first entity that matches given where condition.
|
|
221
|
+
* If entity was not found in the database - rejects with error.
|
|
222
|
+
*/
|
|
223
|
+
findOneByOrFail(where: FindOptionsWhere<Entity> | FindOptionsWhere<Entity>[]): Promise<Entity>;
|
|
224
|
+
/**
|
|
225
|
+
* Executes a raw SQL query and returns a raw database results.
|
|
226
|
+
* Raw query execution is supported only by relational databases (MongoDB is not supported).
|
|
227
|
+
*/
|
|
228
|
+
query(query: string, parameters?: any[]): Promise<any>;
|
|
229
|
+
/**
|
|
230
|
+
* Clears all the data from the given table/collection (truncates/drops it).
|
|
231
|
+
*
|
|
232
|
+
* Note: this method uses TRUNCATE and may not work as you expect in transactions on some platforms.
|
|
233
|
+
* @see https://stackoverflow.com/a/5972738/925151
|
|
234
|
+
*/
|
|
235
|
+
clear(): Promise<void>;
|
|
236
|
+
/**
|
|
237
|
+
* Increments some column by provided value of the entities matched given conditions.
|
|
238
|
+
*/
|
|
239
|
+
increment(conditions: FindOptionsWhere<Entity>, propertyPath: string, value: number | string): Promise<UpdateResult>;
|
|
240
|
+
/**
|
|
241
|
+
* Decrements some column by provided value of the entities matched given conditions.
|
|
242
|
+
*/
|
|
243
|
+
decrement(conditions: FindOptionsWhere<Entity>, propertyPath: string, value: number | string): Promise<UpdateResult>;
|
|
244
|
+
/**
|
|
245
|
+
* @deprecated use findAndCount instead
|
|
246
|
+
*/
|
|
247
|
+
getAll(): Promise<any>;
|
|
248
|
+
getBy(id: number | string): Promise<Entity>;
|
|
249
|
+
}
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
// @ts-nocheck
|
|
2
|
+
import { EntitySubscriberInterface, RecoverEvent, SoftRemoveEvent, InsertEvent, TransactionStartEvent, TransactionCommitEvent, TransactionRollbackEvent, RemoveEvent, UpdateEvent } from 'taon-typeorm/browser';
|
|
3
|
+
import { BaseInjector } from './base-injector';
|
|
4
|
+
export declare abstract class BaseSubscriberForEntity<Entity = any> extends BaseInjector implements EntitySubscriberInterface {
|
|
5
|
+
abstract listenTo(): new (...args: any[]) => Entity;
|
|
6
|
+
/**
|
|
7
|
+
* Called after entity is loaded.
|
|
8
|
+
*/
|
|
9
|
+
afterLoad(entity: any): void;
|
|
10
|
+
/**
|
|
11
|
+
* Called before query execution.
|
|
12
|
+
*/
|
|
13
|
+
beforeQuery(event: any): void;
|
|
14
|
+
/**
|
|
15
|
+
* Called after query execution.
|
|
16
|
+
*/
|
|
17
|
+
afterQuery(event: any): void;
|
|
18
|
+
/**
|
|
19
|
+
* Called before entity insertion.
|
|
20
|
+
*/
|
|
21
|
+
beforeInsert(event: InsertEvent<any>): void;
|
|
22
|
+
/**
|
|
23
|
+
* Called after entity insertion.
|
|
24
|
+
*/
|
|
25
|
+
afterInsert(event: InsertEvent<any>): void;
|
|
26
|
+
/**
|
|
27
|
+
* Called before entity update.
|
|
28
|
+
*/
|
|
29
|
+
beforeUpdate(event: UpdateEvent<any>): void;
|
|
30
|
+
/**
|
|
31
|
+
* Called after entity update.
|
|
32
|
+
*/
|
|
33
|
+
afterUpdate(event: UpdateEvent<any>): void;
|
|
34
|
+
/**
|
|
35
|
+
* Called before entity removal.
|
|
36
|
+
*/
|
|
37
|
+
beforeRemove(event: RemoveEvent<any>): void;
|
|
38
|
+
/**
|
|
39
|
+
* Called after entity removal.
|
|
40
|
+
*/
|
|
41
|
+
afterRemove(event: RemoveEvent<any>): void;
|
|
42
|
+
/**
|
|
43
|
+
* Called before entity removal.
|
|
44
|
+
*/
|
|
45
|
+
beforeSoftRemove(event: SoftRemoveEvent<any>): void;
|
|
46
|
+
/**
|
|
47
|
+
* Called after entity removal.
|
|
48
|
+
*/
|
|
49
|
+
afterSoftRemove(event: SoftRemoveEvent<any>): void;
|
|
50
|
+
/**
|
|
51
|
+
* Called before entity recovery.
|
|
52
|
+
*/
|
|
53
|
+
beforeRecover(event: RecoverEvent<any>): void;
|
|
54
|
+
/**
|
|
55
|
+
* Called after entity recovery.
|
|
56
|
+
*/
|
|
57
|
+
afterRecover(event: RecoverEvent<any>): void;
|
|
58
|
+
/**
|
|
59
|
+
* Called before transaction start.
|
|
60
|
+
*/
|
|
61
|
+
beforeTransactionStart(event: TransactionStartEvent): void;
|
|
62
|
+
/**
|
|
63
|
+
* Called after transaction start.
|
|
64
|
+
*/
|
|
65
|
+
afterTransactionStart(event: TransactionStartEvent): void;
|
|
66
|
+
/**
|
|
67
|
+
* Called before transaction commit.
|
|
68
|
+
*/
|
|
69
|
+
beforeTransactionCommit(event: TransactionCommitEvent): void;
|
|
70
|
+
/**
|
|
71
|
+
* Called after transaction commit.
|
|
72
|
+
*/
|
|
73
|
+
afterTransactionCommit(event: TransactionCommitEvent): void;
|
|
74
|
+
/**
|
|
75
|
+
* Called before transaction rollback.
|
|
76
|
+
*/
|
|
77
|
+
beforeTransactionRollback(event: TransactionRollbackEvent): void;
|
|
78
|
+
/**
|
|
79
|
+
* Called after transaction rollback.
|
|
80
|
+
*/
|
|
81
|
+
afterTransactionRollback(event: TransactionRollbackEvent): void;
|
|
82
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
// @ts-nocheck
|
|
2
|
+
import * as controller from './base-controller';
|
|
3
|
+
import * as crudController from './base-crud-controller';
|
|
4
|
+
import * as entity from './base-entity';
|
|
5
|
+
import * as abstractEntity from './base-abstract-entity';
|
|
6
|
+
import * as repository from './base-repository';
|
|
7
|
+
import * as provider from './base-provider';
|
|
8
|
+
import * as baseclass from './base-class';
|
|
9
|
+
import * as baseSubscriber from './base-subscriber';
|
|
10
|
+
import * as baseSubscriberEntity from './base-subscriber-for-entity';
|
|
11
|
+
export declare namespace Base {
|
|
12
|
+
export import Controller = controller.BaseController;
|
|
13
|
+
export import CrudController = crudController.BaseCrudController;
|
|
14
|
+
export import Entity = entity.BaseEntity;
|
|
15
|
+
export import AbstractEntity = abstractEntity.BaseAbstractEntity;
|
|
16
|
+
export import Provider = provider.BaseProvider;
|
|
17
|
+
export import Class = baseclass.BaseClass;
|
|
18
|
+
export import Repository = repository.BaseRepository;
|
|
19
|
+
export import Subscriber = baseSubscriber.BaseSubscriber;
|
|
20
|
+
export import SubscriberForEntity = baseSubscriberEntity.BaseSubscriberForEntity;
|
|
21
|
+
const Context: {
|
|
22
|
+
types: {
|
|
23
|
+
readonly controllers: Record<string, new (...args: any[]) => any>;
|
|
24
|
+
readonly repositories: Record<string, new (...args: any[]) => any>;
|
|
25
|
+
readonly providers: Record<string, new (...args: any[]) => any>;
|
|
26
|
+
readonly subscribers: Record<string, new (...args: any[]) => any>;
|
|
27
|
+
};
|
|
28
|
+
readonly contexts: Record<string, object>;
|
|
29
|
+
readonly contextName: string;
|
|
30
|
+
__ref(): Promise<import("../endpoint-context").EndpointContext>;
|
|
31
|
+
readonly __refSync: import("../endpoint-context").EndpointContext;
|
|
32
|
+
getClassInstance<T>(ctor: new (...args: any[]) => T): T;
|
|
33
|
+
getClass<T>(ctor: new (...args: any[]) => T): new (...args: any[]) => T;
|
|
34
|
+
initialize: () => Promise<import("../endpoint-context").EndpointContext>;
|
|
35
|
+
};
|
|
36
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
// @ts-nocheck
|
|
2
|
+
import { EndpointContext } from './endpoint-context';
|
|
3
|
+
import { Models } from './models';
|
|
4
|
+
export declare const createContext: <CTX extends Record<string, object>, CTRL extends Record<string, new (...args: any[]) => any>, ENTITY extends Record<string, new (...args: any[]) => any>, REPO extends Record<string, new (...args: any[]) => any>, PROVIDER extends Record<string, new (...args: any[]) => any>, SUBSCRIBER extends Record<string, new (...args: any[]) => any>>(configFn: (env: any) => Models.ContextOptions<CTX, CTRL, ENTITY, REPO, PROVIDER, SUBSCRIBER>) => {
|
|
5
|
+
types: {
|
|
6
|
+
readonly controllers: CTRL;
|
|
7
|
+
readonly repositories: REPO;
|
|
8
|
+
readonly providers: PROVIDER;
|
|
9
|
+
readonly subscribers: SUBSCRIBER;
|
|
10
|
+
};
|
|
11
|
+
readonly contexts: CTX;
|
|
12
|
+
readonly contextName: string;
|
|
13
|
+
/**
|
|
14
|
+
* - get reference to internal context
|
|
15
|
+
*/
|
|
16
|
+
__ref(): Promise<EndpointContext>;
|
|
17
|
+
readonly __refSync: EndpointContext;
|
|
18
|
+
getClassInstance<T>(ctor: new (...args: any[]) => T): T;
|
|
19
|
+
getClass<T>(ctor: new (...args: any[]) => T): new (...args: any[]) => T;
|
|
20
|
+
/**
|
|
21
|
+
* - create controller instances for context
|
|
22
|
+
* - init database (if enable) + migation scripts
|
|
23
|
+
*/
|
|
24
|
+
initialize: () => Promise<EndpointContext>;
|
|
25
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
// @ts-nocheck
|
|
2
|
+
import { Models } from '../../models';
|
|
3
|
+
export declare function TaonController(options?: TaonControllerOptions): (constructor: Function) => void;
|
|
4
|
+
export declare class TaonControllerOptions extends Models.DecoratorAbstractOpt {
|
|
5
|
+
/**
|
|
6
|
+
* typeorm realtime subscribtion // TODO disabled for now, does not make sense ?s
|
|
7
|
+
*/
|
|
8
|
+
realtime?: boolean;
|
|
9
|
+
/**
|
|
10
|
+
* override default path for controller api
|
|
11
|
+
*/
|
|
12
|
+
path?: string;
|
|
13
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
// @ts-nocheck
|
|
2
|
+
import { Mapping } from 'ng2-rest/browser';
|
|
3
|
+
import { Models } from '../../models';
|
|
4
|
+
export declare function TaonEntity<T = any>(options?: TaonEntityOptions<T>): (constructor: Function) => void;
|
|
5
|
+
export declare class TaonEntityOptions<T = any> extends Models.DecoratorAbstractOpt {
|
|
6
|
+
/**
|
|
7
|
+
* default unique property is "id"
|
|
8
|
+
* for your entity it may be something else
|
|
9
|
+
*/
|
|
10
|
+
uniqueKeyProp?: string;
|
|
11
|
+
createTable?: boolean;
|
|
12
|
+
defaultModelValues?: Mapping.ModelValue<T>;
|
|
13
|
+
defaultModelMapping?: Mapping.Mapping<T>;
|
|
14
|
+
defaultModelMappingDeep?: {
|
|
15
|
+
[lodashPathes: string]: string | [string];
|
|
16
|
+
};
|
|
17
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
// @ts-nocheck
|
|
2
|
+
import * as methods from './http-methods-decorators';
|
|
3
|
+
import * as params from './http-params-decorators';
|
|
4
|
+
export declare namespace Http {
|
|
5
|
+
export import GET = methods.GET;
|
|
6
|
+
export import POST = methods.POST;
|
|
7
|
+
export import PUT = methods.PUT;
|
|
8
|
+
export import DELETE = methods.DELETE;
|
|
9
|
+
export import PATCH = methods.PATCH;
|
|
10
|
+
export import HEAD = methods.HEAD;
|
|
11
|
+
namespace Param {
|
|
12
|
+
export import Query = params.Query;
|
|
13
|
+
export import Path = params.Path;
|
|
14
|
+
export import Body = params.Body;
|
|
15
|
+
export import Cookie = params.Cookie;
|
|
16
|
+
export import Header = params.Header;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
// @ts-nocheck
|
|
2
|
+
import { CoreModels } from 'tnp-core/browser';
|
|
3
|
+
import { Models as ModelsNg2Rest } from 'ng2-rest/browser';
|
|
4
|
+
export interface TaonHttpDecoratorOptions {
|
|
5
|
+
path?: string;
|
|
6
|
+
pathIsGlobal?: boolean;
|
|
7
|
+
overrideContentType?: CoreModels.ContentType;
|
|
8
|
+
overridResponseType?: ModelsNg2Rest.ResponseTypeAxios;
|
|
9
|
+
}
|
|
10
|
+
export declare function GET(pathOrOptions?: string | TaonHttpDecoratorOptions, pathIsGlobal?: boolean): (target: any, propertyKey: string, descriptor: PropertyDescriptor) => void;
|
|
11
|
+
export declare function HEAD(pathOrOptions?: string | TaonHttpDecoratorOptions, pathIsGlobal?: boolean): (target: any, propertyKey: string, descriptor: PropertyDescriptor) => void;
|
|
12
|
+
export declare function POST(pathOrOptions?: string | TaonHttpDecoratorOptions, pathIsGlobal?: boolean): (target: any, propertyKey: string, descriptor: PropertyDescriptor) => void;
|
|
13
|
+
export declare function PUT(pathOrOptions?: string | TaonHttpDecoratorOptions, pathIsGlobal?: boolean): (target: any, propertyKey: string, descriptor: PropertyDescriptor) => void;
|
|
14
|
+
export declare function PATCH(pathOrOptions?: string | TaonHttpDecoratorOptions, pathIsGlobal?: boolean): (target: any, propertyKey: string, descriptor: PropertyDescriptor) => void;
|
|
15
|
+
export declare function DELETE(pathOrOptions?: string | TaonHttpDecoratorOptions, pathIsGlobal?: boolean): (target: any, propertyKey: string, descriptor: PropertyDescriptor) => void;
|
|
@@ -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;
|