@mongodb-js/compass-aggregations 9.1.1 → 9.3.0
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/dist/browser.js +1 -1
- package/dist/index.css +58 -250
- package/dist/index.js +22 -1
- package/dist/src/components/add-stage/add-stage.d.ts +17 -0
- package/dist/src/components/add-stage/add-stage.d.ts.map +1 -0
- package/dist/src/components/add-stage/index.d.ts +3 -0
- package/dist/src/components/add-stage/index.d.ts.map +1 -0
- package/dist/src/components/aggregations/aggregations.d.ts +11 -0
- package/dist/src/components/aggregations/aggregations.d.ts.map +1 -0
- package/dist/src/components/aggregations/index.d.ts +5 -0
- package/dist/src/components/aggregations/index.d.ts.map +1 -0
- package/dist/src/components/create-view-modal/create-view-modal.d.ts +63 -0
- package/dist/src/components/create-view-modal/create-view-modal.d.ts.map +1 -0
- package/dist/src/components/create-view-modal/index.d.ts +5 -0
- package/dist/src/components/create-view-modal/index.d.ts.map +1 -0
- package/dist/src/components/create-view-plugin.d.ts +14 -0
- package/dist/src/components/create-view-plugin.d.ts.map +1 -0
- package/dist/src/components/duplicate-view-modal/duplicate-view-modal.d.ts +57 -0
- package/dist/src/components/duplicate-view-modal/duplicate-view-modal.d.ts.map +1 -0
- package/dist/src/components/duplicate-view-modal/index.d.ts +5 -0
- package/dist/src/components/duplicate-view-modal/index.d.ts.map +1 -0
- package/dist/src/components/duplicate-view-plugin.d.ts +10 -0
- package/dist/src/components/duplicate-view-plugin.d.ts.map +1 -0
- package/dist/src/components/input/index.d.ts +3 -0
- package/dist/src/components/input/index.d.ts.map +1 -0
- package/dist/src/components/input/input.d.ts +25 -0
- package/dist/src/components/input/input.d.ts.map +1 -0
- package/dist/src/components/input-builder/index.d.ts +3 -0
- package/dist/src/components/input-builder/index.d.ts.map +1 -0
- package/dist/src/components/input-builder/input-builder.d.ts +9 -0
- package/dist/src/components/input-builder/input-builder.d.ts.map +1 -0
- package/dist/src/components/input-builder-toolbar/index.d.ts +3 -0
- package/dist/src/components/input-builder-toolbar/index.d.ts.map +1 -0
- package/dist/src/components/input-builder-toolbar/input-builder-toolbar.d.ts +16 -0
- package/dist/src/components/input-builder-toolbar/input-builder-toolbar.d.ts.map +1 -0
- package/dist/src/components/input-collapser/index.d.ts +3 -0
- package/dist/src/components/input-collapser/index.d.ts.map +1 -0
- package/dist/src/components/input-collapser/input-collapser.d.ts +14 -0
- package/dist/src/components/input-collapser/input-collapser.d.ts.map +1 -0
- package/dist/src/components/input-documents-count/index.d.ts +3 -0
- package/dist/src/components/input-documents-count/index.d.ts.map +1 -0
- package/dist/src/components/input-documents-count/input-documents-count.d.ts +13 -0
- package/dist/src/components/input-documents-count/input-documents-count.d.ts.map +1 -0
- package/dist/src/components/input-preview/index.d.ts +3 -0
- package/dist/src/components/input-preview/index.d.ts.map +1 -0
- package/dist/src/components/input-preview/input-preview.d.ts +15 -0
- package/dist/src/components/input-preview/input-preview.d.ts.map +1 -0
- package/dist/src/components/input-preview-toolbar/index.d.ts +3 -0
- package/dist/src/components/input-preview-toolbar/index.d.ts.map +1 -0
- package/dist/src/components/input-preview-toolbar/input-preview-toolbar.d.ts +7 -0
- package/dist/src/components/input-preview-toolbar/input-preview-toolbar.d.ts.map +1 -0
- package/dist/src/components/input-refresh/index.d.ts +3 -0
- package/dist/src/components/input-refresh/index.d.ts.map +1 -0
- package/dist/src/components/input-refresh/input-refresh.d.ts +13 -0
- package/dist/src/components/input-refresh/input-refresh.d.ts.map +1 -0
- package/dist/src/components/input-toolbar/index.d.ts +3 -0
- package/dist/src/components/input-toolbar/index.d.ts.map +1 -0
- package/dist/src/components/input-toolbar/input-toolbar.d.ts +16 -0
- package/dist/src/components/input-toolbar/input-toolbar.d.ts.map +1 -0
- package/dist/src/components/input-workspace/index.d.ts +3 -0
- package/dist/src/components/input-workspace/index.d.ts.map +1 -0
- package/dist/src/components/input-workspace/input-workspace.d.ts +16 -0
- package/dist/src/components/input-workspace/input-workspace.d.ts.map +1 -0
- package/dist/src/components/loading-overlay/index.d.ts +3 -0
- package/dist/src/components/loading-overlay/index.d.ts.map +1 -0
- package/dist/src/components/loading-overlay/loading-overlay.d.ts +13 -0
- package/dist/src/components/loading-overlay/loading-overlay.d.ts.map +1 -0
- package/dist/src/components/modify-source-banner/index.d.ts +3 -0
- package/dist/src/components/modify-source-banner/index.d.ts.map +1 -0
- package/dist/src/components/modify-source-banner/modify-source-banner.d.ts +9 -0
- package/dist/src/components/modify-source-banner/modify-source-banner.d.ts.map +1 -0
- package/dist/src/components/pipeline/index.d.ts +3 -0
- package/dist/src/components/pipeline/index.d.ts.map +1 -0
- package/dist/src/components/pipeline/modals/confirm-import-pipeline.d.ts +17 -0
- package/dist/src/components/pipeline/modals/confirm-import-pipeline.d.ts.map +1 -0
- package/dist/src/components/pipeline/modals/confirm-new-pipeline.d.ts +17 -0
- package/dist/src/components/pipeline/modals/confirm-new-pipeline.d.ts.map +1 -0
- package/dist/src/components/pipeline/modals/import-pipeline.d.ts +33 -0
- package/dist/src/components/pipeline/modals/import-pipeline.d.ts.map +1 -0
- package/dist/src/components/pipeline/pipeline.d.ts +57 -0
- package/dist/src/components/pipeline/pipeline.d.ts.map +1 -0
- package/dist/src/components/pipeline-builder-workspace/index.d.ts +3 -0
- package/dist/src/components/pipeline-builder-workspace/index.d.ts.map +1 -0
- package/dist/src/components/pipeline-builder-workspace/pipeline-as-text-workspace/index.d.ts +8 -0
- package/dist/src/components/pipeline-builder-workspace/pipeline-as-text-workspace/index.d.ts.map +1 -0
- package/dist/src/components/pipeline-builder-workspace/pipeline-as-text-workspace/pipeline-editor.d.ts +16 -0
- package/dist/src/components/pipeline-builder-workspace/pipeline-as-text-workspace/pipeline-editor.d.ts.map +1 -0
- package/dist/src/components/pipeline-builder-workspace/pipeline-as-text-workspace/pipeline-preview.d.ts +10 -0
- package/dist/src/components/pipeline-builder-workspace/pipeline-as-text-workspace/pipeline-preview.d.ts.map +1 -0
- package/dist/src/components/pipeline-builder-workspace/pipeline-builder-ui-workspace.d.ts +21 -0
- package/dist/src/components/pipeline-builder-workspace/pipeline-builder-ui-workspace.d.ts.map +1 -0
- package/dist/src/components/pipeline-builder-workspace/pipeline-builder-workspace.d.ts +9 -0
- package/dist/src/components/pipeline-builder-workspace/pipeline-builder-workspace.d.ts.map +1 -0
- package/dist/src/components/pipeline-explain/explain-indexes.d.ts +8 -0
- package/dist/src/components/pipeline-explain/explain-indexes.d.ts.map +1 -0
- package/dist/src/components/pipeline-explain/explain-query-performance.d.ts +10 -0
- package/dist/src/components/pipeline-explain/explain-query-performance.d.ts.map +1 -0
- package/dist/src/components/pipeline-explain/explain-results.d.ts +9 -0
- package/dist/src/components/pipeline-explain/explain-results.d.ts.map +1 -0
- package/dist/src/components/pipeline-explain/index.d.ts +14 -0
- package/dist/src/components/pipeline-explain/index.d.ts.map +1 -0
- package/dist/src/components/pipeline-results-workspace/index.d.ts +19 -0
- package/dist/src/components/pipeline-results-workspace/index.d.ts.map +1 -0
- package/dist/src/components/pipeline-results-workspace/pipeline-empty-results.d.ts +4 -0
- package/dist/src/components/pipeline-results-workspace/pipeline-empty-results.d.ts.map +1 -0
- package/dist/src/components/pipeline-results-workspace/pipeline-pagination-count.d.ts +10 -0
- package/dist/src/components/pipeline-results-workspace/pipeline-pagination-count.d.ts.map +1 -0
- package/dist/src/components/pipeline-results-workspace/pipeline-pagination.d.ts +19 -0
- package/dist/src/components/pipeline-results-workspace/pipeline-pagination.d.ts.map +1 -0
- package/dist/src/components/pipeline-results-workspace/pipeline-results-header.d.ts +11 -0
- package/dist/src/components/pipeline-results-workspace/pipeline-results-header.d.ts.map +1 -0
- package/dist/src/components/pipeline-results-workspace/pipeline-results-list.d.ts +9 -0
- package/dist/src/components/pipeline-results-workspace/pipeline-results-list.d.ts.map +1 -0
- package/dist/src/components/pipeline-results-workspace/pipeline-results-view-controls.d.ts +8 -0
- package/dist/src/components/pipeline-results-workspace/pipeline-results-view-controls.d.ts.map +1 -0
- package/dist/src/components/pipeline-toolbar/index.d.ts +12 -0
- package/dist/src/components/pipeline-toolbar/index.d.ts.map +1 -0
- package/dist/src/components/pipeline-toolbar/pipeline-header/index.d.ts +20 -0
- package/dist/src/components/pipeline-toolbar/pipeline-header/index.d.ts.map +1 -0
- package/dist/src/components/pipeline-toolbar/pipeline-header/pipeline-actions.d.ts +21 -0
- package/dist/src/components/pipeline-toolbar/pipeline-header/pipeline-actions.d.ts.map +1 -0
- package/dist/src/components/pipeline-toolbar/pipeline-header/pipeline-stages.d.ts +13 -0
- package/dist/src/components/pipeline-toolbar/pipeline-header/pipeline-stages.d.ts.map +1 -0
- package/dist/src/components/pipeline-toolbar/pipeline-options/index.d.ts +4 -0
- package/dist/src/components/pipeline-toolbar/pipeline-options/index.d.ts.map +1 -0
- package/dist/src/components/pipeline-toolbar/pipeline-options/pipeline-collation.d.ts +24 -0
- package/dist/src/components/pipeline-toolbar/pipeline-options/pipeline-collation.d.ts.map +1 -0
- package/dist/src/components/pipeline-toolbar/pipeline-settings/index.d.ts +11 -0
- package/dist/src/components/pipeline-toolbar/pipeline-settings/index.d.ts.map +1 -0
- package/dist/src/components/pipeline-toolbar/pipeline-settings/pipeline-extra-settings.d.ts +14 -0
- package/dist/src/components/pipeline-toolbar/pipeline-settings/pipeline-extra-settings.d.ts.map +1 -0
- package/dist/src/components/pipeline-toolbar/pipeline-settings/pipeline-menus.d.ts +19 -0
- package/dist/src/components/pipeline-toolbar/pipeline-settings/pipeline-menus.d.ts.map +1 -0
- package/dist/src/components/pipeline-toolbar/pipeline-settings/pipeline-name.d.ts +9 -0
- package/dist/src/components/pipeline-toolbar/pipeline-settings/pipeline-name.d.ts.map +1 -0
- package/dist/src/components/resize-handle/resize-handle.d.ts +7 -0
- package/dist/src/components/resize-handle/resize-handle.d.ts.map +1 -0
- package/dist/src/components/saved-pipelines/saved-pipeline-card.d.ts +10 -0
- package/dist/src/components/saved-pipelines/saved-pipeline-card.d.ts.map +1 -0
- package/dist/src/components/saved-pipelines/saved-pipelines.d.ts +12 -0
- package/dist/src/components/saved-pipelines/saved-pipelines.d.ts.map +1 -0
- package/dist/src/components/saving-pipeline-modal/index.d.ts +3 -0
- package/dist/src/components/saving-pipeline-modal/index.d.ts.map +1 -0
- package/dist/src/components/saving-pipeline-modal/saving-pipeline-modal.d.ts +22 -0
- package/dist/src/components/saving-pipeline-modal/saving-pipeline-modal.d.ts.map +1 -0
- package/dist/src/components/settings/index.d.ts +3 -0
- package/dist/src/components/settings/index.d.ts.map +1 -0
- package/dist/src/components/settings/settings.d.ts +23 -0
- package/dist/src/components/settings/settings.d.ts.map +1 -0
- package/dist/src/components/stage/index.d.ts +3 -0
- package/dist/src/components/stage/index.d.ts.map +1 -0
- package/dist/src/components/stage/stage.d.ts +29 -0
- package/dist/src/components/stage/stage.d.ts.map +1 -0
- package/dist/src/components/stage-editor/index.d.ts +3 -0
- package/dist/src/components/stage-editor/index.d.ts.map +1 -0
- package/dist/src/components/stage-editor/stage-editor.d.ts +49 -0
- package/dist/src/components/stage-editor/stage-editor.d.ts.map +1 -0
- package/dist/src/components/stage-editor-toolbar/add-after-stage.d.ts +18 -0
- package/dist/src/components/stage-editor-toolbar/add-after-stage.d.ts.map +1 -0
- package/dist/src/components/stage-editor-toolbar/delete-stage.d.ts +18 -0
- package/dist/src/components/stage-editor-toolbar/delete-stage.d.ts.map +1 -0
- package/dist/src/components/stage-editor-toolbar/index.d.ts +3 -0
- package/dist/src/components/stage-editor-toolbar/index.d.ts.map +1 -0
- package/dist/src/components/stage-editor-toolbar/select-option-with-tooltip/select-option-with-tooltip.d.ts +14 -0
- package/dist/src/components/stage-editor-toolbar/select-option-with-tooltip/select-option-with-tooltip.d.ts.map +1 -0
- package/dist/src/components/stage-editor-toolbar/stage-collapser.d.ts +20 -0
- package/dist/src/components/stage-editor-toolbar/stage-collapser.d.ts.map +1 -0
- package/dist/src/components/stage-editor-toolbar/stage-editor-toolbar.d.ts +21 -0
- package/dist/src/components/stage-editor-toolbar/stage-editor-toolbar.d.ts.map +1 -0
- package/dist/src/components/stage-editor-toolbar/stage-grabber.d.ts +9 -0
- package/dist/src/components/stage-editor-toolbar/stage-grabber.d.ts.map +1 -0
- package/dist/src/components/stage-editor-toolbar/stage-operator-select.d.ts +24 -0
- package/dist/src/components/stage-editor-toolbar/stage-operator-select.d.ts.map +1 -0
- package/dist/src/components/stage-editor-toolbar/toggle-stage.d.ts +20 -0
- package/dist/src/components/stage-editor-toolbar/toggle-stage.d.ts.map +1 -0
- package/dist/src/components/stage-preview/index.d.ts +3 -0
- package/dist/src/components/stage-preview/index.d.ts.map +1 -0
- package/dist/src/components/stage-preview/stage-preview.d.ts +49 -0
- package/dist/src/components/stage-preview/stage-preview.d.ts.map +1 -0
- package/dist/src/components/stage-preview-toolbar/index.d.ts +3 -0
- package/dist/src/components/stage-preview-toolbar/index.d.ts.map +1 -0
- package/dist/src/components/stage-preview-toolbar/stage-preview-toolbar.d.ts +25 -0
- package/dist/src/components/stage-preview-toolbar/stage-preview-toolbar.d.ts.map +1 -0
- package/dist/src/constants.d.ts +4 -0
- package/dist/src/constants.d.ts.map +1 -0
- package/dist/src/index.d.ts +16 -0
- package/dist/src/index.d.ts.map +1 -0
- package/dist/src/modules/aggregation-workspace-id.d.ts +4 -0
- package/dist/src/modules/aggregation-workspace-id.d.ts.map +1 -0
- package/dist/src/modules/aggregation.d.ts +74 -0
- package/dist/src/modules/aggregation.d.ts.map +1 -0
- package/dist/src/modules/auto-preview.d.ts +13 -0
- package/dist/src/modules/auto-preview.d.ts.map +1 -0
- package/dist/src/modules/clone-pipeline.d.ts +5 -0
- package/dist/src/modules/clone-pipeline.d.ts.map +1 -0
- package/dist/src/modules/collation-string.d.ts +17 -0
- package/dist/src/modules/collation-string.d.ts.map +1 -0
- package/dist/src/modules/comments.d.ts +3 -0
- package/dist/src/modules/comments.d.ts.map +1 -0
- package/dist/src/modules/count-documents.d.ts +30 -0
- package/dist/src/modules/count-documents.d.ts.map +1 -0
- package/dist/src/modules/create-view/error.d.ts +7 -0
- package/dist/src/modules/create-view/error.d.ts.map +1 -0
- package/dist/src/modules/create-view/index.d.ts +21 -0
- package/dist/src/modules/create-view/index.d.ts.map +1 -0
- package/dist/src/modules/create-view/is-duplicating.d.ts +5 -0
- package/dist/src/modules/create-view/is-duplicating.d.ts.map +1 -0
- package/dist/src/modules/create-view/is-running.d.ts +5 -0
- package/dist/src/modules/create-view/is-running.d.ts.map +1 -0
- package/dist/src/modules/create-view/is-visible.d.ts +8 -0
- package/dist/src/modules/create-view/is-visible.d.ts.map +1 -0
- package/dist/src/modules/create-view/name.d.ts +5 -0
- package/dist/src/modules/create-view/name.d.ts.map +1 -0
- package/dist/src/modules/create-view/pipeline.d.ts +5 -0
- package/dist/src/modules/create-view/pipeline.d.ts.map +1 -0
- package/dist/src/modules/create-view/reset.d.ts +3 -0
- package/dist/src/modules/create-view/reset.d.ts.map +1 -0
- package/dist/src/modules/create-view/source.d.ts +5 -0
- package/dist/src/modules/create-view/source.d.ts.map +1 -0
- package/dist/src/modules/data-service.d.ts +12 -0
- package/dist/src/modules/data-service.d.ts.map +1 -0
- package/dist/src/modules/edit-view-name.d.ts +3 -0
- package/dist/src/modules/edit-view-name.d.ts.map +1 -0
- package/dist/src/modules/env.d.ts +3 -0
- package/dist/src/modules/env.d.ts.map +1 -0
- package/dist/src/modules/explain.d.ts +57 -0
- package/dist/src/modules/explain.d.ts.map +1 -0
- package/dist/src/modules/export-to-language.d.ts +2 -0
- package/dist/src/modules/export-to-language.d.ts.map +1 -0
- package/dist/src/modules/fields.d.ts +5 -0
- package/dist/src/modules/fields.d.ts.map +1 -0
- package/dist/src/modules/id.d.ts +7 -0
- package/dist/src/modules/id.d.ts.map +1 -0
- package/dist/src/modules/import-pipeline.d.ts +20 -0
- package/dist/src/modules/import-pipeline.d.ts.map +1 -0
- package/dist/src/modules/index.d.ts +67 -0
- package/dist/src/modules/index.d.ts.map +1 -0
- package/dist/src/modules/indexes.d.ts +22 -0
- package/dist/src/modules/indexes.d.ts.map +1 -0
- package/dist/src/modules/input-documents.d.ts +17 -0
- package/dist/src/modules/input-documents.d.ts.map +1 -0
- package/dist/src/modules/is-atlas-deployed.d.ts +3 -0
- package/dist/src/modules/is-atlas-deployed.d.ts.map +1 -0
- package/dist/src/modules/is-datalake.d.ts +6 -0
- package/dist/src/modules/is-datalake.d.ts.map +1 -0
- package/dist/src/modules/is-modified.d.ts +2 -0
- package/dist/src/modules/is-modified.d.ts.map +1 -0
- package/dist/src/modules/is-new-pipeline-confirm.d.ts +5 -0
- package/dist/src/modules/is-new-pipeline-confirm.d.ts.map +1 -0
- package/dist/src/modules/is-readonly.d.ts +3 -0
- package/dist/src/modules/is-readonly.d.ts.map +1 -0
- package/dist/src/modules/is-time-series.d.ts +3 -0
- package/dist/src/modules/is-time-series.d.ts.map +1 -0
- package/dist/src/modules/large-limit.d.ts +3 -0
- package/dist/src/modules/large-limit.d.ts.map +1 -0
- package/dist/src/modules/limit.d.ts +3 -0
- package/dist/src/modules/limit.d.ts.map +1 -0
- package/dist/src/modules/link.d.ts +2 -0
- package/dist/src/modules/link.d.ts.map +1 -0
- package/dist/src/modules/max-time-ms.d.ts +11 -0
- package/dist/src/modules/max-time-ms.d.ts.map +1 -0
- package/dist/src/modules/name.d.ts +3 -0
- package/dist/src/modules/name.d.ts.map +1 -0
- package/dist/src/modules/namespace.d.ts +3 -0
- package/dist/src/modules/namespace.d.ts.map +1 -0
- package/dist/src/modules/out-results-fn.d.ts +6 -0
- package/dist/src/modules/out-results-fn.d.ts.map +1 -0
- package/dist/src/modules/pipeline-builder/builder-helpers.d.ts +9 -0
- package/dist/src/modules/pipeline-builder/builder-helpers.d.ts.map +1 -0
- package/dist/src/modules/pipeline-builder/index.d.ts +7 -0
- package/dist/src/modules/pipeline-builder/index.d.ts.map +1 -0
- package/dist/src/modules/pipeline-builder/pipeline-builder.d.ts +37 -0
- package/dist/src/modules/pipeline-builder/pipeline-builder.d.ts.map +1 -0
- package/dist/src/modules/pipeline-builder/pipeline-mode.d.ts +23 -0
- package/dist/src/modules/pipeline-builder/pipeline-mode.d.ts.map +1 -0
- package/dist/src/modules/pipeline-builder/pipeline-parser/index.d.ts +3 -0
- package/dist/src/modules/pipeline-builder/pipeline-parser/index.d.ts.map +1 -0
- package/dist/src/modules/pipeline-builder/pipeline-parser/pipeline-parser.d.ts +19 -0
- package/dist/src/modules/pipeline-builder/pipeline-parser/pipeline-parser.d.ts.map +1 -0
- package/dist/src/modules/pipeline-builder/pipeline-parser/stage-parser.d.ts +19 -0
- package/dist/src/modules/pipeline-builder/pipeline-parser/stage-parser.d.ts.map +1 -0
- package/dist/src/modules/pipeline-builder/pipeline-parser/utils.d.ts +15 -0
- package/dist/src/modules/pipeline-builder/pipeline-parser/utils.d.ts.map +1 -0
- package/dist/src/modules/pipeline-builder/pipeline-preview-manager.d.ts +20 -0
- package/dist/src/modules/pipeline-builder/pipeline-preview-manager.d.ts.map +1 -0
- package/dist/src/modules/pipeline-builder/stage-editor.d.ts +110 -0
- package/dist/src/modules/pipeline-builder/stage-editor.d.ts.map +1 -0
- package/dist/src/modules/pipeline-builder/stage.d.ts +18 -0
- package/dist/src/modules/pipeline-builder/stage.d.ts.map +1 -0
- package/dist/src/modules/pipeline-builder/text-editor.d.ts +40 -0
- package/dist/src/modules/pipeline-builder/text-editor.d.ts.map +1 -0
- package/dist/src/modules/projections.d.ts +4 -0
- package/dist/src/modules/projections.d.ts.map +1 -0
- package/dist/src/modules/saved-pipeline.d.ts +28 -0
- package/dist/src/modules/saved-pipeline.d.ts.map +1 -0
- package/dist/src/modules/saving-pipeline.d.ts +21 -0
- package/dist/src/modules/saving-pipeline.d.ts.map +1 -0
- package/dist/src/modules/server-version.d.ts +3 -0
- package/dist/src/modules/server-version.d.ts.map +1 -0
- package/dist/src/modules/settings.d.ts +33 -0
- package/dist/src/modules/settings.d.ts.map +1 -0
- package/dist/src/modules/source-name.d.ts +3 -0
- package/dist/src/modules/source-name.d.ts.map +1 -0
- package/dist/src/modules/update-view.d.ts +8 -0
- package/dist/src/modules/update-view.d.ts.map +1 -0
- package/dist/src/modules/workspace.d.ts +17 -0
- package/dist/src/modules/workspace.d.ts.map +1 -0
- package/dist/src/plugin.d.ts +24 -0
- package/dist/src/plugin.d.ts.map +1 -0
- package/dist/src/stores/create-view.d.ts +4 -0
- package/dist/src/stores/create-view.d.ts.map +1 -0
- package/dist/src/stores/duplicate-view.d.ts +3 -0
- package/dist/src/stores/duplicate-view.d.ts.map +1 -0
- package/dist/src/stores/index.d.ts +4 -0
- package/dist/src/stores/index.d.ts.map +1 -0
- package/dist/src/stores/store.d.ts +6 -0
- package/dist/src/stores/store.d.ts.map +1 -0
- package/dist/src/utils/cancellable-aggregation.d.ts +12 -0
- package/dist/src/utils/cancellable-aggregation.d.ts.map +1 -0
- package/dist/src/utils/cancellable-promise.d.ts +10 -0
- package/dist/src/utils/cancellable-promise.d.ts.map +1 -0
- package/dist/src/utils/configure-store.d.ts +5 -0
- package/dist/src/utils/configure-store.d.ts.map +1 -0
- package/dist/src/utils/get-directory.d.ts +2 -0
- package/dist/src/utils/get-directory.d.ts.map +1 -0
- package/dist/src/utils/is-action.d.ts +3 -0
- package/dist/src/utils/is-action.d.ts.map +1 -0
- package/dist/src/utils/pipeline-storage.d.ts +40 -0
- package/dist/src/utils/pipeline-storage.d.ts.map +1 -0
- package/dist/src/utils/stage.d.ts +11 -0
- package/dist/src/utils/stage.d.ts.map +1 -0
- package/package.json +32 -29
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"is-readonly.d.ts","sourceRoot":"","sources":["../../../src/modules/is-readonly.js"],"names":[],"mappings":"AAaA,0DAEC;AAZD,kCAAmC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"is-time-series.d.ts","sourceRoot":"","sources":["../../../src/modules/is-time-series.js"],"names":[],"mappings":"AAaA,0DAEC;AAZD,kCAAmC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"large-limit.d.ts","sourceRoot":"","sources":["../../../src/modules/large-limit.js"],"names":[],"mappings":"AAQA,6EAQC;AAVD,mCAAiD"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"limit.d.ts","sourceRoot":"","sources":["../../../src/modules/limit.js"],"names":[],"mappings":"AAMA,6EAQC;AAVD,+BAAiD"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"link.d.ts","sourceRoot":"","sources":["../../../src/modules/link.js"],"names":[],"mappings":"AAOO,iDAQN"}
|
@@ -0,0 +1,11 @@
|
|
1
|
+
import type { AnyAction, Reducer } from 'redux';
|
2
|
+
export declare const MAX_TIME_MS_CHANGED = "aggregations/max-time-ms/MAX_TIME_MS_CHANGED";
|
3
|
+
declare type State = null | number;
|
4
|
+
export declare const INITIAL_STATE: State;
|
5
|
+
declare const reducer: Reducer<State, AnyAction>;
|
6
|
+
export declare const maxTimeMSChanged: (value: number) => {
|
7
|
+
type: string;
|
8
|
+
maxTimeMS: number | null;
|
9
|
+
};
|
10
|
+
export default reducer;
|
11
|
+
//# sourceMappingURL=max-time-ms.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"max-time-ms.d.ts","sourceRoot":"","sources":["../../../src/modules/max-time-ms.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AAEhD,eAAO,MAAM,mBAAmB,iDACgB,CAAC;AAEjD,aAAK,KAAK,GAAG,IAAI,GAAG,MAAM,CAAC;AAE3B,eAAO,MAAM,aAAa,EAAE,KAAY,CAAC;AAEzC,QAAA,MAAM,OAAO,EAAE,OAAO,CAAC,KAAK,EAAE,SAAS,CAQtC,CAAA;AAED,eAAO,MAAM,gBAAgB,UAAW,MAAM;;;CAG5C,CAAC;AAEH,eAAe,OAAO,CAAC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"name.d.ts","sourceRoot":"","sources":["../../../src/modules/name.js"],"names":[],"mappings":"AAiBA,mEAJW,MAAM,UAehB;AArBD,+BAAgC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"namespace.d.ts","sourceRoot":"","sources":["../../../src/modules/namespace.js"],"names":[],"mappings":"AAaA,wDAEC;AAZD,+BAAgC"}
|
@@ -0,0 +1,6 @@
|
|
1
|
+
export default function reducer(state?: any): any;
|
2
|
+
export const INITIAL_STATE: null;
|
3
|
+
export function gotoOutResults(index: any): (dispatch: any, getState: any, { pipelineBuilder }: {
|
4
|
+
pipelineBuilder: any;
|
5
|
+
}) => void;
|
6
|
+
//# sourceMappingURL=out-results-fn.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"out-results-fn.d.ts","sourceRoot":"","sources":["../../../src/modules/out-results-fn.js"],"names":[],"mappings":"AAiBA,wCALW,GAAG,GAGD,GAAG,CAIf;AAZD,iCAAkC;AAiB3B;;WAaN"}
|
@@ -0,0 +1,9 @@
|
|
1
|
+
import type { PipelineBuilderThunkAction, RootState } from '..';
|
2
|
+
import type { PipelineBuilder } from './pipeline-builder';
|
3
|
+
export declare const updatePipelinePreview: () => PipelineBuilderThunkAction<void>;
|
4
|
+
export declare function getStagesFromBuilderState(state: RootState, pipelineBuilder: PipelineBuilder): import("bson").Document[] | (import("bson").Document[] | null)[];
|
5
|
+
export declare function getPipelineFromBuilderState(state: RootState, pipelineBuilder: PipelineBuilder): import("bson").Document[];
|
6
|
+
export declare function getPipelineStringFromBuilderState(state: RootState, pipelineBuilder: PipelineBuilder): string;
|
7
|
+
export declare function getPipelineStageOperatorsFromBuilderState(state: RootState): string[];
|
8
|
+
export declare function getIsPipelineInvalidFromBuilderState(state: RootState, includeServerErrors?: boolean): boolean;
|
9
|
+
//# sourceMappingURL=builder-helpers.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"builder-helpers.d.ts","sourceRoot":"","sources":["../../../../src/modules/pipeline-builder/builder-helpers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,0BAA0B,EAAE,SAAS,EAAE,MAAM,IAAI,CAAC;AAChE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAI1D,eAAO,MAAM,qBAAqB,QAC5B,2BAA2B,IAAI,CAWhC,CAAC;AAEN,wBAAgB,yBAAyB,CACvC,KAAK,EAAE,SAAS,EAChB,eAAe,EAAE,eAAe,oEAOjC;AAED,wBAAgB,2BAA2B,CACzC,KAAK,EAAE,SAAS,EAChB,eAAe,EAAE,eAAe,6BAOjC;AAED,wBAAgB,iCAAiC,CAC/C,KAAK,EAAE,SAAS,EAChB,eAAe,EAAE,eAAe,GAC/B,MAAM,CAMR;AAED,wBAAgB,yCAAyC,CACvD,KAAK,EAAE,SAAS,GACf,MAAM,EAAE,CAQV;AAED,wBAAgB,oCAAoC,CAClD,KAAK,EAAE,SAAS,EAChB,mBAAmB,UAAO,GACzB,OAAO,CAQT"}
|
@@ -0,0 +1,7 @@
|
|
1
|
+
declare const reducer: import("redux").Reducer<import("redux").CombinedState<{
|
2
|
+
pipelineMode: import("./pipeline-mode").PipelineMode;
|
3
|
+
stageEditor: import("./stage-editor").StageEditorState;
|
4
|
+
textEditor: import("./text-editor").TextEditorState;
|
5
|
+
}>, import("redux").AnyAction>;
|
6
|
+
export default reducer;
|
7
|
+
//# sourceMappingURL=index.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/modules/pipeline-builder/index.ts"],"names":[],"mappings":"AAKA,QAAA,MAAM,OAAO;;;;8BAIX,CAAC;AAEH,eAAe,OAAO,CAAC"}
|
@@ -0,0 +1,37 @@
|
|
1
|
+
import type { DataService } from 'mongodb-data-service';
|
2
|
+
import type * as t from '@babel/types';
|
3
|
+
import type { Document } from 'bson';
|
4
|
+
import { PipelinePreviewManager } from './pipeline-preview-manager';
|
5
|
+
import type { PreviewOptions } from './pipeline-preview-manager';
|
6
|
+
import Stage from './stage';
|
7
|
+
import { PipelineParserError } from './pipeline-parser/utils';
|
8
|
+
export declare const DEFAULT_PIPELINE = "[\n{}\n]";
|
9
|
+
export declare class PipelineBuilder {
|
10
|
+
private _source;
|
11
|
+
pipeline: Document[] | null;
|
12
|
+
node: t.ArrayExpression | null;
|
13
|
+
stages: Stage[];
|
14
|
+
syntaxError: PipelineParserError[];
|
15
|
+
previewManager: PipelinePreviewManager;
|
16
|
+
constructor(dataService: DataService, source?: string);
|
17
|
+
set source(source: string);
|
18
|
+
get source(): string;
|
19
|
+
private parseSourceToPipeline;
|
20
|
+
reset(source?: string): void;
|
21
|
+
stopPreview(from?: number): void;
|
22
|
+
changeSource(source: string): void;
|
23
|
+
sourceToStages(): void;
|
24
|
+
private validateSource;
|
25
|
+
getPipelineFromSource(): Document[];
|
26
|
+
getPreviewForPipeline(namespace: string, options: PreviewOptions): Promise<Document[]>;
|
27
|
+
stagesToSource(): void;
|
28
|
+
getStage(idx: number): Stage;
|
29
|
+
addStage(after?: number): Stage;
|
30
|
+
removeStage(at: number): Stage;
|
31
|
+
moveStage(from: number, to: number): Stage;
|
32
|
+
getPipelineStringFromStages(stages?: Stage[]): string;
|
33
|
+
getPipelineStringFromSource(): string;
|
34
|
+
getPipelineFromStages(stages?: Stage[]): Document[];
|
35
|
+
getPreviewForStage(idx: number, namespace: string, options: PreviewOptions, force?: boolean): Promise<Document[]>;
|
36
|
+
}
|
37
|
+
//# sourceMappingURL=pipeline-builder.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"pipeline-builder.d.ts","sourceRoot":"","sources":["../../../../src/modules/pipeline-builder/pipeline-builder.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AACxD,OAAO,KAAK,KAAK,CAAC,MAAM,cAAc,CAAC;AACvC,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,MAAM,CAAC;AACrC,OAAO,EAAE,sBAAsB,EAAE,MAA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UAAc,GAAG,MAAM;IAYzD,2BAA2B,IAAI,MAAM;IAQrC,qBAAqB,CAAC,MAAM,UAAc,GAAG,QAAQ,EAAE;IAOvD,kBAAkB,CAChB,GAAG,EAAE,MAAM,EACX,SAAS,EAAE,MAAM,EACjB,OAAO,EAAE,cAAc,EACvB,KAAK,UAAQ,GACZ,OAAO,CAAC,QAAQ,EAAE,CAAC;CASvB"}
|
@@ -0,0 +1,23 @@
|
|
1
|
+
import type { Reducer } from 'redux';
|
2
|
+
import type { Document } from 'mongodb';
|
3
|
+
import type { PipelineBuilderThunkAction } from '..';
|
4
|
+
import type Stage from './stage';
|
5
|
+
import type { PipelineParserError } from './pipeline-parser/utils';
|
6
|
+
export declare type PipelineMode = 'builder-ui' | 'as-text';
|
7
|
+
export declare enum ActionTypes {
|
8
|
+
PipelineModeToggled = "compass-aggregations/pipelineModeToggled"
|
9
|
+
}
|
10
|
+
export declare type PipelineModeToggledAction = {
|
11
|
+
type: ActionTypes.PipelineModeToggled;
|
12
|
+
mode: PipelineMode;
|
13
|
+
pipelineText: string;
|
14
|
+
pipeline: Document[] | null;
|
15
|
+
syntaxErrors: PipelineParserError[];
|
16
|
+
stages: Stage[];
|
17
|
+
};
|
18
|
+
declare type State = PipelineMode;
|
19
|
+
export declare const INITIAL_STATE: State;
|
20
|
+
declare const reducer: Reducer<State>;
|
21
|
+
export declare const changePipelineMode: (newMode: PipelineMode) => PipelineBuilderThunkAction<void, PipelineModeToggledAction>;
|
22
|
+
export default reducer;
|
23
|
+
//# sourceMappingURL=pipeline-mode.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"pipeline-mode.d.ts","sourceRoot":"","sources":["../../../../src/modules/pipeline-builder/pipeline-mode.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AACrC,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AACxC,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,IAAI,CAAC;AAGrD,OAAO,KAAK,KAAK,MAAM,SAAS,CAAC;AACjC,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAEnE,oBAAY,YAAY,GAAG,YAAY,GAAG,SAAS,CAAC;AAEpD,oBAAY,WAAW;IACrB,mBAAmB,6CAA6C;CACjE;AAED,oBAAY,yBAAyB,GAAG;IACtC,IAAI,EAAE,WAAW,CAAC,mBAAmB,CAAC;IACtC,IAAI,EAAE,YAAY,CAAC;IACnB,YAAY,EAAE,MAAM,CAAC;IACrB,QAAQ,EAAE,QAAQ,EAAE,GAAG,IAAI,CAAC;IAC5B,YAAY,EAAE,mBAAmB,EAAE,CAAC;IACpC,MAAM,EAAE,KAAK,EAAE,CAAC;CACjB,CAAC;AAEF,aAAK,KAAK,GAAG,YAAY,CAAC;AAE1B,eAAO,MAAM,aAAa,EAAE,KAAoB,CAAC;AAEjD,QAAA,MAAM,OAAO,EAAE,OAAO,CAAC,KAAK,CAQ3B,CAAC;AAEF,eAAO,MAAM,kBAAkB,YACpB,YAAY,KACpB,2BAA2B,IAAI,EAAE,yBAAyB,CAoB5D,CAAC;AAEF,eAAe,OAAO,CAAC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/modules/pipeline-builder/pipeline-parser/index.ts"],"names":[],"mappings":"AAAA,OAAO,cAAc,MAAM,mBAAmB,CAAC;AAE/C,OAAO,EAAE,cAAc,EAAE,CAAC"}
|
@@ -0,0 +1,19 @@
|
|
1
|
+
import type * as t from '@babel/types';
|
2
|
+
import { PipelineParserError } from './utils';
|
3
|
+
declare type ParseResponse = {
|
4
|
+
root: t.ArrayExpression;
|
5
|
+
stages: t.Expression[];
|
6
|
+
};
|
7
|
+
declare type ValidateResponse = {
|
8
|
+
root: t.ArrayExpression | null;
|
9
|
+
errors: PipelineParserError[];
|
10
|
+
};
|
11
|
+
export default class PipelineParser {
|
12
|
+
static parse(source: string): ParseResponse;
|
13
|
+
static _parseStringToRoot(source: string): t.ArrayExpression;
|
14
|
+
static validate(source: string): ValidateResponse;
|
15
|
+
static generate(root: t.ArrayExpression, stages: t.Expression[]): string;
|
16
|
+
static _getStageNodes(stages: t.Expression[]): t.ArrayExpression['elements'];
|
17
|
+
}
|
18
|
+
export {};
|
19
|
+
//# sourceMappingURL=pipeline-parser.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"pipeline-parser.d.ts","sourceRoot":"","sources":["../../../../../src/modules/pipeline-builder/pipeline-parser/pipeline-parser.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,CAAC,MAAM,cAAc,CAAC;AAQvC,OAAO,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAC;AAkF9C,aAAK,aAAa,GAAG;IACnB,IAAI,EAAE,CAAC,CAAC,eAAe,CAAC;IACxB,MAAM,EAAE,CAAC,CAAC,UAAU,EAAE,CAAC;CACxB,CAAC;AAEF,aAAK,gBAAgB,GAAG;IACtB,IAAI,EAAE,CAAC,CAAC,eAAe,GAAG,IAAI,CAAC;IAC/B,MAAM,EAAE,mBAAmB,EAAE,CAAC;CAC/B,CAAC;AAEF,MAAM,CAAC,OAAO,OAAO,cAAc;IACjC,MAAM,CAAC,KAAK,CAAC,MAAM,EAAE,MAAM,GAAG,aAAa;IAkB3C,MAAM,CAAC,kBAAkB,CAAC,MAAM,EAAE,MAAM,GAAG,CAAC,CAAC,eAAe;IAU5D,MAAM,CAAC,QAAQ,CAAC,MAAM,EAAE,MAAM,GAAG,gBAAgB;IAkBjD,MAAM,CAAC,QAAQ,CAAC,IAAI,EAAE,CAAC,CAAC,eAAe,EAAE,MAAM,EAAE,CAAC,CAAC,UAAU,EAAE,GAAG,MAAM;IAiBxE,MAAM,CAAC,cAAc,CAAC,MAAM,EAAE,CAAC,CAAC,UAAU,EAAE,GAAG,CAAC,CAAC,eAAe,CAAC,UAAU,CAAC;CA0D7E"}
|
@@ -0,0 +1,19 @@
|
|
1
|
+
import type * as t from '@babel/types';
|
2
|
+
export declare type StageLike = t.ObjectExpression & {
|
3
|
+
properties: [t.ObjectProperty & {
|
4
|
+
key: t.Identifier | t.StringLiteral;
|
5
|
+
}];
|
6
|
+
};
|
7
|
+
export declare function isNodeDisabled(node: t.Node): boolean;
|
8
|
+
export declare function setNodeDisabled(node: t.Node, value: boolean): void;
|
9
|
+
export declare function isStageLike(node?: t.Node | null, loose?: boolean): node is StageLike;
|
10
|
+
export declare function assertStageNode(node: t.Node): asserts node is StageLike;
|
11
|
+
export declare function getStageOperatorFromNode(node: StageLike): string;
|
12
|
+
export declare function getStageValueFromNode(node: StageLike): string;
|
13
|
+
export declare function stageToAstComments(stage: t.Expression): t.CommentLine[];
|
14
|
+
export default class StageParser {
|
15
|
+
source: string;
|
16
|
+
private maybeObject;
|
17
|
+
push(str: string): false | StageLike;
|
18
|
+
}
|
19
|
+
//# sourceMappingURL=stage-parser.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"stage-parser.d.ts","sourceRoot":"","sources":["../../../../../src/modules/pipeline-builder/pipeline-parser/stage-parser.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,CAAC,MAAM,cAAc,CAAC;AAIvC,oBAAY,SAAS,GAAG,CAAC,CAAC,gBAAgB,GAAG;IAC3C,UAAU,EAAE,CAAC,CAAC,CAAC,cAAc,GAAG;QAAE,GAAG,EAAE,CAAC,CAAC,UAAU,GAAG,CAAC,CAAC,aAAa,CAAA;KAAE,CAAC,CAAC;CAC1E,CAAC;AAIF,wBAAgB,cAAc,CAAC,IAAI,EAAE,CAAC,CAAC,IAAI,GAAG,OAAO,CAEpD;AAED,wBAAgB,eAAe,CAAC,IAAI,EAAE,CAAC,CAAC,IAAI,EAAE,KAAK,EAAE,OAAO,QAE3D;AAED,wBAAgB,WAAW,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC,IAAI,GAAG,IAAI,EAAE,KAAK,UAAQ,GAAG,IAAI,IAAI,SAAS,CAalF;AAED,wBAAgB,eAAe,CAAC,IAAI,EAAE,CAAC,CAAC,IAAI,GAAG,OAAO,CAAC,IAAI,IAAI,SAAS,CAWvE;AAED,wBAAgB,wBAAwB,CAAC,IAAI,EAAE,SAAS,GAAG,MAAM,CAIhE;AAED,wBAAgB,qBAAqB,CAAC,IAAI,EAAE,SAAS,GAAG,MAAM,CAQ7D;AAKD,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,CAAC,CAAC,UAAU,GAAG,CAAC,CAAC,WAAW,EAAE,CAOvE;AAMD,MAAM,CAAC,OAAO,OAAO,WAAW;IACvB,MAAM,SAAM;IACnB,OAAO,CAAC,WAAW,CAAS;IAE5B,IAAI,CAAC,GAAG,EAAE,MAAM,GAAG,KAAK,GAAG,SAAS;CA0CrC"}
|
@@ -0,0 +1,15 @@
|
|
1
|
+
import type { Node } from '@babel/types';
|
2
|
+
import type { Document } from 'mongodb';
|
3
|
+
declare type ErrorLoc = {
|
4
|
+
line: number;
|
5
|
+
column: number;
|
6
|
+
};
|
7
|
+
export declare class PipelineParserError extends SyntaxError {
|
8
|
+
loc: ErrorLoc | undefined;
|
9
|
+
constructor(message: string, loc?: ErrorLoc);
|
10
|
+
}
|
11
|
+
export declare function generate(ast: Node): string;
|
12
|
+
export declare function prettify(code: string): string;
|
13
|
+
export declare function parseEJSON(source: string): Document[];
|
14
|
+
export {};
|
15
|
+
//# sourceMappingURL=utils.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../../src/modules/pipeline-builder/pipeline-parser/utils.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AAGzC,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAExC,aAAK,QAAQ,GAAG;IACd,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;CAChB,CAAA;AACD,qBAAa,mBAAoB,SAAQ,WAAW;IAClD,GAAG,EAAE,QAAQ,GAAG,SAAS,CAAC;gBACd,OAAO,EAAE,MAAM,EAAE,GAAG,CAAC,EAAE,QAAQ;CAI5C;AAED,wBAAgB,QAAQ,CAAC,GAAG,EAAE,IAAI,UAEjC;AAED,wBAAgB,QAAQ,CAAC,IAAI,EAAE,MAAM,UAcpC;AAMD,wBAAgB,UAAU,CAAC,MAAM,EAAE,MAAM,GAAG,QAAQ,EAAE,CAQrD"}
|
@@ -0,0 +1,20 @@
|
|
1
|
+
import type { DataService } from 'mongodb-data-service';
|
2
|
+
import type { AggregateOptions, Document } from 'mongodb';
|
3
|
+
export declare const DEFAULT_SAMPLE_SIZE = 100000;
|
4
|
+
export declare const DEFAULT_PREVIEW_LIMIT = 10;
|
5
|
+
export interface PreviewOptions extends AggregateOptions {
|
6
|
+
debounceMs?: number;
|
7
|
+
totalDocumentCount?: number;
|
8
|
+
sampleSize?: number;
|
9
|
+
previewSize?: number;
|
10
|
+
}
|
11
|
+
export declare function createPreviewAggregation(pipeline: Document[], options?: Pick<PreviewOptions, 'sampleSize' | 'previewSize' | 'totalDocumentCount'>): Document[];
|
12
|
+
export declare class PipelinePreviewManager {
|
13
|
+
private dataService;
|
14
|
+
private queue;
|
15
|
+
constructor(dataService: DataService);
|
16
|
+
getPreviewForStage(idx: number, namespace: string, pipeline: Document[], { sampleSize, previewSize, totalDocumentCount, ...options }?: PreviewOptions, force?: boolean): Promise<Document[]>;
|
17
|
+
cancelPreviewForStage(idx: number): boolean;
|
18
|
+
clearQueue(from?: number): void;
|
19
|
+
}
|
20
|
+
//# sourceMappingURL=pipeline-preview-manager.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"pipeline-preview-manager.d.ts","sourceRoot":"","sources":["../../../../src/modules/pipeline-builder/pipeline-preview-manager.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AACxD,OAAO,KAAK,EAAE,gBAAgB,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAS1D,eAAO,MAAM,mBAAmB,SAAS,CAAC;AAE1C,eAAO,MAAM,qBAAqB,KAAK,CAAC;AAexC,MAAM,WAAW,cAAe,SAAQ,gBAAgB;IACtD,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,wBAAgB,wBAAwB,CACtC,QAAQ,EAAE,QAAQ,EAAE,EACpB,OAAO,GAAE,IAAI,CACX,cAAc,EACd,YAAY,GAAG,aAAa,GAAG,oBAAoB,CAC/C,cA0BP;AAED,qBAAa,sBAAsB;IAErB,OAAO,CAAC,WAAW;IAD/B,OAAO,CAAC,KAAK,CAAsC;gBAC/B,WAAW,EAAE,WAAW;IAItC,kBAAkB,CACtB,GAAG,EAAE,MAAM,EACX,SAAS,EAAE,MAAM,EACjB,QAAQ,EAAE,QAAQ,EAAE,EACpB,EACE,UAAU,EACV,WAAW,EACX,kBAAkB,EAClB,GAAG,OAAO,EACX,GAAE,cAAmB,EACtB,KAAK,UAAQ,GACZ,OAAO,CAAC,QAAQ,EAAE,CAAC;IAyBtB,qBAAqB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO;IAQ3C,UAAU,CAAC,IAAI,SAAI;CAQpB"}
|
@@ -0,0 +1,110 @@
|
|
1
|
+
import type { Reducer } from 'redux';
|
2
|
+
import type { Document, MongoServerError } from 'mongodb';
|
3
|
+
import type { PipelineBuilderThunkAction } from '../';
|
4
|
+
import type Stage from './stage';
|
5
|
+
import type { PipelineParserError } from './pipeline-parser/utils';
|
6
|
+
export declare const enum StageEditorActionTypes {
|
7
|
+
StagePreviewFetch = "compass-aggregations/pipeline-builder/stage-editor/StagePreviewFetch",
|
8
|
+
StagePreviewFetchSuccess = "compass-aggregations/pipeline-builder/stage-editor/StagePreviewFetchSuccess",
|
9
|
+
StagePreviewFetchError = "compass-aggregations/pipeline-builder/stage-editor/StagePreviewFetchError",
|
10
|
+
StageRun = "compass-aggregations/pipeline-builder/stage-editor/StageRun",
|
11
|
+
StageRunSuccess = "compass-aggregations/pipeline-builder/stage-editor/StageRunSuccess",
|
12
|
+
StageRunError = "compass-aggregations/pipeline-builder/stage-editor/StagePreviewFetchError",
|
13
|
+
StageValueChange = "compass-aggregations/pipeline-builder/stage-editor/StageValueChange",
|
14
|
+
StageOperatorChange = "compass-aggregations/pipeline-builder/stage-editor/StageOperatorChange",
|
15
|
+
StageCollapsedChange = "compass-aggregations/pipeline-builder/stage-editor/StageCollapsedChange",
|
16
|
+
StageDisabledChange = "compass-aggregations/pipeline-builder/stage-editor/StageDisabledChange",
|
17
|
+
StageAdded = "compass-aggregations/pipeline-builder/stage-editor/StageAdded",
|
18
|
+
StageRemoved = "compass-aggregations/pipeline-builder/stage-editor/StageRemoved",
|
19
|
+
StageMoved = "compass-aggregations/pipeline-builder/stage-editor/StageMoved"
|
20
|
+
}
|
21
|
+
export declare type StagePreviewFetchAction = {
|
22
|
+
type: StageEditorActionTypes.StagePreviewFetch;
|
23
|
+
id: number;
|
24
|
+
};
|
25
|
+
export declare type StagePreviewFetchSuccessAction = {
|
26
|
+
type: StageEditorActionTypes.StagePreviewFetchSuccess;
|
27
|
+
id: number;
|
28
|
+
previewDocs: Document[];
|
29
|
+
};
|
30
|
+
export declare type StagePreviewFetchErrorAction = {
|
31
|
+
type: StageEditorActionTypes.StagePreviewFetchError;
|
32
|
+
id: number;
|
33
|
+
error: MongoServerError;
|
34
|
+
};
|
35
|
+
export declare type StageRunAction = {
|
36
|
+
type: StageEditorActionTypes.StageRun;
|
37
|
+
id: number;
|
38
|
+
};
|
39
|
+
export declare type StageRunSuccessAction = {
|
40
|
+
type: StageEditorActionTypes.StageRunSuccess;
|
41
|
+
id: number;
|
42
|
+
previewDocs: Document[];
|
43
|
+
};
|
44
|
+
export declare type StageRunErrorAction = {
|
45
|
+
type: StageEditorActionTypes.StageRunError;
|
46
|
+
id: number;
|
47
|
+
error: MongoServerError;
|
48
|
+
};
|
49
|
+
export declare type ChangeStageValueAction = {
|
50
|
+
type: StageEditorActionTypes.StageValueChange;
|
51
|
+
id: number;
|
52
|
+
stage: Stage;
|
53
|
+
};
|
54
|
+
export declare type ChangeStageOperatorAction = {
|
55
|
+
type: StageEditorActionTypes.StageOperatorChange;
|
56
|
+
id: number;
|
57
|
+
stage: Stage;
|
58
|
+
};
|
59
|
+
export declare type ChangeStageCollapsedAction = {
|
60
|
+
type: StageEditorActionTypes.StageCollapsedChange;
|
61
|
+
id: number;
|
62
|
+
collapsed: boolean;
|
63
|
+
};
|
64
|
+
export declare type ChangeStageDisabledAction = {
|
65
|
+
type: StageEditorActionTypes.StageDisabledChange;
|
66
|
+
id: number;
|
67
|
+
disabled: boolean;
|
68
|
+
};
|
69
|
+
export declare type StageAddAction = {
|
70
|
+
type: StageEditorActionTypes.StageAdded;
|
71
|
+
after?: number;
|
72
|
+
stage: Stage;
|
73
|
+
};
|
74
|
+
export declare type StageRemoveAction = {
|
75
|
+
type: StageEditorActionTypes.StageRemoved;
|
76
|
+
at: number;
|
77
|
+
};
|
78
|
+
export declare type StageMoveAction = {
|
79
|
+
type: StageEditorActionTypes.StageMoved;
|
80
|
+
from: number;
|
81
|
+
to: number;
|
82
|
+
};
|
83
|
+
export declare const loadStagePreview: (idx: number) => PipelineBuilderThunkAction<Promise<void>, StagePreviewFetchAction | StagePreviewFetchSuccessAction | StagePreviewFetchErrorAction>;
|
84
|
+
export declare const loadPreviewForStagesFrom: (from: number) => PipelineBuilderThunkAction<void>;
|
85
|
+
export declare const runStage: (idx: number) => PipelineBuilderThunkAction<Promise<void>>;
|
86
|
+
export declare const changeStageValue: (id: number, newVal: string) => PipelineBuilderThunkAction<void, ChangeStageValueAction>;
|
87
|
+
export declare const changeStageOperator: (id: number, newVal: string) => PipelineBuilderThunkAction<void, ChangeStageOperatorAction>;
|
88
|
+
export declare const changeStageDisabled: (id: number, newVal: boolean) => PipelineBuilderThunkAction<void, ChangeStageDisabledAction>;
|
89
|
+
export declare const changeStageCollapsed: (id: number, newVal: boolean) => ChangeStageCollapsedAction;
|
90
|
+
export declare const addStage: (after?: number) => PipelineBuilderThunkAction<void, StageAddAction>;
|
91
|
+
export declare const removeStage: (at: number) => PipelineBuilderThunkAction<void, StageRemoveAction>;
|
92
|
+
export declare const moveStage: (from: number, to: number) => PipelineBuilderThunkAction<void, StageMoveAction>;
|
93
|
+
export declare type StageEditorState = {
|
94
|
+
stageIds: number[];
|
95
|
+
stages: {
|
96
|
+
id: number;
|
97
|
+
stageOperator: string | null;
|
98
|
+
value: string | null;
|
99
|
+
syntaxError: PipelineParserError | null;
|
100
|
+
serverError: MongoServerError | null;
|
101
|
+
loading: boolean;
|
102
|
+
previewDocs: Document[] | null;
|
103
|
+
collapsed: boolean;
|
104
|
+
disabled: boolean;
|
105
|
+
}[];
|
106
|
+
};
|
107
|
+
export declare function mapBuilderStageToStoreStage(stage: Stage): StageEditorState['stages'][number];
|
108
|
+
declare const reducer: Reducer<StageEditorState>;
|
109
|
+
export default reducer;
|
110
|
+
//# sourceMappingURL=stage-editor.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"stage-editor.d.ts","sourceRoot":"","sources":["../../../../src/modules/pipeline-builder/stage-editor.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AACrC,OAAO,KAAK,EAAoB,QAAQ,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAI5E,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,KAAK,CAAC;AAEtD,OAAO,KAAK,KAAK,MAAM,SAAS,CAAC;AAWjC,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAInE,0BAAkB,sBAAsB;IACt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import type * as t from '@babel/types';
|
2
|
+
import type { PipelineParserError } from './pipeline-parser/utils';
|
3
|
+
export declare function stageToString(operator: string, value: string, disabled: boolean): string;
|
4
|
+
export default class Stage {
|
5
|
+
id: number;
|
6
|
+
node: t.Expression;
|
7
|
+
disabled: boolean;
|
8
|
+
syntaxError: PipelineParserError | null;
|
9
|
+
operator: string | null;
|
10
|
+
value: string | null;
|
11
|
+
constructor(node?: t.Expression);
|
12
|
+
changeValue(value: string): this;
|
13
|
+
changeOperator(operator: string): this;
|
14
|
+
changeDisabled(value: boolean): this;
|
15
|
+
toString(): string;
|
16
|
+
toBSON(): import("bson").Document[] | null;
|
17
|
+
}
|
18
|
+
//# sourceMappingURL=stage.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"stage.d.ts","sourceRoot":"","sources":["../../../../src/modules/pipeline-builder/stage.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,CAAC,MAAM,cAAc,CAAC;AASvC,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AA0BnE,wBAAgB,aAAa,CAAC,QAAQ,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAE,OAAO,GAAG,MAAM,CAYxF;AAQD,MAAM,CAAC,OAAO,OAAO,KAAK;IACxB,EAAE,SAAW;IACb,IAAI,EAAE,CAAC,CAAC,UAAU,CAAC;IACnB,QAAQ,UAAS;IACjB,WAAW,EAAE,mBAAmB,GAAG,IAAI,CAAQ;IAC/C,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAQ;IAC/B,KAAK,EAAE,MAAM,GAAG,IAAI,CAAQ;gBAE1B,IAAI,GAAE,CAAC,CAAC,UAAyD;IAanE,WAAW,CAAC,KAAK,EAAE,MAAM;IAgBzB,cAAc,CAAC,QAAQ,EAAE,MAAM;IAgB/B,cAAc,CAAC,KAAK,EAAE,OAAO;IAM7B,QAAQ;IAQR,MAAM;CAMP"}
|
@@ -0,0 +1,40 @@
|
|
1
|
+
import type { Reducer } from 'redux';
|
2
|
+
import type { Document, MongoServerError } from 'mongodb';
|
3
|
+
import type { PipelineBuilderThunkAction } from '..';
|
4
|
+
import type { PipelineParserError } from './pipeline-parser/utils';
|
5
|
+
export declare const enum EditorActionTypes {
|
6
|
+
EditorPreviewFetch = "compass-aggregations/pipeline-builder/text-editor/TextEditorPreviewFetch",
|
7
|
+
EditorPreviewFetchSuccess = "compass-aggregations/pipeline-builder/text-editor/TextEditorPreviewFetchSuccess",
|
8
|
+
EditorPreviewFetchError = "compass-aggregations/pipeline-builder/text-editor/TextEditorPreviewFetchError",
|
9
|
+
EditorValueChange = "compass-aggregations/pipeline-builder/text-editor/TextEditorValueChange"
|
10
|
+
}
|
11
|
+
declare type EditorValueChangeAction = {
|
12
|
+
type: EditorActionTypes.EditorValueChange;
|
13
|
+
pipelineText: string;
|
14
|
+
pipeline: Document[] | null;
|
15
|
+
syntaxErrors: PipelineParserError[];
|
16
|
+
};
|
17
|
+
declare type EditorPreviewFetchAction = {
|
18
|
+
type: EditorActionTypes.EditorPreviewFetch;
|
19
|
+
};
|
20
|
+
declare type EditorPreviewFetchSuccessAction = {
|
21
|
+
type: EditorActionTypes.EditorPreviewFetchSuccess;
|
22
|
+
previewDocs: Document[];
|
23
|
+
};
|
24
|
+
declare type EditorPreviewFetchErrorAction = {
|
25
|
+
type: EditorActionTypes.EditorPreviewFetchError;
|
26
|
+
serverError: MongoServerError;
|
27
|
+
};
|
28
|
+
export declare type TextEditorState = {
|
29
|
+
pipelineText: string;
|
30
|
+
stageOperators: string[];
|
31
|
+
syntaxErrors: PipelineParserError[];
|
32
|
+
serverError: MongoServerError | null;
|
33
|
+
loading: boolean;
|
34
|
+
previewDocs: Document[] | null;
|
35
|
+
};
|
36
|
+
declare const reducer: Reducer<TextEditorState>;
|
37
|
+
export declare const loadPreviewForPipeline: () => PipelineBuilderThunkAction<Promise<void>, EditorPreviewFetchAction | EditorPreviewFetchSuccessAction | EditorPreviewFetchErrorAction>;
|
38
|
+
export declare const changeEditorValue: (value: string) => PipelineBuilderThunkAction<void, EditorValueChangeAction>;
|
39
|
+
export default reducer;
|
40
|
+
//# sourceMappingURL=text-editor.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"text-editor.d.ts","sourceRoot":"","sources":["../../../../src/modules/pipeline-builder/text-editor.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AACrC,OAAO,KAAK,EAAE,QAAQ,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAC1D,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,IAAI,CAAC;AASrD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAQnE,0BAAkB,iBAAiB;IACjC,kBAAkB,6EAA6E;IAC/F,yBAAyB,oFAAoF;IAC7G,uBAAuB,kFAAkF;IACzG,iBAAiB,4EAA4E;CAC9F;AAED,aAAK,uBAAuB,GAAG;IAC7B,IAAI,EAAE,iBAAiB,CAAC,iBAAiB,CAAC;IAC1C,YAAY,EAAE,MAAM,CAAC;IACrB,QAAQ,EAAE,QAAQ,EAAE,GAAG,IAAI,CAAC;IAC5B,YAAY,EAAE,mBAAmB,EAAE,CAAC;CACrC,CAAC;AAEF,aAAK,wBAAwB,GAAG;IAC9B,IAAI,EAAE,iBAAiB,CAAC,kBAAkB,CAAC;CAC5C,CAAC;AAEF,aAAK,+BAA+B,GAAG;IACrC,IAAI,EAAE,iBAAiB,CAAC,yBAAyB,CAAC;IAClD,WAAW,EAAE,QAAQ,EAAE,CAAC;CACzB,CAAC;AAEF,aAAK,6BAA6B,GAAG;IACnC,IAAI,EAAE,iBAAiB,CAAC,uBAAuB,CAAC;IAChD,WAAW,EAAE,gBAAgB,CAAC;CAC/B,CAAC;AAEF,oBAAY,eAAe,GAAG;IAC5B,YAAY,EAAE,MAAM,CAAC;IACrB,cAAc,EAAE,MAAM,EAAE,CAAC;IACzB,YAAY,EAAE,mBAAmB,EAAE,CAAC;IACpC,WAAW,EAAE,gBAAgB,GAAG,IAAI,CAAC;IACrC,OAAO,EAAE,OAAO,CAAC;IACjB,WAAW,EAAE,QAAQ,EAAE,GAAG,IAAI,CAAC;CAChC,CAAC;AAWF,QAAA,MAAM,OAAO,EAAE,OAAO,CAAC,eAAe,CAwErC,CAAC;AAOF,eAAO,MAAM,sBAAsB,QAChC,2BACD,QAAQ,IAAI,CAAC,EACb,wBAAwB,GACxB,+BAA+B,GAC/B,6BAA6B,CAyD9B,CAAC;AAEF,eAAO,MAAM,iBAAiB,UACrB,MAAM,KACZ,2BAA2B,IAAI,EAAE,uBAAuB,CAW1D,CAAC;AAGF,eAAe,OAAO,CAAC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"projections.d.ts","sourceRoot":"","sources":["../../../src/modules/projections.js"],"names":[],"mappings":"AAWA,4EAQC;AAbD,iFACiD;AAEjD,kCAAgC"}
|
@@ -0,0 +1,28 @@
|
|
1
|
+
import type { AnyAction } from 'redux';
|
2
|
+
import type { PipelineBuilderThunkAction } from '.';
|
3
|
+
import type { StoredPipeline } from '../utils/pipeline-storage';
|
4
|
+
export declare const SET_SHOW_SAVED_PIPELINES: string;
|
5
|
+
export declare const SAVED_PIPELINE_ADD: string;
|
6
|
+
export declare const RESTORE_PIPELINE: string;
|
7
|
+
export declare type SavedPipelineState = {
|
8
|
+
pipelines: StoredPipeline[];
|
9
|
+
isLoaded: boolean;
|
10
|
+
isListVisible: boolean;
|
11
|
+
};
|
12
|
+
export declare const INITIAL_STATE: SavedPipelineState;
|
13
|
+
export default function reducer(state: SavedPipelineState | undefined, action: AnyAction): {
|
14
|
+
pipelines: any;
|
15
|
+
isLoaded: boolean;
|
16
|
+
isListVisible: boolean;
|
17
|
+
};
|
18
|
+
export declare const setShowSavedPipelines: (show: boolean) => PipelineBuilderThunkAction<void>;
|
19
|
+
export declare const savedPipelineAdd: (pipelines: StoredPipeline[]) => {
|
20
|
+
type: string;
|
21
|
+
pipelines: StoredPipeline[];
|
22
|
+
};
|
23
|
+
export declare const getSavedPipelines: () => PipelineBuilderThunkAction<void>;
|
24
|
+
export declare const updatePipelineList: () => PipelineBuilderThunkAction<void>;
|
25
|
+
export declare const deletePipeline: (pipelineId: string) => PipelineBuilderThunkAction<Promise<void>>;
|
26
|
+
export declare const openPipelineById: (id: string) => PipelineBuilderThunkAction<Promise<void>>;
|
27
|
+
export declare const saveCurrentPipeline: () => PipelineBuilderThunkAction<void>;
|
28
|
+
//# sourceMappingURL=saved-pipeline.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"saved-pipeline.d.ts","sourceRoot":"","sources":["../../../src/modules/saved-pipeline.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,GAAG,CAAC;AACpD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAQhE,eAAO,MAAM,wBAAwB,QAAuB,CAAC;AAC7D,eAAO,MAAM,kBAAkB,QAAkB,CAAC;AAClD,eAAO,MAAM,gBAAgB,QAA+B,CAAC;AAE7D,oBAAY,kBAAkB,GAAG;IAC/B,SAAS,EAAE,cAAc,EAAE,CAAC;IAC5B,QAAQ,EAAE,OAAO,CAAC;IAClB,aAAa,EAAE,OAAO,CAAC;CACxB,CAAC;AAEF,eAAO,MAAM,aAAa,EAAE,kBAI3B,CAAC;AAuBF,MAAM,CAAC,OAAO,UAAU,OAAO,CAAC,KAAK,gCAAgB,EAAE,MAAM,EAAE,SAAS;;;;EAGvE;AAED,eAAO,MAAM,qBAAqB,SACzB,OAAO,KAAG,2BAA2B,IAAI,CAS/C,CAAC;AAEJ,eAAO,MAAM,gBAAgB,cAAe,cAAc,EAAE;;;CAG1D,CAAC;AAEH,eAAO,MAAM,iBAAiB,QAAO,2BAA2B,IAAI,CAKjE,CAAC;AAKJ,eAAO,MAAM,kBAAkB,QAAO,2BAA2B,IAAI,CAclE,CAAC;AAKJ,eAAO,MAAM,cAAc,eACb,MAAM,KACjB,2BAA2B,QAAQ,IAAI,CAAC,CAK1C,CAAC;AAKF,eAAO,MAAM,gBAAgB,OACvB,MAAM,KACT,2BAA2B,QAAQ,IAAI,CAAC,CAqB1C,CAAC;AAKF,eAAO,MAAM,mBAAmB,QAAO,2BAA2B,IAAI,CAwCrE,CAAC"}
|
@@ -0,0 +1,21 @@
|
|
1
|
+
export default function reducer(state: Object | undefined, action: Object): any;
|
2
|
+
export const SAVING_PIPELINE_NAME_CHANGED: "aggregations/saving-pipeline/NAME_CHANGED";
|
3
|
+
export const SAVING_PIPELINE_APPLY: "aggregations/saving-pipeline/APPLY";
|
4
|
+
export const SAVING_PIPELINE_CANCEL: "aggregations/saving-pipeline/CANCEL";
|
5
|
+
export const SAVING_PIPELINE_OPEN: "aggregations/saving-pipeline/OPEN";
|
6
|
+
export namespace INITIAL_STATE {
|
7
|
+
const isOpen: boolean;
|
8
|
+
const name: string;
|
9
|
+
const isSaveAs: boolean;
|
10
|
+
}
|
11
|
+
export function savingPipelineNameChanged(name: string): Object;
|
12
|
+
export function savingPipelineApply(): Object;
|
13
|
+
export function savingPipelineCancel(): Object;
|
14
|
+
export function savingPipelineOpen({ name, isSaveAs }?: {
|
15
|
+
name?: string | undefined;
|
16
|
+
isSaveAs?: boolean | undefined;
|
17
|
+
}): import("redux").AnyAction;
|
18
|
+
export function openCreateView(): (dispatch: any, getState: any, { pipelineBuilder }: {
|
19
|
+
pipelineBuilder: any;
|
20
|
+
}) => void;
|
21
|
+
//# sourceMappingURL=saving-pipeline.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"saving-pipeline.d.ts","sourceRoot":"","sources":["../../../src/modules/saving-pipeline.js"],"names":[],"mappings":"AA6BA,mEAJW,MAAM,GAEJ,GAAG,CAgCf;AAvDD,uFAAwF;AAExF,yEAA0E;AAE1E,2EAA4E;AAE5E,uEAAwE;;;;;;AA0DjE,yDAFM,MAAM,CAKjB;AAQK,uCAFM,MAAM,CAYlB;AAMM,wCAFM,MAAM,CAIjB;AAOK;;;IAFM,OAAO,OAAO,EAAE,SAAS,CAQrC;AAQM;;WAgBN"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"server-version.d.ts","sourceRoot":"","sources":["../../../src/modules/server-version.js"],"names":[],"mappings":"AAaA,wDAEC;AAZD,oCAAqC"}
|
@@ -0,0 +1,33 @@
|
|
1
|
+
import type { AnyAction, Reducer } from 'redux';
|
2
|
+
import type { PipelineBuilderThunkAction } from '.';
|
3
|
+
export declare const TOGGLE_IS_EXPANDED: string;
|
4
|
+
export declare const TOGGLE_COMMENT_MODE: string;
|
5
|
+
export declare const SET_SAMPLE_SIZE: string;
|
6
|
+
export declare const SET_LIMIT: string;
|
7
|
+
export declare const APPLY_SETTINGS: string;
|
8
|
+
declare type State = {
|
9
|
+
isExpanded: boolean;
|
10
|
+
isCommentMode: boolean;
|
11
|
+
isDirty: boolean;
|
12
|
+
sampleSize: number;
|
13
|
+
limit: number;
|
14
|
+
};
|
15
|
+
export declare const INITIAL_STATE: State;
|
16
|
+
declare const reducer: Reducer<State, AnyAction>;
|
17
|
+
export declare const toggleSettingsIsExpanded: () => {
|
18
|
+
type: string;
|
19
|
+
};
|
20
|
+
export declare const toggleSettingsIsCommentMode: () => {
|
21
|
+
type: string;
|
22
|
+
};
|
23
|
+
export declare const setSettingsSampleSize: (value: number) => {
|
24
|
+
type: string;
|
25
|
+
value: number;
|
26
|
+
};
|
27
|
+
export declare const setSettingsLimit: (value: number) => {
|
28
|
+
type: string;
|
29
|
+
value: number;
|
30
|
+
};
|
31
|
+
export declare const applySettings: () => PipelineBuilderThunkAction<void>;
|
32
|
+
export default reducer;
|
33
|
+
//# sourceMappingURL=settings.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"settings.d.ts","sourceRoot":"","sources":["../../../src/modules/settings.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AAEhD,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,GAAG,CAAC;AAIpD,eAAO,MAAM,kBAAkB,QAAiC,CAAC;AAEjE,eAAO,MAAM,mBAAmB,QAAkC,CAAC;AAEnE,eAAO,MAAM,eAAe,QAA8B,CAAC;AAE3D,eAAO,MAAM,SAAS,QAAwB,CAAC;AAE/C,eAAO,MAAM,cAAc,QAA6B,CAAC;AASzD,aAAK,KAAK,GAAG;IACX,UAAU,EAAE,OAAO,CAAC;IACpB,aAAa,EAAE,OAAO,CAAC;IACvB,OAAO,EAAE,OAAO,CAAC;IACjB,UAAU,EAAE,MAAM,CAAC;IACnB,KAAK,EAAE,MAAM,CAAA;CACd,CAAC;AAEF,eAAO,MAAM,aAAa,EAAE,KAM3B,CAAC;AAEF,QAAA,MAAM,OAAO,EAAE,OAAO,CAAC,KAAK,EAAE,SAAS,CA6CtC,CAAA;AAED,eAAO,MAAM,wBAAwB;;CAEnC,CAAC;AAEH,eAAO,MAAM,2BAA2B;;CAEtC,CAAC;AAEH,eAAO,MAAM,qBAAqB,UAAW,MAAM;;;CAGjD,CAAC;AAEH,eAAO,MAAM,gBAAgB,UAAW,MAAM;;;CAG5C,CAAC;AAOH,eAAO,MAAM,aAAa,QAAO,2BAA2B,IAAI,CAW/D,CAAC;AAEF,eAAe,OAAO,CAAC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"source-name.d.ts","sourceRoot":"","sources":["../../../src/modules/source-name.js"],"names":[],"mappings":"AAaA,wCALW,GAAG,GAGD,GAAG,CAIf;AAZD,iCAAkC"}
|