@solidxai/core 0.1.10-beta.22 → 0.1.10-beta.24
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/CLAUDE.md +9 -1
- package/dist/commands/info.command.d.ts.map +1 -1
- package/dist/commands/info.command.js +0 -2
- package/dist/commands/info.command.js.map +1 -1
- package/dist/controllers/dashboard-user-layout.controller.d.ts +43 -0
- package/dist/controllers/dashboard-user-layout.controller.d.ts.map +1 -0
- package/dist/controllers/{dashboard-variable.controller.js → dashboard-user-layout.controller.js} +30 -30
- package/dist/controllers/dashboard-user-layout.controller.js.map +1 -0
- package/dist/controllers/dashboard.controller.d.ts +12 -42
- package/dist/controllers/dashboard.controller.d.ts.map +1 -1
- package/dist/controllers/dashboard.controller.js +71 -141
- package/dist/controllers/dashboard.controller.js.map +1 -1
- package/dist/decorators/dashboard-widget-data-provider.decorator.d.ts +3 -0
- package/dist/decorators/dashboard-widget-data-provider.decorator.d.ts.map +1 -0
- package/dist/decorators/dashboard-widget-data-provider.decorator.js +8 -0
- package/dist/decorators/dashboard-widget-data-provider.decorator.js.map +1 -0
- package/dist/dtos/create-dashboard-user-layout.dto.d.ts +10 -0
- package/dist/dtos/create-dashboard-user-layout.dto.d.ts.map +1 -0
- package/dist/dtos/create-dashboard-user-layout.dto.js +66 -0
- package/dist/dtos/create-dashboard-user-layout.dto.js.map +1 -0
- package/dist/dtos/create-model-metadata.dto.d.ts +2 -2
- package/dist/dtos/create-model-metadata.dto.d.ts.map +1 -1
- package/dist/dtos/create-model-metadata.dto.js +6 -11
- package/dist/dtos/create-model-metadata.dto.js.map +1 -1
- package/dist/dtos/dashboard-variable-options-query.dto.d.ts +7 -0
- package/dist/dtos/dashboard-variable-options-query.dto.d.ts.map +1 -0
- package/dist/dtos/dashboard-variable-options-query.dto.js +40 -0
- package/dist/dtos/dashboard-variable-options-query.dto.js.map +1 -0
- package/dist/dtos/dashboard-widget-data-request.dto.d.ts +12 -0
- package/dist/dtos/dashboard-widget-data-request.dto.d.ts.map +1 -0
- package/dist/dtos/dashboard-widget-data-request.dto.js +65 -0
- package/dist/dtos/dashboard-widget-data-request.dto.js.map +1 -0
- package/dist/dtos/update-dashboard-user-layout.dto.d.ts +11 -0
- package/dist/dtos/update-dashboard-user-layout.dto.d.ts.map +1 -0
- package/dist/dtos/{update-dashboard-layout.dto.js → update-dashboard-user-layout.dto.js} +34 -16
- package/dist/dtos/update-dashboard-user-layout.dto.js.map +1 -0
- package/dist/entities/dashboard-user-layout.entity.d.ts +11 -0
- package/dist/entities/dashboard-user-layout.entity.d.ts.map +1 -0
- package/dist/entities/dashboard-user-layout.entity.js +52 -0
- package/dist/entities/dashboard-user-layout.entity.js.map +1 -0
- package/dist/entities/legacy-common-with-id.entity.d.ts +2 -2
- package/dist/entities/legacy-common-with-id.entity.d.ts.map +1 -1
- package/dist/entities/legacy-common-with-id.entity.js +6 -6
- package/dist/entities/legacy-common-with-id.entity.js.map +1 -1
- package/dist/entities/legacy-common.entity.d.ts +1 -1
- package/dist/entities/legacy-common.entity.d.ts.map +1 -1
- package/dist/entities/legacy-common.entity.js +14 -14
- package/dist/entities/legacy-common.entity.js.map +1 -1
- package/dist/entities/model-metadata.entity.d.ts +2 -2
- package/dist/entities/model-metadata.entity.d.ts.map +1 -1
- package/dist/entities/model-metadata.entity.js +5 -8
- package/dist/entities/model-metadata.entity.js.map +1 -1
- package/dist/enums/legacy-table-type.enum.d.ts +6 -0
- package/dist/enums/legacy-table-type.enum.d.ts.map +1 -0
- package/dist/enums/legacy-table-type.enum.js +10 -0
- package/dist/enums/legacy-table-type.enum.js.map +1 -0
- package/dist/helpers/model-metadata-helper.service.d.ts +2 -1
- package/dist/helpers/model-metadata-helper.service.d.ts.map +1 -1
- package/dist/helpers/model-metadata-helper.service.js +4 -3
- package/dist/helpers/model-metadata-helper.service.js.map +1 -1
- package/dist/helpers/module-metadata-helper.service.d.ts.map +1 -1
- package/dist/helpers/module-metadata-helper.service.js +15 -4
- package/dist/helpers/module-metadata-helper.service.js.map +1 -1
- package/dist/helpers/solid-registry.d.ts +5 -9
- package/dist/helpers/solid-registry.d.ts.map +1 -1
- package/dist/helpers/solid-registry.js +13 -28
- package/dist/helpers/solid-registry.js.map +1 -1
- package/dist/index.d.ts +22 -5
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +22 -5
- package/dist/index.js.map +1 -1
- package/dist/interfaces.d.ts +24 -13
- package/dist/interfaces.d.ts.map +1 -1
- package/dist/interfaces.js.map +1 -1
- package/dist/jobs/database/trigger-mcp-client-subscriber-database.service.d.ts +1 -3
- package/dist/jobs/database/trigger-mcp-client-subscriber-database.service.d.ts.map +1 -1
- package/dist/jobs/database/trigger-mcp-client-subscriber-database.service.js +2 -25
- package/dist/jobs/database/trigger-mcp-client-subscriber-database.service.js.map +1 -1
- package/dist/{repository/dashboard-layout.repository.d.ts → repositories/dashboard-user-layout.repository.d.ts} +5 -5
- package/dist/repositories/dashboard-user-layout.repository.d.ts.map +1 -0
- package/dist/{repository/dashboard-question-sql-dataset-config.repository.js → repositories/dashboard-user-layout.repository.js} +15 -10
- package/dist/repositories/dashboard-user-layout.repository.js.map +1 -0
- package/dist/seeders/module-metadata-seeder.service.d.ts +1 -6
- package/dist/seeders/module-metadata-seeder.service.d.ts.map +1 -1
- package/dist/seeders/module-metadata-seeder.service.js +1 -60
- package/dist/seeders/module-metadata-seeder.service.js.map +1 -1
- package/dist/seeders/seed-data/solid-core-metadata.json +6209 -6690
- package/dist/seeders/system-fields-seeder.service.js +1 -1
- package/dist/seeders/system-fields-seeder.service.js.map +1 -1
- package/dist/services/dashboard-providers/mq-dashboard-avg-elapsed-kpi-provider.service.d.ts +13 -0
- package/dist/services/dashboard-providers/mq-dashboard-avg-elapsed-kpi-provider.service.d.ts.map +1 -0
- package/dist/services/dashboard-providers/mq-dashboard-avg-elapsed-kpi-provider.service.js +55 -0
- package/dist/services/dashboard-providers/mq-dashboard-avg-elapsed-kpi-provider.service.js.map +1 -0
- package/dist/services/dashboard-providers/mq-dashboard-failed-messages-kpi-provider.service.d.ts +13 -0
- package/dist/services/dashboard-providers/mq-dashboard-failed-messages-kpi-provider.service.d.ts.map +1 -0
- package/dist/services/dashboard-providers/mq-dashboard-failed-messages-kpi-provider.service.js +52 -0
- package/dist/services/dashboard-providers/mq-dashboard-failed-messages-kpi-provider.service.js.map +1 -0
- package/dist/services/dashboard-providers/mq-dashboard-inflight-messages-kpi-provider.service.d.ts +13 -0
- package/dist/services/dashboard-providers/mq-dashboard-inflight-messages-kpi-provider.service.d.ts.map +1 -0
- package/dist/services/dashboard-providers/mq-dashboard-inflight-messages-kpi-provider.service.js +52 -0
- package/dist/services/dashboard-providers/mq-dashboard-inflight-messages-kpi-provider.service.js.map +1 -0
- package/dist/services/dashboard-providers/mq-dashboard-latency-trend-provider.service.d.ts +10 -0
- package/dist/services/dashboard-providers/mq-dashboard-latency-trend-provider.service.d.ts.map +1 -0
- package/dist/services/dashboard-providers/mq-dashboard-latency-trend-provider.service.js +62 -0
- package/dist/services/dashboard-providers/mq-dashboard-latency-trend-provider.service.js.map +1 -0
- package/dist/services/dashboard-providers/mq-dashboard-messages-over-time-provider.service.d.ts +10 -0
- package/dist/services/dashboard-providers/mq-dashboard-messages-over-time-provider.service.d.ts.map +1 -0
- package/dist/services/dashboard-providers/mq-dashboard-messages-over-time-provider.service.js +82 -0
- package/dist/services/dashboard-providers/mq-dashboard-messages-over-time-provider.service.js.map +1 -0
- package/dist/services/dashboard-providers/mq-dashboard-provider-utils.d.ts +17 -0
- package/dist/services/dashboard-providers/mq-dashboard-provider-utils.d.ts.map +1 -0
- package/dist/services/dashboard-providers/mq-dashboard-provider-utils.js +130 -0
- package/dist/services/dashboard-providers/mq-dashboard-provider-utils.js.map +1 -0
- package/dist/services/dashboard-providers/mq-dashboard-queue-sla-heatmap-provider.service.d.ts +37 -0
- package/dist/services/dashboard-providers/mq-dashboard-queue-sla-heatmap-provider.service.d.ts.map +1 -0
- package/dist/services/dashboard-providers/mq-dashboard-queue-sla-heatmap-provider.service.js +112 -0
- package/dist/services/dashboard-providers/mq-dashboard-queue-sla-heatmap-provider.service.js.map +1 -0
- package/dist/services/dashboard-providers/mq-dashboard-queue-wise-avg-elapsed-provider.service.d.ts +10 -0
- package/dist/services/dashboard-providers/mq-dashboard-queue-wise-avg-elapsed-provider.service.d.ts.map +1 -0
- package/dist/services/dashboard-providers/mq-dashboard-queue-wise-avg-elapsed-provider.service.js +57 -0
- package/dist/services/dashboard-providers/mq-dashboard-queue-wise-avg-elapsed-provider.service.js.map +1 -0
- package/dist/services/dashboard-providers/mq-dashboard-queue-wise-failures-provider.service.d.ts +10 -0
- package/dist/services/dashboard-providers/mq-dashboard-queue-wise-failures-provider.service.d.ts.map +1 -0
- package/dist/services/dashboard-providers/mq-dashboard-queue-wise-failures-provider.service.js +57 -0
- package/dist/services/dashboard-providers/mq-dashboard-queue-wise-failures-provider.service.js.map +1 -0
- package/dist/services/dashboard-providers/mq-dashboard-recent-failures-provider.service.d.ts +10 -0
- package/dist/services/dashboard-providers/mq-dashboard-recent-failures-provider.service.d.ts.map +1 -0
- package/dist/services/dashboard-providers/mq-dashboard-recent-failures-provider.service.js +100 -0
- package/dist/services/dashboard-providers/mq-dashboard-recent-failures-provider.service.js.map +1 -0
- package/dist/services/dashboard-providers/mq-dashboard-stage-distribution-provider.service.d.ts +10 -0
- package/dist/services/dashboard-providers/mq-dashboard-stage-distribution-provider.service.d.ts.map +1 -0
- package/dist/services/dashboard-providers/mq-dashboard-stage-distribution-provider.service.js +55 -0
- package/dist/services/dashboard-providers/mq-dashboard-stage-distribution-provider.service.js.map +1 -0
- package/dist/services/dashboard-providers/mq-dashboard-succeeded-messages-kpi-provider.service.d.ts +13 -0
- package/dist/services/dashboard-providers/mq-dashboard-succeeded-messages-kpi-provider.service.d.ts.map +1 -0
- package/dist/services/dashboard-providers/mq-dashboard-succeeded-messages-kpi-provider.service.js +52 -0
- package/dist/services/dashboard-providers/mq-dashboard-succeeded-messages-kpi-provider.service.js.map +1 -0
- package/dist/services/dashboard-providers/mq-dashboard-success-rate-kpi-provider.service.d.ts +15 -0
- package/dist/services/dashboard-providers/mq-dashboard-success-rate-kpi-provider.service.d.ts.map +1 -0
- package/dist/services/dashboard-providers/mq-dashboard-success-rate-kpi-provider.service.js +60 -0
- package/dist/services/dashboard-providers/mq-dashboard-success-rate-kpi-provider.service.js.map +1 -0
- package/dist/services/dashboard-providers/mq-dashboard-total-messages-kpi-provider.service.d.ts +13 -0
- package/dist/services/dashboard-providers/mq-dashboard-total-messages-kpi-provider.service.d.ts.map +1 -0
- package/dist/services/dashboard-providers/mq-dashboard-total-messages-kpi-provider.service.js +51 -0
- package/dist/services/dashboard-providers/mq-dashboard-total-messages-kpi-provider.service.js.map +1 -0
- package/dist/services/dashboard-runtime.service.d.ts +31 -0
- package/dist/services/dashboard-runtime.service.d.ts.map +1 -0
- package/dist/services/dashboard-runtime.service.js +408 -0
- package/dist/services/dashboard-runtime.service.js.map +1 -0
- package/dist/services/dashboard-user-layout.service.d.ts +12 -0
- package/dist/services/dashboard-user-layout.service.d.ts.map +1 -0
- package/dist/services/{dashboard-variable.service.js → dashboard-user-layout.service.js} +11 -12
- package/dist/services/dashboard-user-layout.service.js.map +1 -0
- package/dist/services/mediaStorageProviders/file-s3-storage-provider.js +9 -9
- package/dist/services/mediaStorageProviders/file-s3-storage-provider.js.map +1 -1
- package/dist/services/model-metadata.service.d.ts +2 -2
- package/dist/services/model-metadata.service.d.ts.map +1 -1
- package/dist/services/model-metadata.service.js +3 -4
- package/dist/services/model-metadata.service.js.map +1 -1
- package/dist/services/selection-providers/mq-dashboard-message-broker-variable-options-provider.service.d.ts +11 -0
- package/dist/services/selection-providers/mq-dashboard-message-broker-variable-options-provider.service.d.ts.map +1 -0
- package/dist/services/selection-providers/mq-dashboard-message-broker-variable-options-provider.service.js +59 -0
- package/dist/services/selection-providers/mq-dashboard-message-broker-variable-options-provider.service.js.map +1 -0
- package/dist/services/selection-providers/mq-dashboard-queue-name-variable-options-provider.service.d.ts +11 -0
- package/dist/services/selection-providers/mq-dashboard-queue-name-variable-options-provider.service.d.ts.map +1 -0
- package/dist/services/selection-providers/mq-dashboard-queue-name-variable-options-provider.service.js +60 -0
- package/dist/services/selection-providers/mq-dashboard-queue-name-variable-options-provider.service.js.map +1 -0
- package/dist/services/solid-introspect.service.d.ts +1 -2
- package/dist/services/solid-introspect.service.d.ts.map +1 -1
- package/dist/services/solid-introspect.service.js +12 -24
- package/dist/services/solid-introspect.service.js.map +1 -1
- package/dist/solid-core.module.d.ts.map +1 -1
- package/dist/solid-core.module.js +43 -66
- package/dist/solid-core.module.js.map +1 -1
- package/dist/subscribers/model-metadata.subscriber.d.ts.map +1 -1
- package/dist/subscribers/model-metadata.subscriber.js +1 -3
- package/dist/subscribers/model-metadata.subscriber.js.map +1 -1
- package/package.json +1 -1
- package/src/commands/info.command.ts +0 -2
- package/src/controllers/{dashboard-variable.controller.ts → dashboard-user-layout.controller.ts} +10 -10
- package/src/controllers/dashboard.controller.ts +70 -89
- package/src/decorators/dashboard-widget-data-provider.decorator.ts +6 -0
- package/src/dtos/create-dashboard-user-layout.dto.ts +41 -0
- package/src/dtos/create-model-metadata.dto.ts +5 -9
- package/src/dtos/dashboard-variable-options-query.dto.ts +20 -0
- package/src/dtos/dashboard-widget-data-request.dto.ts +34 -0
- package/src/dtos/update-dashboard-user-layout.dto.ts +45 -0
- package/src/entities/dashboard-user-layout.entity.ts +27 -0
- package/src/entities/legacy-common-with-id.entity.ts +2 -2
- package/src/entities/legacy-common.entity.ts +1 -1
- package/src/entities/model-metadata.entity.ts +3 -5
- package/src/enums/legacy-table-type.enum.ts +5 -0
- package/src/helpers/model-metadata-helper.service.ts +4 -3
- package/src/helpers/module-metadata-helper.service.ts +21 -6
- package/src/helpers/solid-registry.ts +15 -36
- package/src/index.ts +22 -5
- package/src/interfaces.ts +32 -19
- package/src/jobs/database/trigger-mcp-client-subscriber-database.service.ts +1 -34
- package/src/repositories/dashboard-user-layout.repository.ts +19 -0
- package/src/seeders/module-metadata-seeder.service.ts +0 -67
- package/src/seeders/seed-data/solid-core-metadata.json +6210 -6691
- package/src/seeders/system-fields-seeder.service.ts +1 -1
- package/src/services/dashboard-providers/README.md +603 -0
- package/src/services/dashboard-providers/mq-dashboard-avg-elapsed-kpi-provider.service.ts +49 -0
- package/src/services/dashboard-providers/mq-dashboard-failed-messages-kpi-provider.service.ts +45 -0
- package/src/services/dashboard-providers/mq-dashboard-inflight-messages-kpi-provider.service.ts +45 -0
- package/src/services/dashboard-providers/mq-dashboard-latency-trend-provider.service.ts +58 -0
- package/src/services/dashboard-providers/mq-dashboard-messages-over-time-provider.service.ts +79 -0
- package/src/services/dashboard-providers/mq-dashboard-provider-utils.ts +165 -0
- package/src/services/dashboard-providers/mq-dashboard-queue-sla-heatmap-provider.service.ts +155 -0
- package/src/services/dashboard-providers/mq-dashboard-queue-wise-avg-elapsed-provider.service.ts +51 -0
- package/src/services/dashboard-providers/mq-dashboard-queue-wise-failures-provider.service.ts +51 -0
- package/src/services/dashboard-providers/mq-dashboard-recent-failures-provider.service.ts +95 -0
- package/src/services/dashboard-providers/mq-dashboard-stage-distribution-provider.service.ts +49 -0
- package/src/services/dashboard-providers/mq-dashboard-succeeded-messages-kpi-provider.service.ts +45 -0
- package/src/services/dashboard-providers/mq-dashboard-success-rate-kpi-provider.service.ts +55 -0
- package/src/services/dashboard-providers/mq-dashboard-total-messages-kpi-provider.service.ts +44 -0
- package/src/services/dashboard-runtime.service.ts +488 -0
- package/src/services/dashboard-user-layout.service.ts +20 -0
- package/src/services/mediaStorageProviders/file-s3-storage-provider.ts +11 -11
- package/src/services/model-metadata.service.ts +6 -8
- package/src/services/selection-providers/mq-dashboard-message-broker-variable-options-provider.service.ts +52 -0
- package/src/services/selection-providers/mq-dashboard-queue-name-variable-options-provider.service.ts +51 -0
- package/src/services/solid-introspect.service.ts +19 -34
- package/src/solid-core.module.ts +43 -72
- package/src/subscribers/model-metadata.subscriber.ts +1 -3
- package/CURRENT_PROMPT +0 -6
- package/dist/controllers/dashboard-layout.controller.d.ts +0 -47
- package/dist/controllers/dashboard-layout.controller.d.ts.map +0 -1
- package/dist/controllers/dashboard-layout.controller.js +0 -204
- package/dist/controllers/dashboard-layout.controller.js.map +0 -1
- package/dist/controllers/dashboard-question-sql-dataset-config.controller.d.ts +0 -43
- package/dist/controllers/dashboard-question-sql-dataset-config.controller.d.ts.map +0 -1
- package/dist/controllers/dashboard-question-sql-dataset-config.controller.js +0 -179
- package/dist/controllers/dashboard-question-sql-dataset-config.controller.js.map +0 -1
- package/dist/controllers/dashboard-question.controller.d.ts +0 -45
- package/dist/controllers/dashboard-question.controller.d.ts.map +0 -1
- package/dist/controllers/dashboard-question.controller.js +0 -194
- package/dist/controllers/dashboard-question.controller.js.map +0 -1
- package/dist/controllers/dashboard-variable.controller.d.ts +0 -43
- package/dist/controllers/dashboard-variable.controller.d.ts.map +0 -1
- package/dist/controllers/dashboard-variable.controller.js.map +0 -1
- package/dist/decorators/dashboard-question-data-provider.decorator.d.ts +0 -3
- package/dist/decorators/dashboard-question-data-provider.decorator.d.ts.map +0 -1
- package/dist/decorators/dashboard-question-data-provider.decorator.js +0 -11
- package/dist/decorators/dashboard-question-data-provider.decorator.js.map +0 -1
- package/dist/decorators/dashboard-selection-provider.decorator.d.ts +0 -3
- package/dist/decorators/dashboard-selection-provider.decorator.d.ts.map +0 -1
- package/dist/decorators/dashboard-selection-provider.decorator.js +0 -11
- package/dist/decorators/dashboard-selection-provider.decorator.js.map +0 -1
- package/dist/dtos/create-dashboard-layout.dto.d.ts +0 -8
- package/dist/dtos/create-dashboard-layout.dto.d.ts.map +0 -1
- package/dist/dtos/create-dashboard-layout.dto.js +0 -53
- package/dist/dtos/create-dashboard-layout.dto.js.map +0 -1
- package/dist/dtos/create-dashboard-question-sql-dataset-config.dto.d.ts +0 -12
- package/dist/dtos/create-dashboard-question-sql-dataset-config.dto.d.ts.map +0 -1
- package/dist/dtos/create-dashboard-question-sql-dataset-config.dto.js +0 -77
- package/dist/dtos/create-dashboard-question-sql-dataset-config.dto.js.map +0 -1
- package/dist/dtos/create-dashboard-question.dto.d.ts +0 -17
- package/dist/dtos/create-dashboard-question.dto.d.ts.map +0 -1
- package/dist/dtos/create-dashboard-question.dto.js +0 -105
- package/dist/dtos/create-dashboard-question.dto.js.map +0 -1
- package/dist/dtos/create-dashboard-variable.dto.d.ts +0 -19
- package/dist/dtos/create-dashboard-variable.dto.d.ts.map +0 -1
- package/dist/dtos/create-dashboard-variable.dto.js +0 -103
- package/dist/dtos/create-dashboard-variable.dto.js.map +0 -1
- package/dist/dtos/create-dashboard.dto.d.ts +0 -17
- package/dist/dtos/create-dashboard.dto.d.ts.map +0 -1
- package/dist/dtos/create-dashboard.dto.js +0 -102
- package/dist/dtos/create-dashboard.dto.js.map +0 -1
- package/dist/dtos/dashboard-variable-selection-dynamic-query.dto.d.ts +0 -8
- package/dist/dtos/dashboard-variable-selection-dynamic-query.dto.d.ts.map +0 -1
- package/dist/dtos/dashboard-variable-selection-dynamic-query.dto.js +0 -52
- package/dist/dtos/dashboard-variable-selection-dynamic-query.dto.js.map +0 -1
- package/dist/dtos/update-dashboard-layout.dto.d.ts +0 -8
- package/dist/dtos/update-dashboard-layout.dto.d.ts.map +0 -1
- package/dist/dtos/update-dashboard-layout.dto.js.map +0 -1
- package/dist/dtos/update-dashboard-question-sql-dataset-config.dto.d.ts +0 -13
- package/dist/dtos/update-dashboard-question-sql-dataset-config.dto.d.ts.map +0 -1
- package/dist/dtos/update-dashboard-question-sql-dataset-config.dto.js +0 -86
- package/dist/dtos/update-dashboard-question-sql-dataset-config.dto.js.map +0 -1
- package/dist/dtos/update-dashboard-question.dto.d.ts +0 -18
- package/dist/dtos/update-dashboard-question.dto.d.ts.map +0 -1
- package/dist/dtos/update-dashboard-question.dto.js +0 -112
- package/dist/dtos/update-dashboard-question.dto.js.map +0 -1
- package/dist/dtos/update-dashboard-variable.dto.d.ts +0 -16
- package/dist/dtos/update-dashboard-variable.dto.d.ts.map +0 -1
- package/dist/dtos/update-dashboard-variable.dto.js +0 -101
- package/dist/dtos/update-dashboard-variable.dto.js.map +0 -1
- package/dist/dtos/update-dashboard.dto.d.ts +0 -18
- package/dist/dtos/update-dashboard.dto.d.ts.map +0 -1
- package/dist/dtos/update-dashboard.dto.js +0 -108
- package/dist/dtos/update-dashboard.dto.js.map +0 -1
- package/dist/entities/dashboard-layout.entity.d.ts +0 -9
- package/dist/entities/dashboard-layout.entity.d.ts.map +0 -1
- package/dist/entities/dashboard-layout.entity.js +0 -41
- package/dist/entities/dashboard-layout.entity.js.map +0 -1
- package/dist/entities/dashboard-question-sql-dataset-config.entity.d.ts +0 -14
- package/dist/entities/dashboard-question-sql-dataset-config.entity.d.ts.map +0 -1
- package/dist/entities/dashboard-question-sql-dataset-config.entity.js +0 -66
- package/dist/entities/dashboard-question-sql-dataset-config.entity.js.map +0 -1
- package/dist/entities/dashboard-question.entity.d.ts +0 -17
- package/dist/entities/dashboard-question.entity.d.ts.map +0 -1
- package/dist/entities/dashboard-question.entity.js +0 -77
- package/dist/entities/dashboard-question.entity.js.map +0 -1
- package/dist/entities/dashboard-variable.entity.d.ts +0 -16
- package/dist/entities/dashboard-variable.entity.d.ts.map +0 -1
- package/dist/entities/dashboard-variable.entity.js +0 -79
- package/dist/entities/dashboard-variable.entity.js.map +0 -1
- package/dist/entities/dashboard.entity.d.ts +0 -16
- package/dist/entities/dashboard.entity.d.ts.map +0 -1
- package/dist/entities/dashboard.entity.js +0 -64
- package/dist/entities/dashboard.entity.js.map +0 -1
- package/dist/mappers/dashboard-mapper.d.ts +0 -6
- package/dist/mappers/dashboard-mapper.d.ts.map +0 -1
- package/dist/mappers/dashboard-mapper.js +0 -62
- package/dist/mappers/dashboard-mapper.js.map +0 -1
- package/dist/repository/dashboard-layout.repository.d.ts.map +0 -1
- package/dist/repository/dashboard-layout.repository.js +0 -34
- package/dist/repository/dashboard-layout.repository.js.map +0 -1
- package/dist/repository/dashboard-question-sql-dataset-config.repository.d.ts +0 -12
- package/dist/repository/dashboard-question-sql-dataset-config.repository.d.ts.map +0 -1
- package/dist/repository/dashboard-question-sql-dataset-config.repository.js.map +0 -1
- package/dist/repository/dashboard-question.repository.d.ts +0 -12
- package/dist/repository/dashboard-question.repository.d.ts.map +0 -1
- package/dist/repository/dashboard-question.repository.js +0 -34
- package/dist/repository/dashboard-question.repository.js.map +0 -1
- package/dist/repository/dashboard-variable.repository.d.ts +0 -12
- package/dist/repository/dashboard-variable.repository.d.ts.map +0 -1
- package/dist/repository/dashboard-variable.repository.js +0 -34
- package/dist/repository/dashboard-variable.repository.js.map +0 -1
- package/dist/repository/dashboard.repository.d.ts +0 -13
- package/dist/repository/dashboard.repository.d.ts.map +0 -1
- package/dist/repository/dashboard.repository.js +0 -104
- package/dist/repository/dashboard.repository.js.map +0 -1
- package/dist/services/dashboard-layout.service.d.ts +0 -20
- package/dist/services/dashboard-layout.service.d.ts.map +0 -1
- package/dist/services/dashboard-layout.service.js +0 -120
- package/dist/services/dashboard-layout.service.js.map +0 -1
- package/dist/services/dashboard-question-sql-dataset-config.service.d.ts +0 -12
- package/dist/services/dashboard-question-sql-dataset-config.service.d.ts.map +0 -1
- package/dist/services/dashboard-question-sql-dataset-config.service.js +0 -38
- package/dist/services/dashboard-question-sql-dataset-config.service.js.map +0 -1
- package/dist/services/dashboard-question.service.d.ts +0 -23
- package/dist/services/dashboard-question.service.d.ts.map +0 -1
- package/dist/services/dashboard-question.service.js +0 -135
- package/dist/services/dashboard-question.service.js.map +0 -1
- package/dist/services/dashboard-selection-providers/dashboard-variable-sql-dynamic-provider.service.d.ts +0 -12
- package/dist/services/dashboard-selection-providers/dashboard-variable-sql-dynamic-provider.service.d.ts.map +0 -1
- package/dist/services/dashboard-selection-providers/dashboard-variable-sql-dynamic-provider.service.js +0 -55
- package/dist/services/dashboard-selection-providers/dashboard-variable-sql-dynamic-provider.service.js.map +0 -1
- package/dist/services/dashboard-selection-providers/dashboard-variable-test-dynamic-provider.service.d.ts +0 -11
- package/dist/services/dashboard-selection-providers/dashboard-variable-test-dynamic-provider.service.d.ts.map +0 -1
- package/dist/services/dashboard-selection-providers/dashboard-variable-test-dynamic-provider.service.js +0 -45
- package/dist/services/dashboard-selection-providers/dashboard-variable-test-dynamic-provider.service.js.map +0 -1
- package/dist/services/dashboard-variable.service.d.ts +0 -13
- package/dist/services/dashboard-variable.service.d.ts.map +0 -1
- package/dist/services/dashboard-variable.service.js.map +0 -1
- package/dist/services/dashboard.service.d.ts +0 -29
- package/dist/services/dashboard.service.d.ts.map +0 -1
- package/dist/services/dashboard.service.js +0 -171
- package/dist/services/dashboard.service.js.map +0 -1
- package/dist/services/genai/mcp-handlers/solid-add-question-to-dashboard-mcp-handler.service.d.ts +0 -12
- package/dist/services/genai/mcp-handlers/solid-add-question-to-dashboard-mcp-handler.service.d.ts.map +0 -1
- package/dist/services/genai/mcp-handlers/solid-add-question-to-dashboard-mcp-handler.service.js +0 -41
- package/dist/services/genai/mcp-handlers/solid-add-question-to-dashboard-mcp-handler.service.js.map +0 -1
- package/dist/services/genai/mcp-handlers/solid-add-variable-to-dashboard-mcp-handler.service.d.ts +0 -12
- package/dist/services/genai/mcp-handlers/solid-add-variable-to-dashboard-mcp-handler.service.d.ts.map +0 -1
- package/dist/services/genai/mcp-handlers/solid-add-variable-to-dashboard-mcp-handler.service.js +0 -42
- package/dist/services/genai/mcp-handlers/solid-add-variable-to-dashboard-mcp-handler.service.js.map +0 -1
- package/dist/services/genai/mcp-handlers/solid-create-dashboard-mcp-handler.service.d.ts +0 -25
- package/dist/services/genai/mcp-handlers/solid-create-dashboard-mcp-handler.service.d.ts.map +0 -1
- package/dist/services/genai/mcp-handlers/solid-create-dashboard-mcp-handler.service.js +0 -116
- package/dist/services/genai/mcp-handlers/solid-create-dashboard-mcp-handler.service.js.map +0 -1
- package/dist/services/genai/mcp-handlers/solid-create-dashboard-question-mcp-handler.service.d.ts +0 -12
- package/dist/services/genai/mcp-handlers/solid-create-dashboard-question-mcp-handler.service.d.ts.map +0 -1
- package/dist/services/genai/mcp-handlers/solid-create-dashboard-question-mcp-handler.service.js +0 -37
- package/dist/services/genai/mcp-handlers/solid-create-dashboard-question-mcp-handler.service.js.map +0 -1
- package/dist/services/genai/mcp-handlers/solid-create-dashboard-question-sql-dataset-config-mcp-handler.service.d.ts +0 -12
- package/dist/services/genai/mcp-handlers/solid-create-dashboard-question-sql-dataset-config-mcp-handler.service.d.ts.map +0 -1
- package/dist/services/genai/mcp-handlers/solid-create-dashboard-question-sql-dataset-config-mcp-handler.service.js +0 -38
- package/dist/services/genai/mcp-handlers/solid-create-dashboard-question-sql-dataset-config-mcp-handler.service.js.map +0 -1
- package/dist/services/genai/mcp-handlers/solid-create-dashboard-widget-mcp-handler.service.d.ts +0 -12
- package/dist/services/genai/mcp-handlers/solid-create-dashboard-widget-mcp-handler.service.d.ts.map +0 -1
- package/dist/services/genai/mcp-handlers/solid-create-dashboard-widget-mcp-handler.service.js +0 -38
- package/dist/services/genai/mcp-handlers/solid-create-dashboard-widget-mcp-handler.service.js.map +0 -1
- package/dist/services/question-data-providers/chartjs-sql-data-provider.service.d.ts +0 -34
- package/dist/services/question-data-providers/chartjs-sql-data-provider.service.d.ts.map +0 -1
- package/dist/services/question-data-providers/chartjs-sql-data-provider.service.js +0 -90
- package/dist/services/question-data-providers/chartjs-sql-data-provider.service.js.map +0 -1
- package/dist/services/question-data-providers/helpers.d.ts +0 -7
- package/dist/services/question-data-providers/helpers.d.ts.map +0 -1
- package/dist/services/question-data-providers/helpers.js +0 -25
- package/dist/services/question-data-providers/helpers.js.map +0 -1
- package/dist/services/question-data-providers/prime-react-datatable-sql-data-provider.service.d.ts +0 -14
- package/dist/services/question-data-providers/prime-react-datatable-sql-data-provider.service.d.ts.map +0 -1
- package/dist/services/question-data-providers/prime-react-datatable-sql-data-provider.service.js +0 -71
- package/dist/services/question-data-providers/prime-react-datatable-sql-data-provider.service.js.map +0 -1
- package/dist/services/question-data-providers/prime-react-meter-group-sql-data-provider.service.d.ts +0 -16
- package/dist/services/question-data-providers/prime-react-meter-group-sql-data-provider.service.d.ts.map +0 -1
- package/dist/services/question-data-providers/prime-react-meter-group-sql-data-provider.service.js +0 -93
- package/dist/services/question-data-providers/prime-react-meter-group-sql-data-provider.service.js.map +0 -1
- package/dist/services/selection-providers/list-of-dashboard-question-providers-selection-provider.service.d.ts +0 -11
- package/dist/services/selection-providers/list-of-dashboard-question-providers-selection-provider.service.d.ts.map +0 -1
- package/dist/services/selection-providers/list-of-dashboard-question-providers-selection-provider.service.js +0 -49
- package/dist/services/selection-providers/list-of-dashboard-question-providers-selection-provider.service.js.map +0 -1
- package/dist/services/selection-providers/list-of-dashboard-variable-providers-selection-provider.service.d.ts +0 -11
- package/dist/services/selection-providers/list-of-dashboard-variable-providers-selection-provider.service.d.ts.map +0 -1
- package/dist/services/selection-providers/list-of-dashboard-variable-providers-selection-provider.service.js +0 -47
- package/dist/services/selection-providers/list-of-dashboard-variable-providers-selection-provider.service.js.map +0 -1
- package/dist/services/sql-expression-resolver.service.d.ts +0 -12
- package/dist/services/sql-expression-resolver.service.d.ts.map +0 -1
- package/dist/services/sql-expression-resolver.service.js +0 -121
- package/dist/services/sql-expression-resolver.service.js.map +0 -1
- package/dist/subscribers/dashboard-question-sql-dataset-config.subscriber.d.ts +0 -16
- package/dist/subscribers/dashboard-question-sql-dataset-config.subscriber.d.ts.map +0 -1
- package/dist/subscribers/dashboard-question-sql-dataset-config.subscriber.js +0 -72
- package/dist/subscribers/dashboard-question-sql-dataset-config.subscriber.js.map +0 -1
- package/dist/subscribers/dashboard-question.subscriber.d.ts +0 -16
- package/dist/subscribers/dashboard-question.subscriber.d.ts.map +0 -1
- package/dist/subscribers/dashboard-question.subscriber.js +0 -72
- package/dist/subscribers/dashboard-question.subscriber.js.map +0 -1
- package/dist/subscribers/dashboard-variable.subscriber.d.ts +0 -16
- package/dist/subscribers/dashboard-variable.subscriber.d.ts.map +0 -1
- package/dist/subscribers/dashboard-variable.subscriber.js +0 -72
- package/dist/subscribers/dashboard-variable.subscriber.js.map +0 -1
- package/dist/subscribers/dashboard.subscriber.d.ts +0 -16
- package/dist/subscribers/dashboard.subscriber.d.ts.map +0 -1
- package/dist/subscribers/dashboard.subscriber.js +0 -71
- package/dist/subscribers/dashboard.subscriber.js.map +0 -1
- package/src/controllers/dashboard-layout.controller.ts +0 -106
- package/src/controllers/dashboard-question-sql-dataset-config.controller.ts +0 -93
- package/src/controllers/dashboard-question.controller.ts +0 -104
- package/src/decorators/dashboard-question-data-provider.decorator.ts +0 -7
- package/src/decorators/dashboard-selection-provider.decorator.ts +0 -7
- package/src/dtos/create-dashboard-layout.dto.ts +0 -31
- package/src/dtos/create-dashboard-question-sql-dataset-config.dto.ts +0 -42
- package/src/dtos/create-dashboard-question.dto.ts +0 -62
- package/src/dtos/create-dashboard-variable.dto.ts +0 -60
- package/src/dtos/create-dashboard.dto.ts +0 -61
- package/src/dtos/dashboard-variable-selection-dynamic-query.dto.ts +0 -29
- package/src/dtos/update-dashboard-layout.dto.ts +0 -30
- package/src/dtos/update-dashboard-question-sql-dataset-config.dto.ts +0 -49
- package/src/dtos/update-dashboard-question.dto.ts +0 -67
- package/src/dtos/update-dashboard-variable.dto.ts +0 -58
- package/src/dtos/update-dashboard.dto.ts +0 -65
- package/src/entities/dashboard-layout.entity.ts +0 -18
- package/src/entities/dashboard-question-sql-dataset-config.entity.ts +0 -37
- package/src/entities/dashboard-question.entity.ts +0 -46
- package/src/entities/dashboard-variable.entity.ts +0 -44
- package/src/entities/dashboard.entity.ts +0 -36
- package/src/mappers/dashboard-mapper.ts +0 -53
- package/src/repository/dashboard-layout.repository.ts +0 -17
- package/src/repository/dashboard-question-sql-dataset-config.repository.ts +0 -17
- package/src/repository/dashboard-question.repository.ts +0 -17
- package/src/repository/dashboard-variable.repository.ts +0 -17
- package/src/repository/dashboard.repository.ts +0 -101
- package/src/services/dashboard-layout.service.ts +0 -111
- package/src/services/dashboard-question-sql-dataset-config.service.ts +0 -25
- package/src/services/dashboard-question.service.ts +0 -150
- package/src/services/dashboard-selection-providers/dashboard-variable-sql-dynamic-provider.service.ts +0 -56
- package/src/services/dashboard-selection-providers/dashboard-variable-test-dynamic-provider.service.ts +0 -37
- package/src/services/dashboard-variable.service.ts +0 -27
- package/src/services/dashboard.service.ts +0 -148
- package/src/services/genai/mcp-handlers/solid-add-question-to-dashboard-mcp-handler.service.ts +0 -43
- package/src/services/genai/mcp-handlers/solid-add-variable-to-dashboard-mcp-handler.service.ts +0 -44
- package/src/services/genai/mcp-handlers/solid-create-dashboard-mcp-handler.service.ts +0 -114
- package/src/services/genai/mcp-handlers/solid-create-dashboard-question-mcp-handler.service.ts +0 -38
- package/src/services/genai/mcp-handlers/solid-create-dashboard-question-sql-dataset-config-mcp-handler.service.ts +0 -40
- package/src/services/genai/mcp-handlers/solid-create-dashboard-widget-mcp-handler.service.ts +0 -39
- package/src/services/question-data-providers/chartjs-sql-data-provider.service.ts +0 -121
- package/src/services/question-data-providers/helpers.ts +0 -30
- package/src/services/question-data-providers/prime-react-datatable-sql-data-provider.service.ts +0 -74
- package/src/services/question-data-providers/prime-react-meter-group-sql-data-provider.service.ts +0 -115
- package/src/services/selection-providers/list-of-dashboard-question-providers-selection-provider.service.ts +0 -44
- package/src/services/selection-providers/list-of-dashboard-variable-providers-selection-provider.service.ts +0 -41
- package/src/services/sql-expression-resolver.service.ts +0 -140
- package/src/subscribers/dashboard-question-sql-dataset-config.subscriber.ts +0 -61
- package/src/subscribers/dashboard-question.subscriber.ts +0 -62
- package/src/subscribers/dashboard-variable.subscriber.ts +0 -63
- package/src/subscribers/dashboard.subscriber.ts +0 -62
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
import { ApiProperty } from '@nestjs/swagger';
|
|
2
|
-
import { IsString } from 'class-validator';
|
|
3
|
-
import { IsNotEmpty, IsOptional, IsInt, IsJSON } from 'class-validator';
|
|
4
|
-
|
|
5
|
-
export class CreateDashboardQuestionSqlDatasetConfigDto {
|
|
6
|
-
@IsNotEmpty()
|
|
7
|
-
@IsString()
|
|
8
|
-
@ApiProperty()
|
|
9
|
-
datasetName: string;
|
|
10
|
-
@IsNotEmpty()
|
|
11
|
-
@IsString()
|
|
12
|
-
@ApiProperty({ description: "This is the display name for the dataset configuration, which can be used in UI components to represent the dataset in a user-friendly manner." })
|
|
13
|
-
datasetDisplayName: string;
|
|
14
|
-
@IsOptional()
|
|
15
|
-
@IsString()
|
|
16
|
-
@ApiProperty({ description: "This is a description of the dataset configuration, providing context and details about its purpose." })
|
|
17
|
-
description: string;
|
|
18
|
-
@IsNotEmpty()
|
|
19
|
-
@IsString()
|
|
20
|
-
@ApiProperty()
|
|
21
|
-
sql: string;
|
|
22
|
-
@IsNotEmpty()
|
|
23
|
-
@IsString()
|
|
24
|
-
@ApiProperty()
|
|
25
|
-
labelColumnName: string;
|
|
26
|
-
@IsNotEmpty()
|
|
27
|
-
@IsString()
|
|
28
|
-
@ApiProperty()
|
|
29
|
-
valueColumnName: string;
|
|
30
|
-
@IsOptional()
|
|
31
|
-
@IsInt()
|
|
32
|
-
@ApiProperty({ description: "Related Question Model" })
|
|
33
|
-
questionId: number;
|
|
34
|
-
@IsString()
|
|
35
|
-
@IsOptional()
|
|
36
|
-
@ApiProperty({ description: "Related Question Model" })
|
|
37
|
-
questionUserKey: string;
|
|
38
|
-
@IsOptional()
|
|
39
|
-
@IsJSON()
|
|
40
|
-
@ApiProperty({ description: "This allows you to set the dataset options e.g border-color, background-color, etc. This is a JSON object that can be used to customize the dataset appearance or behavior in the UI." })
|
|
41
|
-
options: any;
|
|
42
|
-
}
|
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
import { ApiProperty } from '@nestjs/swagger';
|
|
2
|
-
import { IsString } from 'class-validator';
|
|
3
|
-
import { IsNotEmpty, IsOptional, IsJSON, IsInt, ValidateNested, IsArray } from 'class-validator';
|
|
4
|
-
import { Type } from 'class-transformer';
|
|
5
|
-
import { UpdateDashboardQuestionSqlDatasetConfigDto } from 'src/dtos/update-dashboard-question-sql-dataset-config.dto';
|
|
6
|
-
|
|
7
|
-
export class CreateDashboardQuestionDto {
|
|
8
|
-
@IsNotEmpty()
|
|
9
|
-
@IsString()
|
|
10
|
-
@ApiProperty()
|
|
11
|
-
name: string;
|
|
12
|
-
@IsNotEmpty()
|
|
13
|
-
@IsString()
|
|
14
|
-
@ApiProperty()
|
|
15
|
-
sourceType: string;
|
|
16
|
-
@IsNotEmpty()
|
|
17
|
-
@IsString()
|
|
18
|
-
@ApiProperty()
|
|
19
|
-
visualisedAs: string;
|
|
20
|
-
@IsOptional()
|
|
21
|
-
@IsString()
|
|
22
|
-
@ApiProperty({ description: "This is only applicable when sourceType is set to provider. It allows the user to select any pre-existing Dashboard Question Data provider implementation used to fetch a dynamic dropdown of values to choose from when this question is presented to the user." })
|
|
23
|
-
providerName: string;
|
|
24
|
-
@IsOptional()
|
|
25
|
-
@IsInt()
|
|
26
|
-
@ApiProperty({ description: "Related Dashboard Model" })
|
|
27
|
-
dashboardId: number;
|
|
28
|
-
@IsString()
|
|
29
|
-
@IsOptional()
|
|
30
|
-
@ApiProperty({ description: "Related Dashboard Model" })
|
|
31
|
-
dashboardUserKey: string;
|
|
32
|
-
@IsOptional()
|
|
33
|
-
@ApiProperty({ description: "Related Question SQL Dataset Config Model" })
|
|
34
|
-
@IsArray()
|
|
35
|
-
@ValidateNested({ each: true })
|
|
36
|
-
@Type(() => UpdateDashboardQuestionSqlDatasetConfigDto)
|
|
37
|
-
questionSqlDatasetConfigs: UpdateDashboardQuestionSqlDatasetConfigDto[];
|
|
38
|
-
@IsOptional()
|
|
39
|
-
@IsArray()
|
|
40
|
-
@ApiProperty({ description: "Related Question SQL Dataset Config Model" })
|
|
41
|
-
questionSqlDatasetConfigsIds: number[];
|
|
42
|
-
@IsString()
|
|
43
|
-
@IsOptional()
|
|
44
|
-
@ApiProperty({ description: "Related Question SQL Dataset Config Model" })
|
|
45
|
-
questionSqlDatasetConfigsCommand: string;
|
|
46
|
-
@IsOptional()
|
|
47
|
-
@IsJSON()
|
|
48
|
-
@ApiProperty({ description: "This is a JSON object representing each labels display and color options for the bar chart" })
|
|
49
|
-
chartOptions: any;
|
|
50
|
-
@IsOptional()
|
|
51
|
-
@IsString()
|
|
52
|
-
@ApiProperty({ description: "This is the SQL query to fetch the label values for the question" })
|
|
53
|
-
labelSql: string;
|
|
54
|
-
@IsOptional()
|
|
55
|
-
@IsString()
|
|
56
|
-
@ApiProperty({ description: "This is the SQL query to fetch the KPI value for the question" })
|
|
57
|
-
kpiSql: string;
|
|
58
|
-
@IsOptional()
|
|
59
|
-
@IsInt()
|
|
60
|
-
@ApiProperty()
|
|
61
|
-
sequenceNumber: number;
|
|
62
|
-
}
|
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
import { ApiProperty } from '@nestjs/swagger';
|
|
2
|
-
import { IsString } from 'class-validator';
|
|
3
|
-
import { IsNotEmpty, IsJSON, IsOptional, IsBoolean, IsInt } from 'class-validator';
|
|
4
|
-
|
|
5
|
-
export enum SelectionDynamicSourceType {
|
|
6
|
-
SQL = "sql",
|
|
7
|
-
PROVIDER = "provider",
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
export class CreateDashboardVariableDto {
|
|
12
|
-
@IsNotEmpty()
|
|
13
|
-
@IsString()
|
|
14
|
-
@ApiProperty()
|
|
15
|
-
variableName: string;
|
|
16
|
-
@IsNotEmpty()
|
|
17
|
-
@IsString()
|
|
18
|
-
@ApiProperty()
|
|
19
|
-
variableType: string;
|
|
20
|
-
@IsOptional()
|
|
21
|
-
@IsJSON()
|
|
22
|
-
@ApiProperty()
|
|
23
|
-
selectionStaticValues: any;
|
|
24
|
-
@IsOptional()
|
|
25
|
-
@IsString()
|
|
26
|
-
@ApiProperty()
|
|
27
|
-
selectionDynamicSourceType: string;
|
|
28
|
-
@IsOptional()
|
|
29
|
-
@IsString()
|
|
30
|
-
@ApiProperty({ description: "SQL query to fetch the data for this variable when it is rendered at runtime. This is only applicable when selectionDynamicSourceType is set to SQL." })
|
|
31
|
-
selectionDynamicSQL: string;
|
|
32
|
-
@IsOptional()
|
|
33
|
-
@IsString()
|
|
34
|
-
@ApiProperty({ description: "This is only applicable when selectionDynamicSourceType is set to provider. It allows the user to select any pre-existing Dashboard SelectionDynamicProvider implementation used to fetch a dynamic dropdown of values to choose from when this variable is presented to the user." })
|
|
35
|
-
selectionDynamicProviderName: string;
|
|
36
|
-
@IsOptional()
|
|
37
|
-
@IsBoolean()
|
|
38
|
-
@ApiProperty({ description: "This is relevant only for variables of type \"selectionStatic\" or \"selectionDynamic\". When set to true, it allows the user to select multiple values from the dropdown." })
|
|
39
|
-
isMultiSelect: boolean = true;
|
|
40
|
-
@IsOptional()
|
|
41
|
-
@IsInt()
|
|
42
|
-
@ApiProperty({ description: "Related Dashboard Model" })
|
|
43
|
-
dashboardId: number;
|
|
44
|
-
@IsString()
|
|
45
|
-
@IsOptional()
|
|
46
|
-
@ApiProperty({ description: "Related Dashboard Model" })
|
|
47
|
-
dashboardUserKey: string;
|
|
48
|
-
@IsOptional()
|
|
49
|
-
@IsString()
|
|
50
|
-
@ApiProperty({ description: "This is the default value for this variable when it is rendered at runtime. It can be a static value for this variable when it is rendered at runtime." })
|
|
51
|
-
defaultValue: string;
|
|
52
|
-
@IsOptional()
|
|
53
|
-
@IsString()
|
|
54
|
-
@ApiProperty({ description: "This is the default operator for this variable when it is rendered at runtime. It can be a static value for this variable when it is rendered at runtime." })
|
|
55
|
-
defaultOperator: string;
|
|
56
|
-
@IsString()
|
|
57
|
-
@IsOptional()
|
|
58
|
-
@ApiProperty()
|
|
59
|
-
externalId: string;
|
|
60
|
-
}
|
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
import { ApiProperty } from '@nestjs/swagger';
|
|
2
|
-
import { IsString } from 'class-validator';
|
|
3
|
-
import { IsNotEmpty, ValidateNested, IsArray, IsOptional, IsJSON, IsInt } from 'class-validator';
|
|
4
|
-
import { Type } from 'class-transformer';
|
|
5
|
-
import { UpdateDashboardVariableDto } from 'src/dtos/update-dashboard-variable.dto';
|
|
6
|
-
import { UpdateDashboardQuestionDto } from 'src/dtos/update-dashboard-question.dto';
|
|
7
|
-
|
|
8
|
-
export class CreateDashboardDto {
|
|
9
|
-
@IsNotEmpty()
|
|
10
|
-
@IsString()
|
|
11
|
-
@ApiProperty()
|
|
12
|
-
name: string;
|
|
13
|
-
@IsNotEmpty()
|
|
14
|
-
@IsJSON()
|
|
15
|
-
@ApiProperty()
|
|
16
|
-
layoutJson: any;
|
|
17
|
-
@IsOptional()
|
|
18
|
-
@ApiProperty()
|
|
19
|
-
@IsArray()
|
|
20
|
-
@ValidateNested({ each: true })
|
|
21
|
-
@Type(() => UpdateDashboardVariableDto)
|
|
22
|
-
dashboardVariables: UpdateDashboardVariableDto[];
|
|
23
|
-
@IsOptional()
|
|
24
|
-
@IsArray()
|
|
25
|
-
@ApiProperty()
|
|
26
|
-
dashboardVariablesIds: number[];
|
|
27
|
-
@IsString()
|
|
28
|
-
@IsOptional()
|
|
29
|
-
@ApiProperty()
|
|
30
|
-
dashboardVariablesCommand: string;
|
|
31
|
-
@IsOptional()
|
|
32
|
-
@ApiProperty()
|
|
33
|
-
@IsArray()
|
|
34
|
-
@ValidateNested({ each: true })
|
|
35
|
-
@Type(() => UpdateDashboardQuestionDto)
|
|
36
|
-
questions: UpdateDashboardQuestionDto[];
|
|
37
|
-
@IsOptional()
|
|
38
|
-
@IsArray()
|
|
39
|
-
@ApiProperty()
|
|
40
|
-
questionsIds: number[];
|
|
41
|
-
@IsString()
|
|
42
|
-
@IsOptional()
|
|
43
|
-
@ApiProperty()
|
|
44
|
-
questionsCommand: string;
|
|
45
|
-
@IsOptional()
|
|
46
|
-
@IsInt()
|
|
47
|
-
@ApiProperty()
|
|
48
|
-
moduleId: number;
|
|
49
|
-
@IsString()
|
|
50
|
-
@IsOptional()
|
|
51
|
-
@ApiProperty()
|
|
52
|
-
moduleUserKey: string;
|
|
53
|
-
@IsOptional()
|
|
54
|
-
@IsString()
|
|
55
|
-
@ApiProperty()
|
|
56
|
-
displayName: string;
|
|
57
|
-
@IsOptional()
|
|
58
|
-
@IsString()
|
|
59
|
-
@ApiProperty({ description: "This is a description of the dashboard configuration, providing context and details about the dashboard." })
|
|
60
|
-
description: string;
|
|
61
|
-
}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
import { ApiProperty } from "@nestjs/swagger";
|
|
3
|
-
import { Transform, Type } from "class-transformer";
|
|
4
|
-
import { IsNumber, IsOptional, IsString } from "class-validator";
|
|
5
|
-
import { PaginationQueryDto } from "src/dtos/pagination-query.dto";
|
|
6
|
-
import integerTransformer from "../transformers/integer-transformer";
|
|
7
|
-
|
|
8
|
-
export class DashboardVariableSelectionDynamicQueryDto extends PaginationQueryDto {
|
|
9
|
-
constructor(variableId: number, query: string, limit: number, offset: number) {
|
|
10
|
-
super(limit, offset);
|
|
11
|
-
this.variableId = variableId;
|
|
12
|
-
this.query = query;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
@ApiProperty({ description: "Field ID of the field against which the dynamic value provider is registered.", type: Number })
|
|
16
|
-
@IsNumber()
|
|
17
|
-
@Transform(integerTransformer)
|
|
18
|
-
variableId: number;
|
|
19
|
-
|
|
20
|
-
@ApiProperty({ description: "Search query string", type: String })
|
|
21
|
-
@IsString()
|
|
22
|
-
@IsOptional()
|
|
23
|
-
query?: any;
|
|
24
|
-
|
|
25
|
-
@ApiProperty({ description: "Value of a single dynamic option", type: String })
|
|
26
|
-
@IsString()
|
|
27
|
-
@IsOptional()
|
|
28
|
-
optionValue?: string = '';
|
|
29
|
-
}
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { IsInt, IsOptional, IsString, IsNotEmpty } from 'class-validator';
|
|
2
|
-
import { ApiProperty } from '@nestjs/swagger';
|
|
3
|
-
|
|
4
|
-
export class UpdateDashboardLayoutDto {
|
|
5
|
-
@IsNotEmpty()
|
|
6
|
-
@IsOptional()
|
|
7
|
-
@IsString()
|
|
8
|
-
@ApiProperty()
|
|
9
|
-
layout: string;
|
|
10
|
-
|
|
11
|
-
@IsOptional()
|
|
12
|
-
@IsInt()
|
|
13
|
-
@ApiProperty({ description: "Related Dashboard Model" })
|
|
14
|
-
dashboardId: number;
|
|
15
|
-
|
|
16
|
-
@IsString()
|
|
17
|
-
@IsOptional()
|
|
18
|
-
@ApiProperty({ description: "Related Dashboard Model" })
|
|
19
|
-
dashboardUserKey: string;
|
|
20
|
-
|
|
21
|
-
@IsOptional()
|
|
22
|
-
@IsInt()
|
|
23
|
-
@ApiProperty()
|
|
24
|
-
userId: number;
|
|
25
|
-
|
|
26
|
-
@IsString()
|
|
27
|
-
@IsOptional()
|
|
28
|
-
@ApiProperty()
|
|
29
|
-
userUserKey: string;
|
|
30
|
-
}
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
import { IsInt, IsOptional, IsString, IsNotEmpty, IsJSON } from 'class-validator';
|
|
2
|
-
import { ApiProperty } from '@nestjs/swagger';
|
|
3
|
-
|
|
4
|
-
export class UpdateDashboardQuestionSqlDatasetConfigDto {
|
|
5
|
-
@IsOptional()
|
|
6
|
-
@IsInt()
|
|
7
|
-
id: number;
|
|
8
|
-
@IsNotEmpty()
|
|
9
|
-
@IsOptional()
|
|
10
|
-
@IsString()
|
|
11
|
-
@ApiProperty()
|
|
12
|
-
datasetName: string;
|
|
13
|
-
@IsNotEmpty()
|
|
14
|
-
@IsOptional()
|
|
15
|
-
@IsString()
|
|
16
|
-
@ApiProperty({ description: "This is the display name for the dataset configuration, which can be used in UI components to represent the dataset in a user-friendly manner." })
|
|
17
|
-
datasetDisplayName: string;
|
|
18
|
-
@IsOptional()
|
|
19
|
-
@IsString()
|
|
20
|
-
@ApiProperty({ description: "This is a description of the dataset configuration, providing context and details about its purpose." })
|
|
21
|
-
description: string;
|
|
22
|
-
@IsNotEmpty()
|
|
23
|
-
@IsOptional()
|
|
24
|
-
@IsString()
|
|
25
|
-
@ApiProperty()
|
|
26
|
-
sql: string;
|
|
27
|
-
@IsNotEmpty()
|
|
28
|
-
@IsOptional()
|
|
29
|
-
@IsString()
|
|
30
|
-
@ApiProperty()
|
|
31
|
-
labelColumnName: string;
|
|
32
|
-
@IsNotEmpty()
|
|
33
|
-
@IsOptional()
|
|
34
|
-
@IsString()
|
|
35
|
-
@ApiProperty()
|
|
36
|
-
valueColumnName: string;
|
|
37
|
-
@IsOptional()
|
|
38
|
-
@IsInt()
|
|
39
|
-
@ApiProperty({ description: "Related Question Model" })
|
|
40
|
-
questionId: number;
|
|
41
|
-
@IsString()
|
|
42
|
-
@IsOptional()
|
|
43
|
-
@ApiProperty({ description: "Related Question Model" })
|
|
44
|
-
questionUserKey: string;
|
|
45
|
-
@IsOptional()
|
|
46
|
-
@IsJSON()
|
|
47
|
-
@ApiProperty({ description: "This allows you to set the dataset options e.g border-color, background-color, etc. This is a JSON object that can be used to customize the dataset appearance or behavior in the UI." })
|
|
48
|
-
options: any;
|
|
49
|
-
}
|
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
import { IsInt,IsOptional, IsString, IsNotEmpty, IsJSON, ValidateNested, IsArray } from 'class-validator';
|
|
2
|
-
import { ApiProperty } from '@nestjs/swagger';
|
|
3
|
-
import { Type } from 'class-transformer';
|
|
4
|
-
import { UpdateDashboardQuestionSqlDatasetConfigDto } from 'src/dtos/update-dashboard-question-sql-dataset-config.dto';
|
|
5
|
-
|
|
6
|
-
export class UpdateDashboardQuestionDto {
|
|
7
|
-
@IsOptional()
|
|
8
|
-
@IsInt()
|
|
9
|
-
id: number;
|
|
10
|
-
@IsNotEmpty()
|
|
11
|
-
@IsOptional()
|
|
12
|
-
@IsString()
|
|
13
|
-
@ApiProperty()
|
|
14
|
-
name: string;
|
|
15
|
-
@IsNotEmpty()
|
|
16
|
-
@IsOptional()
|
|
17
|
-
@IsString()
|
|
18
|
-
@ApiProperty()
|
|
19
|
-
sourceType: string;
|
|
20
|
-
@IsNotEmpty()
|
|
21
|
-
@IsOptional()
|
|
22
|
-
@IsString()
|
|
23
|
-
@ApiProperty()
|
|
24
|
-
visualisedAs: string;
|
|
25
|
-
@IsOptional()
|
|
26
|
-
@IsString()
|
|
27
|
-
@ApiProperty({ description: "This is only applicable when sourceType is set to provider. It allows the user to select any pre-existing Dashboard Question Data provider implementation used to fetch a dynamic dropdown of values to choose from when this question is presented to the user." })
|
|
28
|
-
providerName: string;
|
|
29
|
-
@IsOptional()
|
|
30
|
-
@IsInt()
|
|
31
|
-
@ApiProperty({ description: "Related Dashboard Model" })
|
|
32
|
-
dashboardId: number;
|
|
33
|
-
@IsString()
|
|
34
|
-
@IsOptional()
|
|
35
|
-
@ApiProperty({ description: "Related Dashboard Model" })
|
|
36
|
-
dashboardUserKey: string;
|
|
37
|
-
@IsOptional()
|
|
38
|
-
@ApiProperty({ description: "Related Question SQL Dataset Config Model" })
|
|
39
|
-
@IsArray()
|
|
40
|
-
@ValidateNested({ each: true })
|
|
41
|
-
@Type(() => UpdateDashboardQuestionSqlDatasetConfigDto)
|
|
42
|
-
questionSqlDatasetConfigs: UpdateDashboardQuestionSqlDatasetConfigDto[];
|
|
43
|
-
@IsOptional()
|
|
44
|
-
@IsArray()
|
|
45
|
-
@ApiProperty({ description: "Related Question SQL Dataset Config Model" })
|
|
46
|
-
questionSqlDatasetConfigsIds: number[];
|
|
47
|
-
@IsString()
|
|
48
|
-
@IsOptional()
|
|
49
|
-
@ApiProperty({ description: "Related Question SQL Dataset Config Model" })
|
|
50
|
-
questionSqlDatasetConfigsCommand: string;
|
|
51
|
-
@IsOptional()
|
|
52
|
-
@IsJSON()
|
|
53
|
-
@ApiProperty({ description: "This is a JSON object representing each labels display and color options for the bar chart" })
|
|
54
|
-
chartOptions: any;
|
|
55
|
-
@IsOptional()
|
|
56
|
-
@IsString()
|
|
57
|
-
@ApiProperty({ description: "This is the SQL query to fetch the label values for the question" })
|
|
58
|
-
labelSql: string;
|
|
59
|
-
@IsOptional()
|
|
60
|
-
@IsString()
|
|
61
|
-
@ApiProperty({ description: "This is the SQL query to fetch the KPI value for the question" })
|
|
62
|
-
kpiSql: string;
|
|
63
|
-
@IsOptional()
|
|
64
|
-
@IsInt()
|
|
65
|
-
@ApiProperty()
|
|
66
|
-
sequenceNumber: number;
|
|
67
|
-
}
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
import { IsInt, IsOptional, IsString, IsNotEmpty, IsJSON, IsBoolean } from 'class-validator';
|
|
2
|
-
import { ApiProperty } from '@nestjs/swagger';
|
|
3
|
-
|
|
4
|
-
export class UpdateDashboardVariableDto {
|
|
5
|
-
@IsOptional()
|
|
6
|
-
@IsInt()
|
|
7
|
-
id: number;
|
|
8
|
-
@IsNotEmpty()
|
|
9
|
-
@IsOptional()
|
|
10
|
-
@IsString()
|
|
11
|
-
@ApiProperty()
|
|
12
|
-
variableName: string;
|
|
13
|
-
@IsNotEmpty()
|
|
14
|
-
@IsOptional()
|
|
15
|
-
@IsString()
|
|
16
|
-
@ApiProperty()
|
|
17
|
-
variableType: string;
|
|
18
|
-
@IsOptional()
|
|
19
|
-
@IsJSON()
|
|
20
|
-
@ApiProperty()
|
|
21
|
-
selectionStaticValues: any;
|
|
22
|
-
@IsOptional()
|
|
23
|
-
@IsString()
|
|
24
|
-
@ApiProperty()
|
|
25
|
-
selectionDynamicSourceType: string;
|
|
26
|
-
@IsOptional()
|
|
27
|
-
@IsString()
|
|
28
|
-
@ApiProperty({ description: "SQL query to fetch the data for this variable when it is rendered at runtime. This is only applicable when selectionDynamicSourceType is set to SQL." })
|
|
29
|
-
selectionDynamicSQL: string;
|
|
30
|
-
@IsOptional()
|
|
31
|
-
@IsString()
|
|
32
|
-
@ApiProperty({ description: "This is only applicable when selectionDynamicSourceType is set to provider. It allows the user to select any pre-existing Dashboard SelectionDynamicProvider implementation used to fetch a dynamic dropdown of values to choose from when this variable is presented to the user." })
|
|
33
|
-
selectionDynamicProviderName: string;
|
|
34
|
-
@IsOptional()
|
|
35
|
-
@IsBoolean()
|
|
36
|
-
@ApiProperty({ description: "This is relevant only for variables of type \"selectionStatic\" or \"selectionDynamic\". When set to true, it allows the user to select multiple values from the dropdown." })
|
|
37
|
-
isMultiSelect: boolean;
|
|
38
|
-
@IsOptional()
|
|
39
|
-
@IsInt()
|
|
40
|
-
@ApiProperty({ description: "Related Dashboard Model" })
|
|
41
|
-
dashboardId: number;
|
|
42
|
-
@IsString()
|
|
43
|
-
@IsOptional()
|
|
44
|
-
@ApiProperty({ description: "Related Dashboard Model" })
|
|
45
|
-
dashboardUserKey: string;
|
|
46
|
-
@IsOptional()
|
|
47
|
-
@IsString()
|
|
48
|
-
@ApiProperty({ description: "This is the default value for this variable when it is rendered at runtime. It can be a static value for this variable when it is rendered at runtime." })
|
|
49
|
-
defaultValue: string;
|
|
50
|
-
@IsOptional()
|
|
51
|
-
@IsString()
|
|
52
|
-
@ApiProperty({ description: "This is the default operator for this variable when it is rendered at runtime. It can be a static value for this variable when it is rendered at runtime." })
|
|
53
|
-
defaultOperator: string;
|
|
54
|
-
@IsString()
|
|
55
|
-
@IsOptional()
|
|
56
|
-
@ApiProperty()
|
|
57
|
-
externalId: string;
|
|
58
|
-
}
|
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
import { IsInt,IsOptional, IsString, IsNotEmpty, ValidateNested, IsArray, IsJSON } from 'class-validator';
|
|
2
|
-
import { ApiProperty } from '@nestjs/swagger';
|
|
3
|
-
import { Type } from 'class-transformer';
|
|
4
|
-
import { UpdateDashboardVariableDto } from 'src/dtos/update-dashboard-variable.dto';
|
|
5
|
-
import { UpdateDashboardQuestionDto } from 'src/dtos/update-dashboard-question.dto';
|
|
6
|
-
|
|
7
|
-
export class UpdateDashboardDto {
|
|
8
|
-
@IsOptional()
|
|
9
|
-
@IsInt()
|
|
10
|
-
id: number;
|
|
11
|
-
@IsNotEmpty()
|
|
12
|
-
@IsOptional()
|
|
13
|
-
@IsString()
|
|
14
|
-
@ApiProperty()
|
|
15
|
-
name: string;
|
|
16
|
-
@IsNotEmpty()
|
|
17
|
-
@IsOptional()
|
|
18
|
-
@IsJSON()
|
|
19
|
-
@ApiProperty()
|
|
20
|
-
layoutJson: any;
|
|
21
|
-
@IsOptional()
|
|
22
|
-
@ApiProperty()
|
|
23
|
-
@IsArray()
|
|
24
|
-
@ValidateNested({ each: true })
|
|
25
|
-
@Type(() => UpdateDashboardVariableDto)
|
|
26
|
-
dashboardVariables: UpdateDashboardVariableDto[];
|
|
27
|
-
@IsOptional()
|
|
28
|
-
@IsArray()
|
|
29
|
-
@ApiProperty()
|
|
30
|
-
dashboardVariablesIds: number[];
|
|
31
|
-
@IsString()
|
|
32
|
-
@IsOptional()
|
|
33
|
-
@ApiProperty()
|
|
34
|
-
dashboardVariablesCommand: string;
|
|
35
|
-
@IsOptional()
|
|
36
|
-
@ApiProperty()
|
|
37
|
-
@IsArray()
|
|
38
|
-
@ValidateNested({ each: true })
|
|
39
|
-
@Type(() => UpdateDashboardQuestionDto)
|
|
40
|
-
questions: UpdateDashboardQuestionDto[];
|
|
41
|
-
@IsOptional()
|
|
42
|
-
@IsArray()
|
|
43
|
-
@ApiProperty()
|
|
44
|
-
questionsIds: number[];
|
|
45
|
-
@IsString()
|
|
46
|
-
@IsOptional()
|
|
47
|
-
@ApiProperty()
|
|
48
|
-
questionsCommand: string;
|
|
49
|
-
@IsOptional()
|
|
50
|
-
@IsInt()
|
|
51
|
-
@ApiProperty()
|
|
52
|
-
moduleId: number;
|
|
53
|
-
@IsString()
|
|
54
|
-
@IsOptional()
|
|
55
|
-
@ApiProperty()
|
|
56
|
-
moduleUserKey: string;
|
|
57
|
-
@IsOptional()
|
|
58
|
-
@IsString()
|
|
59
|
-
@ApiProperty()
|
|
60
|
-
displayName: string;
|
|
61
|
-
@IsOptional()
|
|
62
|
-
@IsString()
|
|
63
|
-
@ApiProperty({ description: "This is a description of the dashboard configuration, providing context and details about the dashboard." })
|
|
64
|
-
description: string;
|
|
65
|
-
}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { CommonEntity } from 'src/entities/common.entity'
|
|
2
|
-
import { Entity, Column, JoinColumn, ManyToOne } from 'typeorm';
|
|
3
|
-
import { Dashboard } from 'src/entities/dashboard.entity'
|
|
4
|
-
import { User } from './user.entity';
|
|
5
|
-
|
|
6
|
-
@Entity("ss_dashboard_layout")
|
|
7
|
-
export class DashboardLayout extends CommonEntity {
|
|
8
|
-
@Column({ type: "text", nullable: true })
|
|
9
|
-
layout: string;
|
|
10
|
-
|
|
11
|
-
@ManyToOne(() => Dashboard, { nullable: true })
|
|
12
|
-
@JoinColumn()
|
|
13
|
-
dashboard: Dashboard;
|
|
14
|
-
|
|
15
|
-
@ManyToOne(() => User, { nullable: true })
|
|
16
|
-
@JoinColumn()
|
|
17
|
-
user: User;
|
|
18
|
-
}
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import { CommonEntity } from 'src/entities/common.entity'
|
|
2
|
-
import { Entity, Column, Index, JoinColumn, ManyToOne } from 'typeorm';
|
|
3
|
-
import { DashboardQuestion } from 'src/entities/dashboard-question.entity'
|
|
4
|
-
import { getColumnType } from 'src/helpers/typeorm-db-helper';
|
|
5
|
-
|
|
6
|
-
@Entity("ss_dashboard_question_sql_dataset_config")
|
|
7
|
-
export class DashboardQuestionSqlDatasetConfig extends CommonEntity {
|
|
8
|
-
@Index()
|
|
9
|
-
@Column({ type: "varchar" })
|
|
10
|
-
datasetName: string;
|
|
11
|
-
|
|
12
|
-
@Column({ type: "varchar" })
|
|
13
|
-
datasetDisplayName: string;
|
|
14
|
-
|
|
15
|
-
@Column({ nullable: true })
|
|
16
|
-
description: string;
|
|
17
|
-
|
|
18
|
-
@Column({ ...getColumnType('longText'), nullable: true })
|
|
19
|
-
sql: string;
|
|
20
|
-
|
|
21
|
-
@Column({ type: "varchar" })
|
|
22
|
-
labelColumnName: string;
|
|
23
|
-
|
|
24
|
-
@Column({ type: "varchar" })
|
|
25
|
-
valueColumnName: string;
|
|
26
|
-
|
|
27
|
-
@ManyToOne(() => DashboardQuestion, { nullable: false })
|
|
28
|
-
@JoinColumn()
|
|
29
|
-
question: DashboardQuestion;
|
|
30
|
-
|
|
31
|
-
@Column({ nullable: true, ...getColumnType('longText') })
|
|
32
|
-
options: any;
|
|
33
|
-
|
|
34
|
-
@Index({ unique: true })
|
|
35
|
-
@Column({ type: "varchar", nullable: false })
|
|
36
|
-
externalId: string;
|
|
37
|
-
}
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
import { CommonEntity } from 'src/entities/common.entity'
|
|
2
|
-
import { Entity, Column, Index, JoinColumn, ManyToOne, OneToMany } from 'typeorm';
|
|
3
|
-
import { getColumnType } from 'src/helpers/typeorm-db-helper';
|
|
4
|
-
import { Dashboard } from 'src/entities/dashboard.entity';
|
|
5
|
-
import { DashboardQuestionSqlDatasetConfig } from 'src/entities/dashboard-question-sql-dataset-config.entity'
|
|
6
|
-
|
|
7
|
-
@Entity("ss_dashboard_question")
|
|
8
|
-
export class DashboardQuestion extends CommonEntity {
|
|
9
|
-
@Index()
|
|
10
|
-
@Column({ type: "varchar" })
|
|
11
|
-
name: string;
|
|
12
|
-
|
|
13
|
-
@Index()
|
|
14
|
-
@Column({})
|
|
15
|
-
sourceType: string;
|
|
16
|
-
|
|
17
|
-
@Index()
|
|
18
|
-
@Column({})
|
|
19
|
-
visualisedAs: string;
|
|
20
|
-
|
|
21
|
-
@Column({ type: "varchar", nullable: true })
|
|
22
|
-
providerName: string;
|
|
23
|
-
|
|
24
|
-
@ManyToOne(() => Dashboard, { nullable: true })
|
|
25
|
-
@JoinColumn()
|
|
26
|
-
dashboard: Dashboard;
|
|
27
|
-
|
|
28
|
-
@OneToMany(() => DashboardQuestionSqlDatasetConfig, dashboardQuestionSqlDatasetConfig => dashboardQuestionSqlDatasetConfig.question, { cascade: true })
|
|
29
|
-
questionSqlDatasetConfigs: DashboardQuestionSqlDatasetConfig[];
|
|
30
|
-
|
|
31
|
-
@Column({ type: "simple-json", nullable: true, ...getColumnType('simpleJsonLargeText') })
|
|
32
|
-
chartOptions: any;
|
|
33
|
-
|
|
34
|
-
@Column({ nullable: true, ...getColumnType('longText') })
|
|
35
|
-
labelSql: string;
|
|
36
|
-
|
|
37
|
-
@Column({ nullable: true, ...getColumnType('longText') })
|
|
38
|
-
kpiSql: string;
|
|
39
|
-
|
|
40
|
-
@Column({ type: "integer", nullable: true })
|
|
41
|
-
sequenceNumber: number;
|
|
42
|
-
|
|
43
|
-
@Index({ unique: true })
|
|
44
|
-
@Column({ type: "varchar", nullable: false })
|
|
45
|
-
externalId: string;
|
|
46
|
-
}
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
import { CommonEntity } from 'src/entities/common.entity'
|
|
2
|
-
import { Entity, Column, Index, JoinColumn, ManyToOne } from 'typeorm';
|
|
3
|
-
import { Dashboard } from 'src/entities/dashboard.entity'
|
|
4
|
-
import { getColumnType } from 'src/helpers/typeorm-db-helper';
|
|
5
|
-
|
|
6
|
-
@Entity("ss_dashboard_variable")
|
|
7
|
-
export class DashboardVariable extends CommonEntity {
|
|
8
|
-
@Index()
|
|
9
|
-
@Column({ type: "varchar" })
|
|
10
|
-
variableName: string;
|
|
11
|
-
|
|
12
|
-
@Index()
|
|
13
|
-
@Column({ type: "varchar" })
|
|
14
|
-
variableType: string;
|
|
15
|
-
|
|
16
|
-
@Column({ type: "simple-json", nullable: true })
|
|
17
|
-
selectionStaticValues: any;
|
|
18
|
-
|
|
19
|
-
@Column({ nullable: true })
|
|
20
|
-
selectionDynamicSourceType: string;
|
|
21
|
-
|
|
22
|
-
@Column({ nullable: true, ...getColumnType('longText') })
|
|
23
|
-
selectionDynamicSQL: string;
|
|
24
|
-
|
|
25
|
-
@Column({ type: "varchar", nullable: true })
|
|
26
|
-
selectionDynamicProviderName: string;
|
|
27
|
-
|
|
28
|
-
@Column({ nullable: true, default: true })
|
|
29
|
-
isMultiSelect: boolean = true;
|
|
30
|
-
|
|
31
|
-
@ManyToOne(() => Dashboard, { nullable: true })
|
|
32
|
-
@JoinColumn()
|
|
33
|
-
dashboard: Dashboard;
|
|
34
|
-
|
|
35
|
-
@Column({ nullable: true})
|
|
36
|
-
defaultValue: string;
|
|
37
|
-
|
|
38
|
-
@Column({ type: "varchar", nullable: true })
|
|
39
|
-
defaultOperator: string;
|
|
40
|
-
|
|
41
|
-
@Index({ unique: true })
|
|
42
|
-
@Column({ type: "varchar" })
|
|
43
|
-
externalId: string;
|
|
44
|
-
}
|