taon 18.0.19 → 18.0.21
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 +114 -118
- package/assets/shared/logo-header-admin-mode.png +0 -0
- package/assets/shared/shared_folder_info.txt +1 -1
- package/bin/start.js +279 -279
- package/bin/taon +6 -6
- package/bin/taon-debug +5 -5
- package/bin/taon-debug-brk +5 -5
- package/browser/README.md +24 -24
- package/browser/esm2022/lib/base-classes/base-abstract-entity.mjs +1 -1
- package/browser/esm2022/lib/base-classes/base-class.mjs +2 -2
- package/browser/esm2022/lib/base-classes/base-controller.mjs +3 -2
- package/browser/esm2022/lib/base-classes/base-crud-controller.mjs +1 -1
- package/browser/esm2022/lib/base-classes/base-migration.mjs +23 -0
- package/browser/esm2022/lib/base-classes/base-subscriber-for-entity.mjs +20 -20
- package/browser/esm2022/lib/base-classes/base.mjs +5 -3
- package/browser/esm2022/lib/context-db-migrations.mjs +410 -0
- package/browser/esm2022/lib/create-context.mjs +22 -8
- package/browser/esm2022/lib/decorators/classes/controller-decorator.mjs +4 -1
- package/browser/esm2022/lib/decorators/classes/entity-decorator.mjs +4 -1
- package/browser/esm2022/lib/decorators/classes/migration-decorator.mjs +18 -0
- package/browser/esm2022/lib/decorators/classes/provider-decorator.mjs +4 -1
- package/browser/esm2022/lib/decorators/classes/repository-decorator.mjs +4 -1
- package/browser/esm2022/lib/decorators/classes/subscriber-decorator.mjs +5 -2
- package/browser/esm2022/lib/decorators/http/http-methods-decorators.mjs +1 -1
- package/browser/esm2022/lib/endpoint-context.mjs +105 -59
- package/browser/esm2022/lib/entity-process.mjs +1 -10
- package/browser/esm2022/lib/get-response-value.mjs +1 -15
- package/browser/esm2022/lib/index.mjs +4 -1
- package/browser/esm2022/lib/inject.mjs +1 -1
- package/browser/esm2022/lib/models.mjs +30 -1
- package/browser/esm2022/lib/symbols.mjs +2 -1
- package/browser/esm2022/lib/ui/taon-admin-mode-configuration/index.mjs +1 -3
- package/browser/esm2022/lib/ui/taon-admin-mode-configuration/taon-admin-mode-configuration.component.mjs +55 -37
- package/browser/esm2022/lib/ui/taon-admin-mode-configuration/taon-admin.service.mjs +17 -21
- package/browser/esm2022/lib/ui/taon-notifications/taon-notifications.module.mjs +1 -1
- package/browser/esm2022/lib/ui/taon-progress-bar/taon-progress-bar.component.mjs +1 -1
- package/browser/esm2022/lib/ui/taon-table/taon-table.component.mjs +1 -2
- package/browser/fesm2022/taon.mjs +701 -449
- package/browser/fesm2022/taon.mjs.map +1 -1
- package/browser/lib/base-classes/base-abstract-entity.d.ts +2 -1
- package/browser/lib/base-classes/base-class.d.ts +1 -1
- package/browser/lib/base-classes/base-context.d.ts +3 -0
- package/browser/lib/base-classes/base-controller.d.ts +2 -1
- package/browser/lib/base-classes/base-crud-controller.d.ts +1 -1
- package/browser/lib/base-classes/base-migration.d.ts +12 -0
- package/browser/lib/base-classes/base.d.ts +8 -2
- package/browser/lib/context-db-migrations.d.ts +17 -0
- package/browser/lib/create-context.d.ts +7 -4
- package/browser/lib/decorators/classes/controller-decorator.d.ts +3 -0
- package/browser/lib/decorators/classes/entity-decorator.d.ts +3 -0
- package/browser/lib/decorators/classes/migration-decorator.d.ts +8 -0
- package/browser/lib/decorators/classes/provider-decorator.d.ts +3 -0
- package/browser/lib/decorators/classes/repository-decorator.d.ts +3 -0
- package/browser/lib/decorators/classes/subscriber-decorator.d.ts +3 -0
- package/browser/lib/decorators/http/http-methods-decorators.d.ts +9 -0
- package/browser/lib/endpoint-context.d.ts +14 -7
- package/browser/lib/index.d.ts +14 -1
- package/browser/lib/models.d.ts +45 -22
- package/browser/lib/symbols.d.ts +1 -0
- package/browser/lib/ui/taon-admin-mode-configuration/index.d.ts +1 -3
- package/browser/lib/ui/taon-admin-mode-configuration/taon-admin-mode-configuration.component.d.ts +5 -8
- package/browser/lib/ui/taon-admin-mode-configuration/taon-admin.service.d.ts +8 -8
- package/client/README.md +24 -24
- package/client/esm2022/lib/base-classes/base-abstract-entity.mjs +1 -1
- package/client/esm2022/lib/base-classes/base-class.mjs +2 -2
- package/client/esm2022/lib/base-classes/base-controller.mjs +3 -2
- package/client/esm2022/lib/base-classes/base-crud-controller.mjs +1 -1
- package/client/esm2022/lib/base-classes/base-migration.mjs +23 -0
- package/client/esm2022/lib/base-classes/base-subscriber-for-entity.mjs +20 -20
- package/client/esm2022/lib/base-classes/base.mjs +5 -3
- package/client/esm2022/lib/context-db-migrations.mjs +410 -0
- package/client/esm2022/lib/create-context.mjs +22 -8
- package/client/esm2022/lib/decorators/classes/controller-decorator.mjs +4 -1
- package/client/esm2022/lib/decorators/classes/entity-decorator.mjs +4 -1
- package/client/esm2022/lib/decorators/classes/migration-decorator.mjs +18 -0
- package/client/esm2022/lib/decorators/classes/provider-decorator.mjs +4 -1
- package/client/esm2022/lib/decorators/classes/repository-decorator.mjs +4 -1
- package/client/esm2022/lib/decorators/classes/subscriber-decorator.mjs +5 -2
- package/client/esm2022/lib/decorators/http/http-methods-decorators.mjs +1 -1
- package/client/esm2022/lib/endpoint-context.mjs +105 -59
- package/client/esm2022/lib/entity-process.mjs +1 -10
- package/client/esm2022/lib/get-response-value.mjs +1 -15
- package/client/esm2022/lib/index.mjs +4 -1
- package/client/esm2022/lib/inject.mjs +1 -1
- package/client/esm2022/lib/models.mjs +30 -1
- package/client/esm2022/lib/symbols.mjs +2 -1
- package/client/esm2022/lib/ui/taon-admin-mode-configuration/index.mjs +1 -3
- package/client/esm2022/lib/ui/taon-admin-mode-configuration/taon-admin-mode-configuration.component.mjs +55 -37
- package/client/esm2022/lib/ui/taon-admin-mode-configuration/taon-admin.service.mjs +17 -21
- package/client/esm2022/lib/ui/taon-notifications/taon-notifications.module.mjs +1 -1
- package/client/esm2022/lib/ui/taon-progress-bar/taon-progress-bar.component.mjs +1 -1
- package/client/esm2022/lib/ui/taon-table/taon-table.component.mjs +1 -2
- package/client/fesm2022/taon.mjs +701 -449
- package/client/fesm2022/taon.mjs.map +1 -1
- package/client/lib/base-classes/base-abstract-entity.d.ts +2 -1
- package/client/lib/base-classes/base-class.d.ts +1 -1
- package/client/lib/base-classes/base-context.d.ts +3 -0
- package/client/lib/base-classes/base-controller.d.ts +2 -1
- package/client/lib/base-classes/base-crud-controller.d.ts +1 -1
- package/client/lib/base-classes/base-migration.d.ts +12 -0
- package/client/lib/base-classes/base.d.ts +8 -2
- package/client/lib/context-db-migrations.d.ts +17 -0
- package/client/lib/create-context.d.ts +7 -4
- package/client/lib/decorators/classes/controller-decorator.d.ts +3 -0
- package/client/lib/decorators/classes/entity-decorator.d.ts +3 -0
- package/client/lib/decorators/classes/migration-decorator.d.ts +8 -0
- package/client/lib/decorators/classes/provider-decorator.d.ts +3 -0
- package/client/lib/decorators/classes/repository-decorator.d.ts +3 -0
- package/client/lib/decorators/classes/subscriber-decorator.d.ts +3 -0
- package/client/lib/decorators/http/http-methods-decorators.d.ts +9 -0
- package/client/lib/endpoint-context.d.ts +14 -7
- package/client/lib/index.d.ts +14 -1
- package/client/lib/models.d.ts +45 -22
- package/client/lib/symbols.d.ts +1 -0
- package/client/lib/ui/taon-admin-mode-configuration/index.d.ts +1 -3
- package/client/lib/ui/taon-admin-mode-configuration/taon-admin-mode-configuration.component.d.ts +5 -8
- package/client/lib/ui/taon-admin-mode-configuration/taon-admin.service.d.ts +8 -8
- package/lib/base-classes/base-abstract-entity.d.ts +1 -0
- package/lib/base-classes/base-class.d.ts +1 -1
- package/lib/base-classes/base-class.js +1 -1
- package/lib/base-classes/base-context.d.ts +3 -0
- package/lib/base-classes/base-controller.d.ts +2 -1
- package/lib/base-classes/base-controller.js +2 -1
- package/lib/base-classes/base-controller.js.map +1 -1
- package/lib/base-classes/base-crud-controller.d.ts +1 -1
- package/lib/base-classes/base-migration.d.ts +11 -0
- package/lib/base-classes/base-migration.js +41 -0
- package/lib/base-classes/base-migration.js.map +1 -0
- package/lib/base-classes/base-repository.js +4 -4
- package/lib/base-classes/base-repository.js.map +1 -1
- package/lib/base-classes/base-subscriber-for-entity.js +19 -19
- package/lib/base-classes/base-subscriber-for-entity.js.map +1 -1
- package/lib/base-classes/base.d.ts +8 -2
- package/lib/base-classes/base.js +4 -2
- package/lib/base-classes/base.js.map +1 -1
- package/lib/context-db-migrations.d.ts +16 -0
- package/lib/context-db-migrations.js +585 -0
- package/lib/context-db-migrations.js.map +1 -0
- package/lib/create-context.d.ts +7 -4
- package/lib/create-context.js +34 -12
- package/lib/create-context.js.map +1 -1
- package/lib/decorators/classes/controller-decorator.d.ts +3 -0
- package/lib/decorators/classes/controller-decorator.js +3 -0
- package/lib/decorators/classes/controller-decorator.js.map +1 -1
- package/lib/decorators/classes/entity-decorator.d.ts +3 -0
- package/lib/decorators/classes/entity-decorator.js +3 -0
- package/lib/decorators/classes/entity-decorator.js.map +1 -1
- package/lib/decorators/classes/migration-decorator.d.ts +7 -0
- package/lib/decorators/classes/migration-decorator.js +27 -0
- package/lib/decorators/classes/migration-decorator.js.map +1 -0
- package/lib/decorators/classes/provider-decorator.d.ts +3 -0
- package/lib/decorators/classes/provider-decorator.js +3 -0
- package/lib/decorators/classes/provider-decorator.js.map +1 -1
- package/lib/decorators/classes/repository-decorator.d.ts +3 -0
- package/lib/decorators/classes/repository-decorator.js +3 -0
- package/lib/decorators/classes/repository-decorator.js.map +1 -1
- package/lib/decorators/classes/subscriber-decorator.d.ts +3 -0
- package/lib/decorators/classes/subscriber-decorator.js +4 -1
- package/lib/decorators/classes/subscriber-decorator.js.map +1 -1
- package/lib/decorators/http/http-methods-decorators.d.ts +9 -0
- package/lib/decorators/http/http-methods-decorators.js.map +1 -1
- package/lib/endpoint-context.d.ts +14 -7
- package/lib/endpoint-context.js +265 -220
- package/lib/endpoint-context.js.map +1 -1
- package/lib/entity-process.js +0 -9
- package/lib/entity-process.js.map +1 -1
- package/lib/get-response-value.js +14 -37
- package/lib/get-response-value.js.map +1 -1
- package/lib/index.d.ts +14 -1
- package/lib/index.js +5 -1
- package/lib/index.js.map +1 -1
- package/lib/inject.js +0 -2
- package/lib/inject.js.map +1 -1
- package/lib/models.d.ts +45 -23
- package/lib/models.js +45 -0
- package/lib/models.js.map +1 -1
- package/lib/symbols.d.ts +1 -0
- package/lib/symbols.js +1 -0
- package/lib/symbols.js.map +1 -1
- package/lib/ui/directives/index.js +2 -2
- package/lib/ui/index.js +2 -2
- package/lib/ui/taon-admin-mode-configuration/index.d.ts +1 -3
- package/lib/ui/taon-admin-mode-configuration/index.js +2 -2
- package/lib/ui/taon-admin-mode-configuration/taon-admin-mode-configuration.component.d.ts +4 -7
- package/lib/ui/taon-admin-mode-configuration/{models/taon-admin-mode-tabs.js → taon-admin.models.js} +1 -1
- package/lib/ui/taon-admin-mode-configuration/taon-admin.models.js.map +1 -0
- package/lib/ui/taon-admin-mode-configuration/taon-admin.service.d.ts +6 -6
- package/lib/ui/taon-github-fork-me-corner/index.js +2 -2
- package/lib/ui/taon-github-fork-me-ribbon/index.js +2 -2
- package/lib/ui/taon-notifications/taon-notifications.models.js +2 -2
- package/lib/ui/taon-progress-bar/index.js +2 -2
- package/lib/ui/taon-session-passcode/index.js +2 -2
- package/lib/ui/taon-table/index.js +2 -2
- package/migrations/index.d.ts +1 -0
- package/migrations/index.js +6 -0
- package/migrations/index.js.map +1 -0
- package/migrations/migrations_index._auto-generated_.d.ts +0 -0
- package/migrations/migrations_index._auto-generated_.js +4 -0
- package/migrations/migrations_index._auto-generated_.js.map +1 -0
- package/package.json +7 -7
- package/taon.jsonc +47 -47
- package/tmp-environment.json +39 -31
- package/websql/README.md +24 -24
- package/websql/esm2022/lib/base-classes/base-abstract-entity.mjs +1 -1
- package/websql/esm2022/lib/base-classes/base-class.mjs +2 -2
- package/websql/esm2022/lib/base-classes/base-controller.mjs +3 -2
- package/websql/esm2022/lib/base-classes/base-crud-controller.mjs +1 -1
- package/websql/esm2022/lib/base-classes/base-migration.mjs +23 -0
- package/websql/esm2022/lib/base-classes/base-repository.mjs +5 -5
- package/websql/esm2022/lib/base-classes/base-subscriber-for-entity.mjs +20 -20
- package/websql/esm2022/lib/base-classes/base.mjs +5 -3
- package/websql/esm2022/lib/context-db-migrations.mjs +269 -0
- package/websql/esm2022/lib/create-context.mjs +22 -8
- package/websql/esm2022/lib/decorators/classes/controller-decorator.mjs +4 -1
- package/websql/esm2022/lib/decorators/classes/entity-decorator.mjs +4 -1
- package/websql/esm2022/lib/decorators/classes/migration-decorator.mjs +18 -0
- package/websql/esm2022/lib/decorators/classes/provider-decorator.mjs +4 -1
- package/websql/esm2022/lib/decorators/classes/repository-decorator.mjs +4 -1
- package/websql/esm2022/lib/decorators/classes/subscriber-decorator.mjs +5 -2
- package/websql/esm2022/lib/decorators/http/http-methods-decorators.mjs +1 -1
- package/websql/esm2022/lib/endpoint-context.mjs +139 -95
- package/websql/esm2022/lib/entity-process.mjs +1 -10
- package/websql/esm2022/lib/get-response-value.mjs +4 -24
- package/websql/esm2022/lib/index.mjs +4 -1
- package/websql/esm2022/lib/inject.mjs +1 -1
- package/websql/esm2022/lib/models.mjs +28 -1
- package/websql/esm2022/lib/symbols.mjs +2 -1
- package/websql/esm2022/lib/ui/taon-admin-mode-configuration/index.mjs +1 -3
- package/websql/esm2022/lib/ui/taon-admin-mode-configuration/taon-admin-mode-configuration.component.mjs +55 -37
- package/websql/esm2022/lib/ui/taon-admin-mode-configuration/taon-admin.service.mjs +17 -21
- package/websql/esm2022/lib/ui/taon-notifications/taon-notifications.module.mjs +1 -1
- package/websql/esm2022/lib/ui/taon-progress-bar/taon-progress-bar.component.mjs +1 -1
- package/websql/esm2022/lib/ui/taon-table/taon-table.component.mjs +1 -2
- package/websql/fesm2022/taon.mjs +594 -497
- package/websql/fesm2022/taon.mjs.map +1 -1
- package/websql/lib/base-classes/base-abstract-entity.d.ts +2 -1
- package/websql/lib/base-classes/base-class.d.ts +1 -1
- package/websql/lib/base-classes/base-context.d.ts +3 -0
- package/websql/lib/base-classes/base-controller.d.ts +2 -1
- package/websql/lib/base-classes/base-crud-controller.d.ts +1 -1
- package/websql/lib/base-classes/base-migration.d.ts +12 -0
- package/websql/lib/base-classes/base.d.ts +8 -2
- package/websql/lib/context-db-migrations.d.ts +17 -0
- package/websql/lib/create-context.d.ts +7 -4
- package/websql/lib/decorators/classes/controller-decorator.d.ts +3 -0
- package/websql/lib/decorators/classes/entity-decorator.d.ts +3 -0
- package/websql/lib/decorators/classes/migration-decorator.d.ts +8 -0
- package/websql/lib/decorators/classes/provider-decorator.d.ts +3 -0
- package/websql/lib/decorators/classes/repository-decorator.d.ts +3 -0
- package/websql/lib/decorators/classes/subscriber-decorator.d.ts +3 -0
- package/websql/lib/decorators/http/http-methods-decorators.d.ts +9 -0
- package/websql/lib/endpoint-context.d.ts +14 -7
- package/websql/lib/index.d.ts +14 -1
- package/websql/lib/models.d.ts +45 -23
- package/websql/lib/symbols.d.ts +1 -0
- package/websql/lib/ui/taon-admin-mode-configuration/index.d.ts +1 -3
- package/websql/lib/ui/taon-admin-mode-configuration/taon-admin-mode-configuration.component.d.ts +5 -8
- package/websql/lib/ui/taon-admin-mode-configuration/taon-admin.service.d.ts +8 -8
- package/browser/esm2022/lib/ui/taon-admin-mode-configuration/components/taon-admin-edit-mode/index.mjs +0 -5
- package/browser/esm2022/lib/ui/taon-admin-mode-configuration/components/taon-admin-edit-mode/taon-admin-edit-mode.component.mjs +0 -115
- package/browser/esm2022/lib/ui/taon-admin-mode-configuration/components/taon-admin-edit-mode/taon-admin-edit-mode.module.mjs +0 -50
- package/browser/esm2022/lib/ui/taon-admin-mode-configuration/components/taon-file-general-opt/index.mjs +0 -5
- package/browser/esm2022/lib/ui/taon-admin-mode-configuration/components/taon-file-general-opt/taon-file-general-opt.component.mjs +0 -61
- package/browser/esm2022/lib/ui/taon-admin-mode-configuration/components/taon-file-general-opt/taon-file-general-opt.module.mjs +0 -21
- package/browser/esm2022/lib/ui/taon-admin-mode-configuration/models/taon-admin-mode-tabs.mjs +0 -4
- package/browser/esm2022/lib/ui/taon-admin-mode-configuration/taon-admin-control.service.mjs +0 -32
- package/browser/esm2022/lib/ui/taon-admin-mode-configuration/taon-admin-mode-configuration.module.mjs +0 -54
- package/browser/lib/ui/taon-admin-mode-configuration/components/taon-admin-edit-mode/index.d.ts +0 -3
- package/browser/lib/ui/taon-admin-mode-configuration/components/taon-admin-edit-mode/taon-admin-edit-mode.component.d.ts +0 -33
- package/browser/lib/ui/taon-admin-mode-configuration/components/taon-admin-edit-mode/taon-admin-edit-mode.module.d.ts +0 -16
- package/browser/lib/ui/taon-admin-mode-configuration/components/taon-file-general-opt/index.d.ts +0 -3
- package/browser/lib/ui/taon-admin-mode-configuration/components/taon-file-general-opt/taon-file-general-opt.component.d.ts +0 -17
- package/browser/lib/ui/taon-admin-mode-configuration/components/taon-file-general-opt/taon-file-general-opt.module.d.ts +0 -10
- package/browser/lib/ui/taon-admin-mode-configuration/models/taon-admin-mode-tabs.d.ts +0 -6
- package/browser/lib/ui/taon-admin-mode-configuration/taon-admin-control.service.d.ts +0 -18
- package/browser/lib/ui/taon-admin-mode-configuration/taon-admin-mode-configuration.module.d.ts +0 -17
- package/client/esm2022/lib/ui/taon-admin-mode-configuration/components/taon-admin-edit-mode/index.mjs +0 -5
- package/client/esm2022/lib/ui/taon-admin-mode-configuration/components/taon-admin-edit-mode/taon-admin-edit-mode.component.mjs +0 -115
- package/client/esm2022/lib/ui/taon-admin-mode-configuration/components/taon-admin-edit-mode/taon-admin-edit-mode.module.mjs +0 -50
- package/client/esm2022/lib/ui/taon-admin-mode-configuration/components/taon-file-general-opt/index.mjs +0 -5
- package/client/esm2022/lib/ui/taon-admin-mode-configuration/components/taon-file-general-opt/taon-file-general-opt.component.mjs +0 -61
- package/client/esm2022/lib/ui/taon-admin-mode-configuration/components/taon-file-general-opt/taon-file-general-opt.module.mjs +0 -21
- package/client/esm2022/lib/ui/taon-admin-mode-configuration/models/taon-admin-mode-tabs.mjs +0 -4
- package/client/esm2022/lib/ui/taon-admin-mode-configuration/taon-admin-control.service.mjs +0 -32
- package/client/esm2022/lib/ui/taon-admin-mode-configuration/taon-admin-mode-configuration.module.mjs +0 -54
- package/client/lib/ui/taon-admin-mode-configuration/components/taon-admin-edit-mode/index.d.ts +0 -3
- package/client/lib/ui/taon-admin-mode-configuration/components/taon-admin-edit-mode/taon-admin-edit-mode.component.d.ts +0 -33
- package/client/lib/ui/taon-admin-mode-configuration/components/taon-admin-edit-mode/taon-admin-edit-mode.module.d.ts +0 -16
- package/client/lib/ui/taon-admin-mode-configuration/components/taon-file-general-opt/index.d.ts +0 -3
- package/client/lib/ui/taon-admin-mode-configuration/components/taon-file-general-opt/taon-file-general-opt.component.d.ts +0 -17
- package/client/lib/ui/taon-admin-mode-configuration/components/taon-file-general-opt/taon-file-general-opt.module.d.ts +0 -10
- package/client/lib/ui/taon-admin-mode-configuration/models/taon-admin-mode-tabs.d.ts +0 -6
- package/client/lib/ui/taon-admin-mode-configuration/taon-admin-control.service.d.ts +0 -18
- package/client/lib/ui/taon-admin-mode-configuration/taon-admin-mode-configuration.module.d.ts +0 -17
- package/lib/ui/taon-admin-mode-configuration/components/taon-admin-edit-mode/index.d.ts +0 -2
- package/lib/ui/taon-admin-mode-configuration/components/taon-admin-edit-mode/index.js +0 -5
- package/lib/ui/taon-admin-mode-configuration/components/taon-admin-edit-mode/index.js.map +0 -1
- package/lib/ui/taon-admin-mode-configuration/components/taon-admin-edit-mode/taon-admin-edit-mode.component.d.ts +0 -29
- package/lib/ui/taon-admin-mode-configuration/components/taon-admin-edit-mode/taon-admin-edit-mode.module.d.ts +0 -2
- package/lib/ui/taon-admin-mode-configuration/components/taon-db-admin/index.d.ts +0 -1
- package/lib/ui/taon-admin-mode-configuration/components/taon-db-admin/index.js +0 -5
- package/lib/ui/taon-admin-mode-configuration/components/taon-db-admin/index.js.map +0 -1
- package/lib/ui/taon-admin-mode-configuration/components/taon-db-admin/taon-db-admin.component.d.ts +0 -8
- package/lib/ui/taon-admin-mode-configuration/components/taon-file-general-opt/index.d.ts +0 -2
- package/lib/ui/taon-admin-mode-configuration/components/taon-file-general-opt/index.js +0 -5
- package/lib/ui/taon-admin-mode-configuration/components/taon-file-general-opt/index.js.map +0 -1
- package/lib/ui/taon-admin-mode-configuration/components/taon-file-general-opt/taon-file-general-opt.component.d.ts +0 -13
- package/lib/ui/taon-admin-mode-configuration/components/taon-file-general-opt/taon-file-general-opt.module.d.ts +0 -2
- package/lib/ui/taon-admin-mode-configuration/models/taon-admin-mode-tabs.js.map +0 -1
- package/lib/ui/taon-admin-mode-configuration/taon-admin-control.service.d.ts +0 -14
- package/lib/ui/taon-admin-mode-configuration/taon-admin-mode-configuration.module.d.ts +0 -2
- package/websql/esm2022/lib/ui/taon-admin-mode-configuration/components/taon-admin-edit-mode/index.mjs +0 -5
- package/websql/esm2022/lib/ui/taon-admin-mode-configuration/components/taon-admin-edit-mode/taon-admin-edit-mode.component.mjs +0 -115
- package/websql/esm2022/lib/ui/taon-admin-mode-configuration/components/taon-admin-edit-mode/taon-admin-edit-mode.module.mjs +0 -50
- package/websql/esm2022/lib/ui/taon-admin-mode-configuration/components/taon-file-general-opt/index.mjs +0 -5
- package/websql/esm2022/lib/ui/taon-admin-mode-configuration/components/taon-file-general-opt/taon-file-general-opt.component.mjs +0 -61
- package/websql/esm2022/lib/ui/taon-admin-mode-configuration/components/taon-file-general-opt/taon-file-general-opt.module.mjs +0 -21
- package/websql/esm2022/lib/ui/taon-admin-mode-configuration/models/taon-admin-mode-tabs.mjs +0 -4
- package/websql/esm2022/lib/ui/taon-admin-mode-configuration/taon-admin-control.service.mjs +0 -32
- package/websql/esm2022/lib/ui/taon-admin-mode-configuration/taon-admin-mode-configuration.module.mjs +0 -54
- package/websql/lib/ui/taon-admin-mode-configuration/components/taon-admin-edit-mode/index.d.ts +0 -3
- package/websql/lib/ui/taon-admin-mode-configuration/components/taon-admin-edit-mode/taon-admin-edit-mode.component.d.ts +0 -33
- package/websql/lib/ui/taon-admin-mode-configuration/components/taon-admin-edit-mode/taon-admin-edit-mode.module.d.ts +0 -16
- package/websql/lib/ui/taon-admin-mode-configuration/components/taon-file-general-opt/index.d.ts +0 -3
- package/websql/lib/ui/taon-admin-mode-configuration/components/taon-file-general-opt/taon-file-general-opt.component.d.ts +0 -17
- package/websql/lib/ui/taon-admin-mode-configuration/components/taon-file-general-opt/taon-file-general-opt.module.d.ts +0 -10
- package/websql/lib/ui/taon-admin-mode-configuration/models/taon-admin-mode-tabs.d.ts +0 -6
- package/websql/lib/ui/taon-admin-mode-configuration/taon-admin-control.service.d.ts +0 -18
- package/websql/lib/ui/taon-admin-mode-configuration/taon-admin-mode-configuration.module.d.ts +0 -17
- /package/lib/ui/taon-admin-mode-configuration/{models/taon-admin-mode-tabs.d.ts → taon-admin.models.d.ts} +0 -0
|
@@ -4,4 +4,5 @@ import type { BaseClass } from './base-class';
|
|
|
4
4
|
export declare abstract class BaseAbstractEntity<CloneT extends BaseClass = any> extends BaseEntity<CloneT> {
|
|
5
5
|
id: string;
|
|
6
6
|
version: number;
|
|
7
|
-
}
|
|
7
|
+
}
|
|
8
|
+
export type AbstractEntityOmitKeys<ENTITY> = Omit<ENTITY, 'id' | 'version' | '_' | 'clone'>;
|
|
@@ -5,6 +5,7 @@ declare const BaseContext: {
|
|
|
5
5
|
readonly repositories: Record<string, new (...args: any[]) => any>;
|
|
6
6
|
readonly providers: Record<string, new (...args: any[]) => any>;
|
|
7
7
|
readonly subscribers: Record<string, new (...args: any[]) => any>;
|
|
8
|
+
readonly migrations: Record<string, new (...args: any[]) => any>;
|
|
8
9
|
};
|
|
9
10
|
readonly contexts: Record<string, object>;
|
|
10
11
|
readonly contextName: string;
|
|
@@ -15,6 +16,8 @@ declare const BaseContext: {
|
|
|
15
16
|
initialize: (overrideOptions?: {
|
|
16
17
|
overrideHost?: string;
|
|
17
18
|
overrideRemoteHost?: string;
|
|
19
|
+
onlyMigrationRun?: boolean;
|
|
20
|
+
onlyMigrationRevertToTimestamp?: number;
|
|
18
21
|
}) => Promise<import("../endpoint-context").EndpointContext>;
|
|
19
22
|
readonly realtime: {
|
|
20
23
|
readonly client: import("../realtime/realtime-client").RealtimeClient;
|
|
@@ -2,7 +2,8 @@
|
|
|
2
2
|
import { BaseInjector } from './base-injector';
|
|
3
3
|
export declare class BaseController extends BaseInjector {
|
|
4
4
|
/**
|
|
5
|
-
*
|
|
5
|
+
* THIS ONLY WORKS IF NO MIGRATIONS PROVIDED IN CONFIG
|
|
6
|
+
* Purpose: init example data for db.
|
|
6
7
|
*/
|
|
7
8
|
initExampleDbData(): Promise<any>;
|
|
8
9
|
}
|
|
@@ -6,7 +6,7 @@ import { Models } from '../models';
|
|
|
6
6
|
* Please override property entityClassFn with entity class.
|
|
7
7
|
*/
|
|
8
8
|
export declare abstract class BaseCrudController<Entity> extends BaseController {
|
|
9
|
-
protected db
|
|
9
|
+
protected db: BaseRepository<Entity>;
|
|
10
10
|
/**
|
|
11
11
|
* Please provide entity as class propery entityClassFn:
|
|
12
12
|
* @returns class function
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
// @ts-nocheck
|
|
2
|
+
import { BaseInjector } from './base-injector';
|
|
3
|
+
import { MigrationInterface, QueryRunner } from 'taon-typeorm/browser';
|
|
4
|
+
export declare class BaseMigration extends BaseInjector implements MigrationInterface {
|
|
5
|
+
/**
|
|
6
|
+
* by default is READY to run
|
|
7
|
+
*/
|
|
8
|
+
isReadyToRun(): boolean;
|
|
9
|
+
getDescription(): string;
|
|
10
|
+
up(queryRunner: QueryRunner): Promise<any>;
|
|
11
|
+
down(queryRunner: QueryRunner): Promise<any>;
|
|
12
|
+
}
|
|
@@ -5,23 +5,27 @@ import * as entity from './base-entity';
|
|
|
5
5
|
import * as abstractEntity from './base-abstract-entity';
|
|
6
6
|
import * as repository from './base-repository';
|
|
7
7
|
import * as provider from './base-provider';
|
|
8
|
-
import * as
|
|
8
|
+
import * as baseClass from './base-class';
|
|
9
9
|
import * as baseSubscriberEntity from './base-subscriber-for-entity';
|
|
10
|
+
import * as baseMigration from './base-migration';
|
|
10
11
|
export declare namespace Base {
|
|
11
12
|
export import Controller = controller.BaseController;
|
|
12
13
|
export import CrudController = crudController.BaseCrudController;
|
|
13
14
|
export import Entity = entity.BaseEntity;
|
|
14
15
|
export import AbstractEntity = abstractEntity.BaseAbstractEntity;
|
|
16
|
+
export import AbstractEntityOmitKeys = abstractEntity.AbstractEntityOmitKeys;
|
|
15
17
|
export import Provider = provider.BaseProvider;
|
|
16
|
-
export import Class =
|
|
18
|
+
export import Class = baseClass.BaseClass;
|
|
17
19
|
export import Repository = repository.BaseRepository;
|
|
18
20
|
export import SubscriberForEntity = baseSubscriberEntity.BaseSubscriberForEntity;
|
|
21
|
+
export import Migration = baseMigration.BaseMigration;
|
|
19
22
|
const Context: {
|
|
20
23
|
types: {
|
|
21
24
|
readonly controllers: Record<string, new (...args: any[]) => any>;
|
|
22
25
|
readonly repositories: Record<string, new (...args: any[]) => any>;
|
|
23
26
|
readonly providers: Record<string, new (...args: any[]) => any>;
|
|
24
27
|
readonly subscribers: Record<string, new (...args: any[]) => any>;
|
|
28
|
+
readonly migrations: Record<string, new (...args: any[]) => any>;
|
|
25
29
|
};
|
|
26
30
|
readonly contexts: Record<string, object>;
|
|
27
31
|
readonly contextName: string;
|
|
@@ -32,6 +36,8 @@ export declare namespace Base {
|
|
|
32
36
|
initialize: (overrideOptions?: {
|
|
33
37
|
overrideHost?: string;
|
|
34
38
|
overrideRemoteHost?: string;
|
|
39
|
+
onlyMigrationRun?: boolean;
|
|
40
|
+
onlyMigrationRevertToTimestamp?: number;
|
|
35
41
|
}) => Promise<import("../endpoint-context").EndpointContext>;
|
|
36
42
|
readonly realtime: {
|
|
37
43
|
readonly client: import("../realtime/realtime-client").RealtimeClient;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
// @ts-nocheck
|
|
2
|
+
import type { EndpointContext } from './endpoint-context';
|
|
3
|
+
import { Table } from 'taon-typeorm/browser';
|
|
4
|
+
export type MigrationStatus = 'completed' | 'pending';
|
|
5
|
+
export declare class ContextDbMigrations {
|
|
6
|
+
private ctx;
|
|
7
|
+
readonly DEFAULT_MIGRATION_TABLE_NAME = "TAON_MIGRATION_META";
|
|
8
|
+
readonly MIGRATION_STATUS_COMPLETED: MigrationStatus;
|
|
9
|
+
readonly MIGRATION_STATUS_PENDING: MigrationStatus;
|
|
10
|
+
readonly table: Table;
|
|
11
|
+
constructor(ctx: EndpointContext);
|
|
12
|
+
ensureMigrationTableExists(): Promise<any>;
|
|
13
|
+
revertMigrationToTimestamp(timestamp: number): Promise<any>;
|
|
14
|
+
clearMigrationTable(): Promise<any>;
|
|
15
|
+
markAllMigrationsAsApplied(): Promise<any>;
|
|
16
|
+
runAllNotCompletedMigrations(): Promise<any>;
|
|
17
|
+
}
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
// @ts-nocheck
|
|
2
2
|
import { EndpointContext } from './endpoint-context';
|
|
3
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>) => {
|
|
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>, MIGRATION extends Record<string, new (...args: any[]) => any>>(configFn: (env: any) => Models.ContextOptions<CTX, CTRL, ENTITY, REPO, PROVIDER, SUBSCRIBER, MIGRATION>) => {
|
|
5
5
|
types: {
|
|
6
6
|
readonly controllers: CTRL;
|
|
7
7
|
readonly repositories: REPO;
|
|
8
8
|
readonly providers: PROVIDER;
|
|
9
9
|
readonly subscribers: SUBSCRIBER;
|
|
10
|
+
readonly migrations: MIGRATION;
|
|
10
11
|
};
|
|
11
12
|
readonly contexts: CTX;
|
|
12
13
|
readonly contextName: string;
|
|
@@ -16,9 +17,9 @@ export declare const createContext: <CTX extends Record<string, object>, CTRL ex
|
|
|
16
17
|
*/
|
|
17
18
|
__ref(): Promise<EndpointContext>;
|
|
18
19
|
/**
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
20
|
+
* only for internal use
|
|
21
|
+
* @deprecated
|
|
22
|
+
*/
|
|
22
23
|
readonly __refSync: EndpointContext;
|
|
23
24
|
getClassInstance<T>(ctor: new (...args: any[]) => T): T;
|
|
24
25
|
getClass<T>(ctor: new (...args: any[]) => T): new (...args: any[]) => T;
|
|
@@ -29,6 +30,8 @@ export declare const createContext: <CTX extends Record<string, object>, CTRL ex
|
|
|
29
30
|
initialize: (overrideOptions?: {
|
|
30
31
|
overrideHost?: string;
|
|
31
32
|
overrideRemoteHost?: string;
|
|
33
|
+
onlyMigrationRun?: boolean;
|
|
34
|
+
onlyMigrationRevertToTimestamp?: number;
|
|
32
35
|
}) => Promise<EndpointContext>;
|
|
33
36
|
/**
|
|
34
37
|
* realtime communication with server
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
// @ts-nocheck
|
|
2
2
|
import { Models } from '../../models';
|
|
3
|
+
/**
|
|
4
|
+
* Controller decorator
|
|
5
|
+
*/
|
|
3
6
|
export declare function TaonController(options?: TaonControllerOptions): (constructor: Function) => void;
|
|
4
7
|
export declare class TaonControllerOptions extends Models.DecoratorAbstractOpt {
|
|
5
8
|
/**
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
// @ts-nocheck
|
|
2
2
|
import { Mapping } from 'ng2-rest/browser';
|
|
3
3
|
import { Models } from '../../models';
|
|
4
|
+
/**
|
|
5
|
+
* Entity decorator
|
|
6
|
+
*/
|
|
4
7
|
export declare function TaonEntity<T = any>(options?: TaonEntityOptions<T>): (constructor: Function) => void;
|
|
5
8
|
export declare class TaonEntityOptions<T = any> extends Models.DecoratorAbstractOpt {
|
|
6
9
|
/**
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
// @ts-nocheck
|
|
2
2
|
import { Models } from '../../models';
|
|
3
|
+
/**
|
|
4
|
+
* Provider decorator
|
|
5
|
+
*/
|
|
3
6
|
export declare function TaonProvider<T = any>(options?: TaonProviderOptions<T>): (constructor: Function) => void;
|
|
4
7
|
export declare class TaonProviderOptions<T = any> extends Models.DecoratorAbstractOpt {
|
|
5
8
|
}
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
// @ts-nocheck
|
|
2
2
|
import { Models } from '../../models';
|
|
3
|
+
/**
|
|
4
|
+
* Repository decorator
|
|
5
|
+
*/
|
|
3
6
|
export declare function TaonRepository(options: TaonRepositoryOptions): (constructor: Function) => void;
|
|
4
7
|
export declare class TaonRepositoryOptions<T = any> extends Models.DecoratorAbstractOpt {
|
|
5
8
|
}
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
// @ts-nocheck
|
|
2
2
|
import { Models } from '../../models';
|
|
3
|
+
/**
|
|
4
|
+
* Subscriber decorator
|
|
5
|
+
*/
|
|
3
6
|
export declare function TaonSubscriber(options: TaonSubscriberOptions): any;
|
|
4
7
|
export declare class TaonSubscriberOptions<T = any> extends Models.DecoratorAbstractOpt {
|
|
5
8
|
allowedEvents?: (keyof T)[];
|
|
@@ -2,7 +2,16 @@
|
|
|
2
2
|
import { CoreModels } from 'tnp-core/browser';
|
|
3
3
|
import { Models as ModelsNg2Rest } from 'ng2-rest/browser';
|
|
4
4
|
export interface TaonHttpDecoratorOptions {
|
|
5
|
+
/**
|
|
6
|
+
* ! BE CAREFULL
|
|
7
|
+
* This method is only for very special cases
|
|
8
|
+
* Path for the method is automatically generated
|
|
9
|
+
*/
|
|
5
10
|
path?: string;
|
|
11
|
+
/**
|
|
12
|
+
* ! BE CAREFULL
|
|
13
|
+
* If true, the path will be global
|
|
14
|
+
*/
|
|
6
15
|
pathIsGlobal?: boolean;
|
|
7
16
|
overrideContentType?: CoreModels.ContentType;
|
|
8
17
|
overridResponseType?: ModelsNg2Rest.ResponseTypeAxios;
|
|
@@ -5,6 +5,7 @@ import type { NgZone } from '@angular/core';
|
|
|
5
5
|
import { DataSource } from 'taon-typeorm/browser';
|
|
6
6
|
import type { Server } from 'http';
|
|
7
7
|
import type { BaseClass } from './base-classes/base-class';
|
|
8
|
+
import { ContextDbMigrations } from './context-db-migrations';
|
|
8
9
|
export declare class EndpointContext {
|
|
9
10
|
private originalConfig;
|
|
10
11
|
private configFn;
|
|
@@ -16,6 +17,7 @@ export declare class EndpointContext {
|
|
|
16
17
|
* (with init() function )
|
|
17
18
|
*/
|
|
18
19
|
inited: boolean;
|
|
20
|
+
readonly dbMigrations: ContextDbMigrations;
|
|
19
21
|
private readonly localInstaceObjSymbol;
|
|
20
22
|
/**
|
|
21
23
|
* all instances of classes from context
|
|
@@ -32,9 +34,11 @@ export declare class EndpointContext {
|
|
|
32
34
|
private allTypesfromContexts;
|
|
33
35
|
expressApp: Application;
|
|
34
36
|
serverTcpUdp: Server;
|
|
35
|
-
databaseConfig?: Models.
|
|
36
|
-
private autoGeneratedConfig?;
|
|
37
|
+
databaseConfig?: Models.DatabaseConfigTypeOrm;
|
|
37
38
|
mode: Models.FrameworkMode;
|
|
39
|
+
readonly onlyMigrationRun?: boolean;
|
|
40
|
+
readonly onlyMigrationRevertToTimestamp?: number;
|
|
41
|
+
get isRunOrRevertOnlyMigrationAppStart(): boolean;
|
|
38
42
|
session?: Models.ISession;
|
|
39
43
|
connection: DataSource;
|
|
40
44
|
private entitiesTriggers;
|
|
@@ -44,16 +48,19 @@ export declare class EndpointContext {
|
|
|
44
48
|
/**
|
|
45
49
|
* available after init()
|
|
46
50
|
*/
|
|
47
|
-
config: Models.ContextOptions<any, any, any, any, any, any>;
|
|
51
|
+
config: Models.ContextOptions<any, any, any, any, any, any, any>;
|
|
48
52
|
get logHttp(): boolean;
|
|
49
53
|
get logRealtime(): boolean;
|
|
50
54
|
get logFramework(): boolean;
|
|
51
55
|
get logDb(): boolean;
|
|
52
|
-
|
|
56
|
+
get logMigrations(): boolean;
|
|
57
|
+
constructor(originalConfig: Models.ContextOptions<any, any, any, any, any, any, any>, configFn: (env: any) => Models.ContextOptions<any, any, any, any, any, any, any>);
|
|
53
58
|
init(options?: {
|
|
54
59
|
initFromRecrusiveContextResovle?: boolean;
|
|
55
|
-
overrideHost?: string;
|
|
56
|
-
overrideRemoteHost?: string;
|
|
60
|
+
overrideHost?: string | null;
|
|
61
|
+
overrideRemoteHost?: string | null;
|
|
62
|
+
onlyMigrationRun?: boolean;
|
|
63
|
+
onlyMigrationRevertToTimestamp?: number;
|
|
57
64
|
}): Promise<void>;
|
|
58
65
|
private getAutoGeneratedConfig;
|
|
59
66
|
get ngZone(): any;
|
|
@@ -106,7 +113,7 @@ export declare class EndpointContext {
|
|
|
106
113
|
initSubscribers(): Promise<any>;
|
|
107
114
|
initEntities(): Promise<void>;
|
|
108
115
|
initDatabaseConnection(): Promise<any>;
|
|
109
|
-
|
|
116
|
+
initControllers(): void;
|
|
110
117
|
writeActiveRoutes(): void;
|
|
111
118
|
get middlewares(): Models.MiddlewareType[];
|
|
112
119
|
private initMiddlewares;
|
package/browser/lib/index.d.ts
CHANGED
|
@@ -7,6 +7,7 @@ import * as entityDecorator from './decorators/classes/entity-decorator';
|
|
|
7
7
|
import * as providerDecorator from './decorators/classes/provider-decorator';
|
|
8
8
|
import * as repositoryDecorator from './decorators/classes/repository-decorator';
|
|
9
9
|
import * as subscriberDecorator from './decorators/classes/subscriber-decorator';
|
|
10
|
+
import * as migrationDecorator from './decorators/classes/migration-decorator';
|
|
10
11
|
import * as orm from './orm';
|
|
11
12
|
import * as models from './models';
|
|
12
13
|
import * as endpointContext from './endpoint-context';
|
|
@@ -18,6 +19,7 @@ export { BaseController } from './base-classes/base-controller';
|
|
|
18
19
|
export { BaseProvider } from './base-classes/base-provider';
|
|
19
20
|
export { BaseEntity } from './base-classes/base-entity';
|
|
20
21
|
export { BaseContext } from './base-classes/base-context';
|
|
22
|
+
export { BaseMigration } from './base-classes/base-migration';
|
|
21
23
|
export { createContext } from './create-context';
|
|
22
24
|
export { inject } from './inject';
|
|
23
25
|
export { Models } from './models';
|
|
@@ -28,6 +30,7 @@ export declare namespace Taon {
|
|
|
28
30
|
export import Http = http.Http;
|
|
29
31
|
export import Base = base.Base;
|
|
30
32
|
export import Orm = orm.Orm;
|
|
33
|
+
export import StartParams = models.Models.StartParams;
|
|
31
34
|
const getResponseValue: <T>(response: Response<T>, options?: {
|
|
32
35
|
req: import("express").Request;
|
|
33
36
|
res: import("express").Response;
|
|
@@ -37,16 +40,18 @@ export declare namespace Taon {
|
|
|
37
40
|
export import Provider = providerDecorator.TaonProvider;
|
|
38
41
|
export import Repository = repositoryDecorator.TaonRepository;
|
|
39
42
|
export import Subscriber = subscriberDecorator.TaonSubscriber;
|
|
43
|
+
export import Migration = migrationDecorator.TaonMigration;
|
|
40
44
|
const isBrowser: boolean;
|
|
41
45
|
const isNode: boolean;
|
|
42
46
|
const isWebSQL: boolean;
|
|
43
47
|
const isElectron: boolean;
|
|
44
|
-
const createContext: <CTX extends Record<string, object>, CTRL extends Record<string, new (...args: any[]) => any>, ENTITY extends Record<string, new (...args: any[]) => any>, REPO extends Record<string, new (...args: any[]) => any>, PROVIDER extends Record<string, new (...args: any[]) => any>, SUBSCRIBER extends Record<string, new (...args: any[]) => any>>(configFn: (env: any) => models.Models.ContextOptions<CTX, CTRL, ENTITY, REPO, PROVIDER, SUBSCRIBER>) => {
|
|
48
|
+
const createContext: <CTX extends Record<string, object>, CTRL extends Record<string, new (...args: any[]) => any>, ENTITY extends Record<string, new (...args: any[]) => any>, REPO extends Record<string, new (...args: any[]) => any>, PROVIDER extends Record<string, new (...args: any[]) => any>, SUBSCRIBER extends Record<string, new (...args: any[]) => any>, MIGRATION extends Record<string, new (...args: any[]) => any>>(configFn: (env: any) => models.Models.ContextOptions<CTX, CTRL, ENTITY, REPO, PROVIDER, SUBSCRIBER, MIGRATION>) => {
|
|
45
49
|
types: {
|
|
46
50
|
readonly controllers: CTRL;
|
|
47
51
|
readonly repositories: REPO;
|
|
48
52
|
readonly providers: PROVIDER;
|
|
49
53
|
readonly subscribers: SUBSCRIBER;
|
|
54
|
+
readonly migrations: MIGRATION;
|
|
50
55
|
};
|
|
51
56
|
readonly contexts: CTX;
|
|
52
57
|
readonly contextName: string;
|
|
@@ -57,6 +62,8 @@ export declare namespace Taon {
|
|
|
57
62
|
initialize: (overrideOptions?: {
|
|
58
63
|
overrideHost?: string;
|
|
59
64
|
overrideRemoteHost?: string;
|
|
65
|
+
onlyMigrationRun?: boolean;
|
|
66
|
+
onlyMigrationRevertToTimestamp?: number;
|
|
60
67
|
}) => Promise<endpointContext.EndpointContext>;
|
|
61
68
|
readonly realtime: {
|
|
62
69
|
readonly client: import("./realtime/realtime-client").RealtimeClient;
|
|
@@ -80,6 +87,7 @@ export declare namespace Taon {
|
|
|
80
87
|
readonly repositories: Record<string, new (...args: any[]) => any>;
|
|
81
88
|
readonly providers: Record<string, new (...args: any[]) => any>;
|
|
82
89
|
readonly subscribers: Record<string, new (...args: any[]) => any>;
|
|
90
|
+
readonly migrations: Record<string, new (...args: any[]) => any>;
|
|
83
91
|
};
|
|
84
92
|
readonly contexts: {
|
|
85
93
|
BaseContext: {
|
|
@@ -88,6 +96,7 @@ export declare namespace Taon {
|
|
|
88
96
|
readonly repositories: Record<string, new (...args: any[]) => any>;
|
|
89
97
|
readonly providers: Record<string, new (...args: any[]) => any>;
|
|
90
98
|
readonly subscribers: Record<string, new (...args: any[]) => any>;
|
|
99
|
+
readonly migrations: Record<string, new (...args: any[]) => any>;
|
|
91
100
|
};
|
|
92
101
|
readonly contexts: Record<string, object>;
|
|
93
102
|
readonly contextName: string;
|
|
@@ -98,6 +107,8 @@ export declare namespace Taon {
|
|
|
98
107
|
initialize: (overrideOptions?: {
|
|
99
108
|
overrideHost?: string;
|
|
100
109
|
overrideRemoteHost?: string;
|
|
110
|
+
onlyMigrationRun?: boolean;
|
|
111
|
+
onlyMigrationRevertToTimestamp?: number;
|
|
101
112
|
}) => Promise<endpointContext.EndpointContext>;
|
|
102
113
|
readonly realtime: {
|
|
103
114
|
readonly client: import("./realtime/realtime-client").RealtimeClient;
|
|
@@ -113,6 +124,8 @@ export declare namespace Taon {
|
|
|
113
124
|
initialize: (overrideOptions?: {
|
|
114
125
|
overrideHost?: string;
|
|
115
126
|
overrideRemoteHost?: string;
|
|
127
|
+
onlyMigrationRun?: boolean;
|
|
128
|
+
onlyMigrationRevertToTimestamp?: number;
|
|
116
129
|
}) => Promise<endpointContext.EndpointContext>;
|
|
117
130
|
readonly realtime: {
|
|
118
131
|
readonly client: import("./realtime/realtime-client").RealtimeClient;
|
package/browser/lib/models.d.ts
CHANGED
|
@@ -9,11 +9,24 @@ export declare namespace Models {
|
|
|
9
9
|
CONTROLLER = "CONTROLLER",
|
|
10
10
|
REPOSITORY = "REPOSITORY",
|
|
11
11
|
PROVIDER = "PROVIDER",
|
|
12
|
-
SUBSCRIBER = "SUBSCRIBER"
|
|
12
|
+
SUBSCRIBER = "SUBSCRIBER",
|
|
13
|
+
MIGRATION = "MIGRATION"
|
|
13
14
|
}
|
|
14
|
-
const ClassTypeKey: { [key in ClassType]: keyof ContextOptions<any, any, any, any, any, any>; };
|
|
15
|
+
const ClassTypeKey: { [key in ClassType]: keyof ContextOptions<any, any, any, any, any, any, any>; };
|
|
15
16
|
type MiddlewareType = [Function, any[]];
|
|
16
|
-
|
|
17
|
+
/**
|
|
18
|
+
* DROP_DB+MIGRATIONS (default for development)
|
|
19
|
+
* Drop all tables + recreate them + run migrations
|
|
20
|
+
* synchronize: true , dropSchema: true
|
|
21
|
+
* use migrations: true
|
|
22
|
+
*
|
|
23
|
+
* MIGRATIONS (default for production)
|
|
24
|
+
* Do not drop tables, only run migrations
|
|
25
|
+
* synchronize: false, dropSchema: false
|
|
26
|
+
* use migrations: true
|
|
27
|
+
*/
|
|
28
|
+
type DBRecreateMode = 'DROP_DB+MIGRATIONS' | 'PRESERVE_DATA+MIGRATIONS';
|
|
29
|
+
class DatabaseConfigTypeOrm {
|
|
17
30
|
/**
|
|
18
31
|
* database name
|
|
19
32
|
*/
|
|
@@ -25,9 +38,13 @@ export declare namespace Models {
|
|
|
25
38
|
synchronize: boolean;
|
|
26
39
|
dropSchema: boolean;
|
|
27
40
|
type?: CoreModels.DatabaseType;
|
|
28
|
-
|
|
41
|
+
/**
|
|
42
|
+
* Persists db on disk/local-storage if serverless db
|
|
43
|
+
*/
|
|
44
|
+
autoSave?: boolean;
|
|
29
45
|
/**
|
|
30
46
|
* for websql db mode
|
|
47
|
+
* true by default
|
|
31
48
|
*/
|
|
32
49
|
useLocalForage?: boolean;
|
|
33
50
|
logging: boolean;
|
|
@@ -36,6 +53,17 @@ export declare namespace Models {
|
|
|
36
53
|
databaseUsername?: string;
|
|
37
54
|
databasePassword?: string;
|
|
38
55
|
}
|
|
56
|
+
class DatabaseConfig extends DatabaseConfigTypeOrm {
|
|
57
|
+
/**
|
|
58
|
+
* Default value 'DROP_ALL'.
|
|
59
|
+
*
|
|
60
|
+
* Tell framework what is happening with db
|
|
61
|
+
* when context is starting.
|
|
62
|
+
*/
|
|
63
|
+
recreateMode?: DBRecreateMode;
|
|
64
|
+
static from(databasePartialConfig: Partial<Omit<DatabaseConfig, 'synchronize' | 'dropSchema' | 'databaseConfigTypeORM'>>): DatabaseConfig;
|
|
65
|
+
get databaseConfigTypeORM(): DatabaseConfigTypeOrm;
|
|
66
|
+
}
|
|
39
67
|
type ISession = {
|
|
40
68
|
secret?: string;
|
|
41
69
|
saveUninitialized?: boolean;
|
|
@@ -46,13 +74,14 @@ export declare namespace Models {
|
|
|
46
74
|
secure?: boolean;
|
|
47
75
|
resave?: boolean;
|
|
48
76
|
};
|
|
49
|
-
type
|
|
77
|
+
type ConnectionOptionsLogs = {
|
|
50
78
|
http?: boolean;
|
|
51
79
|
realtime?: boolean;
|
|
52
80
|
framework?: boolean;
|
|
53
81
|
db?: boolean;
|
|
82
|
+
migrations?: boolean;
|
|
54
83
|
};
|
|
55
|
-
interface ContextOptions<CONTEXTS, CONTROLLERS, ENTITIES, REPOSITORIES, PROVIDERS, SUBSCRIBERS> {
|
|
84
|
+
interface ContextOptions<CONTEXTS, CONTROLLERS, ENTITIES, REPOSITORIES, PROVIDERS, SUBSCRIBERS, MIGRATIONS> {
|
|
56
85
|
contextName: string;
|
|
57
86
|
/**
|
|
58
87
|
* host/port for initing backend server
|
|
@@ -77,11 +106,12 @@ export declare namespace Models {
|
|
|
77
106
|
repositories?: REPOSITORIES;
|
|
78
107
|
providers?: PROVIDERS;
|
|
79
108
|
subscribers?: SUBSCRIBERS;
|
|
109
|
+
migrations?: MIGRATIONS;
|
|
80
110
|
session?: ISession;
|
|
81
111
|
productionMode?: boolean;
|
|
82
112
|
abstract?: boolean;
|
|
83
|
-
logs?: boolean |
|
|
84
|
-
database?: boolean | DatabaseConfig
|
|
113
|
+
logs?: boolean | ConnectionOptionsLogs;
|
|
114
|
+
database?: boolean | Partial<DatabaseConfig>;
|
|
85
115
|
disabledRealtime?: boolean;
|
|
86
116
|
https?: {
|
|
87
117
|
key: string;
|
|
@@ -92,17 +122,6 @@ export declare namespace Models {
|
|
|
92
122
|
locationOnDisk: string;
|
|
93
123
|
}[];
|
|
94
124
|
middlewares?: MiddlewareType[];
|
|
95
|
-
/**
|
|
96
|
-
* @deprecated
|
|
97
|
-
* only for debugging purpose
|
|
98
|
-
*/
|
|
99
|
-
override?: {
|
|
100
|
-
entities?: Function[];
|
|
101
|
-
controllers?: Function[];
|
|
102
|
-
repositories?: Function[];
|
|
103
|
-
providers?: Function[];
|
|
104
|
-
subscribers?: Function[];
|
|
105
|
-
};
|
|
106
125
|
}
|
|
107
126
|
class DecoratorAbstractOpt {
|
|
108
127
|
className: string;
|
|
@@ -164,12 +183,10 @@ export declare namespace Models {
|
|
|
164
183
|
interface ClientAction<T> {
|
|
165
184
|
received?: Rest.PromiseObservableMix<Rest.HttpResponse<T>>;
|
|
166
185
|
}
|
|
167
|
-
interface __Response<T> {
|
|
168
|
-
}
|
|
169
186
|
interface AsyncResponse<T> {
|
|
170
187
|
(req?: ExpressRequest, res?: ExpressResponse): Promise<SyncResponse<T> | SyncResponseFunc<T>>;
|
|
171
188
|
}
|
|
172
|
-
type Response<T = string> =
|
|
189
|
+
type Response<T = string> = AsyncResponse<T> & ClientAction<T>;
|
|
173
190
|
class Errors {
|
|
174
191
|
message: string;
|
|
175
192
|
private code;
|
|
@@ -180,4 +197,10 @@ export declare namespace Models {
|
|
|
180
197
|
static custom(message: string, code?: ModelsNg2Rest.HttpCode): Errors;
|
|
181
198
|
}
|
|
182
199
|
}
|
|
200
|
+
interface StartParams {
|
|
201
|
+
port: number;
|
|
202
|
+
args: string[];
|
|
203
|
+
onlyMigrationRun?: boolean;
|
|
204
|
+
onlyMigrationRevertToTimestamp?: number;
|
|
205
|
+
}
|
|
183
206
|
}
|
package/browser/lib/symbols.d.ts
CHANGED
package/browser/lib/ui/taon-admin-mode-configuration/taon-admin-mode-configuration.component.d.ts
CHANGED
|
@@ -1,20 +1,17 @@
|
|
|
1
1
|
// @ts-nocheck
|
|
2
2
|
import { ChangeDetectorRef, EventEmitter, OnInit } from '@angular/core';
|
|
3
|
-
import {
|
|
3
|
+
import { TaonAdminService } from './taon-admin.service';
|
|
4
4
|
import { CdkDragEnd, Point } from '@angular/cdk/drag-drop';
|
|
5
5
|
import { BreakpointsService } from 'static-columns/browser';
|
|
6
6
|
import { Subject } from 'rxjs';
|
|
7
|
-
import { TaonAdminModeTab } from './models/taon-admin-mode-tabs';
|
|
8
|
-
import { TaonAdminService } from './taon-admin-control.service';
|
|
9
7
|
import * as i0 from "@angular/core";
|
|
10
8
|
export declare class TaonAdminModeConfigurationComponent implements OnInit {
|
|
11
9
|
private breakpointsService;
|
|
10
|
+
admin: TaonAdminService;
|
|
12
11
|
$destroy: Subject<unknown>;
|
|
13
12
|
readonly cdr: ChangeDetectorRef;
|
|
14
13
|
readonly taonAdminService: TaonAdminService;
|
|
15
14
|
readonly isDesktop: boolean;
|
|
16
|
-
tabs: TaonAdminModeTab[];
|
|
17
|
-
admin: TaonAdmin;
|
|
18
15
|
isWebSQLMode: boolean;
|
|
19
16
|
hideTaonToolsInProduction: boolean;
|
|
20
17
|
isIframe: boolean;
|
|
@@ -35,17 +32,17 @@ export declare class TaonAdminModeConfigurationComponent implements OnInit {
|
|
|
35
32
|
taonAdminModeConfigurationData: any;
|
|
36
33
|
get opened(): boolean;
|
|
37
34
|
set opened(v: boolean);
|
|
38
|
-
constructor(breakpointsService: BreakpointsService);
|
|
39
|
-
reloadTabs(): void;
|
|
35
|
+
constructor(breakpointsService: BreakpointsService, admin: TaonAdminService);
|
|
40
36
|
ngOnInit(): Promise<void>;
|
|
41
37
|
ngAfterViewInit(): void;
|
|
42
38
|
ngOnDestroy(): void;
|
|
43
39
|
onResize(event: Event): void;
|
|
40
|
+
reloadTabs(): Promise<void>;
|
|
44
41
|
toogle(): Promise<void>;
|
|
45
42
|
toogleFullScreen(): Promise<void>;
|
|
46
43
|
resetDrag(): void;
|
|
47
44
|
moved(c: CdkDragEnd): void;
|
|
48
45
|
scrollTabs(event: any): void;
|
|
49
46
|
static ɵfac: i0.ɵɵFactoryDeclaration<TaonAdminModeConfigurationComponent, never>;
|
|
50
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<TaonAdminModeConfigurationComponent, "
|
|
47
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TaonAdminModeConfigurationComponent, "taon-admin-mode-configuration", never, { "taonAdminModeConfigurationData": { "alias": "taonAdminModeConfigurationData"; "required": false; }; }, { "taonAdminModeConfigurationDataChanged": "taonAdminModeConfigurationDataChanged"; }, never, ["*"], true, never>;
|
|
51
48
|
}
|
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
// @ts-nocheck
|
|
2
|
-
import type { TaonAdminModeConfigurationComponent } from './taon-admin-mode-configuration.component';
|
|
3
2
|
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class
|
|
3
|
+
export declare class TaonAdminService {
|
|
4
|
+
private static _instance;
|
|
5
|
+
static get Instance(): TaonAdminService;
|
|
5
6
|
scrollableEnabled: boolean;
|
|
6
|
-
private constructor();
|
|
7
|
-
static get Instance(): TaonAdmin;
|
|
8
|
-
cmp: TaonAdminModeConfigurationComponent;
|
|
9
7
|
private onEditMode;
|
|
10
8
|
onEditMode$: import("rxjs").Observable<unknown>;
|
|
11
9
|
adminPanelIsOpen: boolean;
|
|
@@ -13,13 +11,15 @@ export declare class TaonAdmin {
|
|
|
13
11
|
draggablePopupModeFullScreen: boolean;
|
|
14
12
|
/**
|
|
15
13
|
* Property used in taon
|
|
16
|
-
*/
|
|
14
|
+
*/
|
|
15
|
+
keepWebsqlDbDataAfterReload: boolean;
|
|
16
|
+
constructor();
|
|
17
17
|
setEditMode(value: boolean): void;
|
|
18
18
|
setKeepWebsqlDbDataAfterReload(value: boolean): void;
|
|
19
19
|
enabledTabs: any[];
|
|
20
20
|
hide(): void;
|
|
21
21
|
show(): void;
|
|
22
22
|
logout(): void;
|
|
23
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<
|
|
24
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<
|
|
23
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TaonAdminService, never>;
|
|
24
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<TaonAdminService>;
|
|
25
25
|
}
|