ng-kinintel 0.0.317
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 +24 -0
- package/karma.conf.js +44 -0
- package/ng-package.json +7 -0
- package/package.json +11 -0
- package/src/lib/components/alert-groups/alert-groups.component.html +140 -0
- package/src/lib/components/alert-groups/alert-groups.component.sass +4 -0
- package/src/lib/components/alert-groups/alert-groups.component.spec.ts +25 -0
- package/src/lib/components/alert-groups/alert-groups.component.ts +86 -0
- package/src/lib/components/alert-groups/edit-alert-group/edit-alert-group.component.html +91 -0
- package/src/lib/components/alert-groups/edit-alert-group/edit-alert-group.component.sass +2 -0
- package/src/lib/components/alert-groups/edit-alert-group/edit-alert-group.component.spec.ts +25 -0
- package/src/lib/components/alert-groups/edit-alert-group/edit-alert-group.component.ts +78 -0
- package/src/lib/components/dashboard-editor/configure-item/configure-item.component.html +2006 -0
- package/src/lib/components/dashboard-editor/configure-item/configure-item.component.sass +106 -0
- package/src/lib/components/dashboard-editor/configure-item/configure-item.component.spec.ts +25 -0
- package/src/lib/components/dashboard-editor/configure-item/configure-item.component.ts +967 -0
- package/src/lib/components/dashboard-editor/configure-item/edit-dashboard-alert/edit-dashboard-alert.component.html +81 -0
- package/src/lib/components/dashboard-editor/configure-item/edit-dashboard-alert/edit-dashboard-alert.component.sass +0 -0
- package/src/lib/components/dashboard-editor/configure-item/edit-dashboard-alert/edit-dashboard-alert.component.spec.ts +25 -0
- package/src/lib/components/dashboard-editor/configure-item/edit-dashboard-alert/edit-dashboard-alert.component.ts +48 -0
- package/src/lib/components/dashboard-editor/configure-item/html-documentation/html-documentation.component.html +142 -0
- package/src/lib/components/dashboard-editor/configure-item/html-documentation/html-documentation.component.sass +0 -0
- package/src/lib/components/dashboard-editor/configure-item/html-documentation/html-documentation.component.spec.ts +25 -0
- package/src/lib/components/dashboard-editor/configure-item/html-documentation/html-documentation.component.ts +117 -0
- package/src/lib/components/dashboard-editor/configure-item/table-cell-formatter/table-cell-formatter.component.html +224 -0
- package/src/lib/components/dashboard-editor/configure-item/table-cell-formatter/table-cell-formatter.component.sass +0 -0
- package/src/lib/components/dashboard-editor/configure-item/table-cell-formatter/table-cell-formatter.component.spec.ts +25 -0
- package/src/lib/components/dashboard-editor/configure-item/table-cell-formatter/table-cell-formatter.component.ts +149 -0
- package/src/lib/components/dashboard-editor/configure-item/vis-network-options.json +135 -0
- package/src/lib/components/dashboard-editor/dashboard-editor.component.html +205 -0
- package/src/lib/components/dashboard-editor/dashboard-editor.component.sass +247 -0
- package/src/lib/components/dashboard-editor/dashboard-editor.component.spec.ts +25 -0
- package/src/lib/components/dashboard-editor/dashboard-editor.component.ts +645 -0
- package/src/lib/components/dashboard-editor/dashboard-parameter/dashboard-parameter.component.html +1 -0
- package/src/lib/components/dashboard-editor/dashboard-parameter/dashboard-parameter.component.sass +0 -0
- package/src/lib/components/dashboard-editor/dashboard-parameter/dashboard-parameter.component.spec.ts +25 -0
- package/src/lib/components/dashboard-editor/dashboard-parameter/dashboard-parameter.component.ts +16 -0
- package/src/lib/components/dashboard-editor/dashboard-settings/dashboard-settings.component.html +167 -0
- package/src/lib/components/dashboard-editor/dashboard-settings/dashboard-settings.component.sass +0 -0
- package/src/lib/components/dashboard-editor/dashboard-settings/dashboard-settings.component.spec.ts +23 -0
- package/src/lib/components/dashboard-editor/dashboard-settings/dashboard-settings.component.ts +47 -0
- package/src/lib/components/dashboard-editor/item-component/item-component.component.html +486 -0
- package/src/lib/components/dashboard-editor/item-component/item-component.component.sass +137 -0
- package/src/lib/components/dashboard-editor/item-component/item-component.component.spec.ts +25 -0
- package/src/lib/components/dashboard-editor/item-component/item-component.component.ts +1381 -0
- package/src/lib/components/dashboard-editor/source-selector-dialog/source-selector-dialog.component.html +48 -0
- package/src/lib/components/dashboard-editor/source-selector-dialog/source-selector-dialog.component.sass +3 -0
- package/src/lib/components/dashboard-editor/source-selector-dialog/source-selector-dialog.component.spec.ts +25 -0
- package/src/lib/components/dashboard-editor/source-selector-dialog/source-selector-dialog.component.ts +111 -0
- package/src/lib/components/dashboards/dashboards.component.html +175 -0
- package/src/lib/components/dashboards/dashboards.component.sass +64 -0
- package/src/lib/components/dashboards/dashboards.component.spec.ts +25 -0
- package/src/lib/components/dashboards/dashboards.component.ts +176 -0
- package/src/lib/components/dashboards/view-dashboard/view-dashboard.component.html +138 -0
- package/src/lib/components/dashboards/view-dashboard/view-dashboard.component.sass +284 -0
- package/src/lib/components/dashboards/view-dashboard/view-dashboard.component.spec.ts +25 -0
- package/src/lib/components/dashboards/view-dashboard/view-dashboard.component.ts +462 -0
- package/src/lib/components/data-explorer/change-source-warning/change-source-warning.component.html +35 -0
- package/src/lib/components/data-explorer/change-source-warning/change-source-warning.component.sass +0 -0
- package/src/lib/components/data-explorer/change-source-warning/change-source-warning.component.spec.ts +23 -0
- package/src/lib/components/data-explorer/change-source-warning/change-source-warning.component.ts +21 -0
- package/src/lib/components/data-explorer/data-explorer.component.html +326 -0
- package/src/lib/components/data-explorer/data-explorer.component.sass +96 -0
- package/src/lib/components/data-explorer/data-explorer.component.spec.ts +25 -0
- package/src/lib/components/data-explorer/data-explorer.component.ts +267 -0
- package/src/lib/components/data-explorer/export-data/export-data.component.html +69 -0
- package/src/lib/components/data-explorer/export-data/export-data.component.sass +0 -0
- package/src/lib/components/data-explorer/export-data/export-data.component.spec.ts +25 -0
- package/src/lib/components/data-explorer/export-data/export-data.component.ts +56 -0
- package/src/lib/components/data-explorer/snapshot-api-access/snapshot-api-access.component.html +195 -0
- package/src/lib/components/data-explorer/snapshot-api-access/snapshot-api-access.component.sass +0 -0
- package/src/lib/components/data-explorer/snapshot-api-access/snapshot-api-access.component.spec.ts +23 -0
- package/src/lib/components/data-explorer/snapshot-api-access/snapshot-api-access.component.ts +79 -0
- package/src/lib/components/data-explorer/snapshot-profile-dialog/snapshot-profile-dialog.component.html +375 -0
- package/src/lib/components/data-explorer/snapshot-profile-dialog/snapshot-profile-dialog.component.sass +21 -0
- package/src/lib/components/data-explorer/snapshot-profile-dialog/snapshot-profile-dialog.component.spec.ts +25 -0
- package/src/lib/components/data-explorer/snapshot-profile-dialog/snapshot-profile-dialog.component.ts +197 -0
- package/src/lib/components/data-picker/data-picker.component.html +127 -0
- package/src/lib/components/data-picker/data-picker.component.sass +0 -0
- package/src/lib/components/data-picker/data-picker.component.spec.ts +25 -0
- package/src/lib/components/data-picker/data-picker.component.ts +90 -0
- package/src/lib/components/data-search/data-search.component.html +1 -0
- package/src/lib/components/data-search/data-search.component.sass +0 -0
- package/src/lib/components/data-search/data-search.component.spec.ts +23 -0
- package/src/lib/components/data-search/data-search.component.ts +10 -0
- package/src/lib/components/data-sharing-invite/data-sharing-invite.component.html +53 -0
- package/src/lib/components/data-sharing-invite/data-sharing-invite.component.sass +0 -0
- package/src/lib/components/data-sharing-invite/data-sharing-invite.component.spec.ts +23 -0
- package/src/lib/components/data-sharing-invite/data-sharing-invite.component.ts +56 -0
- package/src/lib/components/dataset/create-dataset/create-dataset.component.html +25 -0
- package/src/lib/components/dataset/create-dataset/create-dataset.component.sass +0 -0
- package/src/lib/components/dataset/create-dataset/create-dataset.component.spec.ts +25 -0
- package/src/lib/components/dataset/create-dataset/create-dataset.component.ts +44 -0
- package/src/lib/components/dataset/dataset-editor/available-columns/available-columns.component.html +28 -0
- package/src/lib/components/dataset/dataset-editor/available-columns/available-columns.component.sass +0 -0
- package/src/lib/components/dataset/dataset-editor/available-columns/available-columns.component.spec.ts +25 -0
- package/src/lib/components/dataset/dataset-editor/available-columns/available-columns.component.ts +22 -0
- package/src/lib/components/dataset/dataset-editor/dataset-add-join/dataset-add-join.component.html +196 -0
- package/src/lib/components/dataset/dataset-editor/dataset-add-join/dataset-add-join.component.sass +17 -0
- package/src/lib/components/dataset/dataset-editor/dataset-add-join/dataset-add-join.component.spec.ts +25 -0
- package/src/lib/components/dataset/dataset-editor/dataset-add-join/dataset-add-join.component.ts +422 -0
- package/src/lib/components/dataset/dataset-editor/dataset-column-settings/dataset-column-editor/dataset-column-editor.component.html +30 -0
- package/src/lib/components/dataset/dataset-editor/dataset-column-settings/dataset-column-editor/dataset-column-editor.component.sass +47 -0
- package/src/lib/components/dataset/dataset-editor/dataset-column-settings/dataset-column-editor/dataset-column-editor.component.spec.ts +25 -0
- package/src/lib/components/dataset/dataset-editor/dataset-column-settings/dataset-column-editor/dataset-column-editor.component.ts +78 -0
- package/src/lib/components/dataset/dataset-editor/dataset-column-settings/dataset-column-settings.component.html +86 -0
- package/src/lib/components/dataset/dataset-editor/dataset-column-settings/dataset-column-settings.component.sass +0 -0
- package/src/lib/components/dataset/dataset-editor/dataset-column-settings/dataset-column-settings.component.spec.ts +25 -0
- package/src/lib/components/dataset/dataset-editor/dataset-column-settings/dataset-column-settings.component.ts +49 -0
- package/src/lib/components/dataset/dataset-editor/dataset-create-formula/dataset-create-formula.component.html +68 -0
- package/src/lib/components/dataset/dataset-editor/dataset-create-formula/dataset-create-formula.component.sass +15 -0
- package/src/lib/components/dataset/dataset-editor/dataset-create-formula/dataset-create-formula.component.spec.ts +25 -0
- package/src/lib/components/dataset/dataset-editor/dataset-create-formula/dataset-create-formula.component.ts +65 -0
- package/src/lib/components/dataset/dataset-editor/dataset-editor-popup.html +19 -0
- package/src/lib/components/dataset/dataset-editor/dataset-editor.component.html +609 -0
- package/src/lib/components/dataset/dataset-editor/dataset-editor.component.sass +267 -0
- package/src/lib/components/dataset/dataset-editor/dataset-editor.component.spec.ts +25 -0
- package/src/lib/components/dataset/dataset-editor/dataset-editor.component.ts +1228 -0
- package/src/lib/components/dataset/dataset-editor/dataset-filters/dataset-filter/dataset-filter.component.html +309 -0
- package/src/lib/components/dataset/dataset-editor/dataset-filters/dataset-filter/dataset-filter.component.sass +41 -0
- package/src/lib/components/dataset/dataset-editor/dataset-filters/dataset-filter/dataset-filter.component.spec.ts +25 -0
- package/src/lib/components/dataset/dataset-editor/dataset-filters/dataset-filter/dataset-filter.component.ts +215 -0
- package/src/lib/components/dataset/dataset-editor/dataset-filters/dataset-filter-inclusion/dataset-filter-inclusion.component.html +33 -0
- package/src/lib/components/dataset/dataset-editor/dataset-filters/dataset-filter-inclusion/dataset-filter-inclusion.component.sass +3 -0
- package/src/lib/components/dataset/dataset-editor/dataset-filters/dataset-filter-inclusion/dataset-filter-inclusion.component.spec.ts +23 -0
- package/src/lib/components/dataset/dataset-editor/dataset-filters/dataset-filter-inclusion/dataset-filter-inclusion.component.ts +20 -0
- package/src/lib/components/dataset/dataset-editor/dataset-filters/dataset-filter-junction/dataset-filter-junction.component.html +52 -0
- package/src/lib/components/dataset/dataset-editor/dataset-filters/dataset-filter-junction/dataset-filter-junction.component.sass +14 -0
- package/src/lib/components/dataset/dataset-editor/dataset-filters/dataset-filter-junction/dataset-filter-junction.component.spec.ts +25 -0
- package/src/lib/components/dataset/dataset-editor/dataset-filters/dataset-filter-junction/dataset-filter-junction.component.ts +58 -0
- package/src/lib/components/dataset/dataset-editor/dataset-filters/dataset-filters.component.html +47 -0
- package/src/lib/components/dataset/dataset-editor/dataset-filters/dataset-filters.component.sass +25 -0
- package/src/lib/components/dataset/dataset-editor/dataset-filters/dataset-filters.component.spec.ts +25 -0
- package/src/lib/components/dataset/dataset-editor/dataset-filters/dataset-filters.component.ts +49 -0
- package/src/lib/components/dataset/dataset-editor/dataset-name-dialog/dataset-name-dialog.component.html +49 -0
- package/src/lib/components/dataset/dataset-editor/dataset-name-dialog/dataset-name-dialog.component.sass +2 -0
- package/src/lib/components/dataset/dataset-editor/dataset-name-dialog/dataset-name-dialog.component.spec.ts +25 -0
- package/src/lib/components/dataset/dataset-editor/dataset-name-dialog/dataset-name-dialog.component.ts +39 -0
- package/src/lib/components/dataset/dataset-editor/dataset-parameter-values/dataset-add-parameter/dataset-add-parameter.component.html +195 -0
- package/src/lib/components/dataset/dataset-editor/dataset-parameter-values/dataset-add-parameter/dataset-add-parameter.component.sass +14 -0
- package/src/lib/components/dataset/dataset-editor/dataset-parameter-values/dataset-add-parameter/dataset-add-parameter.component.spec.ts +25 -0
- package/src/lib/components/dataset/dataset-editor/dataset-parameter-values/dataset-add-parameter/dataset-add-parameter.component.ts +82 -0
- package/src/lib/components/dataset/dataset-editor/dataset-parameter-values/dataset-parameter-type/dataset-parameter-type.component.html +78 -0
- package/src/lib/components/dataset/dataset-editor/dataset-parameter-values/dataset-parameter-type/dataset-parameter-type.component.sass +16 -0
- package/src/lib/components/dataset/dataset-editor/dataset-parameter-values/dataset-parameter-type/dataset-parameter-type.component.spec.ts +25 -0
- package/src/lib/components/dataset/dataset-editor/dataset-parameter-values/dataset-parameter-type/dataset-parameter-type.component.ts +32 -0
- package/src/lib/components/dataset/dataset-editor/dataset-parameter-values/dataset-parameter-values.component.html +24 -0
- package/src/lib/components/dataset/dataset-editor/dataset-parameter-values/dataset-parameter-values.component.sass +22 -0
- package/src/lib/components/dataset/dataset-editor/dataset-parameter-values/dataset-parameter-values.component.spec.ts +25 -0
- package/src/lib/components/dataset/dataset-editor/dataset-parameter-values/dataset-parameter-values.component.ts +64 -0
- package/src/lib/components/dataset/dataset-editor/dataset-summarise/dataset-summarise.component.html +177 -0
- package/src/lib/components/dataset/dataset-editor/dataset-summarise/dataset-summarise.component.sass +80 -0
- package/src/lib/components/dataset/dataset-editor/dataset-summarise/dataset-summarise.component.spec.ts +25 -0
- package/src/lib/components/dataset/dataset-editor/dataset-summarise/dataset-summarise.component.ts +113 -0
- package/src/lib/components/dataset/dataset-editor/move-transformation-confirmation/move-transformation-confirmation.component.html +32 -0
- package/src/lib/components/dataset/dataset-editor/move-transformation-confirmation/move-transformation-confirmation.component.sass +0 -0
- package/src/lib/components/dataset/dataset-editor/move-transformation-confirmation/move-transformation-confirmation.component.spec.ts +23 -0
- package/src/lib/components/dataset/dataset-editor/move-transformation-confirmation/move-transformation-confirmation.component.ts +20 -0
- package/src/lib/components/dataset/dataset-editor/remove-transformation-warning/remove-transformation-warning.component.html +37 -0
- package/src/lib/components/dataset/dataset-editor/remove-transformation-warning/remove-transformation-warning.component.sass +0 -0
- package/src/lib/components/dataset/dataset-editor/remove-transformation-warning/remove-transformation-warning.component.spec.ts +23 -0
- package/src/lib/components/dataset/dataset-editor/remove-transformation-warning/remove-transformation-warning.component.ts +19 -0
- package/src/lib/components/dataset/dataset-editor/save-as-query/save-as-query.component.html +69 -0
- package/src/lib/components/dataset/dataset-editor/save-as-query/save-as-query.component.sass +0 -0
- package/src/lib/components/dataset/dataset-editor/save-as-query/save-as-query.component.spec.ts +23 -0
- package/src/lib/components/dataset/dataset-editor/save-as-query/save-as-query.component.ts +58 -0
- package/src/lib/components/dataset/dataset-editor/share-query/share-query.component.html +195 -0
- package/src/lib/components/dataset/dataset-editor/share-query/share-query.component.sass +0 -0
- package/src/lib/components/dataset/dataset-editor/share-query/share-query.component.spec.ts +23 -0
- package/src/lib/components/dataset/dataset-editor/share-query/share-query.component.ts +128 -0
- package/src/lib/components/dataset/dataset-editor/upstream-changes-confirmation/upstream-changes-confirmation.component.html +34 -0
- package/src/lib/components/dataset/dataset-editor/upstream-changes-confirmation/upstream-changes-confirmation.component.sass +3 -0
- package/src/lib/components/dataset/dataset-editor/upstream-changes-confirmation/upstream-changes-confirmation.component.spec.ts +23 -0
- package/src/lib/components/dataset/dataset-editor/upstream-changes-confirmation/upstream-changes-confirmation.component.ts +21 -0
- package/src/lib/components/dataset/dataset.component.html +317 -0
- package/src/lib/components/dataset/dataset.component.sass +73 -0
- package/src/lib/components/dataset/dataset.component.spec.ts +25 -0
- package/src/lib/components/dataset/dataset.component.ts +320 -0
- package/src/lib/components/datasource/create-datasource/advanced-settings/advanced-settings.component.html +133 -0
- package/src/lib/components/datasource/create-datasource/advanced-settings/advanced-settings.component.sass +51 -0
- package/src/lib/components/datasource/create-datasource/advanced-settings/advanced-settings.component.spec.ts +23 -0
- package/src/lib/components/datasource/create-datasource/advanced-settings/advanced-settings.component.ts +140 -0
- package/src/lib/components/datasource/create-datasource/api-access/api-access.component.html +257 -0
- package/src/lib/components/datasource/create-datasource/api-access/api-access.component.sass +0 -0
- package/src/lib/components/datasource/create-datasource/api-access/api-access.component.spec.ts +23 -0
- package/src/lib/components/datasource/create-datasource/api-access/api-access.component.ts +148 -0
- package/src/lib/components/datasource/create-datasource/create-datasource.component.html +430 -0
- package/src/lib/components/datasource/create-datasource/create-datasource.component.sass +162 -0
- package/src/lib/components/datasource/create-datasource/create-datasource.component.spec.ts +25 -0
- package/src/lib/components/datasource/create-datasource/create-datasource.component.ts +789 -0
- package/src/lib/components/datasource/create-datasource/import-data/import-data.component.html +119 -0
- package/src/lib/components/datasource/create-datasource/import-data/import-data.component.sass +8 -0
- package/src/lib/components/datasource/create-datasource/import-data/import-data.component.spec.ts +25 -0
- package/src/lib/components/datasource/create-datasource/import-data/import-data.component.ts +163 -0
- package/src/lib/components/datasource/create-datasource/import-data/import-wizard/import-wizard.component.html +239 -0
- package/src/lib/components/datasource/create-datasource/import-data/import-wizard/import-wizard.component.sass +0 -0
- package/src/lib/components/datasource/create-datasource/import-data/import-wizard/import-wizard.component.spec.ts +23 -0
- package/src/lib/components/datasource/create-datasource/import-data/import-wizard/import-wizard.component.ts +182 -0
- package/src/lib/components/datasource/create-datasource/tabular-datasource/tabular-datasource.component.html +167 -0
- package/src/lib/components/datasource/create-datasource/tabular-datasource/tabular-datasource.component.sass +87 -0
- package/src/lib/components/datasource/create-datasource/tabular-datasource/tabular-datasource.component.spec.ts +23 -0
- package/src/lib/components/datasource/create-datasource/tabular-datasource/tabular-datasource.component.ts +164 -0
- package/src/lib/components/datasource/datasource.component.html +165 -0
- package/src/lib/components/datasource/datasource.component.sass +4 -0
- package/src/lib/components/datasource/datasource.component.spec.ts +25 -0
- package/src/lib/components/datasource/datasource.component.ts +174 -0
- package/src/lib/components/datasource/document-datasource/document-datasource.component.html +558 -0
- package/src/lib/components/datasource/document-datasource/document-datasource.component.sass +84 -0
- package/src/lib/components/datasource/document-datasource/document-datasource.component.spec.ts +25 -0
- package/src/lib/components/datasource/document-datasource/document-datasource.component.ts +351 -0
- package/src/lib/components/export-project/export-project.component.html +280 -0
- package/src/lib/components/export-project/export-project.component.sass +0 -0
- package/src/lib/components/export-project/export-project.component.spec.ts +23 -0
- package/src/lib/components/export-project/export-project.component.ts +29 -0
- package/src/lib/components/feeds/feed/feed.component.html +144 -0
- package/src/lib/components/feeds/feed/feed.component.sass +0 -0
- package/src/lib/components/feeds/feed/feed.component.spec.ts +25 -0
- package/src/lib/components/feeds/feed/feed.component.ts +102 -0
- package/src/lib/components/feeds/feeds.component.html +210 -0
- package/src/lib/components/feeds/feeds.component.sass +4 -0
- package/src/lib/components/feeds/feeds.component.spec.ts +25 -0
- package/src/lib/components/feeds/feeds.component.ts +163 -0
- package/src/lib/components/job-tasks/job-tasks.component.html +22 -0
- package/src/lib/components/job-tasks/job-tasks.component.sass +0 -0
- package/src/lib/components/job-tasks/job-tasks.component.spec.ts +25 -0
- package/src/lib/components/job-tasks/job-tasks.component.ts +19 -0
- package/src/lib/components/marketplace/marketplace.component.html +143 -0
- package/src/lib/components/marketplace/marketplace.component.sass +0 -0
- package/src/lib/components/marketplace/marketplace.component.spec.ts +23 -0
- package/src/lib/components/marketplace/marketplace.component.ts +73 -0
- package/src/lib/components/metadata/metadata.component.html +62 -0
- package/src/lib/components/metadata/metadata.component.sass +0 -0
- package/src/lib/components/metadata/metadata.component.spec.ts +25 -0
- package/src/lib/components/metadata/metadata.component.ts +67 -0
- package/src/lib/components/notification-groups/edit-notification-group/edit-notification-group.component.html +82 -0
- package/src/lib/components/notification-groups/edit-notification-group/edit-notification-group.component.sass +21 -0
- package/src/lib/components/notification-groups/edit-notification-group/edit-notification-group.component.spec.ts +25 -0
- package/src/lib/components/notification-groups/edit-notification-group/edit-notification-group.component.ts +123 -0
- package/src/lib/components/notification-groups/notification-groups.component.html +125 -0
- package/src/lib/components/notification-groups/notification-groups.component.sass +4 -0
- package/src/lib/components/notification-groups/notification-groups.component.spec.ts +25 -0
- package/src/lib/components/notification-groups/notification-groups.component.ts +98 -0
- package/src/lib/components/project-picker/project-picker.component.html +167 -0
- package/src/lib/components/project-picker/project-picker.component.sass +1 -0
- package/src/lib/components/project-picker/project-picker.component.spec.ts +25 -0
- package/src/lib/components/project-picker/project-picker.component.ts +138 -0
- package/src/lib/components/project-settings/project-link-selection/project-link-selection.component.html +120 -0
- package/src/lib/components/project-settings/project-link-selection/project-link-selection.component.sass +0 -0
- package/src/lib/components/project-settings/project-link-selection/project-link-selection.component.spec.ts +23 -0
- package/src/lib/components/project-settings/project-link-selection/project-link-selection.component.ts +161 -0
- package/src/lib/components/project-settings/project-settings.component.html +353 -0
- package/src/lib/components/project-settings/project-settings.component.sass +0 -0
- package/src/lib/components/project-settings/project-settings.component.spec.ts +23 -0
- package/src/lib/components/project-settings/project-settings.component.ts +178 -0
- package/src/lib/components/query-caching/edit-query-cache/edit-query-cache.component.html +96 -0
- package/src/lib/components/query-caching/edit-query-cache/edit-query-cache.component.sass +0 -0
- package/src/lib/components/query-caching/edit-query-cache/edit-query-cache.component.spec.ts +23 -0
- package/src/lib/components/query-caching/edit-query-cache/edit-query-cache.component.ts +48 -0
- package/src/lib/components/query-caching/query-caching.component.html +122 -0
- package/src/lib/components/query-caching/query-caching.component.sass +0 -0
- package/src/lib/components/query-caching/query-caching.component.spec.ts +23 -0
- package/src/lib/components/query-caching/query-caching.component.ts +184 -0
- package/src/lib/components/shared-with-me/shared-with-me.component.html +115 -0
- package/src/lib/components/shared-with-me/shared-with-me.component.sass +0 -0
- package/src/lib/components/shared-with-me/shared-with-me.component.spec.ts +23 -0
- package/src/lib/components/shared-with-me/shared-with-me.component.ts +123 -0
- package/src/lib/components/snapshots/snapshots.component.html +408 -0
- package/src/lib/components/snapshots/snapshots.component.sass +4 -0
- package/src/lib/components/snapshots/snapshots.component.spec.ts +25 -0
- package/src/lib/components/snapshots/snapshots.component.ts +286 -0
- package/src/lib/components/tag-picker/tag-picker.component.html +155 -0
- package/src/lib/components/tag-picker/tag-picker.component.sass +2 -0
- package/src/lib/components/tag-picker/tag-picker.component.spec.ts +25 -0
- package/src/lib/components/tag-picker/tag-picker.component.ts +82 -0
- package/src/lib/components/task-time-periods/task-time-periods.component.html +93 -0
- package/src/lib/components/task-time-periods/task-time-periods.component.sass +7 -0
- package/src/lib/components/task-time-periods/task-time-periods.component.spec.ts +25 -0
- package/src/lib/components/task-time-periods/task-time-periods.component.ts +50 -0
- package/src/lib/components/whitelisted-sql-functions/whitelisted-sql-functions.component.html +111 -0
- package/src/lib/components/whitelisted-sql-functions/whitelisted-sql-functions.component.sass +0 -0
- package/src/lib/components/whitelisted-sql-functions/whitelisted-sql-functions.component.spec.ts +25 -0
- package/src/lib/components/whitelisted-sql-functions/whitelisted-sql-functions.component.ts +38 -0
- package/src/lib/guards/dashboard-changes.guard.spec.ts +16 -0
- package/src/lib/guards/dashboard-changes.guard.ts +27 -0
- package/src/lib/ng-kinintel.module.ts +272 -0
- package/src/lib/objects/action-event.spec.ts +7 -0
- package/src/lib/objects/action-event.ts +27 -0
- package/src/lib/services/alert.service.spec.ts +16 -0
- package/src/lib/services/alert.service.ts +49 -0
- package/src/lib/services/dashboard.service.spec.ts +16 -0
- package/src/lib/services/dashboard.service.ts +79 -0
- package/src/lib/services/data-processor.service.spec.ts +16 -0
- package/src/lib/services/data-processor.service.ts +61 -0
- package/src/lib/services/data-search.service.spec.ts +16 -0
- package/src/lib/services/data-search.service.ts +31 -0
- package/src/lib/services/dataset.service.spec.ts +16 -0
- package/src/lib/services/dataset.service.ts +234 -0
- package/src/lib/services/datasource.service.spec.ts +16 -0
- package/src/lib/services/datasource.service.ts +116 -0
- package/src/lib/services/external.service.spec.ts +16 -0
- package/src/lib/services/external.service.ts +29 -0
- package/src/lib/services/feed.service.spec.ts +16 -0
- package/src/lib/services/feed.service.ts +48 -0
- package/src/lib/services/notification.service.spec.ts +16 -0
- package/src/lib/services/notification.service.ts +38 -0
- package/src/lib/services/project.service.spec.ts +16 -0
- package/src/lib/services/project.service.ts +146 -0
- package/src/lib/services/tag.service.spec.ts +16 -0
- package/src/lib/services/tag.service.ts +61 -0
- package/src/public-api.ts +46 -0
- package/src/test.ts +17 -0
- package/tsconfig.lib.json +24 -0
- package/tsconfig.lib.prod.json +10 -0
- package/tsconfig.spec.json +17 -0
- package/tslint.json +17 -0
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import {Injectable} from '@angular/core';
|
|
2
|
+
import {KinintelModuleConfig} from '../ng-kinintel.module';
|
|
3
|
+
import {HttpClient} from '@angular/common/http';
|
|
4
|
+
import {ProjectService} from './project.service';
|
|
5
|
+
|
|
6
|
+
@Injectable({
|
|
7
|
+
providedIn: 'root'
|
|
8
|
+
})
|
|
9
|
+
export class AlertService {
|
|
10
|
+
|
|
11
|
+
constructor(private config: KinintelModuleConfig,
|
|
12
|
+
private http: HttpClient,
|
|
13
|
+
private projectService: ProjectService) {
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
public getAlertGroup(id) {
|
|
17
|
+
return this.http.get(`${this.config.backendURL}/alert/group/${id}`)
|
|
18
|
+
.toPromise();
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
public getAlertGroups(filterString = '', limit = '10', offset = '0', accountId = '') {
|
|
22
|
+
const projectKey = this.projectService.activeProject.getValue() ? this.projectService.activeProject.getValue().projectKey : '';
|
|
23
|
+
|
|
24
|
+
return this.http.get(this.config.backendURL + '/alert/group', {
|
|
25
|
+
params: {
|
|
26
|
+
filterString, limit, offset, projectKey, accountId
|
|
27
|
+
}
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
public saveAlertGroup(alertGroup) {
|
|
32
|
+
const projectKey = this.projectService.activeProject.getValue() ? this.projectService.activeProject.getValue().projectKey : '';
|
|
33
|
+
return this.http.post(`${this.config.backendURL}/alert/group?projectKey=${projectKey}`, alertGroup)
|
|
34
|
+
.toPromise();
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
public deleteAlertGroup(id) {
|
|
38
|
+
return this.http.delete(`${this.config.backendURL}/alert/group/${id}`)
|
|
39
|
+
.toPromise();
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
public processAlertsForDashboardDatasetInstance(dashboardDataSetInstance, index = null) {
|
|
43
|
+
let url = this.config.backendURL + '/alert/dashboardDataSetInstance';
|
|
44
|
+
if (index !== null) {
|
|
45
|
+
url = url + '?alertIndex=' + index;
|
|
46
|
+
}
|
|
47
|
+
return this.http.post(url, dashboardDataSetInstance).toPromise();
|
|
48
|
+
}
|
|
49
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { TestBed } from '@angular/core/testing';
|
|
2
|
+
|
|
3
|
+
import { DashboardService } from './dashboard.service';
|
|
4
|
+
|
|
5
|
+
describe('DashboardService', () => {
|
|
6
|
+
let service: DashboardService;
|
|
7
|
+
|
|
8
|
+
beforeEach(() => {
|
|
9
|
+
TestBed.configureTestingModule({});
|
|
10
|
+
service = TestBed.inject(DashboardService);
|
|
11
|
+
});
|
|
12
|
+
|
|
13
|
+
it('should be created', () => {
|
|
14
|
+
expect(service).toBeTruthy();
|
|
15
|
+
});
|
|
16
|
+
});
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import {Injectable} from '@angular/core';
|
|
2
|
+
import {HttpClient} from '@angular/common/http';
|
|
3
|
+
import {TagService} from './tag.service';
|
|
4
|
+
import {ProjectService} from './project.service';
|
|
5
|
+
import {KinintelModuleConfig} from '../ng-kinintel.module';
|
|
6
|
+
import {BehaviorSubject} from 'rxjs';
|
|
7
|
+
|
|
8
|
+
@Injectable({
|
|
9
|
+
providedIn: 'root'
|
|
10
|
+
})
|
|
11
|
+
export class DashboardService {
|
|
12
|
+
|
|
13
|
+
public dashboardItems = new BehaviorSubject({});
|
|
14
|
+
public dirtyDashboard = new BehaviorSubject(false);
|
|
15
|
+
|
|
16
|
+
constructor(private config: KinintelModuleConfig,
|
|
17
|
+
private http: HttpClient,
|
|
18
|
+
private tagService: TagService,
|
|
19
|
+
private projectService: ProjectService) {
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
public getDashboard(id) {
|
|
23
|
+
return this.http.get(`${this.config.backendURL}/dashboard/${id}`).toPromise();
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
public copyDashboard(id) {
|
|
27
|
+
return this.http.get(`${this.config.backendURL}/dashboard/copy/${id}`).toPromise();
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
public extendDashboard(id) {
|
|
31
|
+
return this.http.get(`${this.config.backendURL}/dashboard/extend/${id}`).toPromise();
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
public getDashboards(filterString = '', limit = '10', offset = '0', accountId: any = '', categories = [], tags?) {
|
|
35
|
+
tags = tags || (this.tagService.activeTag.getValue() ? this.tagService.activeTag.getValue().key : 'NONE');
|
|
36
|
+
const projectKey = this.projectService.activeProject.getValue() ? this.projectService.activeProject.getValue().projectKey : '';
|
|
37
|
+
const suffix = this.config.backendURL.indexOf('/account') && accountId === null ? '/shared/all' : '';
|
|
38
|
+
return this.http.get(this.config.backendURL + '/dashboard' + suffix, {
|
|
39
|
+
params: {
|
|
40
|
+
filterString, limit, offset, tags, projectKey, accountId, categories: categories.join(',')
|
|
41
|
+
}
|
|
42
|
+
});
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
public saveDashboard(dashboardSummary, accountId = null) {
|
|
46
|
+
const tags = this.tagService.activeTag.getValue() || null;
|
|
47
|
+
const projectKey = this.projectService.activeProject.getValue() ? this.projectService.activeProject.getValue().projectKey : '';
|
|
48
|
+
|
|
49
|
+
if (tags) {
|
|
50
|
+
dashboardSummary.tags = [tags];
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
const url = this.config.backendURL + '/dashboard?projectKey=' + projectKey + '&accountId=' + accountId;
|
|
54
|
+
|
|
55
|
+
return this.http.post(url, dashboardSummary).toPromise();
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
public updateMetadata(dashboardSearchResult) {
|
|
59
|
+
return this.http.patch(this.config.backendURL + '/dashboard', dashboardSearchResult).toPromise();
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
public getDashboardCategories(shared?) {
|
|
63
|
+
const tag = this.tagService.activeTag.getValue() || null;
|
|
64
|
+
const projectKey = this.projectService.activeProject.getValue() ? this.projectService.activeProject.getValue().projectKey : '';
|
|
65
|
+
let tags = '';
|
|
66
|
+
|
|
67
|
+
if (tag) {
|
|
68
|
+
tags = tag.key;
|
|
69
|
+
}
|
|
70
|
+
const url = shared ? '/dashboard/shared/inUseCategories' : '/dashboard/inUseCategories';
|
|
71
|
+
return this.http.get(this.config.backendURL + url, {
|
|
72
|
+
params: {projectKey, tags}
|
|
73
|
+
}).toPromise();
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
public removeDashboard(id) {
|
|
77
|
+
return this.http.delete(this.config.backendURL + '/dashboard/' + id).toPromise();
|
|
78
|
+
}
|
|
79
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { TestBed } from '@angular/core/testing';
|
|
2
|
+
|
|
3
|
+
import { DataProcessorService } from './data-processor.service';
|
|
4
|
+
|
|
5
|
+
describe('DataProcessorService', () => {
|
|
6
|
+
let service: DataProcessorService;
|
|
7
|
+
|
|
8
|
+
beforeEach(() => {
|
|
9
|
+
TestBed.configureTestingModule({});
|
|
10
|
+
service = TestBed.inject(DataProcessorService);
|
|
11
|
+
});
|
|
12
|
+
|
|
13
|
+
it('should be created', () => {
|
|
14
|
+
expect(service).toBeTruthy();
|
|
15
|
+
});
|
|
16
|
+
});
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import {Injectable} from '@angular/core';
|
|
2
|
+
import {KinintelModuleConfig} from '../../lib/ng-kinintel.module';
|
|
3
|
+
import {HttpClient} from '@angular/common/http';
|
|
4
|
+
import {ProjectService} from '../services/project.service';
|
|
5
|
+
import * as lodash from 'lodash';
|
|
6
|
+
const _ = lodash.default;
|
|
7
|
+
|
|
8
|
+
@Injectable({
|
|
9
|
+
providedIn: 'root'
|
|
10
|
+
})
|
|
11
|
+
export class DataProcessorService {
|
|
12
|
+
|
|
13
|
+
constructor(private config: KinintelModuleConfig,
|
|
14
|
+
private http: HttpClient,
|
|
15
|
+
private projectService: ProjectService) {
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
public filterProcessorsByType(type: string = '', searchTerm = '', limit = '10', offset = '0', tags?) {
|
|
20
|
+
const projectKey = this.projectService.activeProject.getValue() ? this.projectService.activeProject.getValue().projectKey : '';
|
|
21
|
+
|
|
22
|
+
return this.http.get(this.config.backendURL + '/dataprocessor/type/' + type, {
|
|
23
|
+
params: _.omitBy({searchTerm, projectKey, limit, offset}, _.isNil)
|
|
24
|
+
});
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
public getProcessor(key: string) {
|
|
28
|
+
return this.http.get(this.config.backendURL + '/dataprocessor/' + key)
|
|
29
|
+
.toPromise();
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
public filterProcessorsByRelatedItem(type: string = '', relatedType = '', itemId: number, promise = true): any {
|
|
33
|
+
const request = this.http.get(this.config.backendURL + '/dataprocessor/relatedobject/' + type + '/' + relatedType + '/' + itemId);
|
|
34
|
+
return promise ? request.toPromise() : request;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
public saveProcessor(processorSummary, autoStart = false) {
|
|
38
|
+
const projectKey = this.projectService.activeProject.getValue() ? this.projectService.activeProject.getValue().projectKey : '';
|
|
39
|
+
|
|
40
|
+
let url = this.config.backendURL + '/dataprocessor?projectKey=' + projectKey;
|
|
41
|
+
|
|
42
|
+
if (autoStart) {
|
|
43
|
+
url += '&autoStart=true';
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
return this.http.post(url, processorSummary).toPromise();
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
public removeProcessor(processorKey) {
|
|
50
|
+
return this.http.delete(this.config.backendURL + '/dataprocessor',
|
|
51
|
+
{body: JSON.stringify(processorKey)})
|
|
52
|
+
.toPromise();
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
public triggerProcessor(processorKey) {
|
|
56
|
+
return this.http.patch(this.config.backendURL + '/dataprocessor/' + processorKey, null)
|
|
57
|
+
.toPromise();
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
|
|
61
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { TestBed } from '@angular/core/testing';
|
|
2
|
+
|
|
3
|
+
import { DataSearchService } from './data-search.service';
|
|
4
|
+
|
|
5
|
+
describe('DataSearchService', () => {
|
|
6
|
+
let service: DataSearchService;
|
|
7
|
+
|
|
8
|
+
beforeEach(() => {
|
|
9
|
+
TestBed.configureTestingModule({});
|
|
10
|
+
service = TestBed.inject(DataSearchService);
|
|
11
|
+
});
|
|
12
|
+
|
|
13
|
+
it('should be created', () => {
|
|
14
|
+
expect(service).toBeTruthy();
|
|
15
|
+
});
|
|
16
|
+
});
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import {Injectable} from '@angular/core';
|
|
2
|
+
import {KinintelModuleConfig} from '../ng-kinintel.module';
|
|
3
|
+
import {HttpClient} from '@angular/common/http';
|
|
4
|
+
import {ProjectService} from './project.service';
|
|
5
|
+
|
|
6
|
+
@Injectable({
|
|
7
|
+
providedIn: 'root'
|
|
8
|
+
})
|
|
9
|
+
export class DataSearchService {
|
|
10
|
+
|
|
11
|
+
constructor(private config: KinintelModuleConfig,
|
|
12
|
+
private http: HttpClient,
|
|
13
|
+
private projectService: ProjectService) {
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
public searchForDataItems(filters: {}, limit = 100, offset = 0) {
|
|
17
|
+
const projectKey = this.projectService.activeProject.getValue() ? this.projectService.activeProject.getValue().projectKey : '';
|
|
18
|
+
|
|
19
|
+
return this.http.post(this.config.backendURL + '/datasearch', filters, {
|
|
20
|
+
params: {offset, limit, projectKey}
|
|
21
|
+
});
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
public getMatchingDataItemTypesForSearchTerm(searchTerm = '') {
|
|
25
|
+
const projectKey = this.projectService.activeProject.getValue() ? this.projectService.activeProject.getValue().projectKey : '';
|
|
26
|
+
|
|
27
|
+
return this.http.get(this.config.backendURL + '/datasearch/types', {
|
|
28
|
+
params: {searchTerm, projectKey}
|
|
29
|
+
}).toPromise();
|
|
30
|
+
}
|
|
31
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { TestBed } from '@angular/core/testing';
|
|
2
|
+
|
|
3
|
+
import { DatasetService } from './dataset.service';
|
|
4
|
+
|
|
5
|
+
describe('DatasetService', () => {
|
|
6
|
+
let service: DatasetService;
|
|
7
|
+
|
|
8
|
+
beforeEach(() => {
|
|
9
|
+
TestBed.configureTestingModule({});
|
|
10
|
+
service = TestBed.inject(DatasetService);
|
|
11
|
+
});
|
|
12
|
+
|
|
13
|
+
it('should be created', () => {
|
|
14
|
+
expect(service).toBeTruthy();
|
|
15
|
+
});
|
|
16
|
+
});
|
|
@@ -0,0 +1,234 @@
|
|
|
1
|
+
import {Injectable} from '@angular/core';
|
|
2
|
+
import {HttpClient} from '@angular/common/http';
|
|
3
|
+
import {TagService} from './tag.service';
|
|
4
|
+
import {ProjectService} from './project.service';
|
|
5
|
+
import {KinintelModuleConfig} from '../ng-kinintel.module';
|
|
6
|
+
import * as lodash from 'lodash';
|
|
7
|
+
|
|
8
|
+
const _ = lodash.default;
|
|
9
|
+
import {map, switchMap} from 'rxjs/operators';
|
|
10
|
+
import {interval} from 'rxjs';
|
|
11
|
+
|
|
12
|
+
@Injectable({
|
|
13
|
+
providedIn: 'root'
|
|
14
|
+
})
|
|
15
|
+
export class DatasetService {
|
|
16
|
+
|
|
17
|
+
constructor(private config: KinintelModuleConfig,
|
|
18
|
+
private http: HttpClient,
|
|
19
|
+
private tagService: TagService,
|
|
20
|
+
private projectService: ProjectService) {
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
public getDatasets(filterString = '', limit = '10', offset = '0', accountId = '', type = '', categories = [], tags?) {
|
|
24
|
+
tags = tags || (this.tagService.activeTag.getValue() ? this.tagService.activeTag.getValue().key : 'NONE');
|
|
25
|
+
const projectKey = this.projectService.activeProject.getValue() ? this.projectService.activeProject.getValue().projectKey : '';
|
|
26
|
+
const suffix = this.config.backendURL.indexOf('/account') && accountId === null ? '/shared/all' : '';
|
|
27
|
+
return this.http.get(this.config.backendURL + '/dataset' + suffix, {
|
|
28
|
+
params: {
|
|
29
|
+
filterString, limit, offset, tags, projectKey, accountId, type, categories: categories.join(',')
|
|
30
|
+
}
|
|
31
|
+
});
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
* Get account shared datasets
|
|
37
|
+
*
|
|
38
|
+
* @param filterString
|
|
39
|
+
* @param limit
|
|
40
|
+
* @param offset
|
|
41
|
+
*/
|
|
42
|
+
public getAccountSharedDatasets(filterString = '', limit = 10, offset = 0) {
|
|
43
|
+
|
|
44
|
+
return this.http.get(this.config.backendURL + '/dataset/shared', {
|
|
45
|
+
params: {
|
|
46
|
+
filterString, limit, offset
|
|
47
|
+
}
|
|
48
|
+
});
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
public getDataset(id) {
|
|
53
|
+
return this.http.get(`${this.config.backendURL}/dataset/${id}`).toPromise()
|
|
54
|
+
.then((dataset: any) => {
|
|
55
|
+
if (dataset.readOnly) {
|
|
56
|
+
dataset.id = dataset.title = null;
|
|
57
|
+
return dataset;
|
|
58
|
+
}
|
|
59
|
+
return dataset;
|
|
60
|
+
});
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
public getExtendedDataset(id) {
|
|
64
|
+
return this.http.get(`${this.config.backendURL}/dataset/extended/${id}`).toPromise();
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
public saveDataset(datasetInstanceSummary, accountId = null): Promise<number> {
|
|
68
|
+
const projectKey = this.projectService.activeProject.getValue() ? this.projectService.activeProject.getValue().projectKey : null;
|
|
69
|
+
const activeTag = this.tagService.activeTag.getValue() || null;
|
|
70
|
+
if (activeTag) {
|
|
71
|
+
datasetInstanceSummary.tags = [activeTag];
|
|
72
|
+
}
|
|
73
|
+
return this.http.post(this.config.backendURL + '/dataset/' + (projectKey ? '?projectKey=' + projectKey + '&' : '?') + 'accountId=' + accountId,
|
|
74
|
+
datasetInstanceSummary).toPromise().then((id: number) => {
|
|
75
|
+
return id;
|
|
76
|
+
});
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
public removeDataset(id) {
|
|
80
|
+
return this.http.delete(this.config.backendURL + '/dataset/' + id).toPromise();
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
public getEvaluatedParameters(datasetInstanceSummary) {
|
|
84
|
+
return this.http.post(this.config.backendURL + '/dataset/parameters', datasetInstanceSummary)
|
|
85
|
+
.toPromise().catch(err => []);
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
public evaluateDataset(datasetInstanceSummary, offset = '0', limit = '25') {
|
|
89
|
+
const projectKey = this.projectService.activeProject.getValue() ? this.projectService.activeProject.getValue().projectKey : '';
|
|
90
|
+
return this.http.post(this.config.backendURL + `/dataset/evaluate?limit=${limit}&offset=${offset}&projectKey=${projectKey}`,
|
|
91
|
+
datasetInstanceSummary).toPromise();
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
public evaluateDatasetWithTracking(datasetInstanceSummary, offset = '0', limit = '25', trackingKey = '') {
|
|
95
|
+
const projectKey = this.projectService.activeProject.getValue() ? this.projectService.activeProject.getValue().projectKey : '';
|
|
96
|
+
return this.http.post(this.config.backendURL + `/dataset/evaluate?limit=${limit}&offset=${offset}&trackingKey=${trackingKey}&projectKey=${projectKey}`,
|
|
97
|
+
datasetInstanceSummary);
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
public getDataTrackingResults(trackingKey) {
|
|
101
|
+
return interval(2000)
|
|
102
|
+
.pipe(
|
|
103
|
+
switchMap(() =>
|
|
104
|
+
this.http.get(this.config.backendURL + `/dataset/results/${trackingKey}`).pipe(
|
|
105
|
+
map(result => {
|
|
106
|
+
return result;
|
|
107
|
+
}))
|
|
108
|
+
)
|
|
109
|
+
);
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
public exportDataset(exportDataset) {
|
|
113
|
+
return this.http.post(this.config.backendURL + `/dataset/export`, exportDataset,
|
|
114
|
+
{responseType: 'blob'})
|
|
115
|
+
.toPromise();
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
|
|
119
|
+
/**
|
|
120
|
+
* Set shared access for a dataset instance for the logged in account
|
|
121
|
+
*
|
|
122
|
+
* @param datasetInstanceId
|
|
123
|
+
* @param shared
|
|
124
|
+
*/
|
|
125
|
+
public async setSharedAccessForDatasetInstanceForLoggedInAccount(datasetInstanceId, shared) {
|
|
126
|
+
return this.http.post(this.config.backendURL + `/dataset/shareWithCurrentAccount/${datasetInstanceId}/${shared}`, {}).toPromise();
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
|
|
130
|
+
public async getSharedAccessGroupsForDatasetInstance(datasetInstanceId) {
|
|
131
|
+
return this.http.get(this.config.backendURL + `/dataset/sharedAccessGroups/${datasetInstanceId}`).toPromise();
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
public async revokeAccessToGroupForDatasetInstance(datasetInstanceId, accessGroup) {
|
|
135
|
+
return this.http.delete(this.config.backendURL + `/dataset/sharedAccessGroups/${datasetInstanceId}`,
|
|
136
|
+
{body: JSON.stringify(accessGroup)}).toPromise();
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
|
|
140
|
+
public async getInvitedAccessGroupsForDatasetInstance(datasetInstanceId) {
|
|
141
|
+
return this.http.get(this.config.backendURL + `/dataset/invitedAccessGroups/${datasetInstanceId}`).toPromise();
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
|
|
145
|
+
public async inviteAccountToShareDatasetInstance(datasetInstanceId, accountExternalIdentifier, expiryDate = null) {
|
|
146
|
+
let path = `/dataset/invitedAccessGroups/${datasetInstanceId}/${accountExternalIdentifier}`;
|
|
147
|
+
if (expiryDate) path += '?expiryDate=' + expiryDate;
|
|
148
|
+
return this.http.get(this.config.backendURL + path).toPromise();
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
|
|
152
|
+
public async cancelInvitationForAccessGroupForDatasetInstance(datasetInstanceId, accessGroup) {
|
|
153
|
+
return this.http.delete(this.config.backendURL + `/dataset/invitedAccessGroups/${datasetInstanceId}`,
|
|
154
|
+
{body: JSON.stringify(accessGroup)}).toPromise();
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
|
|
158
|
+
// Get a sharable item for an invitation
|
|
159
|
+
public async getSharableItemForInvitation(invitationCode) {
|
|
160
|
+
return this.http.get(this.config.guestURL + `/sharing/${invitationCode}`).toPromise();
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
|
|
164
|
+
// Accept a sharing invitation using an invitation code.
|
|
165
|
+
public async acceptSharingInvitation(invitationCode) {
|
|
166
|
+
this.http.post(this.config.guestURL + `/sharing/${invitationCode}`, {}).toPromise();
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
// Accept a sharing invitation using an invitation code.
|
|
170
|
+
public async cancelSharingInvitation(invitationCode) {
|
|
171
|
+
this.http.delete(this.config.guestURL + `/sharing/${invitationCode}`).toPromise();
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
|
|
175
|
+
public listSnapshotProfiles(filterString = '', limit = '10', offset = '0', tags?) {
|
|
176
|
+
const projectKey = this.projectService.activeProject.getValue() ? this.projectService.activeProject.getValue().projectKey : '';
|
|
177
|
+
const activeTag = tags || (this.tagService.activeTag.getValue() ? this.tagService.activeTag.getValue().key : '');
|
|
178
|
+
|
|
179
|
+
return this.http.get(this.config.backendURL + '/dataset/snapshotprofile', {
|
|
180
|
+
params: _.omitBy({filterString, limit, offset, tags: activeTag, projectKey}, _.isNil)
|
|
181
|
+
});
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
public getSnapshotProfile(id: number) {
|
|
185
|
+
return this.http.get(this.config.backendURL + '/dataset/snapshotprofile/' + id)
|
|
186
|
+
.toPromise();
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
public getSnapshotProfilesForDataset(datasetInstanceId: number) {
|
|
190
|
+
return this.http.get(this.config.backendURL + '/dataset/snapshotprofile/dataset/' + datasetInstanceId)
|
|
191
|
+
.toPromise();
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
public saveSnapshotProfile(snapshotProfileSummary, datasetInstanceId) {
|
|
195
|
+
return this.http.post(this.config.backendURL + '/dataset/snapshotprofile/' + datasetInstanceId,
|
|
196
|
+
snapshotProfileSummary)
|
|
197
|
+
.toPromise();
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
public removeSnapshotProfile(snapshotProfileId, datasetInstanceId) {
|
|
201
|
+
return this.http.delete(this.config.backendURL + '/dataset/snapshotprofile/' + datasetInstanceId,
|
|
202
|
+
{params: {snapshotProfileId}})
|
|
203
|
+
.toPromise();
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
public triggerSnapshot(snapshotProfileId, datasetInstanceId) {
|
|
207
|
+
return this.http.patch(this.config.backendURL + '/dataset/snapshotprofile/' + datasetInstanceId,
|
|
208
|
+
snapshotProfileId)
|
|
209
|
+
.toPromise();
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
public updateMetadata(dashboardSearchResult) {
|
|
213
|
+
return this.http.patch(this.config.backendURL + '/dataset', dashboardSearchResult).toPromise();
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
public getDatasetCategories(shared?) {
|
|
217
|
+
const tag = this.tagService.activeTag.getValue() || null;
|
|
218
|
+
const projectKey = this.projectService.activeProject.getValue() ? this.projectService.activeProject.getValue().projectKey : '';
|
|
219
|
+
let tags = '';
|
|
220
|
+
|
|
221
|
+
if (tag) {
|
|
222
|
+
tags = tag.key;
|
|
223
|
+
}
|
|
224
|
+
const url = shared ? '/dataset/shared/inUseCategories' : '/dataset/inUseCategories';
|
|
225
|
+
return this.http.get(this.config.backendURL + url, {
|
|
226
|
+
params: {projectKey, tags}
|
|
227
|
+
}).toPromise();
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
public getWhiteListedSQLFunctions() {
|
|
231
|
+
return this.http.get(this.config.backendURL + '/dataset/whitelistedsqlfunctions')
|
|
232
|
+
.toPromise();
|
|
233
|
+
}
|
|
234
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { TestBed } from '@angular/core/testing';
|
|
2
|
+
|
|
3
|
+
import { DatasourceService } from './datasource.service';
|
|
4
|
+
|
|
5
|
+
describe('DatasourceService', () => {
|
|
6
|
+
let service: DatasourceService;
|
|
7
|
+
|
|
8
|
+
beforeEach(() => {
|
|
9
|
+
TestBed.configureTestingModule({});
|
|
10
|
+
service = TestBed.inject(DatasourceService);
|
|
11
|
+
});
|
|
12
|
+
|
|
13
|
+
it('should be created', () => {
|
|
14
|
+
expect(service).toBeTruthy();
|
|
15
|
+
});
|
|
16
|
+
});
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
import {Injectable} from '@angular/core';
|
|
2
|
+
import {HttpClient, HttpHeaders} from '@angular/common/http';
|
|
3
|
+
import {KinintelModuleConfig} from '../ng-kinintel.module';
|
|
4
|
+
import {ProjectService} from '../services/project.service';
|
|
5
|
+
import {interval, of} from 'rxjs';
|
|
6
|
+
import {catchError, map, switchMap} from 'rxjs/operators';
|
|
7
|
+
|
|
8
|
+
export interface DatasourceUpdate {
|
|
9
|
+
title: string;
|
|
10
|
+
instanceImportKey?: string;
|
|
11
|
+
fields: any[];
|
|
12
|
+
adds: any[];
|
|
13
|
+
updates: any[];
|
|
14
|
+
deletes: any[];
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
@Injectable({
|
|
18
|
+
providedIn: 'root'
|
|
19
|
+
})
|
|
20
|
+
export class DatasourceService {
|
|
21
|
+
|
|
22
|
+
constructor(private config: KinintelModuleConfig,
|
|
23
|
+
private http: HttpClient,
|
|
24
|
+
private projectService: ProjectService) {
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
public createCustomDatasource(datasourceUpdate: DatasourceUpdate): Promise<any> {
|
|
28
|
+
const projectKey = this.projectService.activeProject.getValue() ? this.projectService.activeProject.getValue().projectKey : '';
|
|
29
|
+
return this.http.post(this.config.backendURL + '/datasource/custom?projectKey=' + projectKey, datasourceUpdate)
|
|
30
|
+
.toPromise();
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
public updateCustomDatasource(datasourceInstanceKey, datasourceUpdate: DatasourceUpdate | any) {
|
|
34
|
+
return this.http.put(this.config.backendURL + '/datasource/custom/' + datasourceInstanceKey, datasourceUpdate)
|
|
35
|
+
.toPromise();
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
public getDatasources(filterString = '', limit = '10', offset = '0', noProject = false) {
|
|
39
|
+
const project = this.projectService.activeProject.getValue() ? this.projectService.activeProject.getValue().projectKey : '';
|
|
40
|
+
const projectKey = noProject ? '' : project;
|
|
41
|
+
return this.http.get(this.config.backendURL + '/datasource?projectKey=' + projectKey, {
|
|
42
|
+
params: {
|
|
43
|
+
filterString, limit, offset
|
|
44
|
+
}
|
|
45
|
+
});
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
public getDatasource(key) {
|
|
49
|
+
return this.http.get(this.config.backendURL + '/datasource/' + key).toPromise();
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
public deleteDatasource(key) {
|
|
53
|
+
return this.http.delete(this.config.backendURL + '/datasource/' + key).toPromise();
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
public deleteFromDatasource(datasourceInstanceKey: string, filter: any = []) {
|
|
57
|
+
return this.http.delete(this.config.backendURL + '/datasource/custom/' + datasourceInstanceKey, {
|
|
58
|
+
body: filter
|
|
59
|
+
}).toPromise();
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
public getEvaluatedParameters(evaluatedDatasource) {
|
|
63
|
+
return this.http.get(this.config.backendURL + '/datasource/parameters/' +
|
|
64
|
+
(evaluatedDatasource.key || evaluatedDatasource.datasourceInstanceKey)).toPromise();
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
public evaluateDatasource(evaluatedDatasource) {
|
|
68
|
+
return this.http.post(this.config.backendURL + '/datasource/evaluate', evaluatedDatasource).toPromise();
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
public exportData(evaluatedDatasource) {
|
|
72
|
+
return this.http.post(this.config.backendURL + '/datasource/parameters/' +
|
|
73
|
+
(evaluatedDatasource.key || evaluatedDatasource.datasourceInstanceKey),
|
|
74
|
+
{transformationInstances: evaluatedDatasource.transformationInstances}).toPromise();
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
public createDocumentDatasource(config) {
|
|
78
|
+
const projectKey = this.projectService.activeProject.getValue() ? this.projectService.activeProject.getValue().projectKey : '';
|
|
79
|
+
return this.http.post(this.config.backendURL + '/datasource/document?projectKey=' + projectKey,
|
|
80
|
+
config)
|
|
81
|
+
.toPromise();
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
public updateDatasourceInstance(key, config) {
|
|
85
|
+
return this.http.put(this.config.backendURL + '/datasource/' + key, config).toPromise();
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
public updateCustomDatasourceInstance(key, config) {
|
|
89
|
+
return this.http.patch(this.config.backendURL + '/datasource/custom/' + key, config).toPromise();
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
public uploadDatasourceDocuments(key, uploadedFiles, trackingKey) {
|
|
93
|
+
const HttpUploadOptions = {
|
|
94
|
+
headers: new HttpHeaders({ 'Content-Type': 'file' })
|
|
95
|
+
};
|
|
96
|
+
return this.http.post(this.config.backendURL + '/datasource/document/upload/' + key + '?trackingKey=' + trackingKey,
|
|
97
|
+
uploadedFiles, HttpUploadOptions).toPromise();
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
public getDataTrackingResults(trackingKey) {
|
|
101
|
+
return interval(2000)
|
|
102
|
+
.pipe(
|
|
103
|
+
switchMap(() =>
|
|
104
|
+
this.http.get(this.config.backendURL + `/datasource/document/upload/tracking`, {
|
|
105
|
+
params: {trackingKey}
|
|
106
|
+
}).pipe(
|
|
107
|
+
map(result => {
|
|
108
|
+
return result;
|
|
109
|
+
}),
|
|
110
|
+
catchError(err => {
|
|
111
|
+
return of(null);
|
|
112
|
+
}))
|
|
113
|
+
)
|
|
114
|
+
);
|
|
115
|
+
}
|
|
116
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { TestBed } from '@angular/core/testing';
|
|
2
|
+
|
|
3
|
+
import { ExternalService } from './external.service';
|
|
4
|
+
|
|
5
|
+
describe('ExternalService', () => {
|
|
6
|
+
let service: ExternalService;
|
|
7
|
+
|
|
8
|
+
beforeEach(() => {
|
|
9
|
+
TestBed.configureTestingModule({});
|
|
10
|
+
service = TestBed.inject(ExternalService);
|
|
11
|
+
});
|
|
12
|
+
|
|
13
|
+
it('should be created', () => {
|
|
14
|
+
expect(service).toBeTruthy();
|
|
15
|
+
});
|
|
16
|
+
});
|