@mongodb-js/compass-aggregations 9.7.0 → 9.9.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.js +1 -1
- package/dist/src/components/add-stage/add-stage.d.ts +1 -1
- package/dist/src/components/add-stage/add-stage.d.ts.map +1 -1
- package/dist/src/components/add-stage/index.d.ts +1 -1
- package/dist/src/components/add-stage/index.d.ts.map +1 -1
- package/dist/src/components/aggregation-side-panel/feedback-link.d.ts +3 -0
- package/dist/src/components/aggregation-side-panel/feedback-link.d.ts.map +1 -0
- package/dist/src/components/aggregation-side-panel/index.d.ts +12 -0
- package/dist/src/components/aggregation-side-panel/index.d.ts.map +1 -0
- package/dist/src/components/aggregation-side-panel/stage-wizard-use-cases/index.d.ts +15 -0
- package/dist/src/components/aggregation-side-panel/stage-wizard-use-cases/index.d.ts.map +1 -0
- package/dist/src/components/aggregation-side-panel/stage-wizard-use-cases/project/project.d.ts +20 -0
- package/dist/src/components/aggregation-side-panel/stage-wizard-use-cases/project/project.d.ts.map +1 -0
- package/dist/src/components/aggregation-side-panel/stage-wizard-use-cases/sort/sort.d.ts +7 -0
- package/dist/src/components/aggregation-side-panel/stage-wizard-use-cases/sort/sort.d.ts.map +1 -0
- package/dist/src/components/aggregation-side-panel/stage-wizard-use-cases/use-case-list.d.ts +6 -0
- package/dist/src/components/aggregation-side-panel/stage-wizard-use-cases/use-case-list.d.ts.map +1 -0
- package/dist/src/components/aggregations/aggregations.d.ts +2 -2
- package/dist/src/components/aggregations/aggregations.d.ts.map +1 -1
- package/dist/src/components/aggregations/index.d.ts +2 -2
- package/dist/src/components/aggregations/index.d.ts.map +1 -1
- package/dist/src/components/create-view-modal/create-view-modal.d.ts +2 -2
- package/dist/src/components/create-view-modal/create-view-modal.d.ts.map +1 -1
- package/dist/src/components/create-view-modal/index.d.ts +2 -2
- package/dist/src/components/create-view-modal/index.d.ts.map +1 -1
- package/dist/src/components/create-view-plugin.d.ts +3 -3
- package/dist/src/components/create-view-plugin.d.ts.map +1 -1
- package/dist/src/components/duplicate-view-modal/duplicate-view-modal.d.ts +2 -2
- package/dist/src/components/duplicate-view-modal/duplicate-view-modal.d.ts.map +1 -1
- package/dist/src/components/duplicate-view-modal/index.d.ts +2 -2
- package/dist/src/components/duplicate-view-modal/index.d.ts.map +1 -1
- package/dist/src/components/duplicate-view-plugin.d.ts +2 -2
- package/dist/src/components/duplicate-view-plugin.d.ts.map +1 -1
- package/dist/src/components/focus-mode/focus-mode-modal-header.d.ts +6 -2
- package/dist/src/components/focus-mode/focus-mode-modal-header.d.ts.map +1 -1
- package/dist/src/components/focus-mode/focus-mode-stage-editor.d.ts.map +1 -1
- package/dist/src/components/focus-mode/focus-mode-stage-preview.d.ts +1 -1
- package/dist/src/components/focus-mode/focus-mode-stage-preview.d.ts.map +1 -1
- package/dist/src/components/focus-mode/focus-mode.d.ts +1 -1
- package/dist/src/components/focus-mode/focus-mode.d.ts.map +1 -1
- package/dist/src/components/loading-overlay/index.d.ts +1 -1
- package/dist/src/components/loading-overlay/index.d.ts.map +1 -1
- package/dist/src/components/loading-overlay/loading-overlay.d.ts +1 -1
- package/dist/src/components/loading-overlay/loading-overlay.d.ts.map +1 -1
- package/dist/src/components/modify-source-banner/index.d.ts +1 -1
- package/dist/src/components/modify-source-banner/index.d.ts.map +1 -1
- package/dist/src/components/modify-source-banner/modify-source-banner.d.ts +1 -1
- package/dist/src/components/modify-source-banner/modify-source-banner.d.ts.map +1 -1
- package/dist/src/components/pipeline/index.d.ts +1 -1
- package/dist/src/components/pipeline/index.d.ts.map +1 -1
- package/dist/src/components/pipeline/pipeline.d.ts +2 -2
- package/dist/src/components/pipeline/pipeline.d.ts.map +1 -1
- package/dist/src/components/pipeline-builder-input-documents.d.ts +1 -1
- package/dist/src/components/pipeline-builder-input-documents.d.ts.map +1 -1
- package/dist/src/components/pipeline-builder-workspace/index.d.ts +12 -2
- package/dist/src/components/pipeline-builder-workspace/index.d.ts.map +1 -1
- package/dist/src/components/pipeline-builder-workspace/pipeline-as-text-workspace/index.d.ts +1 -1
- package/dist/src/components/pipeline-builder-workspace/pipeline-as-text-workspace/index.d.ts.map +1 -1
- package/dist/src/components/pipeline-builder-workspace/pipeline-as-text-workspace/pipeline-editor.d.ts +1 -1
- package/dist/src/components/pipeline-builder-workspace/pipeline-as-text-workspace/pipeline-editor.d.ts.map +1 -1
- package/dist/src/components/pipeline-builder-workspace/pipeline-as-text-workspace/pipeline-preview.d.ts +1 -1
- package/dist/src/components/pipeline-builder-workspace/pipeline-as-text-workspace/pipeline-preview.d.ts.map +1 -1
- package/dist/src/components/pipeline-builder-workspace/pipeline-as-text-workspace/pipeline-stages-preview.d.ts +1 -1
- package/dist/src/components/pipeline-builder-workspace/pipeline-as-text-workspace/pipeline-stages-preview.d.ts.map +1 -1
- package/dist/src/components/pipeline-builder-workspace/{pipeline-builder-ui-workspace.d.ts → pipeline-builder-ui-workspace/index.d.ts} +4 -3
- package/dist/src/components/pipeline-builder-workspace/pipeline-builder-ui-workspace/index.d.ts.map +1 -0
- package/dist/src/components/pipeline-builder-workspace/pipeline-builder-ui-workspace/sortable-list.d.ts +16 -0
- package/dist/src/components/pipeline-builder-workspace/pipeline-builder-ui-workspace/sortable-list.d.ts.map +1 -0
- package/dist/src/components/pipeline-explain/explain-indexes.d.ts +1 -1
- package/dist/src/components/pipeline-explain/explain-indexes.d.ts.map +1 -1
- package/dist/src/components/pipeline-explain/explain-query-performance.d.ts +1 -1
- package/dist/src/components/pipeline-explain/explain-query-performance.d.ts.map +1 -1
- package/dist/src/components/pipeline-explain/explain-results.d.ts +1 -1
- package/dist/src/components/pipeline-explain/explain-results.d.ts.map +1 -1
- package/dist/src/components/pipeline-explain/index.d.ts +1 -1
- package/dist/src/components/pipeline-explain/index.d.ts.map +1 -1
- package/dist/src/components/pipeline-output-options-menu.d.ts +1 -1
- package/dist/src/components/pipeline-output-options-menu.d.ts.map +1 -1
- package/dist/src/components/pipeline-results-workspace/index.d.ts +1 -1
- package/dist/src/components/pipeline-results-workspace/index.d.ts.map +1 -1
- package/dist/src/components/pipeline-results-workspace/pipeline-pagination-count.d.ts +1 -1
- package/dist/src/components/pipeline-results-workspace/pipeline-pagination-count.d.ts.map +1 -1
- package/dist/src/components/pipeline-results-workspace/pipeline-pagination.d.ts +1 -1
- package/dist/src/components/pipeline-results-workspace/pipeline-pagination.d.ts.map +1 -1
- package/dist/src/components/pipeline-results-workspace/pipeline-results-header.d.ts +1 -1
- package/dist/src/components/pipeline-results-workspace/pipeline-results-header.d.ts.map +1 -1
- package/dist/src/components/pipeline-results-workspace/pipeline-results-list.d.ts +1 -1
- package/dist/src/components/pipeline-results-workspace/pipeline-results-list.d.ts.map +1 -1
- package/dist/src/components/pipeline-toolbar/index.d.ts +1 -1
- package/dist/src/components/pipeline-toolbar/index.d.ts.map +1 -1
- package/dist/src/components/pipeline-toolbar/pipeline-header/index.d.ts +1 -1
- package/dist/src/components/pipeline-toolbar/pipeline-header/index.d.ts.map +1 -1
- package/dist/src/components/pipeline-toolbar/pipeline-header/pipeline-actions.d.ts +1 -1
- package/dist/src/components/pipeline-toolbar/pipeline-header/pipeline-actions.d.ts.map +1 -1
- package/dist/src/components/pipeline-toolbar/pipeline-header/pipeline-stages.d.ts +1 -1
- package/dist/src/components/pipeline-toolbar/pipeline-header/pipeline-stages.d.ts.map +1 -1
- package/dist/src/components/pipeline-toolbar/pipeline-settings/index.d.ts +1 -1
- package/dist/src/components/pipeline-toolbar/pipeline-settings/index.d.ts.map +1 -1
- package/dist/src/components/pipeline-toolbar/pipeline-settings/pipeline-extra-settings.d.ts +3 -1
- package/dist/src/components/pipeline-toolbar/pipeline-settings/pipeline-extra-settings.d.ts.map +1 -1
- package/dist/src/components/pipeline-toolbar/pipeline-settings/pipeline-menus.d.ts +1 -1
- package/dist/src/components/pipeline-toolbar/pipeline-settings/pipeline-menus.d.ts.map +1 -1
- package/dist/src/components/pipeline-toolbar/pipeline-settings/pipeline-name.d.ts +1 -1
- package/dist/src/components/pipeline-toolbar/pipeline-settings/pipeline-name.d.ts.map +1 -1
- package/dist/src/components/saved-pipelines/saved-pipeline-card.d.ts +1 -1
- package/dist/src/components/saved-pipelines/saved-pipeline-card.d.ts.map +1 -1
- package/dist/src/components/saved-pipelines/saved-pipelines.d.ts +6 -10
- package/dist/src/components/saved-pipelines/saved-pipelines.d.ts.map +1 -1
- package/dist/src/components/saving-pipeline-modal/index.d.ts +1 -1
- package/dist/src/components/saving-pipeline-modal/index.d.ts.map +1 -1
- package/dist/src/components/saving-pipeline-modal/saving-pipeline-modal.d.ts +2 -2
- package/dist/src/components/saving-pipeline-modal/saving-pipeline-modal.d.ts.map +1 -1
- package/dist/src/components/settings/settings.d.ts +1 -1
- package/dist/src/components/settings/settings.d.ts.map +1 -1
- package/dist/src/components/stage-editor/index.d.ts +1 -1
- package/dist/src/components/stage-editor/index.d.ts.map +1 -1
- package/dist/src/components/stage-editor/stage-editor.d.ts +10 -7
- package/dist/src/components/stage-editor/stage-editor.d.ts.map +1 -1
- package/dist/src/components/stage-preview/index.d.ts +1 -1
- package/dist/src/components/stage-preview/index.d.ts.map +1 -1
- package/dist/src/components/stage-preview/output-stage-preview.d.ts +1 -1
- package/dist/src/components/stage-preview/output-stage-preview.d.ts.map +1 -1
- package/dist/src/components/stage-preview/stage-preview-header.d.ts +1 -1
- package/dist/src/components/stage-preview/stage-preview-header.d.ts.map +1 -1
- package/dist/src/components/stage-toolbar/index.d.ts +5 -5
- package/dist/src/components/stage-toolbar/index.d.ts.map +1 -1
- package/dist/src/components/stage-toolbar/option-menu.d.ts.map +1 -1
- package/dist/src/components/stage-toolbar/stage-collapser.d.ts.map +1 -1
- package/dist/src/components/stage-toolbar/stage-operator-select.d.ts +15 -22
- package/dist/src/components/stage-toolbar/stage-operator-select.d.ts.map +1 -1
- package/dist/src/components/stage-toolbar/toggle-stage.d.ts.map +1 -1
- package/dist/src/components/stage-wizard/index.d.ts +23 -0
- package/dist/src/components/stage-wizard/index.d.ts.map +1 -0
- package/dist/src/components/stage.d.ts +6 -3
- package/dist/src/components/stage.d.ts.map +1 -1
- package/dist/src/index.d.ts +1 -1
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/modules/aggregation.d.ts +10 -10
- package/dist/src/modules/aggregation.d.ts.map +1 -1
- package/dist/src/modules/auto-preview.d.ts +1 -1
- package/dist/src/modules/auto-preview.d.ts.map +1 -1
- package/dist/src/modules/collation-string.d.ts +2 -2
- package/dist/src/modules/collation-string.d.ts.map +1 -1
- package/dist/src/modules/count-documents.d.ts +5 -5
- package/dist/src/modules/count-documents.d.ts.map +1 -1
- package/dist/src/modules/create-view/index.d.ts +7 -7
- package/dist/src/modules/create-view/index.d.ts.map +1 -1
- package/dist/src/modules/data-service.d.ts +1 -1
- package/dist/src/modules/data-service.d.ts.map +1 -1
- package/dist/src/modules/explain.d.ts +8 -8
- package/dist/src/modules/explain.d.ts.map +1 -1
- package/dist/src/modules/fields.d.ts +16 -4
- package/dist/src/modules/fields.d.ts.map +1 -1
- package/dist/src/modules/focus-mode.d.ts +3 -3
- package/dist/src/modules/focus-mode.d.ts.map +1 -1
- package/dist/src/modules/index.d.ts +8 -7
- package/dist/src/modules/index.d.ts.map +1 -1
- package/dist/src/modules/indexes.d.ts +4 -4
- package/dist/src/modules/indexes.d.ts.map +1 -1
- package/dist/src/modules/input-documents.d.ts +4 -4
- package/dist/src/modules/input-documents.d.ts.map +1 -1
- package/dist/src/modules/is-datalake.d.ts +1 -1
- package/dist/src/modules/is-datalake.d.ts.map +1 -1
- package/dist/src/modules/is-new-pipeline-confirm.d.ts +0 -10
- package/dist/src/modules/is-new-pipeline-confirm.d.ts.map +1 -1
- package/dist/src/modules/max-time-ms.d.ts +1 -1
- package/dist/src/modules/max-time-ms.d.ts.map +1 -1
- package/dist/src/modules/pipeline-builder/builder-helpers.d.ts +1 -1
- package/dist/src/modules/pipeline-builder/builder-helpers.d.ts.map +1 -1
- package/dist/src/modules/pipeline-builder/pipeline-mode.d.ts +3 -3
- package/dist/src/modules/pipeline-builder/pipeline-mode.d.ts.map +1 -1
- package/dist/src/modules/pipeline-builder/pipeline-parser/pipeline-parser.d.ts +2 -2
- package/dist/src/modules/pipeline-builder/pipeline-parser/pipeline-parser.d.ts.map +1 -1
- package/dist/src/modules/pipeline-builder/pipeline-parser/stage-parser.d.ts +1 -1
- package/dist/src/modules/pipeline-builder/pipeline-parser/stage-parser.d.ts.map +1 -1
- package/dist/src/modules/pipeline-builder/pipeline-parser/utils.d.ts +2 -1
- package/dist/src/modules/pipeline-builder/pipeline-parser/utils.d.ts.map +1 -1
- package/dist/src/modules/pipeline-builder/pipeline-preview-manager.d.ts +3 -1
- package/dist/src/modules/pipeline-builder/pipeline-preview-manager.d.ts.map +1 -1
- package/dist/src/modules/pipeline-builder/stage-editor.d.ts +91 -34
- package/dist/src/modules/pipeline-builder/stage-editor.d.ts.map +1 -1
- package/dist/src/modules/pipeline-builder/stage-ids.d.ts +2 -0
- package/dist/src/modules/pipeline-builder/stage-ids.d.ts.map +1 -0
- package/dist/src/modules/pipeline-builder/stage.d.ts.map +1 -1
- package/dist/src/modules/pipeline-builder/text-editor-output-stage.d.ts +1 -1
- package/dist/src/modules/pipeline-builder/text-editor-output-stage.d.ts.map +1 -1
- package/dist/src/modules/pipeline-builder/text-editor-pipeline.d.ts +6 -6
- package/dist/src/modules/pipeline-builder/text-editor-pipeline.d.ts.map +1 -1
- package/dist/src/modules/saved-pipeline.d.ts +4 -3
- package/dist/src/modules/saved-pipeline.d.ts.map +1 -1
- package/dist/src/modules/settings.d.ts +1 -1
- package/dist/src/modules/settings.d.ts.map +1 -1
- package/dist/src/modules/side-panel.d.ts +15 -0
- package/dist/src/modules/side-panel.d.ts.map +1 -0
- package/dist/src/modules/update-view.d.ts.map +1 -1
- package/dist/src/modules/workspace.d.ts +4 -4
- package/dist/src/modules/workspace.d.ts.map +1 -1
- package/dist/src/plugin.d.ts +4 -5
- package/dist/src/plugin.d.ts.map +1 -1
- package/dist/src/stores/store.d.ts +111 -4
- package/dist/src/stores/store.d.ts.map +1 -1
- package/dist/src/utils/get-schema.d.ts +3 -0
- package/dist/src/utils/get-schema.d.ts.map +1 -0
- package/dist/src/utils/pipeline-storage.d.ts +1 -1
- package/dist/src/utils/pipeline-storage.d.ts.map +1 -1
- package/dist/src/utils/stage.d.ts +1 -1
- package/dist/src/utils/stage.d.ts.map +1 -1
- package/package.json +28 -28
- package/dist/src/components/pipeline-builder-workspace/pipeline-builder-ui-workspace.d.ts.map +0 -1
- package/dist/src/components/pipeline-builder-workspace/pipeline-builder-workspace.d.ts +0 -12
- package/dist/src/components/pipeline-builder-workspace/pipeline-builder-workspace.d.ts.map +0 -1
- package/dist/src/components/pipeline-confirm-modal/pipeline-confirm-modal.d.ts +0 -13
- package/dist/src/components/pipeline-confirm-modal/pipeline-confirm-modal.d.ts.map +0 -1
- package/dist/src/components/saved-pipelines/saved-pipeline-confirmation-modals.d.ts +0 -12
- package/dist/src/components/saved-pipelines/saved-pipeline-confirmation-modals.d.ts.map +0 -1
- package/dist/src/modules/is-readonly.d.ts +0 -3
- package/dist/src/modules/is-readonly.d.ts.map +0 -1
- package/dist/src/stores/index.d.ts +0 -4
- package/dist/src/stores/index.d.ts.map +0 -1
- package/dist/src/utils/configure-store.d.ts +0 -5
- package/dist/src/utils/configure-store.d.ts.map +0 -1
@@ -1,9 +1,10 @@
|
|
1
1
|
import type { Node } from '@babel/types';
|
2
2
|
import type { Document } from 'mongodb';
|
3
3
|
import type { FormatOptions } from '@mongodb-js/compass-editor';
|
4
|
-
|
4
|
+
type ErrorLoc = {
|
5
5
|
line: number;
|
6
6
|
column: number;
|
7
|
+
index?: number;
|
7
8
|
};
|
8
9
|
export declare class PipelineParserError extends SyntaxError {
|
9
10
|
loc?: ErrorLoc | undefined;
|
@@ -1 +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;AAEzC,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAExC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAEhE,
|
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;AAEzC,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAExC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAEhE,KAAK,QAAQ,GAAG;IACd,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,qBAAa,mBAAoB,SAAQ,WAAW;IACd,GAAG,CAAC;IAAmB,IAAI,CAAC;gBAApD,OAAO,EAAE,MAAM,EAAS,GAAG,CAAC,sBAAU,EAAS,IAAI,CAAC,oBAAQ;CAGzE;AAED,wBAAgB,QAAQ,CAAC,GAAG,EAAE,IAAI,EAAE,aAAa,CAAC,EAAE,aAAa,UAMhE;AAMD,wBAAgB,cAAc,CAAC,MAAM,EAAE,MAAM,GAAG,QAAQ,EAAE,CAQzD;AAED,OAAO,EAAE,QAAQ,EAAE,MAAM,4BAA4B,CAAC"}
|
@@ -8,7 +8,9 @@ export interface PreviewOptions extends AggregateOptions {
|
|
8
8
|
sampleSize?: number;
|
9
9
|
previewSize?: number;
|
10
10
|
}
|
11
|
-
export declare function createPreviewAggregation(pipeline: Document[], options?: Pick<PreviewOptions, 'sampleSize' | 'previewSize' | 'totalDocumentCount'>): Document
|
11
|
+
export declare function createPreviewAggregation(pipeline: Document[], options?: Pick<PreviewOptions, 'sampleSize' | 'previewSize' | 'totalDocumentCount'>): (Document | {
|
12
|
+
$limit: number;
|
13
|
+
})[];
|
12
14
|
export declare class PipelinePreviewManager {
|
13
15
|
private dataService;
|
14
16
|
private queue;
|
@@ -1 +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;AAc1D,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
|
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;AAc1D,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;;KA4BP;AAED,qBAAa,sBAAsB;IAGrB,OAAO,CAAC,WAAW;IAF/B,OAAO,CAAC,KAAK,CAAsC;IACnD,OAAO,CAAC,YAAY,CAAiC;gBACjC,WAAW,EAAE,WAAW;IAKtC,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;IAuBtB,mBAAmB,CAAC,GAAG,EAAE,MAAM,EAAE,QAAQ,EAAE,QAAQ,EAAE,GAAG,OAAO;IAO/D,qBAAqB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO;IAS3C,UAAU,CAAC,IAAI,SAAI;CASpB"}
|
@@ -17,100 +17,157 @@ export declare const enum StageEditorActionTypes {
|
|
17
17
|
StageDisabledChange = "compass-aggregations/pipeline-builder/stage-editor/StageDisabledChange",
|
18
18
|
StageAdded = "compass-aggregations/pipeline-builder/stage-editor/StageAdded",
|
19
19
|
StageRemoved = "compass-aggregations/pipeline-builder/stage-editor/StageRemoved",
|
20
|
-
StageMoved = "compass-aggregations/pipeline-builder/stage-editor/StageMoved"
|
20
|
+
StageMoved = "compass-aggregations/pipeline-builder/stage-editor/StageMoved",
|
21
|
+
WizardAdded = "compass-aggregations/pipeline-builder/stage-wizard/WizardAdded",
|
22
|
+
WizardRemoved = "compass-aggregations/pipeline-builder/stage-wizard/WizardRemoved",
|
23
|
+
WizardChanged = "compass-aggregations/pipeline-builder/stage-wizard/WizardChanged",
|
24
|
+
WizardToStageClicked = "compass-aggregations/pipeline-builder/stage-wizard/wizardToStageClicked"
|
21
25
|
}
|
22
|
-
export
|
26
|
+
export type StagePreviewFetchAction = {
|
23
27
|
type: StageEditorActionTypes.StagePreviewFetch;
|
24
28
|
id: number;
|
25
29
|
};
|
26
|
-
export
|
30
|
+
export type StagePreviewFetchSkippedAction = {
|
27
31
|
type: StageEditorActionTypes.StagePreviewFetchSkipped;
|
28
32
|
id: number;
|
29
33
|
};
|
30
|
-
export
|
34
|
+
export type StagePreviewFetchSuccessAction = {
|
31
35
|
type: StageEditorActionTypes.StagePreviewFetchSuccess;
|
32
36
|
id: number;
|
33
37
|
previewDocs: Document[];
|
34
38
|
};
|
35
|
-
export
|
39
|
+
export type StagePreviewFetchErrorAction = {
|
36
40
|
type: StageEditorActionTypes.StagePreviewFetchError;
|
37
41
|
id: number;
|
38
42
|
error: MongoServerError;
|
39
43
|
};
|
40
|
-
export
|
44
|
+
export type StageRunAction = {
|
41
45
|
type: StageEditorActionTypes.StageRun;
|
42
46
|
id: number;
|
43
47
|
};
|
44
|
-
export
|
48
|
+
export type StageRunSuccessAction = {
|
45
49
|
type: StageEditorActionTypes.StageRunSuccess;
|
46
50
|
id: number;
|
47
51
|
previewDocs: Document[];
|
48
52
|
};
|
49
|
-
export
|
53
|
+
export type StageRunErrorAction = {
|
50
54
|
type: StageEditorActionTypes.StageRunError;
|
51
55
|
id: number;
|
52
56
|
error: MongoServerError;
|
53
57
|
};
|
54
|
-
export
|
58
|
+
export type ChangeStageValueAction = {
|
55
59
|
type: StageEditorActionTypes.StageValueChange;
|
56
60
|
id: number;
|
57
61
|
stage: Stage;
|
58
62
|
};
|
59
|
-
export
|
63
|
+
export type ChangeStageOperatorAction = {
|
60
64
|
type: StageEditorActionTypes.StageOperatorChange;
|
61
65
|
id: number;
|
62
66
|
stage: Stage;
|
63
67
|
};
|
64
|
-
export
|
68
|
+
export type ChangeStageCollapsedAction = {
|
65
69
|
type: StageEditorActionTypes.StageCollapsedChange;
|
66
70
|
id: number;
|
67
71
|
collapsed: boolean;
|
68
72
|
};
|
69
|
-
export
|
73
|
+
export type ChangeStageDisabledAction = {
|
70
74
|
type: StageEditorActionTypes.StageDisabledChange;
|
71
75
|
id: number;
|
72
76
|
disabled: boolean;
|
73
77
|
};
|
74
|
-
export
|
78
|
+
export type StageAddAction = {
|
75
79
|
type: StageEditorActionTypes.StageAdded;
|
76
|
-
after
|
77
|
-
stage:
|
80
|
+
after: number;
|
81
|
+
stage: StoreStage;
|
78
82
|
};
|
79
|
-
export
|
83
|
+
export type StageRemoveAction = {
|
80
84
|
type: StageEditorActionTypes.StageRemoved;
|
81
85
|
at: number;
|
82
86
|
};
|
83
|
-
export
|
87
|
+
export type StageMoveAction = {
|
84
88
|
type: StageEditorActionTypes.StageMoved;
|
85
89
|
from: number;
|
86
90
|
to: number;
|
87
91
|
};
|
92
|
+
type WizardAddAction = {
|
93
|
+
type: StageEditorActionTypes.WizardAdded;
|
94
|
+
wizard: Wizard;
|
95
|
+
after: number;
|
96
|
+
};
|
97
|
+
type WizardRemoveAction = {
|
98
|
+
type: StageEditorActionTypes.WizardRemoved;
|
99
|
+
at: number;
|
100
|
+
};
|
101
|
+
type WizardChangeAction = {
|
102
|
+
type: StageEditorActionTypes.WizardChanged;
|
103
|
+
at: number;
|
104
|
+
value: string | null;
|
105
|
+
syntaxError: SyntaxError | null;
|
106
|
+
};
|
107
|
+
type WizardToStageAction = {
|
108
|
+
type: StageEditorActionTypes.WizardToStageClicked;
|
109
|
+
at: number;
|
110
|
+
stage: StoreStage;
|
111
|
+
};
|
112
|
+
export declare function storeIndexToPipelineIndex(stages: StageEditorState['stages'], indexInStore: number, { includeIndex }?: {
|
113
|
+
includeIndex: boolean;
|
114
|
+
}): number;
|
115
|
+
export declare function pipelineFromStore(stages: StageEditorState['stages']): StoreStage[];
|
116
|
+
export declare function wizardsFromStore(stages: StageEditorState['stages']): Wizard[];
|
88
117
|
export declare const loadStagePreview: (idx: number) => PipelineBuilderThunkAction<Promise<void>, StagePreviewFetchAction | StagePreviewFetchSuccessAction | StagePreviewFetchErrorAction | StagePreviewFetchSkippedAction>;
|
89
118
|
export declare const loadPreviewForStagesFrom: (from: number) => PipelineBuilderThunkAction<void>;
|
90
119
|
export declare const runStage: (idx: number) => PipelineBuilderThunkAction<Promise<void>>;
|
91
120
|
export declare const changeStageValue: (id: number, newVal: string) => PipelineBuilderThunkAction<void, ChangeStageValueAction>;
|
92
|
-
export declare const changeStageOperator: (id: number, newVal: string) => PipelineBuilderThunkAction<
|
121
|
+
export declare const changeStageOperator: (id: number, newVal: string) => PipelineBuilderThunkAction<string | undefined, ChangeStageOperatorAction>;
|
93
122
|
export declare const changeStageDisabled: (id: number, newVal: boolean) => PipelineBuilderThunkAction<void, ChangeStageDisabledAction>;
|
94
123
|
export declare const changeStageCollapsed: (id: number, newVal: boolean) => ChangeStageCollapsedAction;
|
95
124
|
export declare const addStage: (after?: number) => PipelineBuilderThunkAction<void, StageAddAction>;
|
96
125
|
export declare const removeStage: (at: number) => PipelineBuilderThunkAction<void, StageRemoveAction>;
|
97
126
|
export declare const moveStage: (from: number, to: number) => PipelineBuilderThunkAction<void, StageMoveAction>;
|
98
|
-
export
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
127
|
+
export type AddWizardParams = {
|
128
|
+
usecaseId: number;
|
129
|
+
formValues: unknown;
|
130
|
+
after?: number;
|
131
|
+
};
|
132
|
+
export declare const addWizard: (useCaseId: string, stageOperator: string, after?: number) => PipelineBuilderThunkAction<void, WizardAddAction>;
|
133
|
+
export declare const removeWizard: (at: number) => WizardRemoveAction;
|
134
|
+
export declare const updateWizardValue: (at: number, value: string) => PipelineBuilderThunkAction<void, WizardChangeAction>;
|
135
|
+
export declare const convertWizardToStage: (at: number) => PipelineBuilderThunkAction<void, WizardChangeAction | WizardToStageAction>;
|
136
|
+
export type StoreStage = {
|
137
|
+
id: number;
|
138
|
+
idxInPipeline: number;
|
139
|
+
type: 'stage';
|
140
|
+
stageOperator: string | null;
|
141
|
+
value: string | null;
|
142
|
+
syntaxError: PipelineParserError | null;
|
143
|
+
serverError: MongoServerError | null;
|
144
|
+
loading: boolean;
|
145
|
+
previewDocs: Document[] | null;
|
146
|
+
collapsed: boolean;
|
147
|
+
disabled: boolean;
|
148
|
+
empty: boolean;
|
149
|
+
};
|
150
|
+
export type Wizard = {
|
151
|
+
id: number;
|
152
|
+
type: 'wizard';
|
153
|
+
useCaseId: string;
|
154
|
+
stageOperator: string;
|
155
|
+
value: string | null;
|
156
|
+
syntaxError: SyntaxError | null;
|
157
|
+
};
|
158
|
+
export type StageIdAndType = {
|
159
|
+
id: number;
|
160
|
+
type: 'stage' | 'wizard';
|
161
|
+
};
|
162
|
+
export type StageEditorState = {
|
163
|
+
stagesIdAndType: StageIdAndType[];
|
164
|
+
stages: (StoreStage | Wizard)[];
|
165
|
+
};
|
166
|
+
export declare function mapBuilderStageToStoreStage(stage: Stage, idxInPipeline: number): StoreStage;
|
167
|
+
export declare function mapStoreStagesToStageIdAndType(stages: Pick<StageEditorState['stages'][number], 'id' | 'type'>[]): Array<{
|
168
|
+
id: number;
|
169
|
+
type: 'stage' | 'wizard';
|
170
|
+
}>;
|
114
171
|
declare const reducer: Reducer<StageEditorState>;
|
115
172
|
export default reducer;
|
116
173
|
//# sourceMappingURL=stage-editor.d.ts.map
|
@@ -1 +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;
|
1
|
+
{"version":3,"file":"stage-editor.d.ts","sourceRoot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,EAAE,MAAM,GACpB,UAAU,CAeZ;AAED,wBAAgB,8BAA8B,CAC5C,MAAM,EAAE,IAAI,CAAC,gBAAgB,CAAC,QAAQ,CAAC,CAAC,MAAM,CAAC,EAAE,IAAI,GAAG,MAAM,CAAC,EAAE,GAChE,KAAK,CAAC;IAAE,EAAE,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,OAAO,GAAG,QAAQ,CAAA;CAAE,CAAC,CAEjD;AAED,QAAA,MAAM,OAAO,EAAE,OAAO,CAAC,gBAAgB,CAuRtC,CAAC;AAEF,eAAe,OAAO,CAAC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"stage-ids.d.ts","sourceRoot":"","sources":["../../../../src/modules/pipeline-builder/stage-ids.ts"],"names":[],"mappings":"AAEA,wBAAgB,KAAK,WAEpB"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"stage.d.ts","sourceRoot":"","sources":["../../../../src/modules/pipeline-builder/stage.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,CAAC,MAAM,cAAc,CAAC;AAUlC,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;
|
1
|
+
{"version":3,"file":"stage.d.ts","sourceRoot":"","sources":["../../../../src/modules/pipeline-builder/stage.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,CAAC,MAAM,cAAc,CAAC;AAUlC,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AA4BnE,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;IAiBnE,IAAI,OAAO,IAAI,OAAO,CAYrB;IAED,WAAW,CAAC,KAAK,EAAE,MAAM;IAgBzB,cAAc,CAAC,QAAQ,EAAE,MAAM;IAgB/B,cAAc,CAAC,KAAK,EAAE,OAAO;IAM7B,QAAQ;IAqDR,MAAM;CAMP"}
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import type { Reducer } from 'redux';
|
2
2
|
import type { MongoServerError } from 'mongodb';
|
3
3
|
import type { PipelineBuilderThunkAction } from '..';
|
4
|
-
|
4
|
+
type OutputStageState = {
|
5
5
|
isLoading: boolean;
|
6
6
|
serverError: MongoServerError | null;
|
7
7
|
isComplete: boolean;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"text-editor-output-stage.d.ts","sourceRoot":"","sources":["../../../../src/modules/pipeline-builder/text-editor-output-stage.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AACrC,OAAO,KAAK,EAAoB,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAElE,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,IAAI,CAAC;AA+BrD,
|
1
|
+
{"version":3,"file":"text-editor-output-stage.d.ts","sourceRoot":"","sources":["../../../../src/modules/pipeline-builder/text-editor-output-stage.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AACrC,OAAO,KAAK,EAAoB,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAElE,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,IAAI,CAAC;AA+BrD,KAAK,gBAAgB,GAAG;IACtB,SAAS,EAAE,OAAO,CAAC;IACnB,WAAW,EAAE,gBAAgB,GAAG,IAAI,CAAC;IACrC,UAAU,EAAE,OAAO,CAAC;CACrB,CAAC;AAQF,QAAA,MAAM,OAAO,EAAE,OAAO,CAAC,gBAAgB,CAwDtC,CAAC;AAEF,eAAO,MAAM,0BAA0B,QAAO,2BAC5C,QAAQ,IAAI,CAAC,CA8Cd,CAAC;AAEF,eAAO,MAAM,yBAAyB,QAChC,2BAA2B,IAAI,CAalC,CAAC;AAEJ,eAAe,OAAO,CAAC"}
|
@@ -9,27 +9,27 @@ export declare const enum EditorActionTypes {
|
|
9
9
|
EditorPreviewFetchError = "compass-aggregations/pipeline-builder/text-editor-pipeline/TextEditorPreviewFetchError",
|
10
10
|
EditorValueChange = "compass-aggregations/pipeline-builder/text-editor-pipeline/TextEditorValueChange"
|
11
11
|
}
|
12
|
-
export
|
12
|
+
export type EditorValueChangeAction = {
|
13
13
|
type: EditorActionTypes.EditorValueChange;
|
14
14
|
pipelineText: string;
|
15
15
|
pipeline: Document[] | null;
|
16
16
|
syntaxErrors: PipelineParserError[];
|
17
17
|
};
|
18
|
-
|
18
|
+
type EditorPreviewFetchAction = {
|
19
19
|
type: EditorActionTypes.EditorPreviewFetch;
|
20
20
|
};
|
21
|
-
|
21
|
+
type EditorPreviewFetchSkippedAction = {
|
22
22
|
type: EditorActionTypes.EditorPreviewFetchSkipped;
|
23
23
|
};
|
24
|
-
|
24
|
+
type EditorPreviewFetchSuccessAction = {
|
25
25
|
type: EditorActionTypes.EditorPreviewFetchSuccess;
|
26
26
|
previewDocs: Document[];
|
27
27
|
};
|
28
|
-
|
28
|
+
type EditorPreviewFetchErrorAction = {
|
29
29
|
type: EditorActionTypes.EditorPreviewFetchError;
|
30
30
|
serverError: MongoServerError;
|
31
31
|
};
|
32
|
-
export
|
32
|
+
export type TextEditorState = {
|
33
33
|
pipelineText: string;
|
34
34
|
pipeline: Document[];
|
35
35
|
syntaxErrors: PipelineParserError[];
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"text-editor-pipeline.d.ts","sourceRoot":"","sources":["../../../../src/modules/pipeline-builder/text-editor-pipeline.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;AAQrD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAOnE,0BAAkB,iBAAiB;IACjC,kBAAkB,sFAAsF;IACxG,yBAAyB,yFAAyF;IAClH,yBAAyB,6FAA6F;IACtH,uBAAuB,2FAA2F;IAClH,iBAAiB,qFAAqF;CACvG;AAED,
|
1
|
+
{"version":3,"file":"text-editor-pipeline.d.ts","sourceRoot":"","sources":["../../../../src/modules/pipeline-builder/text-editor-pipeline.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;AAQrD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAOnE,0BAAkB,iBAAiB;IACjC,kBAAkB,sFAAsF;IACxG,yBAAyB,yFAAyF;IAClH,yBAAyB,6FAA6F;IACtH,uBAAuB,2FAA2F;IAClH,iBAAiB,qFAAqF;CACvG;AAED,MAAM,MAAM,uBAAuB,GAAG;IACpC,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,KAAK,wBAAwB,GAAG;IAC9B,IAAI,EAAE,iBAAiB,CAAC,kBAAkB,CAAC;CAC5C,CAAC;AAEF,KAAK,+BAA+B,GAAG;IACrC,IAAI,EAAE,iBAAiB,CAAC,yBAAyB,CAAC;CACnD,CAAC;AAEF,KAAK,+BAA+B,GAAG;IACrC,IAAI,EAAE,iBAAiB,CAAC,yBAAyB,CAAC;IAClD,WAAW,EAAE,QAAQ,EAAE,CAAC;CACzB,CAAC;AAEF,KAAK,6BAA6B,GAAG;IACnC,IAAI,EAAE,iBAAiB,CAAC,uBAAuB,CAAC;IAChD,WAAW,EAAE,gBAAgB,CAAC;CAC/B,CAAC;AAEF,MAAM,MAAM,eAAe,GAAG;IAC5B,YAAY,EAAE,MAAM,CAAC;IACrB,QAAQ,EAAE,QAAQ,EAAE,CAAC;IACrB,YAAY,EAAE,mBAAmB,EAAE,CAAC;IACpC,WAAW,EAAE,gBAAgB,GAAG,IAAI,CAAC;IACrC,SAAS,EAAE,OAAO,CAAC;IACnB,WAAW,EAAE,QAAQ,EAAE,GAAG,IAAI,CAAC;IAC/B,cAAc,EAAE,OAAO,CAAC;CACzB,CAAC;AAYF,QAAA,MAAM,OAAO,EAAE,OAAO,CAAC,eAAe,CAoGrC,CAAC;AAEF,wBAAgB,cAAc,CAC5B,WAAW,EAAE,OAAO,EACpB,YAAY,EAAE,mBAAmB,EAAE,WAGpC;AAED,eAAO,MAAM,sBAAsB,QAAO,2BACxC,QAAQ,IAAI,CAAC,EACX,wBAAwB,GACxB,+BAA+B,GAC/B,6BAA6B,GAC7B,+BAA+B,CAqElC,CAAC;AAEF,eAAO,MAAM,iBAAiB,aAClB,MAAM,KACf,2BAA2B,IAAI,EAAE,uBAAuB,CAyB1D,CAAC;AAEF,eAAe,OAAO,CAAC"}
|
@@ -4,7 +4,7 @@ import type { StoredPipeline } from '../utils/pipeline-storage';
|
|
4
4
|
export declare const SET_SHOW_SAVED_PIPELINES: string;
|
5
5
|
export declare const SAVED_PIPELINE_ADD: string;
|
6
6
|
export declare const RESTORE_PIPELINE: string;
|
7
|
-
export
|
7
|
+
export type SavedPipelineState = {
|
8
8
|
pipelines: StoredPipeline[];
|
9
9
|
isLoaded: boolean;
|
10
10
|
isListVisible: boolean;
|
@@ -22,7 +22,8 @@ export declare const savedPipelineAdd: (pipelines: StoredPipeline[]) => {
|
|
22
22
|
};
|
23
23
|
export declare const getSavedPipelines: () => PipelineBuilderThunkAction<void>;
|
24
24
|
export declare const updatePipelineList: () => PipelineBuilderThunkAction<void>;
|
25
|
-
export declare const
|
26
|
-
export declare const openPipelineById: (id: string) => PipelineBuilderThunkAction<Promise<void>>;
|
25
|
+
export declare const openStoredPipeline: (pipelineData: StoredPipeline, updatePreview?: boolean) => PipelineBuilderThunkAction<void>;
|
27
26
|
export declare const saveCurrentPipeline: () => PipelineBuilderThunkAction<void>;
|
27
|
+
export declare const confirmOpenPipeline: (pipelineData: StoredPipeline) => PipelineBuilderThunkAction<void>;
|
28
|
+
export declare const confirmDeletePipeline: (pipelineId: string) => PipelineBuilderThunkAction<void>;
|
28
29
|
//# sourceMappingURL=saved-pipeline.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"saved-pipeline.d.ts","sourceRoot":"","sources":["../../../src/modules/saved-pipeline.ts"],"names":[],"mappings":"AAGA,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;
|
1
|
+
{"version":3,"file":"saved-pipeline.d.ts","sourceRoot":"","sources":["../../../src/modules/saved-pipeline.ts"],"names":[],"mappings":"AAGA,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;AAgBhE,eAAO,MAAM,wBAAwB,QAAuB,CAAC;AAC7D,eAAO,MAAM,kBAAkB,QAAkB,CAAC;AAClD,eAAO,MAAM,gBAAgB,QAA+B,CAAC;AAE7D,MAAM,MAAM,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,QACxB,2BAA2B,IAAI,CAIlC,CAAC;AAKJ,eAAO,MAAM,kBAAkB,QACzB,2BAA2B,IAAI,CAiBlC,CAAC;AAKJ,eAAO,MAAM,kBAAkB,iBACf,cAAc,8BAE3B,2BAA2B,IAAI,CAqCjC,CAAC;AAKF,eAAO,MAAM,mBAAmB,QAC1B,2BAA2B,IAAI,CAiDlC,CAAC;AAEJ,eAAO,MAAM,mBAAmB,iBACf,cAAc,KAAG,2BAA2B,IAAI,CAqB9D,CAAC;AAEJ,eAAO,MAAM,qBAAqB,eACnB,MAAM,KAAG,2BAA2B,IAAI,CAoBpD,CAAC"}
|
@@ -5,7 +5,7 @@ export declare const TOGGLE_COMMENT_MODE: string;
|
|
5
5
|
export declare const SET_SAMPLE_SIZE: string;
|
6
6
|
export declare const SET_LIMIT: string;
|
7
7
|
export declare const APPLY_SETTINGS: string;
|
8
|
-
|
8
|
+
type State = {
|
9
9
|
isExpanded: boolean;
|
10
10
|
isCommentMode: boolean;
|
11
11
|
isDirty: boolean;
|
@@ -1 +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;AAMzD,
|
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;AAMzD,KAAK,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,CAAC;CACf,CAAC;AAEF,eAAO,MAAM,aAAa,EAAE,KAM3B,CAAC;AAEF,QAAA,MAAM,OAAO,EAAE,OAAO,CAAC,KAAK,EAAE,SAAS,CA6CtC,CAAC;AAEF,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,15 @@
|
|
1
|
+
import type { AnyAction } from 'redux';
|
2
|
+
declare enum ActionTypes {
|
3
|
+
SidePanelToggled = "compass-aggregations/sidePanelToggled"
|
4
|
+
}
|
5
|
+
type SidePanelToggledAction = {
|
6
|
+
type: ActionTypes.SidePanelToggled;
|
7
|
+
};
|
8
|
+
type State = {
|
9
|
+
isPanelOpen: boolean;
|
10
|
+
};
|
11
|
+
export declare const INITIAL_STATE: State;
|
12
|
+
export default function reducer(state: State | undefined, action: AnyAction): State;
|
13
|
+
export declare const toggleSidePanel: () => SidePanelToggledAction;
|
14
|
+
export {};
|
15
|
+
//# sourceMappingURL=side-panel.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"side-panel.d.ts","sourceRoot":"","sources":["../../../src/modules/side-panel.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAGvC,aAAK,WAAW;IACd,gBAAgB,0CAA0C;CAC3D;AAED,KAAK,sBAAsB,GAAG;IAC5B,IAAI,EAAE,WAAW,CAAC,gBAAgB,CAAC;CACpC,CAAC;AAEF,KAAK,KAAK,GAAG;IACX,WAAW,EAAE,OAAO,CAAC;CACtB,CAAC;AAEF,eAAO,MAAM,aAAa,EAAE,KAE3B,CAAC;AAEF,MAAM,CAAC,OAAO,UAAU,OAAO,CAC7B,KAAK,mBAAgB,EACrB,MAAM,EAAE,SAAS,GAChB,KAAK,CASP;AAED,eAAO,MAAM,eAAe,QAAO,sBAEjC,CAAC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"update-view.d.ts","sourceRoot":"","sources":["../../../src/modules/update-view.js"],"names":[],"mappings":"AAwBA,2EAWC;AArBD,iCAAkC;AAGlC,iFACiD;AAGjD,6FACuD;AAsBhD,8CAJI,KAAK,GAEH,MAAM,CAKjB;AAOK,oCAFM,MAAM,CAIjB;AAOK,
|
1
|
+
{"version":3,"file":"update-view.d.ts","sourceRoot":"","sources":["../../../src/modules/update-view.js"],"names":[],"mappings":"AAwBA,2EAWC;AArBD,iCAAkC;AAGlC,iFACiD;AAGjD,6FACuD;AAsBhD,8CAJI,KAAK,GAEH,MAAM,CAKjB;AAOK,oCAFM,MAAM,CAIjB;AAOK,uCAoCN"}
|
@@ -1,15 +1,15 @@
|
|
1
1
|
import type { AnyAction, Reducer } from 'redux';
|
2
2
|
import type { PipelineBuilderThunkAction } from '.';
|
3
|
-
export
|
3
|
+
export type Workspace = 'builder' | 'results';
|
4
4
|
export declare enum ActionTypes {
|
5
5
|
WorkspaceChanged = "compass-aggregations/workspaceChanged"
|
6
6
|
}
|
7
|
-
|
7
|
+
type WorkspaceChangedAction = {
|
8
8
|
type: ActionTypes.WorkspaceChanged;
|
9
9
|
view: Workspace;
|
10
10
|
};
|
11
|
-
export
|
12
|
-
export
|
11
|
+
export type Actions = WorkspaceChangedAction;
|
12
|
+
export type State = Workspace;
|
13
13
|
export declare const INITIAL_STATE: State;
|
14
14
|
declare const reducer: Reducer<State, AnyAction>;
|
15
15
|
export declare const editPipeline: () => PipelineBuilderThunkAction<void>;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"workspace.d.ts","sourceRoot":"","sources":["../../../src/modules/workspace.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AAKhD,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,GAAG,CAAC;AAIpD,
|
1
|
+
{"version":3,"file":"workspace.d.ts","sourceRoot":"","sources":["../../../src/modules/workspace.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AAKhD,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,GAAG,CAAC;AAIpD,MAAM,MAAM,SAAS,GAAG,SAAS,GAAG,SAAS,CAAC;AAE9C,oBAAY,WAAW;IACrB,gBAAgB,0CAA0C;CAC3D;AAED,KAAK,sBAAsB,GAAG;IAC5B,IAAI,EAAE,WAAW,CAAC,gBAAgB,CAAC;IACnC,IAAI,EAAE,SAAS,CAAC;CACjB,CAAC;AAEF,MAAM,MAAM,OAAO,GAAG,sBAAsB,CAAC;AAC7C,MAAM,MAAM,KAAK,GAAG,SAAS,CAAC;AAE9B,eAAO,MAAM,aAAa,EAAE,KAAiB,CAAC;AAE9C,QAAA,MAAM,OAAO,EAAE,OAAO,CAAC,KAAK,EAAE,SAAS,CAWtC,CAAC;AAEF,eAAO,MAAM,YAAY,QAAO,2BAA2B,IAAI,CAS9D,CAAC;AACF,eAAe,OAAO,CAAC"}
|
package/dist/src/plugin.d.ts
CHANGED
@@ -14,11 +14,10 @@ export class Plugin extends React.Component<any, any, any> {
|
|
14
14
|
};
|
15
15
|
constructor(props: any);
|
16
16
|
constructor(props: any, context: any);
|
17
|
-
render():
|
17
|
+
render(): JSX.Element;
|
18
18
|
}
|
19
|
-
import configureStore from
|
20
|
-
import React from
|
21
|
-
import
|
22
|
-
import PropTypes from "prop-types";
|
19
|
+
import configureStore from './stores/store';
|
20
|
+
import React from 'react';
|
21
|
+
import PropTypes from 'prop-types';
|
23
22
|
export { configureStore };
|
24
23
|
//# sourceMappingURL=plugin.d.ts.map
|
package/dist/src/plugin.d.ts.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"plugin.d.ts","sourceRoot":"","sources":["../../src/plugin.jsx"],"names":[],"mappings":";
|
1
|
+
{"version":3,"file":"plugin.d.ts","sourceRoot":"","sources":["../../src/plugin.jsx"],"names":[],"mappings":";AAOA;IACE,2BAA0C;IAE1C;;;;;MAKE;IAEF;;;;MAIE;IAsBuukB,wBAA8C;IAAA,sCAAyJ;IAjBh7kB,sBAYC;CACF;2BAnC0B,gBAAgB;kBAJV,OAAO;sBAClB,YAAY"}
|
@@ -1,6 +1,113 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
1
|
+
import type { Store } from 'redux';
|
2
|
+
import { PipelineBuilder } from '../modules/pipeline-builder/pipeline-builder';
|
3
|
+
import type { StoredPipeline } from '../utils/pipeline-storage';
|
4
|
+
import { PipelineStorage } from '../utils/pipeline-storage';
|
5
|
+
import type { DataService } from 'mongodb-data-service';
|
6
|
+
import type AppRegistry from 'hadron-app-registry';
|
7
|
+
import type { ENVS } from '@mongodb-js/mongodb-constants';
|
8
|
+
export type ConfigureStoreOptions = {
|
9
|
+
dataProvider: {
|
10
|
+
dataProvider: Pick<DataService, 'isCancelError' | 'estimatedCount' | 'aggregate' | 'getConnectionString'>;
|
11
|
+
error?: Error;
|
12
|
+
};
|
13
|
+
namespace: string;
|
14
|
+
} & Partial<{
|
15
|
+
localAppRegistry: Pick<AppRegistry, 'on' | 'emit' | 'getStore'>;
|
16
|
+
globalAppRegistry: Pick<AppRegistry, 'on' | 'emit' | 'getStore'>;
|
17
|
+
sourceName: string;
|
18
|
+
serverVersion: string;
|
19
|
+
isTimeSeries: boolean;
|
20
|
+
isDataLake: boolean;
|
21
|
+
env: typeof ENVS[number] | null;
|
22
|
+
isAtlasDeployed: boolean | null;
|
23
|
+
fields: {
|
24
|
+
name: string;
|
25
|
+
}[];
|
26
|
+
outResultsFn: (namespace: string) => void;
|
27
|
+
aggregation: StoredPipeline;
|
28
|
+
editViewName: string;
|
29
|
+
sourcePipeline: unknown[];
|
30
|
+
pipeline: unknown[];
|
31
|
+
pipelineText: string;
|
32
|
+
}>;
|
33
|
+
declare const configureStore: (options: ConfigureStoreOptions) => Store<import("redux").EmptyObject & {
|
34
|
+
appRegistry: unknown;
|
35
|
+
comments: boolean;
|
36
|
+
autoPreview: boolean;
|
37
|
+
dataService: {
|
38
|
+
error: Error | null;
|
39
|
+
dataService: DataService | null;
|
40
|
+
};
|
41
|
+
fields: any;
|
42
|
+
inputDocuments: {
|
43
|
+
count: any;
|
44
|
+
documents: any;
|
45
|
+
error: any;
|
46
|
+
isLoading: boolean;
|
47
|
+
isExpanded: boolean;
|
48
|
+
};
|
49
|
+
namespace: string;
|
50
|
+
env: string;
|
51
|
+
isTimeSeries: boolean;
|
52
|
+
serverVersion: string;
|
53
|
+
savedPipeline: {
|
54
|
+
pipelines: any;
|
55
|
+
isLoaded: boolean;
|
56
|
+
isListVisible: boolean;
|
57
|
+
};
|
58
|
+
name: string;
|
59
|
+
collationString: import("../modules/collation-string").CollationStringState;
|
60
|
+
id: string;
|
61
|
+
isModified: boolean;
|
62
|
+
isAtlasDeployed: boolean;
|
63
|
+
settings: {
|
64
|
+
isExpanded: boolean;
|
65
|
+
isCommentMode: boolean;
|
66
|
+
isDirty: boolean;
|
67
|
+
sampleSize: number;
|
68
|
+
limit: number;
|
69
|
+
};
|
70
|
+
limit: any;
|
71
|
+
largeLimit: any;
|
72
|
+
maxTimeMS: number | null;
|
73
|
+
savingPipeline: any;
|
74
|
+
projections: any;
|
75
|
+
editViewName: any;
|
76
|
+
sourceName: any;
|
77
|
+
outResultsFn: any;
|
78
|
+
updateViewError: any;
|
79
|
+
aggregation: import("../modules/aggregation").State;
|
80
|
+
workspace: import("../modules/workspace").Workspace;
|
81
|
+
countDocuments: import("../modules/count-documents").State;
|
82
|
+
aggregationWorkspaceId: string;
|
83
|
+
explain: import("../modules/explain").State;
|
84
|
+
isDataLake: boolean;
|
85
|
+
indexes: import("../modules/indexes").State;
|
86
|
+
pipelineBuilder: import("redux").CombinedState<{
|
87
|
+
pipelineMode: import("../modules/pipeline-builder/pipeline-mode").PipelineMode;
|
88
|
+
stageEditor: import("../modules/pipeline-builder/stage-editor").StageEditorState;
|
89
|
+
textEditor: import("redux").CombinedState<{
|
90
|
+
pipeline: import("../modules/pipeline-builder/text-editor-pipeline").TextEditorState;
|
91
|
+
outputStage: {
|
92
|
+
isLoading: boolean;
|
93
|
+
serverError: import("mongodb").MongoServerError | null;
|
94
|
+
isComplete: boolean;
|
95
|
+
};
|
96
|
+
}>;
|
97
|
+
}>;
|
98
|
+
focusMode: {
|
99
|
+
isEnabled: boolean;
|
100
|
+
stageIndex: number;
|
101
|
+
openedAt: number | null;
|
102
|
+
};
|
103
|
+
sidePanel: {
|
104
|
+
isPanelOpen: boolean;
|
105
|
+
};
|
106
|
+
}, import("redux").Action<any>> & {
|
107
|
+
dispatch: import("redux-thunk").ThunkDispatch<any, {
|
108
|
+
pipelineBuilder: PipelineBuilder;
|
109
|
+
pipelineStorage: PipelineStorage;
|
110
|
+
}, import("redux").AnyAction>;
|
111
|
+
};
|
4
112
|
export default configureStore;
|
5
|
-
declare function configureStore(options?: Options): Store;
|
6
113
|
//# sourceMappingURL=store.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"store.d.ts","sourceRoot":"","sources":["../../../src/stores/store.
|
1
|
+
{"version":3,"file":"store.d.ts","sourceRoot":"","sources":["../../../src/stores/store.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,OAAO,CAAC;AAWnC,OAAO,EAAE,eAAe,EAAE,MAAM,8CAA8C,CAAC;AAC/E,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAChE,OAAO,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAC;AAM5D,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AACxD,OAAO,KAAK,WAAW,MAAM,qBAAqB,CAAC;AACnD,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,+BAA+B,CAAC;AAE1D,MAAM,MAAM,qBAAqB,GAAG;IAIlC,YAAY,EAAE;QACZ,YAAY,EAAE,IAAI,CAChB,WAAW,EACX,eAAe,GAAG,gBAAgB,GAAG,WAAW,GAAG,qBAAqB,CACzE,CAAC;QACF,KAAK,CAAC,EAAE,KAAK,CAAC;KACf,CAAC;IAIF,SAAS,EAAE,MAAM,CAAC;CACnB,GAAG,OAAO,CAAC;IAMV,gBAAgB,EAAE,IAAI,CAAC,WAAW,EAAE,IAAI,GAAG,MAAM,GAAG,UAAU,CAAC,CAAC;IAMhE,iBAAiB,EAAE,IAAI,CAAC,WAAW,EAAE,IAAI,GAAG,MAAM,GAAG,UAAU,CAAC,CAAC;IAIjE,UAAU,EAAE,MAAM,CAAC;IAInB,aAAa,EAAE,MAAM,CAAC;IAKtB,YAAY,EAAE,OAAO,CAAC;IAKtB,UAAU,EAAE,OAAO,CAAC;IAKpB,GAAG,EAAE,OAAO,IAAI,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC;IAIhC,eAAe,EAAE,OAAO,GAAG,IAAI,CAAC;IAIhC,MAAM,EAAE;QAAE,IAAI,EAAE,MAAM,CAAA;KAAE,EAAE,CAAC;IAM3B,YAAY,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,IAAI,CAAC;IAK1C,WAAW,EAAE,cAAc,CAAC;IAM5B,YAAY,EAAE,MAAM,CAAC;IAMrB,cAAc,EAAE,OAAO,EAAE,CAAC;IAK1B,QAAQ,EAAE,OAAO,EAAE,CAAC;IAIpB,YAAY,EAAE,MAAM,CAAC;CACtB,CAAC,CAAC;AAEH,QAAA,MAAM,cAAc,YAAa,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2JrD,CAAC;AAEF,eAAe,cAAc,CAAC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"get-schema.d.ts","sourceRoot":"","sources":["../../../src/utils/get-schema.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAqCxC,eAAO,MAAM,SAAS,SAAU,QAAQ,EAAE,aAEzC,CAAC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"pipeline-storage.d.ts","sourceRoot":"","sources":["../../../src/utils/pipeline-storage.ts"],"names":[],"mappings":"AAUA,
|
1
|
+
{"version":3,"file":"pipeline-storage.d.ts","sourceRoot":"","sources":["../../../src/utils/pipeline-storage.ts"],"names":[],"mappings":"AAUA,MAAM,MAAM,cAAc,GAAG;IAC3B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,EAAE;QAAE,aAAa,EAAE,MAAM,CAAC;QAAC,SAAS,EAAE,OAAO,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,EAAE,CAAC;IAC1E,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,YAAY,EAAE,MAAM,CAAC;IACrB,YAAY,EAAE,MAAM,CAAC;CACtB,CAAC;AA8CF,qBAAa,eAAe;IACpB,OAAO,IAAI,OAAO,CAAC,cAAc,EAAE,CAAC;IAWpC,IAAI,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,cAAc,GAAG,IAAI,CAAC;IAIhD,QAAQ,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,cAAc,GAAG,IAAI,CAAC;IAoB1D,YAAY,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC;IAQhD,gBAAgB,CAAC,EAAE,EAAE,MAAM,EAAE,UAAU,EAAE,OAAO,CAAC,cAAc,CAAC;;;;;;;;;;;;;;;;IAwBhE,MAAM,CAAC,EAAE,EAAE,MAAM;CAIxB"}
|
@@ -9,7 +9,7 @@ export function getStageInfo(namespace: string, stageOperator: string | undefine
|
|
9
9
|
destination?: string;
|
10
10
|
};
|
11
11
|
export function hasSyntaxError(stage: any): boolean;
|
12
|
-
export function filterStageOperators(
|
12
|
+
export function filterStageOperators(options: Object): any[];
|
13
13
|
export function getStageHelpLink(stageOperator: any): string | null;
|
14
14
|
export function getLastStageOperator(pipeline: import('mongodb').Document[]): string;
|
15
15
|
export function isLastStageOutputStage(pipeline: import('mongodb').Document[]): boolean;
|