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,220 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.BaseInjector = void 0;
|
|
4
|
+
var tslib_1 = require("tslib");
|
|
5
|
+
//#region imports
|
|
6
|
+
var tnp_core_1 = require("tnp-core");
|
|
7
|
+
var symbols_1 = require("../symbols");
|
|
8
|
+
var class_helpers_1 = require("../helpers/class-helpers");
|
|
9
|
+
//#endregion
|
|
10
|
+
var BaseInjector = /** @class */ (function () {
|
|
11
|
+
function BaseInjector() {
|
|
12
|
+
//#endregion
|
|
13
|
+
/**
|
|
14
|
+
* Repositories to init (by controller)
|
|
15
|
+
*/
|
|
16
|
+
this.__repositories_to_init__ = [];
|
|
17
|
+
//#endregion
|
|
18
|
+
}
|
|
19
|
+
//#region class initialization hook
|
|
20
|
+
/**
|
|
21
|
+
* class initialization hook
|
|
22
|
+
* taon after class instace creation
|
|
23
|
+
*/
|
|
24
|
+
BaseInjector.prototype._ = function () {
|
|
25
|
+
return tslib_1.__awaiter(this, void 0, void 0, function () {
|
|
26
|
+
var reposToInit, reposToInit_1, reposToInit_1_1, repo, e_1_1;
|
|
27
|
+
var e_1, _a;
|
|
28
|
+
return tslib_1.__generator(this, function (_b) {
|
|
29
|
+
switch (_b.label) {
|
|
30
|
+
case 0:
|
|
31
|
+
reposToInit = this.__repositories_to_init__;
|
|
32
|
+
_b.label = 1;
|
|
33
|
+
case 1:
|
|
34
|
+
_b.trys.push([1, 6, 7, 8]);
|
|
35
|
+
reposToInit_1 = tslib_1.__values(reposToInit), reposToInit_1_1 = reposToInit_1.next();
|
|
36
|
+
_b.label = 2;
|
|
37
|
+
case 2:
|
|
38
|
+
if (!!reposToInit_1_1.done) return [3 /*break*/, 5];
|
|
39
|
+
repo = reposToInit_1_1.value;
|
|
40
|
+
return [4 /*yield*/, repo.__init(this)];
|
|
41
|
+
case 3:
|
|
42
|
+
_b.sent();
|
|
43
|
+
_b.label = 4;
|
|
44
|
+
case 4:
|
|
45
|
+
reposToInit_1_1 = reposToInit_1.next();
|
|
46
|
+
return [3 /*break*/, 2];
|
|
47
|
+
case 5: return [3 /*break*/, 8];
|
|
48
|
+
case 6:
|
|
49
|
+
e_1_1 = _b.sent();
|
|
50
|
+
e_1 = { error: e_1_1 };
|
|
51
|
+
return [3 /*break*/, 8];
|
|
52
|
+
case 7:
|
|
53
|
+
try {
|
|
54
|
+
if (reposToInit_1_1 && !reposToInit_1_1.done && (_a = reposToInit_1.return)) _a.call(reposToInit_1);
|
|
55
|
+
}
|
|
56
|
+
finally { if (e_1) throw e_1.error; }
|
|
57
|
+
return [7 /*endfinally*/];
|
|
58
|
+
case 8: return [2 /*return*/];
|
|
59
|
+
}
|
|
60
|
+
});
|
|
61
|
+
});
|
|
62
|
+
};
|
|
63
|
+
Object.defineProperty(BaseInjector.prototype, "__endpoint_context__", {
|
|
64
|
+
//#endregion
|
|
65
|
+
//#region context
|
|
66
|
+
/**
|
|
67
|
+
* Current endpoint context
|
|
68
|
+
*/
|
|
69
|
+
get: function () {
|
|
70
|
+
return this[symbols_1.Symbols.ctxInClassOrClassObj];
|
|
71
|
+
},
|
|
72
|
+
enumerable: false,
|
|
73
|
+
configurable: true
|
|
74
|
+
});
|
|
75
|
+
//#endregion
|
|
76
|
+
//#region inject
|
|
77
|
+
//#region inject / repo for entity
|
|
78
|
+
/**
|
|
79
|
+
* inject crud repo for entity
|
|
80
|
+
*/
|
|
81
|
+
BaseInjector.prototype.injectRepo = function (entityForCrud) {
|
|
82
|
+
var repoProxy = this.__inject(void 0, {
|
|
83
|
+
localInstance: true,
|
|
84
|
+
resolveClassFromContext: 'BaseRepository',
|
|
85
|
+
locaInstanceConstructorArgs: [function () { return entityForCrud; }],
|
|
86
|
+
});
|
|
87
|
+
this.__repositories_to_init__.push(repoProxy);
|
|
88
|
+
return repoProxy;
|
|
89
|
+
};
|
|
90
|
+
//#endregion
|
|
91
|
+
//#region inject / custom repository
|
|
92
|
+
BaseInjector.prototype.injectCustomRepository = function (cutomRepositoryClass) {
|
|
93
|
+
var repoProxy = this.__inject(cutomRepositoryClass, {
|
|
94
|
+
localInstance: true,
|
|
95
|
+
locaInstanceConstructorArgs: [
|
|
96
|
+
function () { return cutomRepositoryClass.prototype.entityClassResolveFn(); },
|
|
97
|
+
],
|
|
98
|
+
});
|
|
99
|
+
this.__repositories_to_init__.push(repoProxy);
|
|
100
|
+
return repoProxy;
|
|
101
|
+
};
|
|
102
|
+
//#endregion
|
|
103
|
+
//#region inject / custom repo
|
|
104
|
+
/**
|
|
105
|
+
* aliast to .injectRepository()
|
|
106
|
+
*/
|
|
107
|
+
BaseInjector.prototype.injectCustomRepo = function (cutomRepositoryClass) {
|
|
108
|
+
var repoProxy = this.injectCustomRepository(cutomRepositoryClass);
|
|
109
|
+
this.__repositories_to_init__.push(repoProxy);
|
|
110
|
+
return repoProxy;
|
|
111
|
+
};
|
|
112
|
+
//#endregion
|
|
113
|
+
//#region inject / controller
|
|
114
|
+
BaseInjector.prototype.injectController = function (ctor) {
|
|
115
|
+
return this.__inject(ctor, { localInstance: false });
|
|
116
|
+
};
|
|
117
|
+
//#endregion
|
|
118
|
+
//#region inject / ctrl
|
|
119
|
+
/**
|
|
120
|
+
* aliast to .injectController()
|
|
121
|
+
*/
|
|
122
|
+
BaseInjector.prototype.injectSubscriber = function (ctor) {
|
|
123
|
+
return this.__inject(ctor, { localInstance: false });
|
|
124
|
+
};
|
|
125
|
+
//#endregion
|
|
126
|
+
//#region inject / ctrl
|
|
127
|
+
/**
|
|
128
|
+
* aliast to .injectController()
|
|
129
|
+
*/
|
|
130
|
+
BaseInjector.prototype.injectCtrl = function (ctor) {
|
|
131
|
+
return this.injectController(ctor);
|
|
132
|
+
};
|
|
133
|
+
//#endregion
|
|
134
|
+
//#region inject / global provider
|
|
135
|
+
/**
|
|
136
|
+
* global provider available in every context
|
|
137
|
+
*/
|
|
138
|
+
BaseInjector.prototype.injectGlobalProvider = function (ctor) {
|
|
139
|
+
return this.__inject(ctor, { localInstance: false });
|
|
140
|
+
};
|
|
141
|
+
//#endregion
|
|
142
|
+
//#region inject / context provider
|
|
143
|
+
/**
|
|
144
|
+
* context scoped provider
|
|
145
|
+
* TODO
|
|
146
|
+
*/
|
|
147
|
+
BaseInjector.prototype.injectContextProvider = function (ctor) {
|
|
148
|
+
return this.__inject(ctor, { localInstance: false });
|
|
149
|
+
};
|
|
150
|
+
//#region inject / __ inject
|
|
151
|
+
/**
|
|
152
|
+
* Inject: Controllers, Providers, Repositories, Services, etc.
|
|
153
|
+
* TODO addd nest js injecting
|
|
154
|
+
*/
|
|
155
|
+
BaseInjector.prototype.__inject = function (ctor, options) {
|
|
156
|
+
var _this = this;
|
|
157
|
+
if (!options) {
|
|
158
|
+
options = {};
|
|
159
|
+
}
|
|
160
|
+
var contextClassInstance = this;
|
|
161
|
+
return new Proxy({}, {
|
|
162
|
+
get: function (__, propName) {
|
|
163
|
+
var contextFromClass = ctor && ctor[symbols_1.Symbols.ctxInClassOrClassObj];
|
|
164
|
+
var resultContext = contextFromClass
|
|
165
|
+
? contextFromClass
|
|
166
|
+
: _this.__endpoint_context__;
|
|
167
|
+
if (options.resolveClassFromContext) {
|
|
168
|
+
var resolvedClass = resultContext.getClassFunByClassName(options.resolveClassFromContext);
|
|
169
|
+
ctor = resolvedClass;
|
|
170
|
+
}
|
|
171
|
+
if (resultContext) {
|
|
172
|
+
var instance = resultContext.inject(ctor, tslib_1.__assign(tslib_1.__assign({}, options), { contextClassInstance: contextClassInstance }));
|
|
173
|
+
if (!instance) {
|
|
174
|
+
throw new Error("Not able to inject \"".concat(class_helpers_1.ClassHelpers.getName(ctor) || ctor.name, "\" inside ") +
|
|
175
|
+
"property \"".concat(propName === null || propName === void 0 ? void 0 : propName.toString(), "\" on class \"").concat(class_helpers_1.ClassHelpers.getName(_this), "\".\n\n Please add \"").concat(class_helpers_1.ClassHelpers.getName(ctor) || ctor.name, "\" to (entites or contorllers or providers or repositories)\n\n "));
|
|
176
|
+
}
|
|
177
|
+
var result = typeof instance[propName] === 'function'
|
|
178
|
+
? instance[propName].bind(instance)
|
|
179
|
+
: instance[propName];
|
|
180
|
+
// console.log(`Accessing injected "${propName?.toString()}" from "${ClassHelpers.getName(ctor) || ctor.name}"`,result)
|
|
181
|
+
return result;
|
|
182
|
+
}
|
|
183
|
+
/* */
|
|
184
|
+
/* */
|
|
185
|
+
},
|
|
186
|
+
set: function (__, propName, value) {
|
|
187
|
+
var contextFromClass = ctor && ctor[symbols_1.Symbols.ctxInClassOrClassObj];
|
|
188
|
+
var resultContext = contextFromClass
|
|
189
|
+
? contextFromClass
|
|
190
|
+
: _this.__endpoint_context__;
|
|
191
|
+
if (options.resolveClassFromContext) {
|
|
192
|
+
var resolvedClass = resultContext.getClassFunByClassName(options.resolveClassFromContext);
|
|
193
|
+
ctor = resolvedClass;
|
|
194
|
+
}
|
|
195
|
+
if (resultContext) {
|
|
196
|
+
var instance = resultContext.inject(ctor, tslib_1.__assign(tslib_1.__assign({}, options), { contextClassInstance: contextClassInstance }));
|
|
197
|
+
if (!instance) {
|
|
198
|
+
var classNameNotResolved = class_helpers_1.ClassHelpers.getName(ctor) || ctor.name;
|
|
199
|
+
throw new Error("Not able to inject \"".concat(classNameNotResolved, "\" inside ") +
|
|
200
|
+
"property \"".concat(propName === null || propName === void 0 ? void 0 : propName.toString(), "\" on class \"").concat(class_helpers_1.ClassHelpers.getName(_this), "\".\n\n Please add \"").concat(class_helpers_1.ClassHelpers.getName(ctor) || ctor.name, "\" to (entites or contorllers or providers or repositories)\n\n "));
|
|
201
|
+
}
|
|
202
|
+
instance[propName] = value;
|
|
203
|
+
}
|
|
204
|
+
return true;
|
|
205
|
+
},
|
|
206
|
+
});
|
|
207
|
+
};
|
|
208
|
+
//#endregion
|
|
209
|
+
//#endregion
|
|
210
|
+
//#region clone
|
|
211
|
+
BaseInjector.prototype.clone = function (override) {
|
|
212
|
+
var classFn = class_helpers_1.ClassHelpers.getClassFnFromObject(this);
|
|
213
|
+
var result = tnp_core_1._.merge(new classFn(), tnp_core_1._.merge(tnp_core_1._.cloneDeep(this), override));
|
|
214
|
+
// console.log({result})
|
|
215
|
+
return result;
|
|
216
|
+
};
|
|
217
|
+
return BaseInjector;
|
|
218
|
+
}());
|
|
219
|
+
exports.BaseInjector = BaseInjector;
|
|
220
|
+
//# sourceMappingURL=base-injector.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"base-injector.js","sourceRoot":"","sources":[""],"names":[],"mappings":";;;;AAAA,iBAAiB;AACjB,qCAAsC;AAEtC,sCAAqC;AACrC,0DAAwD;AAGxD,YAAY;AAEZ;IAAA;QAqHE,YAAY;QAEZ;;WAEG;QACO,6BAAwB,GAAG,EAA2B,CAAC;QAiIjE,YAAY;IACd,CAAC;IAlPC,mCAAmC;IACnC;;;OAGG;IACG,wBAAC,GAAP;;;;;;;wBACQ,WAAW,GAAG,IAAI,CAAC,wBAAwB,CAAC;;;;wBAC/B,gBAAA,iBAAA,WAAW,CAAA;;;;wBAAnB,IAAI;wBACb,qBAAM,IAAI,CAAC,MAAM,CAAC,IAAI,CA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;IAEH,mBAAC;AAAD,CAAC,AA5PD,IA4PC;AA5PY,oCAAY"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.BaseProvider = void 0;
|
|
4
|
+
var tslib_1 = require("tslib");
|
|
5
|
+
var base_injector_1 = require("./base-injector");
|
|
6
|
+
var BaseProvider = /** @class */ (function (_super) {
|
|
7
|
+
tslib_1.__extends(BaseProvider, _super);
|
|
8
|
+
function BaseProvider() {
|
|
9
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
10
|
+
}
|
|
11
|
+
return BaseProvider;
|
|
12
|
+
}(base_injector_1.BaseInjector));
|
|
13
|
+
exports.BaseProvider = BaseProvider;
|
|
14
|
+
//# sourceMappingURL=base-provider.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"base-provider.js","sourceRoot":"","sources":[""],"names":[],"mappings":";;;;AAAA,iDAA+C;AAE/C;IAAkC,wCAAY;IAA9C;;IAAgD,CAAC;IAAD,mBAAC;AAAD,CAAC,AAAjD,CAAkC,4BAAY,GAAG;AAApC,oCAAY"}
|
|
@@ -0,0 +1,254 @@
|
|
|
1
|
+
import type { FindManyOptions, FindOneOptions, FindOptionsWhere, InsertResult, Repository, SaveOptions, UpdateResult } from 'taon-typeorm/src';
|
|
2
|
+
import type { QueryDeepPartialEntity } from 'taon-typeorm/lib/typeorm/query-builder/QueryPartialEntity';
|
|
3
|
+
import type { UpsertOptions } from 'taon-typeorm/lib/typeorm/repository/UpsertOptions';
|
|
4
|
+
import type { DataSource as DataSourceType } from 'taon-typeorm/src';
|
|
5
|
+
import { MySqlQuerySource } from 'taon-type-sql/src';
|
|
6
|
+
import { BaseInjector } from './base-injector';
|
|
7
|
+
export declare abstract class BaseRepository<Entity extends {
|
|
8
|
+
id?: any;
|
|
9
|
+
}> extends BaseInjector {
|
|
10
|
+
private __entityClassResolveFn;
|
|
11
|
+
abstract entityClassResolveFn: () => any;
|
|
12
|
+
constructor(__entityClassResolveFn: () => any);
|
|
13
|
+
private __dbQuery;
|
|
14
|
+
get dbQuery(): MySqlQuerySource;
|
|
15
|
+
get connection(): DataSourceType;
|
|
16
|
+
private __repository;
|
|
17
|
+
protected get repository(): Repository<Entity>;
|
|
18
|
+
/**
|
|
19
|
+
* target for repository
|
|
20
|
+
*/
|
|
21
|
+
get target(): Function;
|
|
22
|
+
/**
|
|
23
|
+
* alias to repository
|
|
24
|
+
*/
|
|
25
|
+
protected get repo(): Repository<Entity>;
|
|
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<Entity>;
|
|
130
|
+
updateById(id: number | string, item: Entity): Promise<Entity>;
|
|
131
|
+
bulkUpdate(items: Entity[]): Promise<{
|
|
132
|
+
models: any[];
|
|
133
|
+
}>;
|
|
134
|
+
/**
|
|
135
|
+
* Inserts a given entity into the database, unless a unique constraint conflicts then updates the entity
|
|
136
|
+
* Unlike save method executes a primitive operation without cascades, relations and other operations included.
|
|
137
|
+
* Executes fast and efficient INSERT ... ON CONFLICT DO UPDATE/ON DUPLICATE KEY UPDATE query.
|
|
138
|
+
*/
|
|
139
|
+
upsert(entityOrEntities: QueryDeepPartialEntity<Entity> | QueryDeepPartialEntity<Entity>[], conflictPathsOrOptions: string[] | UpsertOptions<Entity>): Promise<InsertResult>;
|
|
140
|
+
/**
|
|
141
|
+
* Records the delete date of entities by a given criteria.
|
|
142
|
+
* Unlike save method executes a primitive operation without cascades, relations and other operations included.
|
|
143
|
+
* Executes fast and efficient SOFT-DELETE query.
|
|
144
|
+
* Does not check if entity exist in the database.
|
|
145
|
+
*/
|
|
146
|
+
softDelete(criteria: string | string[] | number | number[] | Date | Date[] | FindOptionsWhere<Entity>): Promise<UpdateResult>;
|
|
147
|
+
/**
|
|
148
|
+
* Restores entities by a given criteria.
|
|
149
|
+
* Unlike save method executes a primitive operation without cascades, relations and other operations included.
|
|
150
|
+
* Executes fast and efficient SOFT-DELETE query.
|
|
151
|
+
* Does not check if entity exist in the database.
|
|
152
|
+
*/
|
|
153
|
+
restore(criteria: string | string[] | number | number[] | Date | Date[] | FindOptionsWhere<Entity>): Promise<UpdateResult>;
|
|
154
|
+
/**
|
|
155
|
+
* Counts entities that match given options.
|
|
156
|
+
* Useful for pagination.
|
|
157
|
+
*/
|
|
158
|
+
count(options?: FindManyOptions<Entity>): Promise<number>;
|
|
159
|
+
/**
|
|
160
|
+
* Counts entities that match given conditions.
|
|
161
|
+
* Useful for pagination.
|
|
162
|
+
*/
|
|
163
|
+
countBy(where: FindOptionsWhere<Entity> | FindOptionsWhere<Entity>[]): Promise<number>;
|
|
164
|
+
/**
|
|
165
|
+
* Finds entities that match given find options.
|
|
166
|
+
*/
|
|
167
|
+
find(options?: FindManyOptions<Entity>): Promise<Entity[]>;
|
|
168
|
+
/**
|
|
169
|
+
* Finds entities that match given find options.
|
|
170
|
+
*/
|
|
171
|
+
findBy(where: FindOptionsWhere<Entity> | FindOptionsWhere<Entity>[]): Promise<Entity[]>;
|
|
172
|
+
/**
|
|
173
|
+
* Finds entities that match given find options.
|
|
174
|
+
* Also counts all entities that match given conditions,
|
|
175
|
+
* but ignores pagination settings (from and take options).
|
|
176
|
+
*/
|
|
177
|
+
findAndCount(options?: FindManyOptions<Entity>): Promise<[Entity[], number]>;
|
|
178
|
+
/**
|
|
179
|
+
* Finds entities that match given WHERE conditions.
|
|
180
|
+
* Also counts all entities that match given conditions,
|
|
181
|
+
* but ignores pagination settings (from and take options).
|
|
182
|
+
*/
|
|
183
|
+
findAndCountBy(where: FindOptionsWhere<Entity> | FindOptionsWhere<Entity>[]): Promise<[Entity[], number]>;
|
|
184
|
+
/**
|
|
185
|
+
* Finds entities with ids.
|
|
186
|
+
* Optionally find options or conditions can be applied.
|
|
187
|
+
*
|
|
188
|
+
* @deprecated use `findBy` method instead in conjunction with `In` operator, for example:
|
|
189
|
+
*
|
|
190
|
+
* .findBy({
|
|
191
|
+
* id: In([1, 2, 3])
|
|
192
|
+
* })
|
|
193
|
+
*/
|
|
194
|
+
findByIds(ids: any[]): Promise<Entity[]>;
|
|
195
|
+
/**
|
|
196
|
+
* Finds first entity by a given find options.
|
|
197
|
+
* If entity was not found in the database - returns null.
|
|
198
|
+
*/
|
|
199
|
+
findOne(options: FindOneOptions<Entity>): Promise<Entity | null>;
|
|
200
|
+
/**
|
|
201
|
+
* Finds first entity that matches given where condition.
|
|
202
|
+
* If entity was not found in the database - returns null.
|
|
203
|
+
*/
|
|
204
|
+
findOneBy(where: FindOptionsWhere<Entity> | FindOptionsWhere<Entity>[]): Promise<Entity | null>;
|
|
205
|
+
/**
|
|
206
|
+
* Finds first entity that matches given id.
|
|
207
|
+
* If entity was not found in the database - returns null.
|
|
208
|
+
*
|
|
209
|
+
* @deprecated use `findOneBy` method instead in conjunction with `In` operator, for example:
|
|
210
|
+
*
|
|
211
|
+
* .findOneBy({
|
|
212
|
+
* id: 1 // where "id" is your primary column name
|
|
213
|
+
* })
|
|
214
|
+
*/
|
|
215
|
+
findOneById(id: number | string | Date): Promise<Entity | null>;
|
|
216
|
+
/**
|
|
217
|
+
* Finds first entity by a given find options.
|
|
218
|
+
* If entity was not found in the database - rejects with error.
|
|
219
|
+
*/
|
|
220
|
+
findOneOrFail(options: FindOneOptions<Entity>): Promise<Entity>;
|
|
221
|
+
/**
|
|
222
|
+
* Finds first entity that matches given where condition.
|
|
223
|
+
* If entity was not found in the database - rejects with error.
|
|
224
|
+
*/
|
|
225
|
+
findOneByOrFail(where: FindOptionsWhere<Entity> | FindOptionsWhere<Entity>[]): Promise<Entity>;
|
|
226
|
+
/**
|
|
227
|
+
* Executes a raw SQL query and returns a raw database results.
|
|
228
|
+
* Raw query execution is supported only by relational databases (MongoDB is not supported).
|
|
229
|
+
*/
|
|
230
|
+
query(query: string, parameters?: any[]): Promise<any>;
|
|
231
|
+
/**
|
|
232
|
+
* Clears all the data from the given table/collection (truncates/drops it).
|
|
233
|
+
*
|
|
234
|
+
* Note: this method uses TRUNCATE and may not work as you expect in transactions on some platforms.
|
|
235
|
+
* @see https://stackoverflow.com/a/5972738/925151
|
|
236
|
+
*/
|
|
237
|
+
clear(): Promise<void>;
|
|
238
|
+
/**
|
|
239
|
+
* Increments some column by provided value of the entities matched given conditions.
|
|
240
|
+
*/
|
|
241
|
+
increment(conditions: FindOptionsWhere<Entity>, propertyPath: string, value: number | string): Promise<UpdateResult>;
|
|
242
|
+
/**
|
|
243
|
+
* Decrements some column by provided value of the entities matched given conditions.
|
|
244
|
+
*/
|
|
245
|
+
decrement(conditions: FindOptionsWhere<Entity>, propertyPath: string, value: number | string): Promise<UpdateResult>;
|
|
246
|
+
/**
|
|
247
|
+
* @deprecated use findAndCount instead
|
|
248
|
+
*/
|
|
249
|
+
getAll(): Promise<{
|
|
250
|
+
models: Entity[];
|
|
251
|
+
totalCount: number;
|
|
252
|
+
}>;
|
|
253
|
+
getBy(id: number | string): Promise<Entity>;
|
|
254
|
+
}
|